AnsweredAssumed Answered

Personnalisation / Email script token ne marche pas

Question asked by Guillaume Joulaud on Nov 13, 2018

Bonjour,

 

Mes email script tokens, voir les deux versions ci-dessous, ne marchent pas :

Version 1 : j'obtiens Cher Bonjour, au lieu de Cher Monsieur + Last name ou Chère Madame + Last Name ou Bonjour,

Version 2 : je n'obtiens aucune salutation...

 

Merci de votre aide!!

 

Version 1

##check if the lead is male

#if(${lead.MarketoSocialGender} == "Male")

##if the lead is male, use the salutation 'Monsieur'

#set($greeting = "Cher Monsieur ${lead.LastName},")

##check is the lead is female

#elseif(${lead.MarketoSocialGender} == "Female")

##if female, use the salutation 'Madame'

#set($greeting = "Chère Madame ${lead.LastName},")

#else

##otherwise, use the first name

#set($greeting = "Cher ${lead.FirstName},")

#end

##print the greeting and some content

${greeting}

 

    Bonjour,

 

Version 2 -> avec cette version, je n'obtiens aucune salutation...

##check if the lead is Hommes

#if(${lead.Segmentation_Gender_1003} == "Hommes")

##if the lead is Hommes, use the salutation 'Monsieur'

#set($greeting = "Cher Monsieur ${lead.LastName},")

##check is the lead is Femmes

#elseif(${lead.Segmentation_Gender_1003} == "Femmes")

##if femmes, use the salutation 'Madame'

#set($greeting = "Chère Madame ${lead.LastName},")

#else

##otherwise, use Bonjour,

#set($greeting = "Bonjour,")

#end

Outcomes