Hi All,
I am referring ScriptNode.java and using document.getParent() in my program to get primary parent folder but not able to get. Could some one suggest what am i doing wrong with my code?. I am attaching piece of my code below:-
var parent = document.getParent();
Also my document is under this folder hierarchy structure:- Sites/lambda/documentLibrary/GroupDocuments/2021/07/12 . so basically its 4th folder. i want to get Group documents from this structure which is primary parent as per my understanding.
Thanks and Regards,
Piyush