Converting object id to guid (filenet ce-pe-db)

A short one i figured is shareable;

After being spooked by the solutions i found on the developerworks forums to translate object id’s to guid’s, i figured there should be a OOTB api way of doing so.

Eventually i found the following:

String objectID = “{304C605E-0000-CE17-BD18-E0B728DC0483}”;
String guid = new filenet.vw.api.VWGuid(objectID).toByteString();

Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *