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
  • I tried.  Didn’t help L

     

    From: Tessitura Web Forum [mailto:forums-tessitura-web@tessituranetwork.com] On Behalf Of Nathan Campbell
    Sent: Friday, February 24, 2012 1:11 PM
    To: Sabina Spilkin
    Subject: Re: [Tessitura Web Forum] Email Confirmation Subject

     

    Did you try this? It's possible that the value is supposed to be a string?

    <% if (OrderData.Solicitor == 'webapi') { %>

    From: Sabina Spilkin <bounce-sabinaspilkin7252@tessituranetwork.com>
    Sent: 2/24/2012 2:52:43 PM

    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

     




    You were sent this email automatically because you subscribed to the Tessitura Web forum. You may reply to this message to post to the Web forum or visit the site to search, read and post to the forums. In the interest of keeping the forum posts from becoming cluttered, we encourage you to delete previous message text from your reply before sending. Thank you!

  • Hi Sabina, here is what our code looks like.

    <%
       
        if (OrderData.Custom.Custom2.Length > 0)
        {
            Subject = OrderData.Custom.Custom2;
        }
        else
        {
            Subject = "McCarter Theatre Order Confirmation";
        }
       
    %>

Reply Children
No Data