cancel
Showing results for 
Search instead for 
Did you mean: 

how to access doc properties with AlfrescoJavaScript

lucille_arkenst
Champ in-the-making
Champ in-the-making
Hi…
I want to be able to put the custom metadata of the file-to-be-approved in the body of an email in my process definition.  I tried to access a document like they do in doc_info.ftl.  I put:
document.name + "\n" + document.properties['custom:myCustomField'];
, but I get:
ReferenceError: "document" is not defined.

Thanks
2 REPLIES 2

jarrett
Champ in-the-making
Champ in-the-making
Try: bpm_package.children[0].properties["mySmiley Tongueroperty"]

lucille_arkenst
Champ in-the-making
Champ in-the-making