AnsweredAssumed Answered

How to get object type id from share webscript

Question asked by udayakumar_p on Jan 24, 2018
Latest reply on Jan 25, 2018 by afaust

We have defined a javascript which gets executed from a rule that we defined. document.mimetype gives us the mimetype of the document. Similarly how do we access object type id in the webscript?

 

I tried the following.

 

logger.error("document type is >> " + document.type);
logger.error("document type is >> " + document.typeId);
logger.error("document type is >> " + document.Id);
logger.error("document type is >> " + document.properties.type);
logger.error("document type is >> " + document.properties.typeId);
logger.error("document type is >> " + document.contentType);

 

None of the above gives the object type id.

Outcomes