Question

3
Replies
72
Views
Robin Tijs (RobinT51)
Achmea

Achmea
NL
RobinT51 Member since 2018 9 posts
Achmea
Posted: November 24, 2020
Last activity: November 30, 2020
Posted: 24 Nov 2020 9:49 EST
Last activity: 30 Nov 2020 12:01 EST
Solved

Is there a way to iterate over a LookupTable or list in reverse order?

Hi Pega,

In my solution I'm creating a LookupTable. If I were to use a ListLoop to iterate through all the records, the record that has been put in first, will be iterated through first. 

In my case I want my loop to start at the last record of the LookupTable. Is there an easy way of doing this? Without having to change the way I import the data in the LookupTable?

I'm thinking about (list)looping through all the keys and putting them all in a list whereafter I would reverse this list somehow.

I'm glad to hear any suggestions.

 

Pega Robotic Desktop Automation 19.1 Robotic Process Automation Insurance Robotics System Architect