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

Notifications

Announcements

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

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:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    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
    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

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard