Skip to main content
Question

Pass datetime value in Webhook JSON Body to datetime workspace?

  • April 20, 2022
  • 1 reply
  • 40 views

pmcpherson
Contributor
Forum|alt.badge.img+9

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

keziaatsafe
Safer
Forum|alt.badge.img+7

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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings