Forum Discussion
SharePoint Designer 2013 Workflows - update multiple items at once
Dear all,
I have developed a SPD workflow where it takes the first 8 characters of the filename and adds it to a column within the document library. Tested and everything works when user uploads a new document.
In the document library we have over 20k documents already there, is it possible to run the workflow against all the documents already in the library?
You advise always appreciated.
Cheers
5 Replies
- spucelik
Microsoft
A PowerShell script will be your best approach. You can loop through all the items in the library and call the initiate the workflow for each item. You'll be able to use the same workflow to handle existing items as well as future itesm.
- Devendra VelegandlaBrass Contributor
I would suggest using Powershell to update the existing items or for batch processing, even though you can achieve this using workflow.
- Damien FloodIron Contributor
Dear all, Unfortunitally I do not have the correct permissions to use Powershell on the site. Is there another way ? You mentioned using a workflow? If you could let me know the logic would be much appreciated.
Cheers
- Devendra VelegandlaBrass Contributor
Please check this blog post by Laura Rogers https://wonderlaura.com/2014/08/01/workflow-loop-through-multiple-sharepoint-items/.