Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
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?

  • v-siky-msft Profile Picture
    on at
    Re: Call Patch from Gallery Item

    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

     

  • Verified answer
    BigJohn Profile Picture
    54 on at
    Re: Call Patch from Gallery Item

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

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

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics