and more in a single search tool across platforms. Read the announcement here. |
03/26/2024 03:06 AM
i need some assistance.
Whenever the task is assigned, every owner of the endpoint should get an email. Endpoint owner is set to a user group with 4 members.(picture "workflow")
What is the best way to get the email adresses of the owners?
We tried ${task?.endpoint?.getOwnersEmail()} There is an email being generated, but it cant discover the right users. This is the error message to be seen on the emailhistory-job:
Error - No such property: task for class: SimpleTemplateScript1400 Possible solutions: class trying to evaluate the to email address for ID - 21 - assigning admin user
Error - No such property: task for class: SimpleTemplateScript1400 Possible solutions: class trying to evaluate the to email address for ID - 19 - assigning admin user
Error - No such property: task for class: SimpleTemplateScript1400 Possible solutions: class trying to evaluate the to email address for ID - 18 - assigning admin user
Error - No such property: task for class: SimpleTemplateScript1400 Possible solutions: class trying to evaluate the to email address for ID - 20 - assigning admin user
Error - No such property: task for class: SimpleTemplateScript1400 Possible solutions: class trying to evaluate the to email address for ID - 22 - assigning admin user
Duplicate Record for ID - 20 for email [*admin-email*]
Duplicate Record for ID - 21 for email [*admin-email*]
Duplicate Record for ID - 22 for email [*admin-email*]
Time Taken 1795(miliseconds)
03/26/2024 07:21 AM
try below
${task?.endpoint?.ownerkey}
or
{task?.endpoints?.ownerkey}
03/26/2024 08:31 PM
Please share
To get what variables are present to use in the email template, check using the below expression. By putting it in the email body, it will print all variable names with values, and then accordingly, you can use it:
${this.binding.variables.each {k,v -> println "$k = $v" + "" + "br" + ">"}}