Skip to main content
Version: 5.7.0

RunBatchUserScriptForSegmentsAndCompletionScript

Runs a script against the users in the specified segments, and then a completion script at the end.

ServiceOperation
scriptRUN_BATCH_USER_SCRIPT

Method Parameters

ParameterDescription
scriptNameThe name of the script with its path to be run against each user
scriptDataData to be sent to the script in JSON format.
segmentIdListArray of segments that identify the users to run the user script against
completionScriptThe name of the script with its path to be run once, after all users have been processed.

Usage

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"status": 200,
"data": {}
}
]
}