Execute via WSProxy

To execute an action, use the execute function.

  • The first parameter is an array of Name/Value parameters to include in the call.
  • The second parameter is the name of the execute request.

Example Request 

This example shows the parameters but is not a working example.

1var prox = new Script.Util.WSProxy();
2var props = [
3   { Name: "SomeName", Value: "SomeValue" }
4];
5var data = prox.execute(props, "Name of the execute request");

Example Response 

The returned object has three properties, “Status”, “RequestID”, and “Results.” The results contain properties from the SOAP ExecuteResponse items.

1{
2    "Status": "OK",
3    "RequestID": "fb768ddc-6670-4183-8b9d-4f0d5518bb2e",
4    "Results": [...]
5}