cancel
Showing results for 
Search instead for 
Did you mean: 

Email Template & Document Properties

lucille_arkenst
Champ in-the-making
Champ in-the-making
Hello,

Has anyone else had trouble accessing document properties in an email template?  For example, ${document.properties["cm:name"]} does not display the name of the document; it displays some kind of identifier.  BUT if you access it inside a script tag in your process definition like bpm_package.children[0].properties["cm:name"] it works.

Does anybody have a solution?

Thanks!
1 REPLY 1

lucille_arkenst
Champ in-the-making
Champ in-the-making
<#list document.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>
Document name: ${child.properties["cm:name"]}
</#list>
Thanks to rockycres~
http://forums.alfresco.com/en/viewtopic.php?f=34&t=17768