Hi All,
I’m trying to add 7 days to the campaign activation date as we need to have this value in my certification notification body, Can someone help me on this.
Hi All,
I’m trying to add 7 days to the campaign activation date as we need to have this value in my certification notification body, Can someone help me on this.
Hi @chandramohans27,
By default this notification Campaign Template Pre-Generation Notification Email Template - SailPoint Identity Services is sent 7 days before campaign starded.
And this Certification Email Template - SailPoint Identity Services is sent to reviewer once campaingn is starded.
For modify the first you can add 7 days to current date if you want to display your campaign start date in the notification template :
#set($spToolsClass = $spTools.getClass())
#set($dateClass = $spToolsClass.forName("java.util.Date"))
#set($calendarClass = $spToolsClass.forName("java.util.Calendar"))
#set($dateObject = $dateClass.newInstance())
#set($calendarInstance = $calendarClass.getInstance())
$calendarInstance.setTime($dateObject)
$calendarInstance.add(5,-7)
#set($formattedDate = $spTools.formatDate($calendarInstance.getTime(), "MM/dd/yyyy HH:mm"))
Current date + 7 days : $formattedDate
Not also that this snipet of code can be added into any natif notification template
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.