How to reverse a list in uipath?
list: 1,8, 5,6
o/p: 6,5,8,1
How to reverse a list in uipath?
list: 1,8, 5,6
o/p: 6,5,8,1
Hello @anjasing ,
You can try the below expression :
Output_List = InputList.AsEnumerable.Reverse().ToList()
Regards,
Rohith
Hi,
Can you try to use List<T>.Reverse
method with InvokeMethod activity, as the following?
Regards,
Can you please also share the properties that u r passing?
Hi,
It’s not necessary to input parameters. It’s good just we input listVar and Reverse as the above image, then items of listVar are reversed.
Regards,
first line is illustrating a demo for a string
second line is demonstraing it for collections