---
schema_version: "1"
id: 98fd4dfdaf6d89ced9d2d0d66f8bfcc3a27a6be1dd58c6c2120e561071bf414a
title: executeLightningCallback(labels, state)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/financial_services_cloud_object_reference/apex_commonserviceexcellence_IntegrationHandler_executeLightningCallback.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.financial_services_cloud_object_reference.meta/financial_services_cloud_object_reference/apex_commonserviceexcellence_IntegrationHandler_executeLightningCallback.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 46fdb6bc605778215f59994a692df1c02c6b2f3eadd516ea00d469f034e90abd
description: Calls back the method that is called automatically after the Continuation from getLightningContinuation is executed. Internally calls the callback method of the provider.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)\>

Represents a list of label strings for retrieving the callout responses.

state

Type: Map<[String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm), 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.