Parallel For Each activity with a Body sequence.



  • Completion Condition - Evaluates if the condition is true after each iteration of a Parallel For Each.

  • Display Name - Renames the activity.

  • Type Argument - The element type of the collection from the Parallel For Each activity.

  • Values - The value being enumerated.


  1. Create a new workflow and save it as NewParallelForEachWorkflow.xml.
  2. Add a Parallel For Each activity inside the Sequence.
  3. Inside the Sequence, create a variable of the type System.Int32[] and give it the default value {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}
  4. In the Values Property input field  of the Parallel For Each activity, enter the variable name of the variable you created, e.g. variable1.
  5. Add a Write Line activity inside the Parallel For Each activity and enter item.toString in its Text Input Field.
  6. When executed, the activities inside the Parallel For Each are executed in each iteration of the specified list. 

    The use case should look like the following screenshot:

The output should look like this in the Output panel: