cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
billmarx38
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
rio688
Frequent Visitor

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,334)