Flow Designer action inputs of type Date are promoted to Date/Time in some circumstances


Flow Designer promotes Date type inputs to Date/Time type inputs in some scenarios. This is observed by creating a trivial Action with one input, a Date, and then using this action and its input inside a Flow. When the Date is used within a Log Activity within the Action, it is promoted to a Date/Time input. This has been observed only occurring when using the Action from a Flow, but it could present itself in further similar scenarios.

The Date/Time type change can lead boolean comparisons to unexpected results when mixing Dates and Date/Times, and can result in unexpected String conversions, as Date/Time inputs are converted to Strings such as "2020-12-29 16:00:00", while Date input is converted to a String such as "2020-12-20".

Steps to Reproduce

  1. Create an action with input of type Date.
  2. Add log step to this action and log the value of input in it.
  3. Publish the action.
  4. Create a flow.
  5. Add the action created above in this flow.
  6. Provide any date to the action input.
  7. Execute the flow.

The Log Action produces a String like "2020-12-29 16:00:00" instead of "2020-12-29".


This problem is currently under review. To receive notifications when more information becomes available, subscribe to this Known Error article by clicking the Subscribe button at the top right of this form.

As a workaround, it may be possible to use an inline script to handle input explicitly as a Date.

Related Problem: PRB1440122