Hello – I want to create a workflow that will update the Title field with the contents of the Name field in a document library that contains appx 100 documents. Since there is no “trigger” to cause the workflow to update each document, can anyone push me in the right direction for how to get the workflow to step through the document library? Thank you for any guidance you can give me!
I’m running SP2013 Enterprise, if that’s helpful.
Hopefully this info will you get started:
http://weblogs.asp.net/ricardoperes/looping-through-list-items-in-sharepoint-2013
If its only a maintenance update you can run the JSOM code at
https://github.com/Danny-Engelman/SharePoint/blob/master/UpdateEmptyLibraryTitles
from the F12-Developer Console;
or if you are not comfortable with that copy/paste it here: http://mrcoles.com/bookmarklet/
and create your own bookmarklet so you can execute it on any library you want.
Thanks for the tip. I’m working to try to setup my call to the web service correctly… appreciate you pointing me down the right path. Now if I can just get this to work for me! 🙂
I would use the Call HTTP Web Service action to retrieve the list items where Title is empty. You will then loop through them and use Update List Item to make your changes to each one. The loop you are currently using will not work.