Hello,
I am trying to add a new email capability to the “Email Template: Lifecycle State.” It does not appear to message when users are changed from Active to Delete.
Can anybody tell me what date calculation is missing from the block quote below?
#set($c=$spTools.class.forName(“java.util.Calendar”).getMethod(“getInstance”, null).invoke(null, null))#set($nowDate=$c.getTime())
The user ${identityName}'s status has changed to $newState.
EmployeeID: $identity.identificationNumber
Employee ID: $identity.uid
Job Title: $identity.jobTitle
Manager ID: $identity.manager
#if($newState == ‘Prehire’)Start Date: $identity.startDate
ServiceNow: IAM New Employee#
#elseif($newState == ‘Active’)Start Date: $identity.startDate
ServiceNow: IAM New Employee #elseif($newState == ‘Inactive’ && $identity.endDate != $null)Term Date: $identity.endDate
ServiceNow: IAM Term Employee#elseif($newState == ‘Inactive’ && $identity.endDate == $null)Term Date: $spTools.formatDate($nowDate, “M/d/y”)
ServiceNow: IAM Term Employee#elseif($oldState == ‘Active’ && $newState == ‘Delete’)
ServiceNow: IAM Term Employee#elseReach out to the Sailpoint admin for more information
ServiceNow: IAM Term Employee#end