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.
global static Object executeLightningCallback(List<String> labels, Map<String, Object> state)
- 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.
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.
This method isn’t meant to be called directly — the LWC framework calls it automatically.