How to iterate elemet in reverse order in for each loop

Hi

How to iterate for each loop on array in reverse order.

If I have 20 elements in an array how I can use for each loop which starts from 20 the element instead 0

@pooja3 Try this to reverse the array,
new arrayvariable=oldarrayvariable.Reverse().ToArray

Now use For Each activity with reversed array.

Sample Workflow: Reverse array.xaml (6.2 KB)

3 Likes

Thanx.

@pooja3 can you please mark my answer as solution.

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