Use the Code Activity

Recommendation (LOW)

Use a Code activity to replace loops that are calculating one or more values.

If you are using a While or ForEach loop to process a list to generate one or more values, consider replacing that loop with the equivalent Code activity. This activity performs better due to the copying behaviour of the looping activities.