cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Patch SharePoint list from Gallery collection using ForAll/Patch functions

I am pretty new into PowerApps and got stuck with this - I have seen almost similar issues in forum but haven't really seen working solutions.

 

so I have a simple custom SharePoint list as below

Annotation 2019-06-25 204713.png

I have PowerApp  (this is my second screen) and get ClearCollect(selectedProj,'Projects - Timesheet') which all ok at this stage. This collection used to my Browser Gallery1.

After I modified the gallery I wanted to update my sharepoint list from Gallery1.Allitems

Spoiler
Annotation 2019-06-25 205110.png

The question is when I hit Submit button, only one row gets updated using below function
I know I am missing something but I don't what are they.
Appreciate your help in advance.

Annotation 2019-06-25 205600.png

 

1 REPLY 1
Highlighted
Frequent Visitor

Re: Patch SharePoint list from Gallery collection using ForAll/Patch functions

Hi @billmarx38 

 

Not sure if this will make any difference but have you tried changing the lookup in the Patch to 

'Projects - Timesheet', Lookup('Projects - Timesheet',ID = ThisItem.ID),

{The rest of the Patch Command}

 

Because you have done a clearcollect on the whole sharepoint list you should have pulled down the Sharepoint ID for each row, you can then use this as the anchor point for the Patch back.

 

Dan

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Come join us today! Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

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 designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,548)