---
schema_version: "1"
id: 58dde9fe67279b4d47520aa1adace1aef4558d49d75b348625aaa0a6870876cd
title: Configure a Custom 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_a_custom_data_source_on_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_configure_a_custom_data_source_on_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6475dc757ecc799d1d210da64d9f9b8eea78f4fc6dbbe3b0d920579ba5600d67
description: For the managed package runtime, embed custom JSON data directly into Flexcard without depending on any external data source. Configure the Custom data source for testing with temporary static data. For example, when you're waiting for access to an API, or if you want to quickly test a concept.
products:
  - Omnistudio
release: "264"
---
# Configure a Custom Data Source on a Flexcard (Managed Package)

For the managed package runtime, embed custom JSON data directly into Flexcard without depending on any external data source. Configure the Custom data source for testing with temporary static data. For example, when you're waiting for access to an API, or if you want to quickly test a concept.

![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. 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 **Custom**, and click **Next**.
2. To configure the data source from the SetUp Panel in the Flexcard Designer, click **Setup**, and select **Custom** from the **Data Source Type** dropdown.
3. Enter custom JSON in the **Custom JSON** field.
    
    **Sample Custom JSON**
    
    ```
    [
    	{
    		"attributes": {
    			"type": "Contact",
    			"url": "/services/data/v49.0/sobjects/Contact/0033700000TOF0eAAH"
    		},
    		"Name": "Perry",
    		"Id": "0033700000TOF0eAAH",
    		"Phone": "(734) 489-5851",
    		"AccountId": "0013700000NVVLvAAP",
    		"Email": "perry@vlocity.com",
    		"MailingAddress": {
    			"city": "Concord",
    			"country": "US",
    			"geocodeAccuracy": null,
    			"latitude": null,
    			"longitude": null,
    			"postalCode": "53813",
    			"state": "WI",
    			"street": "856 4th Avenue #76"
    		},
    		"CreatedDate": "2017-06-14T18:53:11.000+0000"
    	},
    	{
    		"attributes": {
    			"type": "Contact",
    			"url": "/services/data/v49.0/sobjects/Contact/0033700000TOB6mAAH"
    		},
    		"Name": "Robert0 Taylor",
    		"Id": "0033700000TOB6mAAH",
    		"Phone": "(888) 888-8888",
    		"AccountId": "00137000007D63JAAS",
    		"MailingAddress": {
    			"city": "SF",
    			"country": "US",
    			"geocodeAccuracy": null,
    			"latitude": null,
    			"longitude": null,
    			"postalCode": "99999",
    			"state": "CA",
    			"street": "50 Santa Rita St"
    		},
    		"CreatedDate": "2017-06-13T21:08:25.000+0000"
    	},
    	{
    		"attributes": {
    			"type": "Contact",
    			"url": "/services/data/v49.0/sobjects/Contact/0033700000TNvK0AAL"
    		},
    		"Name": "c1",
    		"Id": "0033700000TNvK0AAL",
    		"AccountId": "0013700000NVE4tAAH",
    		"MailingAddress": null,
    		"CreatedDate": "2017-06-08T20:13:41.000+0000"
    	},
    	{
    		"attributes": {
    			"type": "Contact",
    			"url": "/services/data/v49.0/sobjects/Contact/0033700000TNvKKAA1"
    		},
    		"Name": "c2",
    		"Id": "0033700000TNvKKAA1",
    		"AccountId": "0013700000NVE4tAAH",
    		"MailingAddress": null,
    		"CreatedDate": "2017-06-08T20:13:50.000+0000"
    	},
    	{
    		"attributes": {
    			"type": "Contact",
    			"url": "/services/data/v49.0/sobjects/Contact/0033700000Vs6RzAAJ"
    		},
    		"Name": "Smith",
    		"Id": "0033700000Vs6RzAAJ",
    		"Phone": "(300) 333-3763",
    		"AccountId": "001370000098i8mAAA",
    		"MailingAddress": {
    			"city": "SF",
    			"country": "US",
    			"geocodeAccuracy": null,
    			"latitude": null,
    			"longitude": null,
    			"postalCode": "99999",
    			"state": "CA",
    			"street": "50 Fremont St"
    		},
    		"CreatedDate": "2017-08-16T20:26:07.000+0000"
    	}
    ]
    ```
4. (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.").
5. To test data source settings, add test variables that the query can use to return 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.").

What’s next: Add elements to the Flexcard. See [Add Elements to a Flexcard (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_elements_to_a_flexcard.htm&release=264.0.0&type=5 "For the managed package runtime, add data fields, states, actions, and other elements to your Flexcard. Style an element and configure its properties in the Flexcard Designer.").