Skip to Content
3
Jul 25, 2019 at 06:47 AM

How to add number of days in Current Date in CPI PI ?

2580 Views

Hello guys,

There is a requirement where i have to compare a particular date in payload with Current date plus 5 days in CPI PI mapping.

It seems to be very difficult to get current date + 5 via graphical mapping.

So am trying to write a custom function(Groovy Script) inside mapping to get Current Date + 5. I am new to CPI and groovy script so can any one guide me here to achieve this result ?

Thanks & Regards,

Dhairya