Skip to main content
Nintex Community Menu Bar

How to simulate loop using For each

  • Mar 13, 2017 10:25 PM UTC
  • 4 replies
  • 28 views
  • Translate All

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • Mar 13, 2017 11:23 PM UTC

read following inspirative blogpost   writtenn by

Translate

Forum|alt.badge.img+8

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

Translate

Forum|alt.badge.img+9
  • Mar 14, 2017 12:28 PM UTC

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.

Translate

Forum|alt.badge.img+8
  • Author
  • Mar 14, 2017 5:58 PM UTC

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

Translate