cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jetfin
Frequent Visitor

Loop through collection and patch SP list

What am I doing wrong here. It should be easy to patch a SP list for each collection item? 

Example.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
jetfin
Frequent Visitor

Is it the "Thisrecord" that is wrong (I assume) and so what should I use to identify the existing SP row?  

View solution in original post

v-xiaochen-msft
Community Support
Community Support

Hi @jetfin ,

 

Please try this:

ForAll(colSvar As A;
Patch(RNC_5Q_answers;First(Filter(RNC_5Q_answers;Fraga_ID=A.Fraga_ID And CaseID=A.CaseID));
{Svar:A.Svar}));

 

Best Regards,

Wearsky

View solution in original post

4 REPLIES 4
MayankP
Resolver II
Resolver II
jetfin
Frequent Visitor

Is it the "Thisrecord" that is wrong (I assume) and so what should I use to identify the existing SP row?  

View solution in original post

v-xiaochen-msft
Community Support
Community Support

Hi @jetfin ,

 

Please try this:

ForAll(colSvar As A;
Patch(RNC_5Q_answers;First(Filter(RNC_5Q_answers;Fraga_ID=A.Fraga_ID And CaseID=A.CaseID));
{Svar:A.Svar}));

 

Best Regards,

Wearsky

View solution in original post

Thanks 

solved it using your solution

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,050)