Browse accounts, contacts and cases
Open each subsidiary onto its contacts and each contact onto their open cases, in one screen flow Tree Grid on the Account page, with three linked queries.
Before a quarterly review with Meridian US Logistics, an account manager wants to see each of its hubs, who the contacts are there, and which of those contacts have open cases. With the Tree Grid in Multi-Level mode, one screen flow on the Account page answers it: hubs at the top, contacts under each hub, open cases under each contact.

Before you start
Your screen flow has a
recordIdinput variable (Text, available for input) 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 account has subsidiaries (accounts whose Parent Account points at it), and they have contacts and cases.
If what you need is the account's own parents and subsidiaries, with no other object, Show an account hierarchy is simpler.
Steps
Query the subsidiaries for the top level
Open the Data Source section of the Properties tab, just above Data Mappings, and choose Query.
Set Object API Name to
Account.Under Filters, click Add Condition: Parent Account ID Equals your flow's
recordIdresource.Under Order By, add Account Name, ascending.
Opened from Meridian US Logistics, this level returns its three hubs.
Add the contacts under each account
In the query editor, leave Mode on Multi-Level.
Under Child Items, click Add Item.
Set Child Object API Name to
Contactand Relationship Field to Account ID.Under Order By, add Last Name, ascending.
The Relationship Field is the lookup on the child that points at the level above. Here, each Contact's Account ID points at its hub.
Add the open cases under each contact
Open the menu of the
Contactentry and choose Add. The new entry is created under it, one level deeper.Set Child Object API Name to
Caseand Relationship Field to Contact ID.Under Filters, click Add Condition: Closed Equals
false.
Choose Contact ID, not Account ID: the level above is now a contact.

Choose the columns
Under Data Mappings, add these columns, in this order:
Account
Account Name
Text
Account
Annual Revenue
Currency
Contact
Title
Text
Contact
Case
Status
Badge
Case
Priority
Text
Each column reads one object, so it stays empty on the rows of the other two. The first column is the exception: because it reads the account's name field, every row shows its own name there. Hubs show their account name, contacts their full name, cases their case number.
Turn on Custom Label on the first column and set Label to Name, since it no longer holds only accounts.
Save and test
Save and activate the flow.
Open Meridian US Logistics and run the flow from its page.
You see three rows: Meridian Atlanta Hub, Meridian Chicago Hub and Meridian Dallas Hub, with their annual revenue. Open Meridian Chicago Hub: its contacts appear with their title and email. Open a contact: their open cases appear with status and priority. A contact with no case at all has no toggle.
Troubleshooting
Related tutorials
Show an account hierarchy: the whole customer group, parents included, from one object.
Work with selected rows: let the user tick cases and close them after the screen.
Add row and header actions: open a contact or a case from its row.
Last updated
Was this helpful?
