Skip to Content
0

SAP HCI PI - How to get a payload with the timestamp set by the Timer Starter Event?

May 17, 2017 at 03:14 PM

238

avatar image

My integration flow starter event is a Timer Starter Event which runs daily at a certain hour. Every time it runs, I want to get the timestamp of when that happened (date + time) and store it in a variable so that I can use it further down the integration flow. How can I get that timestamp?

Thank you.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Gayathri Narayana
May 18, 2017 at 10:28 AM
1

Hi Diogo,

Great question !!. You can add a content modifier step with a property right after the timer start event to get the time as a value to the property using an expression something like ${date:now:yyyy-MM-dd'T'00:00:00.000'Z'} based on your date and time-stamp requirement( not verified please use the format which works for you). This would be a close approximation of the time of the run if this is acceptable to you. You can then use the content modifier to include this value to payload. Meanwhile, i have reached out to the experts and shall let you know if there is an alternative.

Hope this helps,

Gayathri

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Gayathri,

This is exactly what I was looking for. Thank you for you time and answer.

Regards,

Diogo

0
Gagandeep Batra May 18, 2017 at 09:47 AM
0

Hi Diago,

You can use date-now of simple expression. please check below blog that might help you

https://blogs.sap.com/2016/11/25/get-to-know-camels-simple-expression-language-in-hci/

Regards

GB

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Gagendeep,

Date-now was what I was in need for, thank you very much.

Regards,

Diogo

0