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 This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. To configure the data source when creating a Flexcard, 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).
  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).

What’s next: Add elements to the Flexcard. See Add Elements to a Flexcard (Managed Package).