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 / PATCH TO GALLERY NOT W...
Power Apps
Unanswered

PATCH TO GALLERY NOT WORKING

(0) ShareShare
ReportReport
Posted on by 211

Hello Community,

Having a difficult with Patching in this particular situation.

This is a Gallery that displays the first 3 columns of data (non-editable) from an existing record in SharePoint.

Need to only update 2 columns, Created Date and Toggle value of the existing record.

 

Awarded Pic.png

Tried using the below for button OnSelect, but to no avail

 

Patch(PALT,
{Contract: Contract.Value,
Description: Descript.Value

Awarded: Awarded.Value

CreatedDate: DatePicker2.SelectedDate, '3Days': Toggle1.Value})

 

Again, the only columns to update is CreatedDate (DatePicker2) and Entered w/i 3 days (Toggle1).

 

Any assistance with the Submit Button formula would be great.  Thanks,

chudson002

 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @chudson002 

     

    It Looks like your patch misses an identifier to which record it should update.

    Patch(PALT, something here?
    {Contract: Contract.Value,
    Description: Descript.Value

    Awarded: Awarded.Value

    CreatedDate: DatePicker2.SelectedDate, '3Days': Toggle1.Value})

     

    hope it helps

     
  • chudson002 Profile Picture
    211 on at

    Since it is patching an existing record, should I call in the ID of the record?

    Will try that and see what happens.  Thanks for the extra set of eyes.

     

    V/R

    chudson002

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Use Patch(datasource,Lookup(datasource,ID=yourgalleryname.Selected.ID),{... if the button is outside the gallery.  If the button is inside the gallery you can use Patch(datasource, ThisItem, {... })

  • chudson002 Profile Picture
    211 on at

    The submit button is outside the gallery.....It errors out on the " = " sign.

    chudson002_1-1612895758392.png

    Please advise.

    V/R

    chudson002

     

     

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