Answered by:
How to update mulitple list items at same time

>
Question
-
Hi
I have to do a workflow usign SPD (at the moment we are not having VStudio) which has to update "Meeting Title" field in "List A" depending upon the approval process in another list (List B). if the an item is approved then there is no problem. but if the item is rejected in "List B" we have to update "Meeting Title" field to "On-Hold" in List A by checking all the items in List A. it has to update mulitple list items at once if they exist.
I have developed the workflow in SPD to do this thing but i have noticed that it is updating only the first item it found in the list. how can we make it to update multiple items.
as there is no visual studio with us now i have to do it with Sharepoint Designer. is there anyway to do this? Please
thanks
- Moved by Mike Walsh FIN Wednesday, February 17, 2010 12:10 PM Always post Workflow questions (only) to the Workflow forum (From:SharePoint - General Question and Answers and Discussion (pre-SharePoint 2010))
Wednesday, February 17, 2010 11:14 AM
Answers
-
You could use OOB recursive approach:
http://blogs.msdn.com/sharepointdesigner/archive/2009/07/13/service-pack-2-prevents-an-on-change-workflow-from-starting-itself.aspx
You will need to use pair of workflows firing at onUpdate/onUpdate or onUpdate/onNew
http://alecpojidaev.wordpress.com- Marked as answer by Lambert Qin [秦磊] Tuesday, February 23, 2010 4:53 AM
Wednesday, February 17, 2010 4:47 PM -
I have developed the workflow in SPD to do this thing but i have noticed that it is updating only the first item it found in the list. how can we make it to update multiple items.
Unfortunately, default activities could not update several items. You should create a new activity via Visual Sudtio or use custom activity.
as there is no visual studio with us now i have to do it with Sharepoint Designer. is there anyway to do this? Please
For example:
Loop through list items and set the value of field
Loop through list items and update list items
http://www.virtosoftware.com/wikis/sharepoint-workflow-designer/list-activities.aspx
from commercial activities kit.
- Marked as answer by Paul Galvin Wednesday, February 17, 2010 1:49 PM
- Unmarked as answer by Sharedata Wednesday, February 17, 2010 7:37 PM
- Marked as answer by Lambert Qin [秦磊] Tuesday, February 23, 2010 4:54 AM
Wednesday, February 17, 2010 12:47 PM
All replies
-
I have developed the workflow in SPD to do this thing but i have noticed that it is updating only the first item it found in the list. how can we make it to update multiple items.
Unfortunately, default activities could not update several items. You should create a new activity via Visual Sudtio or use custom activity.
as there is no visual studio with us now i have to do it with Sharepoint Designer. is there anyway to do this? Please
For example:
Loop through list items and set the value of field
Loop through list items and update list items
http://www.virtosoftware.com/wikis/sharepoint-workflow-designer/list-activities.aspx
from commercial activities kit.
- Marked as answer by Paul Galvin Wednesday, February 17, 2010 1:49 PM
- Unmarked as answer by Sharedata Wednesday, February 17, 2010 7:37 PM
- Marked as answer by Lambert Qin [秦磊] Tuesday, February 23, 2010 4:54 AM
Wednesday, February 17, 2010 12:47 PM -
You could use OOB recursive approach:
http://blogs.msdn.com/sharepointdesigner/archive/2009/07/13/service-pack-2-prevents-an-on-change-workflow-from-starting-itself.aspx
You will need to use pair of workflows firing at onUpdate/onUpdate or onUpdate/onNew
http://alecpojidaev.wordpress.com- Marked as answer by Lambert Qin [秦磊] Tuesday, February 23, 2010 4:53 AM
Wednesday, February 17, 2010 4:47 PM -
try to look into using timer jobs. workflows don't update all items in a list. you either develop that functionality, or use timers.Thursday, February 18, 2010 9:03 AM
-
I have written a workflow and added it to codeplex
as well as
https://rwomi.codeplex.com
Please let me know what you think
Please mark my response as an answer if appropriate.
Learn.SharePoint.com- Edited by Learn.SharePoint.com Tuesday, August 20, 2013 10:17 PM
Tuesday, August 20, 2013 9:55 PM