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 / Call Patch from Galler...
Power Apps
Answered

Call Patch from Gallery Item

(1) ShareShare
ReportReport
Posted on by 54

Another issue I'm having is related to a button in a Gallery Item.  In the OnSelect I want to do Patch(Accounts, ThisItem, {Picked:True})  The Gallery is a Filtered version of my Accounts datasource.

 

I get an error when I do this though, saying that the column Picked doesn't exist.  Also, the "Accounts" part doesn't change to the light blue colour, as though it can't see it in that context.

 

If I move to another screen and do Patch(Accounts, Gallery.Selected, {Picked:True}) it works fine.

 

Anyone know if it's possible to call patch in that scenario?

I have the same question (0)
  • Verified answer
    BigJohn Profile Picture
    54 on at

    Turns out I had to use the disambiguation operator, so: 

    Patch([@Accounts], ThisItem, {Picked:True})

     

     

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

    Hi @BigJohn 

     

    Yes, you are right.

    If you want to call the same datasource in the gallery, you have to use disambiguation operator.

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard