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

Show records as Visual Picker cards

Show an Account's open Opportunities as Visual Picker cards in a screen flow, then load the one the rep picks with Get Records and use it.

A sales rep logs a meeting from an Account and has to say which deal it was about. Instead of a lookup search, the screen shows the Account's open Opportunities as cards, with the stage, amount and close date on each. The rep clicks one, and the next steps of the flow work on that Opportunity.

Visual Picker showing an Account's three open Opportunities as cards with stage, amount and close date, one of them selected
Each card is an open Opportunity of the Account.

Before you start

Steps

1

Add a Visual Picker to a screen

Open a Screen element and drag the Avonni Visual Picker onto it. Give it the API Name Opportunity_Picker.

In the Properties tab, set Label to Which deal was this meeting about?, keep Type on Radio and set Size to Large.

2

Query the Account's open Opportunities

Set Data Source to Query and choose the object Opportunity. Under Filters, add two conditions:

  • Account ID Equals the recordId resource of your flow.

  • Closed Equals False.

Under Order By, pick Close Date, ascending, so the deal closing first comes first. Set Maximum Number of Records to 6: past that, cards are harder to scan than a list.

The query runs when the screen opens, so you need no Get Records element before the screen.

3

Map the fields to the card

In Data Mappings, tell the picker which field goes where on each card:

  • Value: keep the default, Id. This is what the flow receives.

  • Figure Title: Name.

  • Figure Description: a rich text box. Insert the Stage merge field so it reads {{Record.StageName}}.

  • Fields: Amount and Close Date.

Visual Picker Data Mappings with Value mapped to Id, Figure Title to Name, Figure Description to Stage and Fields to Amount and Close Date
Data Mappings decide which field prints where on the card. Fields sits further down the section.
4

Load the picked Opportunity

After the screen, add a Get Records element named Get_Picked_Opportunity:

  • Object: Opportunity.

  • Filter: Id Equals {!Opportunity_Picker.value}.

  • How Many Records to Store: Only the first record.

{!Opportunity_Picker.value} holds the Id of the card the rep clicked, because Value is mapped to the record Id.

5

Use it in the next steps

Every later element can now read the deal: {!Get_Picked_Opportunity.Name}, {!Get_Picked_Opportunity.StageName}. For example, a Create Records element can log the meeting as a Task with Related To ID set to {!Get_Picked_Opportunity.Id}.

The Visual Picker also returns the record itself in its Selected Item output. Get Records is still the safer choice when you need a field the cards do not show.

6

Save and test

Save and activate the flow, then run it from an Account that has open Opportunities. The screen shows one card per open deal, the earliest close date first, with its stage, amount and close date. Closed deals are not there.

Click a card and Next: the following screen or record works on that Opportunity. Run it from a second Account: the cards change with it.

Troubleshooting

The picker shows no cards

recordId is empty, so the filter compares Account ID with nothing. Run the flow from the Account page with Pass record ID into this variable checked, or follow Test a screen flow that needs a record Id when you debug from Flow Builder.

Get Records finds nothing after the screen

Value is mapped to a field other than the record Id (the name, for example), so the filter on Id never matches. Map Value back to the record Id, or filter Get Records on the field you mapped.

Closed deals appear on the cards

The Closed Equals False condition is missing. Stage alone does not tell open from closed, because each org names its stages differently.

Was this helpful?