cancel
Showing results for 
Search instead for 
Did you mean: 

Document description in a mail template

carlos_gonzalez
Champ in-the-making
Champ in-the-making
Hi,
I'm trying send by email the document description property. If i use document.properties["description"] in a Presentation Template works ok but not in email templates. any idea?

thanks
13 REPLIES 13

kbonnet
Champ in-the-making
Champ in-the-making
Shouldnt you be using document.properties["cm:description"]?

Koen

carlos_gonzalez
Champ in-the-making
Champ in-the-making
It doesn't works. I'll try with document.properties.description too, but nothing happens.

jayjayecl
Confirmed Champ
Confirmed Champ
could you describe how you're sending the email (which page you browse, which button you click etc …)?

carlos_gonzalez
Champ in-the-making
Champ in-the-making
I'm sending the message when i upload a document into a folder (the email predefined action when you defined a rule with the rules assistant). I only change the email template

thestorm
Champ in-the-making
Champ in-the-making
can u attach the ftl template for the email?

carlos_gonzalez
Champ in-the-making
Champ in-the-making
It is this:

A new document '${document.properties.description}', is available in the '${space.name}' space, it was added by '${person.properties.firstName}<#if person.properties.lastName?exists> ${person.properties.lastName}</#if>'.

You can view it through this link:
http://yourserver:8080/alfresco${document.url}

Or through the Alfresco client:
<#assign ref=space.nodeRef>
<#assign workspace=ref[0..ref?index_of("://")-1]>
<#assign storenode=ref[ref?index_of("://")+3..]>
http://yourserver:8080/alfresco/navigate/browse/${workspace}/${storenode}

Regards

Alfresco

thestorm
Champ in-the-making
Champ in-the-making
how is the email looking that u get?

carlos_gonzalez
Champ in-the-making
Champ in-the-making
alfresco does not send any mail, it fails because don´t find this property.

thestorm
Champ in-the-making
Champ in-the-making
do u get emails with the standard template?

if so please show the error log (guess its in catalina.out)