7 Replies Latest reply on Jul 12, 2018 4:23 PM by Sanford Whiteman

    Velocity Script Using Custom Object Not Appending When Email Is Sent

    Raquel Babb

      Hello,

       

      We are having trouble with an email using velocity script to display a field within a custom object.  The field in the custom object contains a UUID which is needed to append to a link for a campaign we'll be running. We're using the velocity script token in the email link listed below.  It appears as it's working when we send the email; however, when clicked, the email link takes us to a page stating an invitation is requested (used when there is no UUID matched to the database).  But when opening the email in the browser and clicking the link, it then works and processes the page with the proper message. Why won't the link append the Program UID field as anticipated?

       

      Link in Email: https://{{my.Email - CTA3_URL}}?offer=1&invitation={{my.Campaign UID}}

      Velocity Script Token {{my.Campaign UID}} Details: ${cashBackVisa_cList.get(0).ProgramUID}

      Field Name in Custom Object: Program UID

       

      URL Shown from Email (random test): https://www.example.com/promotion?offer=1&invitation=${cashBackVisa_cList.get(0).ProgramUID}

      URL Shown When the Same Email is Viewed in the Browser: https://www.example.com/promotion?offer=1&invitation=0736c113-669b-4043-9081-4a814eda08b8

      (For security sake, I've made the beginning of the link an example)

       

      There could be members who have more than one Program ID within this custom object.  Not sure if this means anything when using velocity script.

       

      Sanford Whiteman would you be able to help at all?

       

      Thanks,

       

      Raquel