Writing a rule issue

cancel
Showing results for 
Search instead for 
Did you mean: 
marwen
Member II

Writing a rule issue

Hello All,

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

function main()
{
var projectname = document.properties["ptSmiley Tonguerojectname"];
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["ptSmiley Tonguerojectname"] it works , but i need it with a custom attribute...anybody knows the correct way to write this line.

Regards.