Resend Approval Email Button

Add a button to resend approvals to an user or list of users.

This should be used with caution so that you don't annoy users with too many approval emails. If users overuse this functionality. you may want to add more restrictions.

Name: Resend Approval Email
Table: Approval [sysapproval_approver]
Show insert: true
Show update: true
Form Button: true
List Choice: true
Condition: current.state == 'requested' && gs.hasRole("itil") && current.approver != getMyApprovals()
gs.eventQueue("approval.inserted", current, gs.getUserID(), gs.getUserName());
gs.addInfoMessage("Approval email resent.");