Set Up Counter

I would like to set up a counter in my for each loop

For each item I would like to copy a PowerPoint slide and add a data table to that slide:

The issue I am having with the above is that I am always pointing to slide 6 so my data gets over written - which is why I thought having a counter would overcome this issue

I would like the counter to be in the ‘where to insert’ part of the ‘copy paste slide’ activity - then I can use that sane variable in the ‘add data table activity’

I believe to do this I set the counter variable to 0 then +1 for each iteration → but I am unsure how to implement this logic

Thanks!

Hi @E.T.S ,

Could you let us know what is the number of slides that you would want to Add ?

Hi @supermanPunch

I always want to copy slide 5 - the number of slides to be added will vary according to the number of items in a for each loop

@E.T.S ,

Could you check with the below Implementation :

In the Enumerable.Range(6,6), you could provide your starting slide number that you want to add and the number of slides that you want to add (dynamic).

1 Like

Managed to figure it out - the following is in a for each loop:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.