In Salesforce FlexCards and the Actionable Relationship Center (ARC) are powerful tools to surface contextual and relational data between objects in a clean, user-friendly interface. FlexCards let users view key data points at a glance, while ARC enables visualization of relationships like Account-to-Contact with interactive graph-based navigation.
This guide walks you through the process of:
Creating a FlexCard using a SOQL data source to display related Contact data.
Building an ARC Relationship Graph to visualize the relationship between Account and Contact.
Embedding the ARC graph with the FlexCard into a Lightning Record Page for interactive exploration.
Let’s begin by creating the FlexCard.
Go to App Launcher.
Search for OmniStudio FlexCards.
Click New.
Name it something like: SFTestFlexi.
Click Save.
Use SOQL to fetch data from the Contact object using a Contact ID as the recordId:
SOQL query: SELECT Id,Name,Email,FirstName,LastName from contact where Id='{recordId}'
In the FlexCard designer, go to the Fields section.
Click Preview to test with sample data.
Publish the FlexCard to the relevant Lightning Record Pages.
In this case, consider adding it to both Account and Contact record pages.
Go to Setup > Feature Settings > Actionable Relationship Center.
Click New Relationship Graph.
Under Default Templates, choose New (Start from Scratch) → Click Create Graph.
Label: SfFlexTest
Developer Name: Auto-filled or use a unique name.
Click Save.
Click the root node on the graph.
Set:
Object: Account
Node Configuration: Use as Default
Click the plus (+) icon below the Account node.
On Properties Tab:
Object: Contact
Relationship Type: One-to-Many
Parent Node Lookup Field: AccountId
Sort By: LastModifiedDate DESC
Click Save.
Go to the Display Tab of the Contact node.
Enable: Use FlexCard for this Node.
Enter FlexCard Name: SFTestFlexi.
Go to Object Manager > Account > Lightning Record Pages.
Choose the Account record page and click Edit.
Add a new tab in the layout.
Label it as: ARC Relationship.
Inside this new tab:
Search for the ARC Relationship Graph component.
Drag it to the canvas.
In properties, set:
Graph Name: SfFlexTest
Click Save and Activate the page layout if needed.
Now, when you view the Account record page:
You will see an ARC tab with a graph.
The child Contact records will be shown.
The FlexCard will display contextual fields like Name, FirstName, LastName and Email
004867948

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.