CXone Studio ASSIGN/IF logic not triggering for custom header

Hit a 400 Bad Request when the flow hits the IF node. The ASSIGN action sets var.customFlag from a header, but the condition var.customFlag == 'true' always fails.

  • CXone Studio v2
  • Header name: X-Custom-Flag
  • Used GetRESTProxy to fetch value

The debug log shows the variable is populated, yet the branch skips. Is there a type mismatch with string comparison in the IF block?

Headers are always strings, so you’re comparing a string to a boolean literal. Change the condition to var.customFlag == "true" or use IsTrue(var.customFlag) if the SDK parses it.