How to get the last version of an Asset?
One answer
I am using RAM Client API and want to retrieve an asset that has several Versions, I only want that last one. Is there a smart solution or do I have to scroll through the SearchResult?
Thx
You can use...
RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "*"));
to get the latest version if all versions are in lexicographical order. You can also use other patterns such as...
RAMAsset asset = session.getAsset(new AssetIdentification(GUID, "4.0*"));
to get the latest 4.0x version of your asset.