Architect expression: DateTimeDiff vs GetDayOfWeek logic error

Stuck on getting the right comparison logic in an Architect expression.

  • Here is the current expression string I am testing in the simulator:
IF(DateTimeDiff(GetDayOfWeek(CALL.DATE), 1, "DAY") == 0, "TRUE", "FALSE")
  • The goal is to flag calls made on Mondays.
  • GetDayOfWeek returns an integer (1 for Sunday, 2 for Monday in my region settings).
  • I expected DateTimeDiff to calculate the difference between the current day index and the target day index (1 for Sunday).
  • The result is always false, even on a Monday.
  • I suspect DateTimeDiff expects actual timestamp objects, not integers.
  • Is there a cleaner way to do this without complex nested IF statements for each day?
  • I want to avoid hardcoding day names if possible.
  • Also, does GetDayOfWeek respect the flow’s timezone setting or the caller’s timezone?
  • I need this to be consistent across our Amsterdam and US east coast queues.
  • Any working expression snippet for this?