You are here:
Use REST API or Apex Trigger to Run a Data Processing Engine Definitions (Managed Package)
You can run Data Processing Engine definitions using REST API or Apex triggers.
This is a Financial Services Cloud managed package feature.
Here’s an example of how you can run a Data Processing Engine definition using REST API.
Api Type:REST
Method :POST
EndPoint :/services/data/v50.0/actions/custom/dataProcessingEngineAction/RBLForAUMHH
Url : https://mist66.soma.salesforce.com/services/data/v50.0/actions/custom/dataProcessingEngineAction/RBLForAUMHH
Response :[
{“actionName”:“RBLForAUMHH”,
“errors”:null,
“isSuccess”:true,
“outputValues”:{“batchJobId”:“0mdx000000000U1AAI”,“accepted”:true}}
]Here’s an example of how you can run a Data Processing Engine definition using an Apex trigger.
public class InvokeCalcJobViaRest {
public void invokeJob(String ruleName){
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm() + '/services/data/v50.0/actions/custom/dataProcessingEngineAction/'+ruleName);
req.setBody('{"inputs":[{}]}');
req.setHeader('Authorization', 'OAuth ' + UserInfo.getSessionId());
req.setHeader('Content-Type', 'application/json');
req.setMethod('POST');
HttpResponse res = h.send(req);
System.debug(res);
}
}
