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

Collection patch issue

I have two sharepoint lists  and  they have exactly same columns (ShPnt_TimeSheet ,ShPnt_TimeSheet_ThisMonth)

 

I use ShPnt_TimeSheet for the database (over 2000 rows) and  I useShPnt_TimeSheet_ThisMonth  for real time data  (under 2000 rows)

 

so now I have problem with patching one collection from two sharepoint

 

I made this code 

 

ForAll(Filter(Gallery5.AllItems,Checkbox1.Value),Patch(_col_timesheet_thismonth,{ID:ID},{ ....... }));

;

Patch(ShPnt_TimeSheet_ThisMonth,_col_timesheet_thismonth) 

;

Patch(ShPnt_TimeSheet,_col_timesheet_thismonth)

 

is there any solution for me to patch collection to new sharepoint list? 

 

 

 

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @soycoreanito ,

First one is likely ambiguity - also structure below will be much quicker

Patch(
   _col_timesheet_thismonth,
   ForAll(
      Filter(
         Gallery5.AllItems, 
	     Checkbox1.Value
      ) As aPatch,
      {
         ID: aPatch.ID,
         ....... 
      }
   )
);

Assuming all fields in the Collections are the same and they also exist in the List

Collect(
   ShPnt_TimeSheet_ThisMonth,
   _col_timesheet_thismonth
);
Collect(
   ShPnt_TimeSheet,
   _col_timesheet_thismonth
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

WarrenBelz
Super User
Super User

Hi @soycoreanito ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,126)