Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Email Notification Template

Avatar

Avatar
Validate 1
Level 2
Aem_Rockstar
Level 2

Likes

0 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
Aem_Rockstar
Level 2

Likes

0 likes

Total Posts

12 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
Aem_Rockstar
Level 2

11-07-2019

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 ?

Replies

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

101 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

101 likes

Total Posts

240 posts

Correct Reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

11-07-2019

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

Avatar
Give Back 5
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
vijkumar
Level 2

11-07-2019

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

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,274 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,274 likes

Total Posts

3,151 posts

Correct Reply

887 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

12-07-2019

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