Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Printing Last date + 30 days in email

Bhargav
New Contributor
New Contributor

Hi Team , 

I have a requirement where i need to print the (last date + 30 days) in the email template . 

Where the last date is stored in Customproperty20 . 

How to achieve that ?

Thanks ,

Bhargav

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

What is format of data stored in cp20

Print current date first let me know if below works

${users?.customproperty20.format('yyyy-MM-dd')}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

Format in CP is (MM/DD/YYYY) and the above query is not working, even the mail is not getting triggering once we update that query in the template.

Thanks,

Bhargav.

Email is attached where ? @Bhargav 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

We attached the email template in User Update Rule.

${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}

Share results of above script


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

The below is the result of above script

Bhargav_0-1691481655540.png

Regards,

Bhargav.

dgandhi
All-Star
All-Star

Can you provide the format in which the date is stored currently in CP20?

 

Thanks,
Devang Gandhi
If this reply answered your question, please Accept As Solution and give Kudos to help others who may have a similar problem.

Hi Devang,

Format in CP20 is (MM/DD/YYYY).

Thanks,

Bhargav.