Newer Version Available

This content describes an older version of this product. View Latest

executeLightningCallback(labels, state)

Calls back the method that is called automatically after the Continuation from getLightningContinuation is executed. Internally calls the callback method of the provider.

Signature

global static Object executeLightningCallback(List<String> labels, Map<String, Object> state)

Parameters

labels
Type: List<String>
Represents a list of label strings for retrieving the callout responses.
state
Type: Map<String, Object>
Represents a map with the request ID, provider key, and Continuation state.

Return Value

Returns one of the following:

  • If successful, returns a Map<String, Object> response from the API call after the callback method has processed the response.
  • If unsuccessful, returns a String value containing the error message.

Usage

This method isn't meant to be called directly — the LWC framework calls it automatically.