How can we get user name in mail task body where recipient is group ?
I have mail task recipient of that mail is steward group.
In the html body , the template starts with username. How can I get username in Html.
It tried with below script, but it’s giving error
pavanshukla11
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
1 comment
Former User
·3 years ago · Edited@PavanShukla
Create a script task before the mail task.
set the variable in that script task
execution.setVariable(“varUsername”, youruser.getFirstName());
Then use this variable in the mail task html body
${varUsername}
This is the ideal way of doing what you want to do.