AnsweredAssumed Answered

Using Email Script to print out subscriptions

Question asked by Liz Davalos on Jan 15, 2018
Latest reply on Jan 16, 2018 by Liz Davalos

Edited for current code: We have several newsletters and I've been trying to get a script working that checks if someone is subscribed and if so lists the newsletter name. For some reason I just can't get it to work even though this script is identical (except for the field used) to others I'm using that work. It is a boolean field, not sure if maybe I'm doing something with that wrong?


Also if you have any recommendations for pulling a list of subscriptions it would be appreciated. If was just going to do a bunch of if statements.


#if( $lead.TrendlinesSubscription == "1" )
  #set ( $subtrendslines = "Trendlines" )
  #set ( $subtrendslines = "None" )


This is the error:


An error occurred when procesing the email Rendered_Email_Velocity_Error_Area_unkown!


Encountered "" near