Clear Collection Not Working

Hi everyone!

I have an Add to Collection activity inside a For Each Row. I used the Clear Collection Activity but the collection still adds for each loop. I’m not sure why it happens. Here is my sample workflow. The files are not the actual files.

Collection.zip (17.7 KB)

Hello @cldt ,

As you have given Clear collection and add to collection in the same loop, during each iteration it will add to the collection. That is the expected behaviour. Can you please explain what your requirement is?

Thanks!
Athira

@cldt

In that case you should add Clear Collection activity outside the loop but not inside.