0

In a Quickbase pipeline, I am getting the string representation of a datetime value from a "Fetch JSON" step. An example of such a value is 2023-02-10T13:30:58.726Z.

I need to branch my pipeline depending on whether the received value is in the future. For this I've added an "if" step where the expression to be evaluated (a Jinja template) is {{ b.updated_at > time.now }}.

A screenshot showing part of a Quickbase pipeline where an "if" step has the expression {{ b.updated_at > time.now }} compared to TRUE

When I run the pipeline I get an error that says:

Validation error: Incorrect template "{{ b.updated_at > time.now }}". TypeError: can't compare datetime.datetime to unicode

How can I convert b.updated_at to a datetime.datetime so that the comparison works?

urig
  • 16,016
  • 26
  • 115
  • 184

0 Answers0