For more information, please refer to this announcement explaining best practices for getting answers to questions.
Name of the recipient for a digest appears several times in Alert
Content
Hi there,
I have set a digest for the line managers to receive with info about the overdue courses of their direct reports.
The filters are
${learningItemType} = 'ORA_COURSE'
${assignmentType} = 'ORA_REQUIRE_ASSIGNMENT'
${assignmentStatus} = 'ORA_ASSN_REC_ACTIVE'
${assignmentDueDate} >= sysdate-2 AND ${assignmentDueDate} <= sysdate-1
The template is
Recepient
Worklist: ${AlertUtils.empManager(learnerLearningRecords.assignedToId).UserName}
Grouped by: ${AlertUtils.empManager(learnerLearningRecords.assignedToId).UserName}
The message starts like that
Dear ${learnerLearningRecords.assignedToPersonDetails.lineManagerDisplayName},
You receive this notification as Line Manager of the following employee(s) who have these regulatory courses overdue.
${AlertUtils.write("<table border=\"1\" border-color=\"#B29581\"><tr><th>Assigned to</th> <th>Course name</th> <th>Assigned by</th> <th>Assigned On</th> <th>Due Date</th></tr>")}${AlertUtils.loop('learnerLearningRecords','<tr><td>${assignedToDisplayName}</td><td>${learningItemTitle}</td><td>${assignerDisplayName}</td><td>${AlertUtils.formatDate(assignmentCreatedDate,\'dd-MMM-yyyy\')}</td><td>${AlertUtils.formatDate(assignmentDueDate,\'dd-MMM-yyyy\')}</td></tr>')} ${AlertUtils.write("</table>")}