tag:blogger.com,1999:blog-3981477210525148311.post4785217322281638965..comments2023-03-08T08:21:16.846-05:00Comments on SharePoint Gypsy: SharePoint Designer Workflows 2 – Developing a For Each Loop for WorkflowsTom Molskowhttp://www.blogger.com/profile/01224161982994081203noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-3981477210525148311.post-20390349933802939072012-03-21T13:25:05.232-04:002012-03-21T13:25:05.232-04:00Hello Tom B,
Yes, this will also work in WSS 3.0 ...Hello Tom B,<br /><br />Yes, this will also work in WSS 3.0 without any changes or problems.<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-81225676631646324632012-03-21T12:26:31.134-04:002012-03-21T12:26:31.134-04:00Would this solution work with WSS3? If not is ther...Would this solution work with WSS3? If not is there a solution?Tom Bnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-14098527427821005962011-12-14T20:38:14.031-05:002011-12-14T20:38:14.031-05:00Hello Shathish,
If you are using MOSS 2007 pleas...Hello Shathish,<br /> <br />If you are using MOSS 2007 please try this approach - http://sharepointgypsy.blogspot.com/2011/01/sharepoint-designer-workflows-2.html<br /><br />For SPS 2010 try this - http://sharepointgypsy.blogspot.com/2011/11/create-for-each-loop-for-workflows.html<br /><br />I hope that helps!<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-38339503234596909612011-12-11T05:04:08.148-05:002011-12-11T05:04:08.148-05:00Hi Tom,
Please advice me how to proceed further. ...Hi Tom,<br /><br /><b>Please</b> advice me how to proceed further. I've followed the below link to achieve my requirement but it couldn't trigger after it reaches the Step 3, even though I've update the list item.<br /><br /><b>http://sharepointmagazine.net/articles/the-dog-ate-my-task-use-sharepoint-designer-to-email-daily-task-reminders</b><br /><br />I'm very new to the sharepoint my boss asked me to develop this, but i feel like why I've taken this job.<br /><br />Please put lime light on this.<br /><br />Thanks,<br />Sathishshathish prabuhttps://www.blogger.com/profile/04030637406515439820noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-21531744116327600262011-11-06T21:57:24.112-05:002011-11-06T21:57:24.112-05:00Thanks, Tom, I'll try this out! A support pers...Thanks, Tom, I'll try this out! A support person on the Office 365 community forums offered to escalate my question to a service request, so maybe that'll produce an answer as to why the straightforward approach is failing in SP 2010. I'm still curious even if there's a workaround. I'll let you know what I hear on the page for the new post. Thanks again!Mathiasnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-8348834273448236132011-11-03T16:26:40.230-04:002011-11-03T16:26:40.230-04:00Mathias,
Hot off the presses! Here is the link to...Mathias,<br /><br />Hot off the presses! Here is the link to the new blog on creating a For Each Loop using SharePoint Designer 2010 Workflows:<br /><br />http://sharepointgypsy.blogspot.com/2011/11/create-for-each-loop-for-workflows.html<br /><br />Please give that a try and LMK if it works for you.<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-75464716387940733172011-11-01T20:28:50.193-04:002011-11-01T20:28:50.193-04:00Tom,
Thanks, that's great news - looking forwa...Tom,<br />Thanks, that's great news - looking forward to it!<br /><br />MathiasMathiasnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-6907445914324188192011-11-01T14:37:21.814-04:002011-11-01T14:37:21.814-04:00Hello,
When I checked your comment I realized my ...Hello,<br /><br />When I checked your comment I realized my numbering was off, so after I have corrected that it's now actually 5.p that you are referring to.<br /><br />In step 5.e you changed the value to Yes, 5.p is simply resetting everything as it was so the for each can run again, perhaps as a daily check, etc.<br /><br />Are you getting any errors on the loop item? Also, make sure you values in the "Find the List Item" Field and Value entries are correct. If you can please provide me more information about your workflow, especially the portion that is not working.<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-8835280504384279412011-11-01T13:16:22.079-04:002011-11-01T13:16:22.079-04:00In step 4.p, should the value be changed to YES ra...In step 4.p, should the value be changed to YES rather than NO? Also, I can't get the Loop item to delete.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-45797732949471080172011-11-01T10:44:45.607-04:002011-11-01T10:44:45.607-04:00Hey Mathias,
I have found a solution for this pro...Hey Mathias,<br /><br />I have found a solution for this problem and I will be posting it soon. Please be sure to subscribe to my post so you will get the update as soon as it's out, but just in case I will also post the link here.<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-41882092350003136632011-10-27T21:02:46.570-04:002011-10-27T21:02:46.570-04:00Hey Mathias,
Thanks for that post! I see now that...Hey Mathias,<br /><br />Thanks for that post! I see now that this is a real problem for loop workflows done in SPD 2010. I'm going to have to build and test this in my own environment and see if I can design a solution. Check back in a week or so, if I have an answer I'll post it here and write a new blog.<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-41054772987159354042011-10-27T19:16:51.690-04:002011-10-27T19:16:51.690-04:00Hi Tom, thanks for the article. I have the same pr...Hi Tom, thanks for the article. I have the same problem as marsiano above and was wondering - have you ever gotten one of these loops to run for more than five iterations in SP 2010?<br />I'm trying to build a workflow using SharePoint Designer 2010 for a SharePoint Online Enterprise site that will loop through all the items in a list A and for each one create a new entry in a second list B using data from the item in list A. In order to do that, I created a workflow control list C that has an "on new item" workflow which modifies a Processed flag in A and then deletes the newly created control item. List A has an "on item updated" workflow that <br />- creates the new item in list B, <br />- then creates a new item in the control list C to continue the loop, <br />- then waits for a minute to let all the other items process<br />- and finally resets the Processed flag so the item will again be processed the next time the whole loop is started (once a week, in my case).<br />The whole setup is based on this post here, which is very similar to yours: http://blog-sharepoint.blogspot.com/2010/01/sharepoint-looping-workflow-how-to-loop.html<br /><br /><br />Everything works splendidly, except that the 6th item that is created in the control list C (by the workflow running against list A) simply fails to trigger its own "on new item" workflow and the loop stops. If I manually start the workflow for the sixth item in list C, the process continues but then the sixth item that should be processed in list A fails to fire the "on update" workflow. <br />There are a number of comments at the posting linked above that talk about the same issue, but no good answer, so I was wondering whether you have run into this and know what to do about it.<br /><br />Thanks,<br />MathiasMathiasnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-4540727056390314662011-10-17T17:14:04.136-04:002011-10-17T17:14:04.136-04:00Hello Swesh,
Here are some suggestions that may h...Hello Swesh,<br /><br />Here are some suggestions that may help - <br /><br />Make sure the first workflow in the first list is actually modifiying data in the second list by adding an action to log and/or send an e-mail to yourself. <br /><br />Go to list Settings -> Workflow Settings -> Remove Workflow and remove the workflow that is not working. Then republish that same workflow through SharePoint Designer.<br /><br />Create a new test workflow in the same list that contains the broken workflow, set it to start automatically, and then manually create a new item. If the new test workflow runs, disable (remove) the broken workflow and then run the first workflow from the first list again and see if the new test workflow starts when an item is created.<br /><br />I hope that helps!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-22015462660093089652011-10-14T02:52:14.060-04:002011-10-14T02:52:14.060-04:00Hello Tom,
You have done a great job, when I want...Hello Tom,<br /><br />You have done a great job, when I want to create a looping workflow which is almost the same scenario of yours I couldn't get more help on net, but now you have done a step by step procedure which will help a lot!! I have quoted my scenario down.. but I face a problem of, when my second list's workflow creates an item in the first list that first list's workflow is not starting automatically even though I ve choosed the option "Start wrkflw auto. when itme is added/modified"<br /><br /><br />"I want to send a summary email everyday to a set of users, so I tried to create a looping workflow using SPD, initially I couldn't create a loop later I read through some blogs and got ideas of poking the workflow. So I created two lists and two workflows one is main list and another list is poking the main. Functionality is:<br /><br />If condition checks the main list for some condition and sends an email and pauses for one day duration. After the pause it creates an item in the poking list. when a new item is created 2nd workflow has started and creates a new item in the main list (as per plan)<br /><br />The problem is, the second item got created in the main list but the workflow is not triggered even though the option "Start the workflow automatically when an item is created or modified" has checked!! when I edit that item then the workflow is started again. Any help would be much appreciated."Sweshnoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-1255271760571436122011-10-10T09:39:01.209-04:002011-10-10T09:39:01.209-04:00Hello,
Are you working with SharePoint 2007 or Sh...Hello,<br /><br />Are you working with SharePoint 2007 or SharePoint 2010?<br /><br />Thanks!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-85475324031473590992011-10-10T06:25:11.478-04:002011-10-10T06:25:11.478-04:00Hi - it looks like the loop stops working after 5 ...Hi - it looks like the loop stops working after 5 items...any solution?marsianonoreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-9768619398373911212011-10-06T15:30:37.736-04:002011-10-06T15:30:37.736-04:00I'm glad I could help - good luck with your pr...I'm glad I could help - good luck with your project Ian!<br /><br />TomTom Molskowhttps://www.blogger.com/profile/01224161982994081203noreply@blogger.comtag:blogger.com,1999:blog-3981477210525148311.post-57894896435803394632011-10-06T15:27:47.864-04:002011-10-06T15:27:47.864-04:00Thanks for the step-by-step instructions. Was abo...Thanks for the step-by-step instructions. Was about to crack open Visual Studio to make this happen. <br /><br />Thank you!<br />Ian HayseIan Haysehttp://www.sharepointed.comnoreply@blogger.com