web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Fetch all contacts of ...
Power Apps
Unanswered

Fetch all contacts of related accounts in combobox dropdown

(0) ShareShare
ReportReport
Posted on by 20
I have a combobox which is a multiselect field showing all account name from Table Accounts.
 
I need to autopopulate another combobox called Contacts which should get data from all contacts of Selected accounts. May i know how to achieve this?
 
Accounts Combobox Items Property
Choices([@Appointments].Account_Appointment)
I have the same question (0)
  • Suggested answer
    MParikh Profile Picture
    313 Super User 2025 Season 2 on at
    Fetch all contacts of related accounts in combobox dropdown

    You need to cascade the selection from Accounts to Contacts. Here's how to populate the Contacts combobox based on selected accounts.

    Add this to the Contacts combobox Items property:
      
    Filter(
        Contacts,
        'Account' in AccountCombobox.SelectedItems.Account_Appointment
    )
    This assumes: 
    • Your Accounts combobox is named AccountCombobox
    • The Contacts table has a lookup field named Account pointing to the Accounts table
    • The relationship between Contacts and Accounts exists in Dataverse  
    If the relationship uses a different field name, adjust the formula. Check your Contacts table schema to see what the lookup column is called (often parentcustomerid or similar).
     
    For multiple selected accounts, you need a different approach:
     
     
     
    Filter(
        Contacts,
        'Account' in AccountCombobox.SelectedItems
    )
    If you're getting blank results, the relationship field name might be wrong. Try this diagnostic: 
    1. Add a label with CountRows(Contacts) to verify Contacts data loads
    2. Add another label with CountRows(AccountCombobox.SelectedItems) to confirm selections register
    3. Check the Contacts table in Dataverse to see the exact lookup field name  
    OnChange event for AccountCombobox:
     
    Add this to refresh the Contacts dropdown when accounts change: 
     
     
    Reset(ContactsCombobox)
    This clears any previous Contact selections when users change their Account selection.
     
    Alternative using Concat for debugging:
     
    If the filter isn't working, test with: 
     
     
    Filter( Contacts, 'Account'.Account_Appointment in Concat(AccountCombobox.SelectedItems, Account_Appointment, ",") )
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard