Add row and header actions
Add a row menu and a header button to a screen flow Tree Grid, then log a call, open a record or hand the clicked account to the rest of the flow.
An account manager reviews a customer group in a screen flow. Each subsidiary gets a small menu: Log a Call opens a short flow on that account, View Account opens its record, and Escalate moves the flow on with the account she picked. Above the grid, a Plan Review button sends every account she ticked to a review flow.

Before you start
A screen flow with a Tree Grid on the customer group's accounts, using the Query data source. Show an account hierarchy sets it up. Refresh Query and the record operations are only offered with Query.
An active screen flow
Log_a_Callwith a Text variablerecordId, Available for input checked, that creates a Task on that account.An active screen flow
Plan_Account_Reviewwith a Text collection variableaccountIds, Available for input checked.The examples use the API Name
AccountTreefor the Tree Grid.
Steps
Add an Action column
Select the Tree Grid and click Open Component Builder.
In the Properties tab, under Data Mappings > Columns, add a column and choose Custom instead of Object Field.
Set Name to
actionsand Type to Action.
The column has no field behind it. It holds the menu, on every row of the tree.
List the actions of the menu
In the column's Type Attributes, under Row Actions, add one entry per menu item:
Label: what the user reads,
Log a Call.Name: what the interactions and the flow use. It fills in from the Label and rejects special characters. Set it to
log_call.Disabled and Hidden are optional, per entry.
Add View Account (view_account) and Escalate (escalate) the same way. Menu Alignment sets where the menu opens.

Log a call from the row
Go to the Interactions tab and add a Row Action Click interaction.
In Target Name, pick Log a Call. The list shows every row action by its label.
Set Type to Open Flow Dialog and pick Log a Call in API Name (the list shows flow labels). Modal Header sets the dialog title.
Under Input Variables, add an item: Name
recordId, Value Record: Id (the Id of the row the user clicked), Type Text.Under On Finish, add Refresh Query so the grid reloads when the dialog closes.

Hand the clicked account to the flow
Some changes belong in the flow, with your own checks. For Escalate:
Add a third Row Action Click, Target Name Escalate, Type Flow Navigation, then Next Screen.
After the screen, add a Decision:
{!AccountTree.clickedRowActionName}Equalsescalate.On that path, a Create Records on Task: Related To ID (
WhatId) ={!AccountTree.clickedRowActionKeyValue}, Subject = a Text formula"Escalation review: " & {!AccountTree.clickedRowActionRow.Name}.Connect the path back to the Tree Grid screen.
The three row outputs are filled on every row click:
Clicked Row Action Name
{!AccountTree.clickedRowActionName}
The Name of the action, escalate
Clicked Row Action Key Field Value
{!AccountTree.clickedRowActionKeyValue}
The Id of the clicked row
Clicked Row Action Row
{!AccountTree.clickedRowActionRow}
The clicked record, for its other fields
One Decision can route several actions this way.
Add a header button for the ticked accounts
In the Properties tab, open the Header group. Under Actions, add an item: Label
Plan Review, Nameplan_review, Icon Nameutility:event.In the Interactions tab, add a Header Action Click interaction, Target Name Plan Review, Type Open Flow Dialog, API Name Plan Account Review.
Under Input Variables: Name
accountIds, Value Selected Row Key Values, Type Text, with Allow Multiple Values (collection) on.
Selected Row Key Values carries the Ids of the ticked rows. If the button sends the flow to the next screen instead (Flow Navigation), read Clicked Header Action Name ({!AccountTree.clickedHeaderActionName}) after the screen to know which button was clicked.
Save and test
Click Done, save the flow and run it with Debug. Every row ends with a menu button. Log a Call opens the dialog on that account, and the grid reloads when it closes. View Account opens the record page. Escalate moves to the next screen, the Decision takes the escalate path and the Task appears on the account. Tick two accounts and click Plan Review: the review flow opens with those two Ids.
What a row action can run
Each Row Action Click or Header Action Click runs one Type. The most useful ones:
Show Toast, Open Alert Modal, Open Confirm Dialog
Shows a message, an alert or a confirmation
Any
Edit Selected Record(s), Delete Selected Record(s), Duplicate Selected Record(s)
Edits, deletes or copies the record
Query
Troubleshooting
Related tutorials
Work with selected rows: update the ticked accounts after Next instead of from a button.
Show an account hierarchy: the grid these actions sit on.
How to create an interaction to open another flow: the Open Flow Dialog settings in detail.
Tree Grid: every interaction and output variable.
Was this helpful?
