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

Open a flow from a card action

Add Reassign and Edit actions to every opportunity card, open a flow in a side panel for the clicked deal, and add a New Deal button above the board.

A sales manager spots a deal whose owner is out for a month. Instead of leaving the board to open the record, she clicks Reassign in the card's menu: a panel opens on the board with that deal and a field to pick the new owner. When she finishes, the card shows the new owner. The same pattern runs any flow on the clicked record.

Opportunity Kanban with a side panel titled Reassign deal showing the clicked deal and a New owner field
Reassign opens a panel flow for the clicked deal

Before you start

Steps

1

Build the flow that opens in the panel

Create a screen flow labelled Reassign deal:

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

  • A Get Records element on Opportunity where Id Equals {!recordId}.

  • A screen that shows the deal name and a Lookup component on Opportunity, field OwnerId, labelled New owner.

  • An Update Records element on Opportunity where Id Equals {!recordId}, setting OwnerId to the record Id picked in the lookup.

Save and activate it.

2

Add the card actions

Back in the board's flow, open the Kanban in the property editor. In the Properties tab, open Card Actions and add two items under Actions:

Label

Name

Reassign

reassign

Edit

edit

The actions appear in the menu at the top right of every card. Disabled and Hidden turn an action off without deleting it.

3

Open the panel flow on Reassign

In the Interactions tab, under Item Action Click, add an interaction:

  • Target Name: the reassign action. Target Name is a filter: this interaction runs only for that action. Left empty, it would run for every card action.

  • Type: Open Flow Panel.

  • API Name: Reassign deal. The list shows flows by their label.

  • Header: Reassign deal.

Under Input Variables, click Add Item:

  • Name: recordId. The list shows the input variables of the panel flow. Click the edit icon on the row to set its value and type.

  • Value: the Id of the card that was clicked. Pick the record's Id field under Record: in the list, which writes {{Record.Id}}.

  • Type: Text.

Item Action Click interaction with Target Name Reassign, Open Flow Panel, and a recordId input variable
Target Name picks the action, Input Variables pass the card's record Id
4

Refresh the board when the flow finishes

Still in that interaction, under On Finish, add Refresh Query and keep the current component. When the manager finishes the panel flow, the board re-reads the opportunities and the card shows its new owner.

With Open Flow Panel in place, the Style tab gains Flow Panel and Flow Panel Header settings for the panel's look.

5

Edit a deal without writing a flow

Add a second Item Action Click interaction:

  • Target Name: the edit action.

  • Type: Edit Selected Record(s).

A click on Edit opens an Edit Record dialog with the opportunity's full page layout. After a save, the board refreshes on its own.

6

Add a New Deal button above the board

A header action sits above the board and belongs to no card.

  1. In the Properties tab, open Header and add an item under Actions: Label New Deal, Name new_deal.

  2. Set Visible Actions Buttons to 1, so the action shows as a button instead of sitting in a menu.

  3. In the Interactions tab, under Header Action, add an interaction: Target Name the new_deal action, Type Open Flow Panel, API Name your new opportunity flow, and Refresh Query under On Finish.

Because no card is behind it, a header action's values cannot read a record.

7

Save and test

Save and run the board's flow, then:

  1. Open the menu of a card and click Reassign. A panel opens on the board with that deal.

  2. Pick a new owner and click Next. The panel closes and the card shows the new owner.

  3. Click Edit on another card. The Edit Record dialog opens on that deal.

  4. Click New Deal above the board. Your new opportunity flow opens in the panel.

The flow can also branch after the screen instead of opening a panel: the Clicked Item Action Name output returns the Name of the clicked action (reassign, edit) and Clicked Item Action Item its record. A Decision element can route on them.

Troubleshooting

The Name list under Input Variables is empty

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

Reassign also runs when I click Edit

The Reassign interaction has no Target Name, so it runs for every action. Set Target Name to the reassign action.

The card still shows the old owner after the panel closes

Add Refresh Query under On Finish of the Open Flow Panel interaction. If Refresh Query is not offered, the board uses the Variable data source: switch it to Query.

Clicking an action in the preview does nothing

Expected. Card and header actions do not run their interactions in the property editor preview. Run the flow to test.

Was this helpful?