Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 18, 2017 at 10:28 AM

    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,


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Gayathri,

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



  • May 18, 2017 at 09:47 AM

    Hi Diago,

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



    Add comment
    10|10000 characters needed characters exceeded