Skip to main content
Workflow data services.

Constructors

NSWorkflowAgent()

Initializes a new instance of the NSWorkflowAgent class.

Methods

CreateDefaultEmailFlow()

Loading default values into a new NSEmailFlow NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSEmailFlow - New NSEmailFlow with default values. Example:

SaveEmailFlow(NSEmailFlow)

Updates the existing NSEmailFlow or creates a new NSEmailFlow if the id parameter is empty
Returns: CRMScript.NetServer.NSEmailFlow - New or updated NSEmailFlow Example:

DeleteEmailFlow(Integer)

Deletes the NSEmailFlow
Example:

CreateDefaultWorkflowEvent()

Loading default values into a new NSWorkflowEvent NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowEvent - New NSWorkflowEvent with default values Example:

CreateDefaultWorkflowEventResult()

Loading default values into a new NSWorkflowEventResult NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowEventResult - New NSWorkflowEventResult with default values Example:

CreateDefaultWorkflowFilter()

Loading default values into a new NSWorkflowFilter NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowFilter - New NSWorkflowFilter with default values Example:

CreateDefaultWorkflowGoal()

Loading default values into a new NSWorkflowGoal NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowGoal - New NSWorkflowGoal with default values Example:

SaveWorkflowGoal(NSWorkflowGoal)

Updates the existing NSWorkflowGoal or creates a new NSWorkflowGoal if the id parameter is empty
Returns: CRMScript.NetServer.NSWorkflowGoal - New or updated NSWorkflowGoal Example:

DeleteWorkflowGoal(Integer)

Deletes the NSWorkflowGoal
Example:

CreateDefaultWorkflowTrigger()

Loading default values into a new NSWorkflowTrigger NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowTrigger - New NSWorkflowTrigger with default values Example:

SaveWorkflowTrigger(NSWorkflowTrigger)

Updates the existing NSWorkflowTrigger or creates a new NSWorkflowTrigger if the id parameter is empty
Returns: CRMScript.NetServer.NSWorkflowTrigger - New or updated NSWorkflowTrigger Example:

DeleteWorkflowTrigger(Integer)

Deletes the NSWorkflowTrigger
Example:

CreateDefaultWorkflowWaitForAction()

Loading default values into a new NSWorkflowWaitForAction NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Returns: CRMScript.NetServer.NSWorkflowWaitForAction - New NSWorkflowWaitForAction with default values Example:

SaveWorkflowWaitForAction(NSWorkflowWaitForAction)

Updates the existing NSWorkflowWaitForAction or creates a new NSWorkflowWaitForAction if the id parameter is empty
Returns: CRMScript.NetServer.NSWorkflowWaitForAction - New or updated NSWorkflowWaitForAction Example:

DeleteWorkflowWaitForAction(Integer)

Deletes the NSWorkflowWaitForAction
Example:

GetEmailFlow(Integer)

Gets a NSEmailFlow object.
Returns: CRMScript.NetServer.NSEmailFlow - NSEmailFlow Example:

TryAddPersonsToEmailFlow(Integer,Integer[])

Try to add a participant to the EmailFlow. Same function available in PersonAgent
Returns: CRMScript.Global.Bool[] - True if the corresponding participant was successfully added, false if it could not be added because of filter criteria or other reason Example:

RemoveParticipantsFromEmailFlow(Integer,Integer[])

Remove participants (actually workflow instances) from the workflow
Example:

CreateEmailFlowContent(Integer,String)

Create content to an email flow
Returns: CRMScript.Global.Integer - Id of shipment created Example:

ConnectEmailFlowContent(Integer,Integer)

Link any SMessage to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
Example:

CopyEmailFlowContent(Integer,Integer)

Copy smessage and connected shipment to the email flow. The SMessage (and any related SShipment etc) should probably not be used/visible elsewhere.
Returns: CRMScript.Global.Integer - Newly created shipment id for this content Example:

UpdateFormSubmissions(Integer)

Attempt to update stored field values for up to the given number of form submissions
Returns: CRMScript.Global.Integer - Number of form submissions converted Example:

SetStatusOnWorkflow(Integer,WorkflowDefinitionStatus)

Set status on workflow, Run or pause flow
Returns: CRMScript.NetServer.WorkflowDefinitionStatus - The new status Example:

CopyEmailFlow(Integer,String)

Copy an email flow.
Returns: CRMScript.Global.Integer - Newly created email flow id for this content Example:

Run()

Run the workflow engine right now
Returns: CRMScript.Global.DateTime - Suggested time for next run Example:

SendEvent(NSWorkflowEvent)

Send a workflow event. Most event signaling will finish very quickly as they normally just change the state of a workflow instance
Returns: CRMScript.NetServer.NSWorkflowEventResult - Any relevant info about the event Example:

GetWorkflowGoal(Integer)

Gets a NSWorkflowGoal object.
Returns: CRMScript.NetServer.NSWorkflowGoal - NSWorkflowGoal Example:

GetWorkflowStep(Integer)

Get Workflowstep by ID
Returns: CRMScript.NetServer.NSWorkflowStepBase - The Workflow step Example:

AddAfterWorkflowStep(Integer,NSWorkflowStepBase)

Add another step (and any of its substeps) after the given step id (which must exist), and move any following steps in the workflow further down the line.
Returns: CRMScript.NetServer.NSWorkflowStepBase - The added step Example:

CreateDefaultWorkflowStepFromType(WorkflowStepType)

Creates a new carrier from the step type given, with the right kind of properties, defaults set.
Returns: CRMScript.NetServer.NSWorkflowStepBase - The created workflow step Example:

GetWorkflowTrigger(Integer)

Gets a NSWorkflowTrigger object.
Returns: CRMScript.NetServer.NSWorkflowTrigger - NSWorkflowTrigger Example:

GetWorkflowWaitForAction(Integer)

Gets a NSWorkflowWaitForAction object.
Returns: CRMScript.NetServer.NSWorkflowWaitForAction - NSWorkflowWaitForAction Example:

CreateDefaultWorkflowStepOptionFromType(WorkflowSplitOptionType)

Creates a new carrier from the option type given, with the right kind of properties, defaults set.
Returns: CRMScript.NetServer.NSWorkflowStepOptionBase - The created workflow step option.

GetWorkflowStepOption(Integer)

Get WorkflowStepOption by ID.
Returns: CRMScript.NetServer.NSWorkflowStepOptionBase - The Workflow step option.