02-19-2019 06:43 AM
Hello All,
I am having an issue in line 3 of my below code:
function main()
{
var projectname = document.properties["ptrojectname"];
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["ptrojectname"] it works , but i need it with a custom attribute...anybody knows the correct way to write this line.
Regards.
Explore our Alfresco products with the links below. Use labels to filter content by product module.