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 / Updating Gallery from ...
Power Apps
Answered

Updating Gallery from either Dropdown or another Gallery (2 possible inputs)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Wondering if someone can help. My brain is too frazzled having tried to solve this myself. Apologies if it's too easy or I am trying something that is just not possible! 🙂

 

My Data source is an Excel import file with 5 names. This works fine.

 

I have a Dropdown1 menu which is populated by the data source. This populates fine.

 

I also have Gallery0 which is populated by the data source. This populates fine too.

 

The APP has both the Dropdown1 and the Gallery0 as a Name selection choice.

 

I want to send either the Dropdown1 or Gallery0 value to another gallery called Gallery1.

 

On Gallery1, in Items I have "Filter(Office365Users.SearchUser({searchTerm:Dropdown1.Selected.Name}),AccountEnabled=true)". This works fine.

 

If I change Gallery1 Items to ""Filter(Office365Users.SearchUser({searchTerm:Gallery0.Selected.Name}),AccountEnabled=true)". This works fine.

 

Any ideas what formula I need to use to allow Gallery1 to accept a searchTerm from either Dropdown1 or Gallery0? (both use Name)

 

Thanks!

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Solved it by using UpdateContext on both controls then using the variable in the searchTerm. Real easy answer upon reflection 🤣.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    That's great that you have found the workaround.

    Could you click your post on “Accept as Solution” to help other members find it more quickly.

    Best regards,

    Sik

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard