Reading Custom Type properties doesnt work

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

Reading Custom Type properties doesnt work

Hello All,

i am running a rule on a folder in acs ... when doc (from type pt:TransmittalDoc is created (through APS)) the code reads the information related to that doc and show them in log ... here is my code:

function main()
{
var name = document.properties["cm:name"];
logger.system.out("show name "+name);
var title = document.properties["cm:title"];
logger.system.out("show title "+title);
var desc = document.properties["cmdescription"];
logger.system.out("show desc "+desc);
var rev = document.properties["pt:Revision"];
logger.system.out("show revision "+rev);
}
main();


the problem with my code is that sometimes it show this in log:


show name code.xml

show title coding
show desc quote
show revision rev01

and sometimes

show name code.xml

show title null
show desc null
show revision null

most times it doesnt work and it is so random.. anybody knows why i am having this behaviour ? ( only the name is always shown)