You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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>")}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!