Sample API

concept brazil Updated Sep 10, 2026 1 min read pace-inv-api.md
Raw file servicenow.com

The following is a sample invocation request when the PaCE API is executed.

JavaScript
var request = {"documentIds":         [{"table":"sn_cdm_deployable","sysId":"d1be8f5e87d80110eec7dbdd3fbb357d"}],"service":"CDM","category":"CDM","data":{"snapshotId":"2bcec7de87d80110eec7dbdd3fbb3529"},"options":{"verboseResponse":true,"logLevel":"debug","type":"standard","failFast":false, "executionTag":"cdm"}}                             try {


            var api = new sn_pace.InvocationAPI();


            var execResponse = api.execute(request);


            gs.info(" Got execution response:\n " +  JSON.stringify(execResponse,null,4));                                                                                                                           } catch (err) {


            //var errJSON = JSON.parse(err);


            //gs.info(errJSON.code);


            gs.info(" Error message is:" + err + "\n stack:" +  err.stack);


            // gs.info(" Error is:" + err);


         }
Search documentation
Search document titles and file paths on the brazil branch