Groovy expression for Contract end date
Summary:
I am trying to add a groovy expression to pull Contract end date of employees using the seeded Alert template of projected end date
The existing template is below and I want to replace ProjectedEndDate with ContractEndDate, but ContractEndDate is in Contract resource. But none of the expression is working and giving expression mismatch error. Please help with the right expression.
Existing>
${AlertUtils.write("<tableborder=\"1\"><tr><th>Name</th><th>PersonNumber</th><th>Assignment Number</th><th>AssignmentProjected End Date</th></tr>")}${AlertUtils.loop('workers,workRelationships,assignments','','','<tr><td>${workers.names[0].DisplayName}</td><td>${workers.PersonNumber}</td><td>${AssignmentNumber}</td><td>${AlertUtils.formatDate(ProjectedEndDate,\'dd-MMM-yyyy\')}</td></tr>')}${AlertUtils.write("</table>")}