How to access value in last index of document list on webMethods.io

Hi All,
I have a document list, of which I need to access the last item in the list and map a string.
I cannot see a way to do this on webmethods.io without looping over the whole list to get to the end?
On prem we can get SizeOfList, subtract 1 and use that as the index. I have done the same on .io but cannot use the value as an index.
Any help appreciated.

Looping looks like your only option, since indexed mapping only takes an integer as the index.

1 Like