Hey folks,
Running into a weird issue with expression syntax in Architect. I’m trying to filter a data action output based on whether a timestamp is within the last 24 hours. The docs suggest using DateTimeDiff or comparing raw timestamps, but my logic seems to always evaluate to false even when the time delta is clearly small.
Here’s the expression I’m using in the Data Action filter:
DateTimeDiff(GetCurrentDate(), [input.timestamp], 'HOURS') < 24
The [input.timestamp] comes from a previous REST call and is in ISO 8601 format (2023-10-27T14:30:00Z). GetCurrentDate() returns the current system time. I’ve verified the types are correct by logging them to the debug file, and they look like standard date objects.
I also tried using GetDayOfWeek to see if the comparison operators work differently, but that doesn’t help with the 24-hour window requirement. The flow just skips the branch entirely. Is there a specific format requirement for the second argument in DateTimeDiff? Or am I missing a timezone conversion step that Genesys isn’t handling automatically?
Checked the debug logs and no errors are thrown, just the logic evaluates incorrectly. Any ideas?