Newer Version Available
executeOmniCallback(input, output, options)
Calls back the method that is called automatically after the
Continuation from getOmniContinuation is executed. Internally calls the callback method of the
provider.
Signature
global static Object executeOmniCallback(Map<String, Object> input, Map<String, Object> output, Map<String, Object> options)
Parameters
- input
- Type: Map<String, Object>
- Represents the original input that was passed into getOmniContinuation method.
- output
- Type: Map<String, Object>
- Represents the output from the API call.
- options
- Type: Map<String, Object>
- Represents parameters passed by OmniStudio.
Return Value
Returns the IntegrationCalloutResponse object, which contains the following properties:
- Boolean isSuccess — Indicates if the API call was successful.
- Map<String, Object> returnValue — Response from the API call after the callback method has processed the response.
- String error — Contains the error message in case of an error.
Usage
This method isn't meant to be called directly — the OmniContinuation framework calls it automatically.