AnsweredAssumed Answered

Writing a rule issue

Question asked by marwen on Feb 19, 2019

Hello All,


I am having an issue in line 3 of my below code:


function main()
var projectname =["pt:Projectname"];
var strDestFolder ="sites/swsdp/Projects/"+projectname;
var objDestFolder = companyhome.childByNamePath(strDestFolder);
document.move(document, objDestFolder);


I cant get projectName this way, ProjectName is a custom attribute i added it to a custom type..


When i try instead of["pt:Projectname"] it works , but i need it with a custom attribute...anybody knows the correct way to write this line.