cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

How to design a workflow that cycles through all items within a list

There may be a case where a common process will need to be run on all existing items in a list.  This can be achieved by a parent workflow triggering a child workflow to run on the next item in a list to and so on, causing a chain-type of effect.  The main advantage of this is less server load as only one workflow runs at a time.  This type of workflow is usually executed once, and updates each item as required.

In this tutorial, you will create a parent workflow that queries a list, and then determines whether or not a child workflow should be started based on a filter.  For each item returned by the query, a child workflow is started which is tasked with updating a field within the item.

Reply
5 Replies
Not applicable

Re: How to design a workflow that cycles through all items within a list

Hi,

works fine. But how can I do this, if the items are in subfolders within the list?

Thanks,
Michael!

0 Kudos
Reply
pieronegri
Nintex Newbie

Re: How to design a workflow that cycles through all items within a list

It works fine with me, but ItemID -the variable which I use for the cycles in the for- must be an Int otherwise it throws me an error...

0 Kudos
Reply
jesperhl
Nintex Newbie

Re: How to design a workflow that cycles through all items within a list

I suppose this could work. However I do not like those situations where I have to pass a username+password for a service to work. When someone changes that password, there is no reason they should need to go through all workflows to be sure they still work.

After all: It is one workflow starting another.

I think it is bad design.

Best, Jesper

0 Kudos
Reply
ms
Nintex Newbie

Re: How to design a workflow that cycles through all items within a list

In Central Admin you can create a workflow constant containing the login credentials. You can then assign these login credentials in the workflow action by clicking the padlock next to the username field.

This way the credentials can be managed centrally.

Reply
espradli
Nintex Newbie

Re: How to design a workflow that cycles through all items within a list

The PDF needs to be updated and specify that the parent workflow is a site workflow. Some new comers don't know the difference between and list and site workflow.

0 Kudos
Reply