You are here:
Preview and Debug a Flexcard
Preview a Flexcard's appearance and test its functionality before you publish it to a Lightning page or to a page in an Experience Builder Aura site. Review how the Flexcard looks on multiple devices and test the functionality of interactive elements such as actions. Debug the Flexcard's data output, events, actions, and more.
- From the App Launcher, find and select Flexcards.
- From the list page, select a Flexcard version.
- Click Preview.
-
If needed, add test parameters and enter this information:
- In Key, enter a context variable that controls how the data is displayed on the Flexcard. For example, enter pagelimit to update how many pages the Flexcard displays for a data table element.
- In Value, enter a test value. For example, if the key is pagelimit, enter 2 to show up to two pages on the Flexcard.
- If needed, select another device from the devices picklist to test the Flexcard’s responsiveness.
-
If needed, identify potential issues at run time by reviewing how the data source
populates the elements on the rendered cards by inspecting the JSON code.
The values in the JSON code refresh when you interact with the Flexcard on the canvas, such as when you enter data or click an action element.
-
If needed, access the action debugger and drill down into a data source to review
its logs and related events.
The action debugger helps you understand the Flexcard’s client- and server-side actions and event requests and responses by providing information such as:
-
The configuration, status, and responses of parent and child data sources.
-
The data source type and relevant settings, such as delay time from the
configproperty. -
Whether the data source successfully returns data in the
statusfield, and the returned data in theresponsefield. - The response of each action or event executed on the Flexcard. For example,
your Flexcard has a pubsub event that passes data. An event listener on the
same Flexcard updates a data field with the passed value. View the pubsub event
action and the set values action logs by clicking the Pubsub Event action link
on the action debugger. Action logs include data that’s relevant to the action
type. For example, a pubsub event action log includes
channel,event, andinputMap. A set values action log includesfieldsandresponse.
-
-
If needed, click
to copy a
log.
-
When the Flexcard is ready, click
to reset the data
JSON. Omnistudio doesn’t reset the changes that you make on the action debugger.
- Activate the Flexcard.
- Data JSON
Use the Data JSON feature in the Flexcard Designer's Preview tab to see how your data source populates the elements on the rendered cards of your Flexcard component. Detect potential issues at run time. The Data JSON panel updates when you interact with the Flexcard, such as when entering data in an input field or clicking an actionable item.
Data JSON
Use the Data JSON feature in the Flexcard Designer's Preview tab to see how your data source populates the elements on the rendered cards of your Flexcard component. Detect potential issues at run time. The Data JSON panel updates when you interact with the Flexcard, such as when entering data in an input field or clicking an actionable item.
The following table lists the Data JSON's available objects and the information each object provides:
Object |
Description |
|---|---|
cards |
Information about rendered cards based on the data displayed and the state conditions that you configure. The StateName object under each card indicates its state. If the Flexcard has a child Flexcard, the JSON code only shows the child Flexcard’s name. For example, if a Flexcard displays information about an account and the data source returns three accounts with no conditions applied, then the cards object shows three card objects. Each card includes the card's state name, data fields, attributes, and child Flexcards. The uniqueKey distinguishes the card objects from each other. |
dataSource |
The array of records returned from the data source and the Flexcard setup, such as the data source type and delay time. The available settings depend on your data source type. The config object contains information about an updated data source triggered by an action. The records object contains information about the returned records for each data source. |
Label |
Custom labels fetched for the Flexcard. |
Params |
Salesforce page parameters such as the namespace. |
recordId |
ID of the Flexcard page as shown in the URL of the page when you set up the Flexcard. |
Session |
Session variables that you set on the Flexcard. |
TestParams |
Test parameters that you set on the Flexcard. |
theme |
Flexcard theme. |
title |
Flexcard name. |
User |
Information about the logged-in user. |

