05-20-2022 04:48 AM
Hi,
We have a disconnected application onboarded. The endpoint owner is assigned. There are 2 tasks that will be created : The endpoint has the Email Template added for Tasks.
I am using ${task?.endpoint?.getOwnersEmail()} in the To field of the email template. It did not work for me.
Am I missing something?
Solved! Go to Solution.
05-20-2022 07:44 AM
Hi,
Could you please confirm the version you are on as well as the error you are getting for this. Is it not triggering the mail or throwing some error?
Thanks
Nikita
05-20-2022 07:47 AM
Hi Nikita,
This is in version 2021.
-K
05-20-2022 07:52 AM
Hi
Thanks for getting back on this. Could you please also confirm the error or may be attach it.
Thanks
Nikita
05-20-2022 07:56 AM
Here is the snippet from the Email Job Log detail
05-20-2022 08:08 AM - edited 05-20-2022 08:10 AM
Hi
Got you..its because some of the attributes are not exposed here in v2021, they need to be exposed to make it work.
Thanks
Nikita
05-20-2022 08:13 AM
Thanks Nikita. I will open a ticket.
05-20-2022 08:16 AM
irrespective its Endpoint Owner as User / User Type below variable should work.
${assignee.email}
05-20-2022 02:26 PM
I tried ${assignee.email} but that did not send the task email. Also, the task has to be fulfilled by the Operations team so it be a DL that I will have to use.
Do you know how can the task email be sent to a Distribution List (DL)? Thinking we can use custom property to store the DL but can we refer to it in the email template?
What is the right way of sending task fulfillment email to a UserGroup?
05-20-2022 09:21 PM
${assignee.email} works only in approval email templates in Workflows to pick up the assigned approvers.
${assignee.email} doesn't work for task specific emails.
@km - For your usecase, you can put your DL in any of the endpoint customproperties. Put To in your email template as ${task.endpoint.customproperty2} provided you saved your DL in endpoint's customproperty2.
-Siva
05-22-2022 09:59 PM
The task owner email can be fetched using the following expression:
${task.endpoint.ownersEmail}
This should evaluate both for Individual task owners or User Group task owners. In case of User group, this will evaluate to email address of each user in the user group.
If you would like to send the email to a DL, then that would have to be stored in the Endpoint customproperty or Entitlement customproperty based on requirement.
06-08-2022 10:33 AM
Thankyou All!!!