Loading

OmniStudio FlexCard Datatable: Redirect to Record Detail Page

Publiseringsdato: Jun 29, 2026
Beskrivelse

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.

Løsning

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:

  1. Open your FlexCard in the OmniStudio FlexCard designer and select the Datatable component on the canvas.
  2. In the Datatable component settings, locate the Events section. Confirm that row-click events are enabled — the Datatable automatically fires a rowselect event when a user clicks any row.
  3. On the FlexCard (not the Datatable component), open the Actions panel and add a new action.
  4. Set the action Trigger to the custom event rowselect. This tells the FlexCard to listen for the event emitted by the Datatable.
  5. Set the Action Type to Navigation. In the navigation target field, enter the record detail page path using the selected row's record ID. For example, use a merge field such as {records.Id} to dynamically resolve the ID of the clicked row.
    - Example navigation target: /lightning/r/Account/{records.Id}/view
    - Replace Account with the appropriate Salesforce object API name for your use case (for example, ContactOpportunity, or Case).
  6. Save and activate the FlexCard. Preview the card and click a Datatable row to confirm the browser navigates to the correct record detail page.

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.

Knowledge-artikkelnummer

000394292

Vedlegg

datatable.json

7 KB

 
Laster
Salesforce Help | Article