AMPscript
AddObjectArrayItem
CreateObject
InvokeConfigure
InvokeCreate
InvokeDelete
InvokeExecute
InvokeExtract
InvokePerform
InvokeRetrieve
InvokeSchedule
InvokeUpdate
SetObjectProperty
Validate Your Server-Side JavaScript using WSProxy
Invokes the Schedule method on the specified object
InvokeSchedule(1, 2, 3, 4, 5)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Object on which to perform Schedule method |
| 2 | string | Required | Method to perform on the object |
| 3 | string | Required | Schedule defintion object to use with Schedule method |
| 4 | array | Required | Array containing status and RequestID of API call |
| 5 | string | Required | API configure options to include in call. Can contain a null value. |
1<script runat="server">
2 var rtn = [0,0,0];
3 var newObject = Platform.Function.InvokeSchedule(APIObject,"Validate",scheduleDefinition,StatusAndRequestID,Options);
4 var statusMessage = StatusAndRequestID[0];
5 var errorCode = StatusAndRequestID[1];
6 var scheduleResponse = StatusAndRequestID[2];
7</script>