Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Alert Composer is printing pending worker details in the email msg template for projected end date
Summary:
Hi Team,
We are using custom Alert composer to print projected end date. When employee projected end is sysdate+28 days, we are sending alert notifications to line manager. But the challenge here, it is printing both pending worker details & Employee details in the table. How do we restrict pending worker details printing in the table?
Content (required):
we are using the below groovy code to print the values.
${AlertUtils.write("<table border=\"1\"><tr><th>Name</th><th>Person Number</th><th>Assignment Number</th><th>Assignment Projected End Date</th></tr>")}${AlertUtils.loop('emps,assignments','','<tr><td>${emps.DisplayName} </td><td>${emps.PersonNumber} </td><td>${AssignmentNumber}</td><td>${AlertUtils.formatDate(AssignmentProjectedEndDate[0],\'dd-MMM-yyyy\')} </td></tr>')}${AlertUtils.write("</table>")}