Question

Pass datetime value in Webhook JSON Body to datetime workspace?

  • 20 April 2022
  • 1 reply
  • 10 views

Badge +8

I have a working Automation that is triggered by either a Schedule block or a Webhook block. It includes a number of "run workspace" actions in series, the first of which currently includes user parameters with values that are fixed in the Automation, one of which is a datetime parameter. I would like to pass a datetime value in the body of the webhook POST, but it appears the first workspace block does not show the "Use a value from upstream keys" for the datetime user parameter, presumably because it is not an ordinary string. Is there a way to accomplish this without changing the user parameter in the workspace to an ordinary string?


1 reply

Userlevel 1
Badge +6

Hi @pmcpherson​ ,

 

From my testing, it looks like you will need to change the user parameter type from DateTime to a different one such as text. Using a different type will then allow you to select the Event Time, Output Key like so:

 

EventTimeIn my log, the Event Time key was uses FME Date/Time format: yyyymmddhhmmss

Log 

Hope this helps!

Reply