wfm.SaveScript

This job saves a script or creates a new script (Action = 2).

1. Input Parameters

Name Type Required Description

OrganisationId

STRING

Yes

ID of the organization.

WorkflowId

STRING

Yes

ID of the workflow.

Id

STRING

Yes

ID of the script.

Name

STRING

Yes

Name of the script.

Description

STRING

Yes

Short description of the script.

Action

INT

Yes

Action to be performed:
1 = overwrite the existing script;
2 = create a new script.

ScriptCode

STRING

Yes

Script code.

Type

INT

Yes

Type of script:
1 = event script;
2 = global server script;
3 = global client script.

2. Output Parameters

Name Type Dependency Description

ScriptId

STRING

ID of the saved or newly created script.

3. Return Value

(INT): 0 = Job successful, otherwise error code.