AMPscript
AddObjectArrayItem
CreateObject
InvokeConfigure
InvokeCreate
InvokeDelete
InvokeExecute
InvokeExtract
InvokePerform
InvokeRetrieve
InvokeSchedule
InvokeUpdate
SetObjectProperty
Validate Your Server-Side JavaScript using WSProxy
Invokes the Perform method on the specified object
InvokePerform(1, 2, 3, 4)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Object on which to perform Perform method |
| 2 | string | Required | Method to perform on the object |
| 3 | array | Required | Array containing status and RequestID of API call |
| 4 | 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.InvokePerform(APIObject,"Validate",StatusAndRequestID,Options);
4 var statusMessage = StatusAndRequestID[0];
5 var errorCode = StatusAndRequestID[1];
6 var performResponse = StatusAndRequestID[2];
7</script>