and more in a single search tool across platforms. Read the announcement here. |
04/20/2023 05:06 AM
Hi All,
Requirement is when the employee type changes for user, email should be triggered to their manager
In TO field I tried to keep below dynamic variables which is not working.
${manager?.firstname} ${manager?.lastname}
${manager?.email}
${manager.email}
${usersManager?.username}
${manager.firstname} ${manager.lastname}
${manager}
Could anyone suggest me on this please.
Regards,
Swetha
Solved! Go to Solution.
04/20/2023 06:38 AM
Hi @Swetha
Can you try below?
${manageremail}
Obtains the email ID of the user’s manager.
Thanks
04/20/2023 08:16 AM
Hi Devang,
Thanks for your response, I tried with above and email triggered . However we see that To field is null please find the below screen shot for reference.
Regards,
Swetha
04/21/2023 09:03 AM
Do you mean the issue of binding variable is fixed post making above changes? Now the email is getting triggered to the manager but to field is null? Can you confirm on this point?
Thanks
04/21/2023 09:23 AM
Hi Devang,
yes after adding this ${manageremail} variable in TO field of the template email triggered , However unable to notice since TO field is null it has not print any value
04/21/2023 09:45 AM
I would suggest try to add same binding variable in the cc field and check if you are able to see.
If you are able to see the email id in cc field then it could be something related to SMTP (not sure but could be possible)
Thanks
04/21/2023 06:01 AM
I also checked manager is active and has email address.
04/21/2023 09:38 AM
You can find all exposed variables using below script in email body
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
04/24/2023 06:06 AM
@rushikeshvartak thanks , I tried to use this above binding variable and see what all variables are exposed in email , then found that manager has set delegate and delegate has no email associated.
@Devang : thanks ${manager.email} worked to obtain manager's email
Thanks both for your valuable time for assisting me on this.
04/24/2023 10:35 AM
Glad to know that the issue is resolved 🙂
Thanks