I want to count current index for each loop

So I have first defined Current Index = 0 and put it before for each activity

then at the end of for each activity I have:

image
image

But I have an error:

The type of current Index is INT32

any ideas?

Hi @anon40731888

give only currentIndex+1 in Value to save

Regards,

@chowus It has to be like this
image

2 Likes

Hi @anon40731888

CurrentIndex = CurrentIndex+1

Save to field ---------> CurrentIndex
value to save field -------------> CurrentIndex+1
Hope it helps!!

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