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
Responsive Resident
Responsive Resident
jetfin
Frequent Visitor

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

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

Thanks 

solved it using your solution

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,934)