Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/08/2024 12:48 AM - edited 04/08/2024 12:58 AM
Hi Team,
I'm trying to create an email template to send notification to a specific User group, but I don't see any binding variable that covers the requirement.
I also tried to print the Group's user email in the body using:
${com.saviynt.ecm.identitywarehouse.domain.Users.findAllByIdInList(com.saviynt.ecm.identitywarehouse.domain.Usergroup_users.findAllByUser_groupkey(com.saviynt.ecm.identitywarehouse.domain.Usergroups.findByUser_groupname("test-usergroup")?.id)?.userkey)?.email.join(',')}
from Solved: Using user groups in email templates - Saviynt Forums - 2820
But I got an error that is binding variable is not supported.
Also tried it on the To, no email were sent.
Is it still possible to put user groups that not having any constrains like Owners or Approver into the To field of email templates?
04/08/2024 01:02 AM
04/08/2024 05:14 PM
Please confirm where email template is attached and what is trigger point
04/08/2024 07:18 AM
04/08/2024 07:43 PM
Hi @rushikeshvartak , @Saathvik
@rushikeshvartak wrote:
Please confirm where email template is attached and what is trigger point
I'm trying to create it for Access Request workflows and Entitlement Owners campaign. The static user group will receive notification email but no need to participate in the workflow or campaign.
@Saathvik wrote:@fuko : Enable Advanced HTML CSS and see if that works
It didn't work, still got the same error.
04/08/2024 08:05 PM
Do you see any error in logs
04/08/2024 08:48 PM
There's seemed to be only 2 lines of log created when the error happened, no related error log is found.
2024-04-09T10:44:27+07:00-ecm-domain.EcmEmailTemplateController-http-nio-8080-exec-83-c6vjr-DEBUG-Inside checkIfEmailContainsEcpAttribute
2024-04-09T10:44:27+07:00-ecm-domain.EcmEmailTemplateController-http-nio-8080-exec-72-c6vjr-DEBUG-Audit entries for create email Template is taken care in SAVE action
04/08/2024 09:21 PM
Error when workflow/certification is triggered
04/08/2024 11:06 PM
I can't create the email template, so I didn't get the chance to use it on workflow or campaign.
I tried getting individual User email and it worked.
${com.saviynt.ecm.identitywarehouse.domain.Users.get(9)?.email}
But every time I tried with User_groups or Usergroup_users, I got the binding variable not supported error.
04/09/2024 07:21 PM
Please attach to workflow and test or test attaching to user update rule
04/09/2024 01:55 AM
Found this discussion happened more than a year ago
User group in mail template - issue still exists - Saviynt Forums - 37507
Maybe the Usergroups and Usergroup_users classes are also not exposed in 23.11
04/09/2024 03:59 AM
@fuko I even tried to fetch the email for user groups but its not working in v23.10/v23.11
Lets await from other folks to confirm if this is either fixed or enahancement is in progress for higher versions.