Getting Tree Current Root object ID

You can retrieve the object ID of the current tree root.

To get the object ID of the current root, use:

var objRootNode = [Tree].getCurrentRoot()
var strObjID = objRootNode.objectID;