cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChhunH
Level: Powered On

How to 'archive item' from SharePoint list to Excel

Hello all, I am trying to archive my data from a sharepoint list if it has more than 500 records in it. I want the record to be saved to a excel spreadsheet (which I exported my Sharepoint list to excel to preserve the headings) and remove from the sharepoint list itself. Here is what I was able to come up with, but it is giving me an error. Thank you!

 

ClearCollect(Collection1, 'Chhun Tests);

 

ClearCollect(Record2Remove,Filter('Chhuns Test', ID=Min('Chhuns Test',ID)));

 

If(CountRows(Collection1) >= 500,

ForAll(Record2Remove,
Patch(Table_query__5, First(Filter('Chhuns Test', ID=Min('Chhuns Test',ID))));

ForAll(Record2Remove,
Remove('Chhuns Test', First(Filter('Chhuns Test', ID=Min('Chhuns Test',ID))))))

 

1 REPLY 1
Community Support Team
Community Support Team

Re: How to 'archive item' from SharePoint list to Excel

Hi @ChhunH 

 

You want bulk update records with collection?

Could you please reference this first?

https://powerapps.microsoft.com/ja-jp/blog/bulk-update-using-forall-and-patch/

 

More information:

Patch:

https://powerapps.microsoft.com/en-us/tutorials/function-patch/

 

ForAll:

https://powerapps.microsoft.com/en-us/tutorials/function-forall/

 

Best Regards.

Yumia

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 197 members 4,039 guests
Please welcome our newest community members: