Navigate Up
Sign In
Supporters of Developer
Web

Create SharePoint 2013 Workflow Loop by Using SharePoint 2013 Designer Preview

Item is currently unrated. Press SHIFT+ENTER to rate this item.1 star selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+ESCAPE to leave rating submit mode.2 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.3 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.4 stars selected. Press SHIFT+ENTER to submit. Press TAB to increase rating. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.5 stars selected. Press SHIFT+ENTER to submit. Press SHIFT+TAB to decrease rating. Press SHIFT+ESCAPE to leave rating submit mode.

You may also be interested in: O'Reilly - SharePoint 2010 at Work

 

Editor's note: Contributor Usama Wahab Khan is a Senior Solution Architect for SharePoint and Microsoft Technologies. Follow him @usamawahabkhan

One of the major enhancements in SharePoint 2013 workflows is the availability of "Loop’s” in SharePoint actions. Now loops are fully integrated in workflow actions. There are two types of loops. "Loop n Times" and "Loop with conditions". This new feature is available with SharePoint 2013 workflows. You can directly create a loop based workflow by using SharePoint Designer 2013 preview with different actions. Here I will show one basic example of how you can create loops in workflows by using SharePoint 2013.

Before we start:

Set up and configure SharePoint 2013 Workflow Manager

Install and configure workflow in SharePoint Server 2013

Open SPD2013 Preview. Click on List & libraries>Select any existing list or Create new List.

2012-10-23-WorkflowLoop-01.png

Click on the List Workflow button in the ribbon. It will open one Popup.

2012-10-23-WorkflowLoop-02.png

Fill in the Workflow Name and description and Select SharePoint 2013 Workflow form the dropdown. If you only see the SharePoint 2010 Workflow, kindly check did you Install and configure workflow in SharePoint Server 2013. Because SharePoint 2013 Workflow is based on Azure workflows.

2012-10-23-WorkflowLoop-03a.png

Inside the Ribbon you will see one yellow spot to add a loop to your workflow.

2012-10-23-WorkflowLoop-04a.png

Here I can create an Initiation form Parameters for Loop Count.

2012-10-23-WorkflowLoop-05.png

Set the by default Value

2012-10-23-WorkflowLoop-06.png

Click on the yellow spot in the ribbon and select loop n timers. Set parameters.

2012-10-23-WorkflowLoop-07.png

Set a send email action inside the loop.

2012-10-23-WorkflowLoop-08.png

Add the email address that mail should be sent to.

2012-10-23-WorkflowLoop-09.png

Create a message for the email.

2012-10-23-WorkflowLoop-10.png

Click the Loop yellow button in the ribbon. and select Loop with Condition

2012-10-23-WorkflowLoop-11.png

Create another Initiation form Parameters.

2012-10-23-WorkflowLoop-12.png

2012-10-23-WorkflowLoop-13.png

Set Parameter with loop values and set condition equal to not equal and hard code a value of 10 for comparison

2012-10-23-WorkflowLoop-14.png

Save and Publish

2012-10-23-WorkflowLoop-15.png

Access your site from the browser and navigate to that list created one item and click on workflow

2012-10-23-WorkflowLoop-16.png

Double Click on your created worflow.

2012-10-23-WorkflowLoop-17.png

Fill in the parameters in initiation form and click on the start button

2012-10-23-WorkflowLoop-18.png

Go back to the list Workflow setting page

2012-10-23-WorkflowLoop-19.png

Go to SharePoint Workflow History. you will see updates that are done in loop.

2012-10-23-WorkflowLoop-20.png

Check your Main Box for emails.

2012-10-23-WorkflowLoop-21.png

Thank you

Categories: Workflow; SharePoint Designer; dev; SPF 2013

Comments

Suresh Pydi

Nice Article

Excellent. Very nicely explained. Here is one more article explaining Sharepoint 2013 workflow http://sureshpydi.blogspot.in/2013/03/sharepoint-2013-workflows.html

Posted 24-Mar-2013 by Suresh Pydi
china wholesale

china wholesale

Posted 02-Jul-2013 by china wholesale
THL W200

goophone x1

That's in fact a good movie pointed out within this paragraph on the topic of how to write a piece of writing, thus i got clear idea from here.ZOPO C2 Platinum

Posted 10-Jul-2013 by THL W200
1buy

ZOPO A9600

http://www.zopophoneshop.com/zopo-a9600.html

Posted 06-Nov-2013 by 1buy
Nehru suit

Nehru suit

Encouraged each other and learn from each other,I find it is really useful for me.I will be coming back to your blog for more soon.Thanks for your sharing!

Posted 25-Nov-2013 by Nehru suit
yitoyitoytyo

yitoyitoytyo

Mientras que Omega consolida Replicas de relojes su posición en París con la apertura de dos nuevas tiendas, atrás en uno Replica Relojes de los modelos 'Faro' en su colección 2013: el Omega Seamaster Aqua Terra day-Date. Un hermoso reloj con un diseño clásico Relojes Rolex que aumentará los tiempos sin tomar un paseo. Disponible en una sola pieza.

Posted 17-Apr-2014 by yitoyitoytyo

Notify me of comments to this article

E-mail:
   

Add Comment

Title:

 
Comment:
Email:

   


Name:

 
Url: