How to group alerts in alerts composer to send a single email
Content
Hi All,
I have created an alert that is sending email to payroll representative. This is working fine but Payroll rep is receiving multiple emails for each employee. I am planning to group it so that he receives a single email with details of all employees.
I have put below code in the body
${AlertUtils.loop('emps','')}
Name | User Name |
---|---|
${DisplayName} | ${emps.UserName} |
and this is what I have in Group By field
${AlertUtils.payRep(emps.PersonId).WorkEmail}
When I run the alert it doesnt work and errors out with below message
Exception when sending message for recipient Id : 300000063600162
1