Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pass the record Id to a flow opened in a panel

Open a second screen flow in a side panel from an Avonni Data Table row, and pass that row's record Id into the panel flow's recordId variable.

An agent on an Account sees its Contacts in an Avonni Data Table and clicks View on one row. A side panel opens a second flow that shows that Contact. Salesforce only fills recordId for the flow on the page: the flow in the panel gets its Id from the Open Flow Panel interaction, through an input variable you set.

Avonni Data Table of an Account's Contacts in a screen flow, with an Open Flow Panel showing the clicked Contact's details, the row's record Id passed to the panel flow's recordId
Click View: the panel flow receives that Contact's Id.

Before you start

Steps

1

Build the flow that opens in the panel

Create a second screen flow, Contact Details:

  • A Text variable recordId, with Available for input checked.

  • A screen with an Avonni Record Detail whose Record ID is {!recordId}, or a Get Records on Contact with Id Equals {!recordId}.

Save and activate it.

2

Add a Row Action interaction

Back in the first flow, open the Data Table in the Component Builder and go to the Interactions tab. Under Row Action, add an interaction, set Target Name to your View action and choose Open Flow Panel.

3

Pick the panel flow

In API Name, search for and select Contact Details. Set a Header, for example Contact, and a Size.

4

Pass the row's Id

Under Input Variables, click Add Item:

  • Name: recordId. The list shows the input variables of the panel flow.

  • Value: Record: Id, the Id of the row that was clicked.

  • Type: Text.

Open Flow Panel interaction in the Avonni Component Builder for a screen flow: input variable recordId with Value Record: Id, the Id of the clicked Data Table row, type Text
Input Variables: recordId takes the row's Id.

To pass the page's record instead of the row (from a header action, for example), set Value to the first flow's own recordId.

5

Save and test

Save and activate the first flow, open an Account and click View on a Contact. The panel opens beside the table and shows that Contact. Click View on another row: the panel shows the new one.

To send several selected rows at once, use the Selected Record Ids value instead: Passing multiple record IDs to another flow. Every other panel option (position, backdrop, output variables, On Finish) is in How to setup an Open Flow Panel interaction.

Troubleshooting

The Name list is empty

The panel flow has no input variable. Open Contact Details, check Available for input on recordId, save and activate, then reopen the interaction.

The panel opens with an empty or blank new-record form

The panel flow received no Id. Check that Value is set on the input variable. A Record Detail with an empty Record ID switches to create mode, which is why the form looks new.

Was this helpful?