For the managed package runtime, in the Flexcard Designer, you can get data from a variety of data sources and view the data JSON returned. You can then display the data automatically using specific elements, such as a datatable, or manually using variables.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
-
Configure your Flexcard's datasource from the Setup panel in the Designer. Get data directly from a Salesforce database with Omnistudio Data Mappers, SOQL Query, and SOSL Search. Get data from external sources with Rest Web. For complex business processes, get data with Apex Remote and Integration Procedures. See Configure a Data Source on a Flexcard (Managed Package).
-
View the returned data from the Setup panel by clicking Save & Fetch, or in the Data JSON panel in Preview. See View a Flexcard's Data JSON (Managed Package).
-
Display data with multiple elements such as a Datatable, Chart, Image, Field, child Flexcard, and Custom LWC. See Add Elements to a Flexcard (Managed Package).
-
Display data with a data merge field, which is a variable that references the value of a JSON node. See Access Flexcard Data JSON with Merge Fields (Managed Package).
-
Display data based on context variables, such as {recordId}. Context variables help display data based on where content is added. See Flexcards Context Variables (Managed Package).
- Configure a Data Source on a Flexcard (Managed Package)
For the managed package runtime, configure a data source on a Flexcard to retrieve data from a Salesforce object or an external database. A Child Flexcard can have a data source independent of the parent Flexcard or use the data source from the parent Flexcard. - Access Flexcard Data JSON with Merge Fields (Managed Package)
For the managed package runtime, enable Flexcard element properties to access data JSON using merge fields. A merge field is a variable that references the value of a JSON node. Merge field syntax requires you to wrap a full JSON path with a curly bracket on both ends, such as {FirstName}. For example, if a JSON node is"FirstName": "John", then the merge field{FirstName}returnsJohn.