cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chudson002
Helper IV
Helper IV

PATCH TO GALLERY NOT WORKING

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 

 

4 REPLIES 4
rubin_boer
Super User
Super User

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

 

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
Super User II
Super User II

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, {... })

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

chudson002_1-1612895758392.png

Please advise.

V/R

chudson002

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (38,770)