Skip to main content

Hi Everyone,

I’m currently trying to include a conditional statement in the subject line within a Flow, but the platform is not allowing the full code to be added.

Is there a character limit for subject lines in Flows? If so, could you please advise on any possible alternatives or best practices for implementing the following code?

 

{%if event.ReasonCode == "CN5" or event.ReasonCode == "CN9" or event.ReasonCode == "CN10" %}An update on your order{%elif event.ReasonCode == "AC1" or event.ReasonCode == "AC2" %}Your order was canceled{%else%}Your order has been canceled{%endif%} #{{event.OrderNumber}}

Hey ​@JaydeepPatel,

The character limit on subject lines is 255! Looks like the statement you created above is 270 characters, so while there isn’t a workaround that can extend the character limit, you’ll be able to make this work if you can condense the subject line just a bit and find 15 characters to remove!