How to call long-running Integration Procedures from the code
Let’s look at what it takes to run a Chainable or Queueable Chainable Integration Procedure configuration from within the two most popular coding platforms in Salesforce: Apex and LWC.
Calling from Apex
To call an Integration Procedure from Apex, use the runIntegrationService
method of the IntegrationProcedureService
class.
This method expects the procedure name, input map, and options map, returning results in the map as well. For example, here’s what the call may look like:
Map <String, Object> ipOutput = (Map <String, Object>) omnistudio.IntegrationProcedureService .runIntegrationService( 'sample_IPCalculate', new Map <String, Object>(), new Map <String, Object>() );
This is a basic Integration Procedure call without specifying Chainable...