Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/05/2024 06:59 PM
Hi Team,
We have a requirement for a disconnected application where we need to email a group of users (team).
I tried with the below code but it's not working.
${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("Blackline_Team")?.id)?.userkey)?.email.join(',')}
also, I tried the above code in the email body it's throwing an error.
Kindly help me to achieve this use case.
Thanks,
Narayan Das
Solved! Go to Solution.
11/05/2024 07:19 PM
@narayandas where is email attached workflow or endpoint??
11/05/2024 07:43 PM
endpoint
11/05/2024 07:49 PM
@narayandas try tasks.owner.email
11/05/2024 08:19 PM
Thanks for your reply.
tasks.owner.email is also not working.
and I want to send mail to a specific group of people so the tasks.owner.email will not get user mail which I have added to the Blackline_Team user group.
11/05/2024 08:21 PM
Use ${task.endpoint.ownersEmail}
11/05/2024 08:31 PM
@narayandas try this
${owners.join(',')}
11/05/2024 08:13 PM
use ${task.endpoint.ownersEmail}
11/05/2024 09:39 PM
Hi @NM & @rushikeshvartak ,
I have tried both${owners.join(',')} and ${task.endpoint.ownersEmail} and also
- Email template
And I have received an email where nothing is in the To section.
11/05/2024 10:01 PM
Does it your multi step or one step ? If one step then use normal user group
11/05/2024 10:42 PM
Yes, it's one step. Now working with ${task.endpoint.ownersEmail} .
Thank you