For more information, please refer to this announcement explaining best practices for getting answers to questions.
New Assignment Notification (Copy of WLF0010)
Summary:
Update the standard notification 'New assignment notification' with custom condition.
I'm trying to update the template with the following element :
"Dear ${assignedToDisplayName},
${assignerDisplayName} has assigned you a ${AlertUtils.getLookupMeaning('ORA_WLF_LEARNING_ITEM_TYPE', learningItemType)}: ${learningItemTitle}.
<% if (assignmentType =='ORA_REQUIRE_ASSIGNMENT') {%>
This is a required assignment. It is due by ${AlertUtils.formatDate(learnerLearningRecords.assignmentDueDate)}
<% } %>
<% if (learningItemType == 'ORA_COURSE') { %>
<% if (assignmentSubStatus == 'ORA_ASSN_REC_NO_OFFR') { %>
Select an offering
<% } else { %>
Click here to start learning!
The activities of the selected offering are:
<% } %>
<% } %>
<% if (learningItemType == 'ORA_SPECIALIZATION') { %>
Click here to start learning!
The activities of the specialization are:
<% } %>
<% } %> ${AlertUtils.write("<table border=\"1\"><tr><th>Activity Title</th><th>Description</th><th>Activity Type<th>Date</th><th>Start Time</th><th>End Time</th></tr>")}${AlertUtils.loop('completionDetails','<tr><td>${activityTitle}</td><td>${AlertUtils.nullIf(activityDescription," ",activityDescription)}</td><td>${activityTypeMeaning}</td><td>${AlertUtils.nullIf(activityDate," ",activityDate)}</td><td>${AlertUtils.nullIf(activityStartTime," ",activityStartTime)}</td><td>${AlertUtils.nullIf(activityEndTime," ",activityEndTime)}</td></tr>')}${AlertUtils.write("</table>")}