Email Confirmation Subject

Good afternoon,

Had a logic to assign a subject of an email confirmation that worked ( based on MOS) :

if (OrderData.ModeOfSale == 55 ) { %>
           <% Subject = "Your San Diego Symphony Order (Mobile)";%>
        <% } else { %>
           <% Subject = "Your San Diego Symphony Order";%>
        <% } %>

 

Tried to use solicitor instead and it throws an exception and can't figure out what I am missing :

<% if (OrderData.Solicitor == webapi) { %>
           <% Subject = "Your San Diego Symphony Order (Website)";%>
                <% } else { %>
           <% Subject = "Your San Diego Symphony Order";%>
        <% } %>

Thanks,

 

Sabina

 

Parents Reply Children
No Data