Awaken Scripting User Guide |
|||||
|
|||||
Parameter
|
Required
|
Description
|
newActivity
|
Required
|
Specifies whether to start a new activity for the requested Workflow pop or utilise the current activity.
Note: for Desktop.Queue.QueueCampaignByName(), this is always true.
If true, this will wait until the current activity has finished and all Workflows have exited before launching the Workflow in a new activity (queuing).
If false, the Workflow will be launched in to the current activity once the currently queued Workflows in the current activity are exited.
|
identifier
|
Required
|
The identifier of the Campaign or Campaign Alias to launch, this could be a Scripting campaign, a dialler list, or a SQL table.
|
reference
|
Optional
|
The reference of an existing record to launch. If a record with this reference does not exist, a new record will be created. If null or an empty string is passed, an automatically-generated reference of the form CSAUTO-#-#-# will be used for the new record. This will be the value of [var_csReference] in the popped Workflow.
|
restartScript
|
Optional
|
If set to true, the Workflow will start on the Start Page. If set to false and an existing reference is passed, the Workflow will pop on the page reached in the previous Workflow run. This is only typically set to false to carry on incomplete Workflow runs, and the Workflow must have been left without reaching the Last Page (for instance, via the Script.Finish() helper function) for this to work properly.
If set to null or an empty string, the default behaviour of true is used.
|
data
|
Optional
|
If using Integration - Generic, then a JavaScript object containing data can be passed through to the queued Workflow run, which will map the values of any keys that match Workflow Variables or mapped fields. This will also be available through the Script.Data helper functions.
If no data is required, null or an empty object can be passed in.
|
connector
|
Optional
|
Specifies the connector_id that will be written to tbl_outbound_history for the record. This will be the value of [var_csConnectorID] in the popped Workflow.
|
connectorType
|
Optional
|
Specifies the connector_type that will be written to tbl_outbound_history for the record. This will be the value of [var_csConnectorType] in the popped Workflow.
|
Script.Queue.QueueCampaignByName(true, "GenericCampaign", null, true, {
var_csCallerName: "Joe Bloggs",
DaytimeNumber: "01234 567890"
});
|