While and For Each Activities

Overview

A ForEach activity repeats the execution of a section of the workflow several times for a number of target instances in a collection, and a While activity repeats the execution of a workflow subsection as long as a specified condition is true. The condition is checked each time the activity begins.

You can significantly improve the performance of your workflows by implementing one or all of the following recommendations:

  • Reduce Activities
  • Minimize Iterations
  • Use the Code Activity