I'm currently building a HTML plugin for a custom object. I built a global view for my custom object using Angular, similar to the html-sample. My custom object has related Datastore objects. Now I want to create links to the Summary View of the related Datastores for each custom object, using the 'app.navigateTo' method of the vSphere Client JavaScript API. I'm able to get a lot of information about the Datastores that my custom object is related to using QuerySpec/PropertySpec and the DataService. What I can't get is the "urn:vmomi" ObjectId, that is expected by the 'app.navigateTo' method (in the 'app.NavigationOptions' parameter).
Is there a way to get the "urn:vmomi" ObjectId of VMware objects (possibly, by using a different method than the DataService)?