Filter a Data Table or Map by the current record in a screen flow
Show only the current record's Cases or Contacts in an Avonni Data Table or Map, with a recordId query filter in your screen flow.
A support agent opens an Account and wants its open Cases in a table, and its Contacts on a map, without searching. Your screen flow already receives the Account Id in recordId. Here you point an Avonni Data Table and an Avonni Map at that Id, with no Get Records element in between.

Before you start
Your screen flow has a
recordIdinput variable and runs on the Account record page with Pass record ID into this variable checked. If not, follow How to pass your current RecordID in your screen flow.The Avonni Flow Screen Components package is installed and you have the permission set.
Steps
Filter on the record Id
Under Filters, click Add Condition:
Field Account ID, operator Equals, value: the
recordIdresource of your flow.Click Add Condition again: Closed Equals
False, to keep open Cases only.
The builder lists fields by label, so look for Account ID rather than the API name AccountId.

Filter on the field that points to the page's record. On the Account page that is the lookup AccountId on Case, not the Case's own Id.
Choose the columns
In Data Mappings, add the fields to show, for example Case Number, Subject, Status and Priority. Column types and options are on the Data Table page.
Do the same for a Map
Add an Avonni Map to the screen, set Data Source to Query on Contact, and add the same condition: AccountId Equals the recordId resource. Then map the address fields so each Contact gets a marker, as described on the Map page.

Troubleshooting
Related tutorials
How to pass your current RecordID in your screen flow: where
recordIdcomes from.Query data source: every query option, including filters that react to other components.
Pass the record Id to a flow opened in a panel: open one row in a side panel.
Was this helpful?
