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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo box of Person co...
Power Apps
Answered

Combo box of Person columns based on selection in dropdown control

(0) ShareShare
ReportReport
Posted on by 185

Hi

 

In my PowerApps app I have a drop down control for country. I have a Sharepoint list (List 1) that has a Country choice field and an Approver Person field.

 

When I select a country in the country drop down control, I need an Approver combo box to be populated with an approver and backup approver that come from another Sharepoint list (lookup list). 

 

The default of the Approver combo box should be the Approver from the Sharepoint List 1. When the app is saved the value of the Approver in List 1 should be whatever is selected in the Approver combo box.

 

I think I probably need to create a collection with the Approver and Backup Approver from the lookup list for the selected country, and have this collection as the Items for the Approver combo box.

 

Any help much appreciated,

 

Pete

 

Categories:
I have the same question (0)
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @petewalburn ,

    You can use something like below on defaultselecteditems property of Approver Combobox added to your form -

    With({_record: LookUp(List1, Country.Value=CountryDropdownControlName.Selected.Value, ApproverColumnName)}, 

    {DisplayName: _record.DisplayName,

    Claims: "i:0#.f|membership|"&Lower(_record.Email),

    Department: "",

    Email: _record.Email,

    JobTitle:"",

    Picture:"",

    }

    )

  • petewalburn Profile Picture
    185 on at

    Thanks so much. That did put select Approver Name in the Approver combo box. Fantastic!

     

    Pete

  • petewalburn Profile Picture
    185 on at

    Hi,

     

    Is there a way that I can have the Approver Combo Box only have the Approver and the Backup Approver available in the list. Currently I set the Items property to:

     

    Office365Users.SearchUserV2({searchTerm:Self.SearchText,top:10}).value

     

    This gives all of the users in the company. I need to limit it to just the ones for the selected Country.

     

    Pete

  • Verified answer
    IvanC Profile Picture
    10 on at

    This solution helped me a lot, just a note... the comma here " Picture:"", " pops an error. So it should be:

     

    With({_record: LookUp(List1, Country.Value=CountryDropdownControlName.Selected.Value, ApproverColumnName)}, 

    {DisplayName: _record.DisplayName,

    Claims: "i:0#.f|membership|"&Lower(_record.Email),

    Department: "",

    Email: _record.Email,

    JobTitle:"",

    Picture:""

    }

    )

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard