AnsweredAssumed Answered

document object id???

Question asked by paulspiteri on Feb 1, 2012
Latest reply on Feb 3, 2012 by vandana_pal
Hey
I've written a Script that runs automatically by a Content Rule when a doc is uploaded to a particular folder.
I'm using it to pass the file name to a web service.
It works well, but I'd rather pass the object id. I tried using "document.id" and I got a guid but it's not in the format I expected.
The code i'm passing it to uses CMIS to get document details/content, and expects the objectid to be in the format:
workspace://SpacesStore/734b03cb-2d68-4dfe-b6ae-c176c068ad8f;1.0

Can anybody point me in the right direction to get this property out of the javascript api "document" variable?
Thanks!

Outcomes