---
schema_version: "1"
id: 71da33818a363df0d741ce12fce4fd3629ed48c5cdb02adf0bd0758122464e0d
title: Configure an SDK Data Source on a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_configure_an_sdk_data_source_on_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configure_an_sdk_data_source_on_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f5fbcd173a45ccb4e37c93289505f534975d02ebae7b983a043e619e8232c97b
description: For the managed package runtime, configure a data source to use methods from an SDK to provide the data for a Flexcard. An SDK allows you to call multiple data sources, reuse business logic, and control which fields appear on your Flexcard.
products:
  - Omnistudio
release: "264"
---
# Configure an SDK Data Source on a Flexcard (Managed Package)

For the managed package runtime, configure a data source to use methods from an SDK to provide the data for a Flexcard. An SDK allows you to call multiple data sources, reuse business logic, and control which fields appear on your Flexcard.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

See [Flexcard SDK Data Source (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcard_sdk_data_source.htm&release=264.0.0&type=5 "For the managed package runtime, you can use a SDK, such as the Salesforce Industries Digital Commerce SDK, which contains all the business logic necessary for your application and reuse that business logic in other applications. This allows you to focus on creating the UI for an application without needing to call an API and process the API response. You only need to call the method of the SDK and the SDK calls the API. The SDK gets the API response, parses that response, then gives it back to the client. The client then consumes the SDK response in the UI so you can design your Flexcard based on the response you receive.").

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d225289e56">
              <p style="margin-bottom:0;">Required Versions</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Required Versions" class="slds-cell-wrap" style="vertical-align:top;" headers="d225289e56 ">
              <p style="margin-bottom:0;">Available beginning Summer '21.</p>
            </td>

          </tr>
        </tbody>
      </table>

Before You Begin

Create the static resource for the SDK. See [Create the Static Resource for an SDK Data Source on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_static_resource_for_an_sdk_data_source_on_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, before you configure an SDK as a data source for your Flexcard, you need to add or create a static resource named OmniStudioActionRegistry that contains the configuration of the SDK that you want to use as a datasource in the Flexcard. The Flexcard looks for a file with that name in the static resource.").

1. To configure the data source when [creating a Flexcard](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, configure basic settings and data source options when creating a Flexcard in the Flexcard Designer. After creating a Flexcard you can update additional options and start building your user experience."), navigate to the **Select Data Source Type** step, select **SDK**, and click **Next**.
2. To configure the data source from the SetUp Panel in the Flexcard Designer, click **Setup**, and select **SDK** from the **Data Source Type** dropdown.
3. From the **SDK** dropdown, select the SDK from the drop list.
    
    This should be the name of the SDK as given in the static resource file, such as `Digitalcommerce JS SDK`. Once you select that name, the **Description** field populates. The Flexcard finds the static resource name and loads the file specified in `sdkPath`.
4. From the **SDK Method** dropdown, select from a list of functions available from your chosen SDK, such as getOffers method. For a list of Digital Commerce SDK methods, see the SDK Core Class Structure and Methods documentation.
5. (Optional) To pass data from the Flexcard to the SDK method, from the **Input Parameters** section select from one of these options:
    
    - Click **\+ Add New**:
        
        1. In the **Key** field enter the name of a variable to pass to the method. Or, if a list of available parameters appears when you click into the Key field, select one, such as catalogCode.
        2. In the **Value** field, enter the value of the variable as a merge field, such as Phones.
    - Click **Edit as JSON** to add variables as JSON, such as {"catalogCode":"Phones"}.
    
    ![FlexCard SDK Data Source Configuration](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/flexcard_sdk_data_source_configuration.png)
6. (Optional) To configure other options common among all data sources, see [Flexcards Data Source Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_data_source_properties.htm&release=264.0.0&type=5 "For the managed package runtime, Flexcard Data Source properties are configurable for each data source type in the Setup panel of the Flexcard Designer. Retrieve data from a Salesforce object or an external database.").
7. (Optional) If an input parameter has merge fields, such as {recordId}, add test variables in the **Test Parameters** section so that the query returns live data. See [Test Data Source Settings on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_test_data_source_settings_on_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, preview a Flexcard with real data by adding test values to runtime variables. The variables populate the dynamic fields in a data source, such as a contextId from an Omnistudio Data Mapper that gets data from an Account.").
8. Click Save + Fetch. The Flexcard Designer makes the API call and returns a response. You can test the response in the **Test Response** field. See [Test Data Source Settings on a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_test_data_source_settings_on_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, preview a Flexcard with real data by adding test values to runtime variables. The variables populate the dynamic fields in a data source, such as a contextId from an Omnistudio Data Mapper that gets data from an Account.").

What’s next: Add elements to the Flexcard.