Skip to main content
Problem Solver I
July 22, 2025
Solved

Maximum Char limit for Email Subject line

  • July 22, 2025
  • 1 reply
  • 59 views

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}}

    Best answer by Byrne C

    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!

    1 reply

    Byrne C
    Community Manager
    Byrne CAnswer
    Community Manager
    July 23, 2025

    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!