This article answers how to navigate to a Salesforce record detail page when a user clicks a row in a FlexCard Datatable component in OmniStudio. Out-of-the-box (OOTB), the FlexCard Datatable does not support clickable hyperlinks on record columns. This affects developers and admins building FlexCards who need row-level navigation to record pages.
The workaround uses the Datatable's built-in custom event system. Every time a user clicks a row, the Datatable fires a custom event that the FlexCard can capture and respond to with a configured action, such as opening an OmniScript or navigating to a record detail page.
The FlexCard Datatable fires a rowselect custom event on every row click. You can listen for this event on the FlexCard and configure an action to redirect the user to the selected record's detail page. No custom code is required — this is configured entirely within the FlexCard designer.
Follow these steps to configure row-click navigation:
rowselect event when a user clicks any row.rowselect. This tells the FlexCard to listen for the event emitted by the Datatable.{records.Id} to dynamically resolve the ID of the clicked row./lightning/r/Account/{records.Id}/viewAccount with the appropriate Salesforce object API name for your use case (for example, Contact, Opportunity, or Case).Expected outcome: Clicking any row in the Datatable redirects the user to the corresponding Salesforce record detail page in the same or a new tab, depending on your navigation configuration.
000394292
7 KB

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.