Email Template for Lifecycle Change

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

Hi @davidballew
Is this issue happening only for the active to delete LCS or it happens for all ?

If it is happening only for active to delete, check the techincal name for both active and delete

@rajeshs all of the emails work correctly except for the newly added line for Active → Delete. Sailpoint seems to skip over it and sends the email shown in bold. I used postman and found that they were not capitalized, but no emails are sending now.

This appears when attempting to test the email.
sp_error

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.