getLightningContinuation(requestId, params, devName, input)

Gets the Continuation object returned by the provider defined in the Integration Definition record referenced by the devName parameter.

Signature 

global static Continuation getLightningContinuation(String requestId, Map<String, String> params, String devName, Map<String, Object> input)

Parameters 

requestId

Type: String

Represents a unique ID string that identifies the request.

params

Type: Map<String, String>

Represents parameters passed directly to the provider class.

devName

Type: String

Represents the Developer Name of the Integration Definition record.

input

Type: Map<String, Object>

If the Integration Definition references an external service, the input parameter contains the following properties:

  • InputRecordId — ID of the record containing the input data to the API call.
  • OutputRecordId — ID of the record to which output data from the API call is written.

Return Value 

Returns the Continuation object.

Usage 

To use this class:

  1. Create a provider class or preprocessor and postprocessor OmniStrudio assets.
  2. Define an Integration Definition record in Setup.
  3. Call this method to get the Continuation to call from the LWC component.