Ever stuck at the question “How to implement loop in
SharePoint Designer workflow?”
Most of us had this question and we found various workarounds
for this.
All the workarounds were really painful. But thanks to
SharePoint Designer product team. Now we have looping option available in
SharePoint Designer 2013.
There are two options available.
·
Loop n times.
·
Loop with condition.
We can add multiple actions as loop content and these
actions get executed till the looping condition is true.
Loop n
Times
We can provide integer value for number of times the actions
should get executed.
We can also set value using workflow lookup to any
list/variable.
Loop with
condition
This provides ‘While’ loop kind of functionality. Actions
within loop get executed while given condition is true. For configuration of
condition we have the flexibility of comparing values from any lists.
Enjoy looping in designer workflows!!
Hi Prasad,
ReplyDeleteNice post.
Happy to see Loop Condition in SPD Workflow, it was painful without it.
it doesn't load the images. can you please fix it?
ReplyDeleteThanks Reza for notifying. I have fixed the issue. I will be glad if this article helps you.
DeleteI've created SharePoint List with Column Name - Order Status (ORDERED or NOT ORDERED). I need to send weekly alert mail for items which have "NOT ORDERED". I don't have access for VS or TimerJob. I've only access for SharePoint Designer. Please provide steps or link to archive this.
ReplyDeleteThis is very late reply. Sorry about that. But I am trying to answer here in case anybody is looking for similar solution.
DeleteYou can configure workflow using SharePoint designer.
1. Create a workflow which starts on item edit.
2. Add condition to check status column's value.
3. If condition is satisfied then use 'Email' action to send notification.
4. SharePoint designer gives you power to configure To, Cc, subject and body as you wish. You can even try out HTML string in configuration which in turn will send well formatted notification.
Cheers.
Hi Prasad,
DeleteCan we have multiple condition in While loop?