cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add recipient's name to the workflow notification email template?

lmerlas
Champ in-the-making
Champ in-the-making

I'm using Alfresco 5.2 Community. I'm trying to edit the wf-email.html.ftl file found in Repository> Data Dictionary> Email Templates> Workflow Notification> wf-email.html.ftl. In the line

<p>Hi,</p>

I want to add the recipient's name in the message, something like

<p>Hi John,</p>

Is this possible? If yes, how is it achieved?

4 REPLIES 4

lmerlas
Champ in-the-making
Champ in-the-making

bump

abhinavmishra14
World-Class Innovator
World-Class Innovator

May be a hint, If you look at the template args here: https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/workflow... 

You will see that username/email or any such info is not passed to the email template "wf-email.html.ftl": 

You may have to extend: WorkflowNotificationUtils class to pass the argument and update the wf-email.html.ftl template to consume the argument. 

Assigned authorities are availabel in this "assignedAuthorites" variable which comes as input to sendWorkflowAssignedNotificationEMail method.

There may be other ways too, so see if someone else can also provide any directions.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

@abhinavmishra14  How Can I extend WorkflowNotificationUtils.java ?