If you know the sorting of the list, you could also retrieve the first item in your XPath retrieve action (instead of all) and apply sorting in a way that the last object will be the first object in your retrieve action. In that way, you don't need to look for the item in the list, you retrieve the correct object right away. GL
This is not standard in Mendix.
Without custom action you could retrieve the list first and count the objects in the list. Do a a custom retrieve next with :amount: 1 Offset : TotalCountOfObjectsInList - 1
To use the object, you can then use the ‘head’ operation.
Have a look at Appstore app ListUtils. It does not have a straightforward ‘getLast’ but maybe the ‘Sort’ and ‘getFirst’ will get you there.