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 = document.properties["pt:Projectname"];
var strDestFolder ="sites/swsdp/Projects/"+projectname;
var objDestFolder = companyhome.childByNamePath(strDestFolder);
document.move(document, objDestFolder);
}
main();

 

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

 

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

Regards.

Outcomes