executeCallout(requestId, payload, devName)
Calls the provider class defiled in the Integration Definition record referenced by the devName parameter. The Industries: SendApex Async Request invocable action calls this method.
global static IntegrationCalloutResponse executeCallout(String requestId, String payload, String devName)
- requestId
Type: String
Represents a unique ID string that identifies the record containing the input data to the API call.
- payload
Type: String
Represents any string that needs to be passed directly to the provider.
- devName
Type: String
Represents the Developer Name of the Integration Definition record.
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.