Retrieve by GUID using Java Action

2
Hi, I need a java action code to rerieve object using its GUID, please help.
asked
3 answers
5

How about this
 

Long objectGuid = 123456789L;
IMendixObject imo = Core.retreiveId(getContext(), Core.createMendixIdentifier​(objectGuid));

 

answered
1

Something like this?

https://apidocs.rnd.mendix.com/8/runtime/com/mendix/core/Core.html#retrieveId(com.mendix.systemwideinterfaces.core.IContext,com.mendix.systemwideinterfaces.core.IMendixIdentifier)

answered
-1

You can use getGUID from CommunityCommons

answered