Expand my Community achievements bar.

Email Notification Template

Avatar

Level 2

subject=Workflow notification: for page ${payload.path}

header=-------------------------------------------------------------------------------------\n \

Time : ${event.TimeStamp}\n \

Step: ${item.node.title}\n \

Author:  ${initiator.name} (${initiator.id})\n \

Workflow: ${model.title}\n \

Comment from previous user: ${item.data.comment}\n \

-------------------------------------------------------------------------------------\n \

message=Page: ${host.prefix}/editor.html${payload.path}.html\n

Workflow Title: ${item.data.workflowTitle}\n \

Comments: ${item.data.startComment}\n \

footer=\n \

-------------------------------------------------------------------------------------\n \

View the overview in your ${host.prefix}/inbox\n \

-------------------------------------------------------------------------------------\n \

This is an automatically generated message. Please do not reply.

1789266_pastedImage_0.png

1789269_pastedImage_5.png

Is there some thing wrong in the txt file for those null ?

3 Replies

Avatar

Employee

The email template for workflow notification is the following:

subject=Workflow notification: ${event.EventType}

header=-------------------------------------------------------------------------------------\n \

Time: ${event.TimeStamp}\n \

Step: ${item.node.title}\n \

User: ${participant.name} (${participant.id})\n \

Workflow: ${model.title}\n \

-------------------------------------------------------------------------------------\n\n

message=Content: ${host.prefix}${payload.path.open}\n

footer=\n \

-------------------------------------------------------------------------------------\n \

View the overview in your ${host.prefix}/aem/inbox\n \

-------------------------------------------------------------------------------------\n \

This is an automatically generated message. Please do not reply.

It is located in the following path in CRX/DE:

http://localhost:4564/crx/de/index.jsp#/libs/settings/workflow/notification/email/default/en.txt

So I wont say there is anything wrong but the null you see can be related to "footer=\n \" in the template. You can always edit the template to your requirements [1].

[1] Configuring Email Notification

Avatar

Level 3

I guess you have modified your template already and [1] are resolving to null. Try changing them to [2]

[1]

${item.data.workflowTitle}

${item.data.startComment}

[2]

${model.title}

${item.data.comment}

Avatar

Community Advisor

Hi,

The following variables can be used within the email template:

  • ${event.EventType}, type of the event
  • ${event.TimeStamp}, date and time of the event
  • ${event.User}, the user who triggered the event
  • ${initiator.home}, the initiator node path
  • ${initiator.name}, the initiator name
  • ${initiator.email}, email address of the initiator
  • ${item.id}, the id of the work item
  • ${item.node.id}, id of the node in the workflow model associated with this workitem
  • ${item.node.title}, title of the work item
  • ${participant.email}, email address of the participant
  • ${participant.name}, name of the participant
  • ${participant.familyName}, family name of the participant
  • ${participant.id}, id of the participant
  • ${participant.language}, the participant language
  • ${instance.id}, the workflow id
  • ${instance.state}, the workflow state
  • ${model.title}, title of the workflow model
  • ${model.id}, the id of the workflow model
  • ${model.version}, the version of the workflow model
  • ${payload.data}, the payload
  • ${payload.type}, the payload type
  • ${payload.path}, path of the payload
  • ${host.prefix}, host prefix, e.g.: http://localhost:4502

Create your own custom template for your requirement and use as a process step to send mail

AEM - Custom Template'd Email



Arun Patidar