We’re trying to filter routing events for US/Eastern compliance queues but the date comparison in Architect keeps failing. The rule needs to block calls on weekends so I used DateTimeDiff to compare the current time against a fixed anchor date. It returns a value that doesn’t match the threshold even when it’s clearly Tuesday. Swapped to GetDayOfWeek hoping for a simpler check but the Data Action throws a validation error on save. The expression editor highlights the function in red without a helpful message. Here is the expression string causing the issue.
"condition": "GetDayOfWeek(CurrentDateTime(), 'US/Eastern') == 0 OR GetDayOfWeek(CurrentDateTime(), 'US/Eastern') == 6"