---
schema_version: "1"
id: e55fdf068c8b5de57aeb42f562fa3c0753d7fe8118ee3a5ef4c4db79cfb307d1
title: Test Data Source Settings 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_test_data_source_settings_on_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_test_data_source_settings_on_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a30c01dc94541f633bc00e6565e67dc274d00ce373104762969eb82fafa7af8a
description: 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.
products:
  - Omnistudio
release: "264"
---
# Test Data Source Settings on a Flexcard (Managed Package)

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.

![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).

1. From the Flexcards home tab, click a version of a Flexcard to open the Flexcard Designer.
2. In the Setup panel, click **\+ Add New** in the **Test Parameters** section.
3. In the **Key** field, enter a test variable name. For example, if your data source is a Data Mapper, enter the variable from the Input Map representing a contextId such as recordId. See [Flexcards Context Variables (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_context_variables.htm&release=264.0.0&type=5 "For the managed package runtime, global and local context variables are available to a Flexcard to provide context to data sources, actions, and other components. All variables are case sensitive.").
4. In the **Value** field, enter a test variable value. For example, enter a record Id, such as the one found in the URL of an Account page.
5. (Optional) If your returned data has multiple arrays, to return a specific dataset enter its JSON path in **Result JSON Path**. For example, to return just the Cases dataset, enter \[0\]\['Cases'\] if your JSON looks like this:
    
    ```
    {
    [
      "Cases": [
        {
          "Priority": "High",
          "IsEscalated": false,
          "CaseId": "5006g00000FpEz5AAF",
          "Created": "2020-07-22T00:22:42.000Z",
          "Type": "Mechanical",
          "Subject": "Generator won't start",
          "Status": "New",
          "Origin": "Web",
          "Description": "Despite turn the power on and off several times, the generator wouldn't start",
          "CaseNumber": "00001028"
        },
        {
          "Priority": "Medium",
          "IsEscalated": false,
          "CaseId": "5006g00000BsfKkAAJ",
          "Created": "2020-02-27T22:28:20.000Z",
          "Type": "Mechanical",
          "Subject": "Shutting down of generator",
          "Status": "Closed",
          "Origin": "Web",
          "CaseNumber": "00001017"
        }  
      ],
      "Account": {
        "Type": "Customer - Direct",
        "Name": "Edge Communications",
        "Street": "312 Constitution Place\nAustin, TX 78767\nUSA",
        "State/Province": "TX",
        "City": "Austin",
        "Revenue": 139000000
      }
    ]
    }
    ```
6. Click **Save & Fetch** to view the **Test Results**.
    
    ![FlexCards datasource Test Results](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/flexcards_datatable_test_results.png)
7. (Optional) Click **JSON** to view test results as JSON.
8. (Optional) Click **Refresh** to see the latest data.