Email Script Token Help
Good afternoon,
I've created an Email Script Token ({{my.SFDC_Type}}) as follows:
#if( $lead.SFDC_Type.equals("Lead") )
#set( $sfdcindicator = "1" )
#elseif( $lead.SFDC_Type.equals("Contact") )
#set( $sfdcindicator = "2" )
#else
#set( $sfdcindicator = "0" )
#end
${sfdcindicator}
The token is to be appended to email links as a querystring, e.g. companynam.com/global/en/corporate/?sfdc_type={{my.SFDC-Type}} and when the email is previewed, the URL renders as expected, e.g. companynam.com/global/en/corporate/?sfdc_type=1

However, when the email is sent, the value is not present in the email URL:

What might be the reason for this, especially because the value does display when the token is included in the email body:


Any help would be greatly appreciated.
Kind regards
Karl