How to simulate loop using For each

  • 13 March 2017
  • 4 replies
  • 0 views

Badge +8

Hi,

I would like to repeat a set of actions until certain condition is met. However, For each action only takes a target collection to iterate through. i would like to repeat a set of actions for n number of times. I tried using "Loop" action and it is very slow. How can i use For each without specifying a collection?

Please help,


4 replies

Userlevel 5
Badge +14

read following inspirative blogpost   writtenn by

Badge +8

If you have safe looping enabled, it tends to be more slow.

Badge +9

The Plus side is your SharePoint is still functional when someone writes an infinite loop. We all do--we all write logic we think --sometimes it doesn't translate to the same code.

Badge +8

Excellent! this approach worked for me happy.png. Thank you so much!!

Reply