Hi there,
We personalize our email footer based on the Clinic ID of patient
The way we do this is by implementing a Global token (called my.global) as storage for information
Then we use Clinic ID as lookup value to get other data
This is a snippet of the value that we have
My.Global
","latitude":51.112309,"Longitude":-114.212415,"GetDirections":"www.google.com/maps/dir/Lifemark Crowchild Twin Arena+Crowchild Twin Arenas+Calgary+Alberta+T3L 1L4"},"313656":{"ClinicId":10159,"LPSClinicId":313656,"OfficialName":"Lifemark Sport - Canada Games Centre","Address1":"Suite 182","City":"Halifax","Province":"Nova Scotia","PostalCode":"B3S 0E2","Telephone":"(902) 404-3888","Email":"info.cgc@lifemark.ca","ParkingAndTransportation":"The clinic is wheelchair accessible. The newly expanded parking lot provides extensive free parking. If you have an injury or want to prevent future injuries, please call us now to schedule an appointment.
Now here comes the problem.
Only some of the token works
Clinic Name token never works
Clinic Name
Token Code
#set($clinicID = ${lead.ClinicID})
##if clinic id found
#if($clinics.Map.get($clinicID))
$clinics.Map.get($clinicID).OfficialName
#end
But Clinic Address always work
Clinic Address
Token Code
#set($clinicID = ${lead.ClinicID})
##if clinic id found
#if($clinics.Map.get($clinicID))
$clinics.Map.get($clinicID).Address1
#end
We actually used this technique before for other email journey and it was working without problem
Any thoughts why this doesn't work?
My.Global
","latitude":51.112309,"Longitude":-114.212415,"GetDirections":"www.google.com/maps/dir/Lifemark Crowchild Twin Arena+Crowchild Twin Arenas+Calgary+Alberta+T3L 1L4"},"313656":{"ClinicId":10159,"LPSClinicId":313656,"OfficialName":"Lifemark Sport - Canada Games Centre","Address1":"Suite 182","City":"Halifax","Province":"Nova Scotia","PostalCode":"B3S 0E2","Telephone":"(902) 404-3888","Email":"info.cgc@lifemark.ca","ParkingAndTransportation":"The clinic is wheelchair accessible. The newly expanded parking lot provides extensive free parking. If you have an injury or want to prevent future injuries, please call us now to schedule an appointment.
Clinic Name#set($clinicID = ${lead.ClinicID})##if clinic id found#if($clinics.Map.get($clinicID))$clinics.Map.get($clinicID).OfficialName#end
Clinic Address#set($clinicID = ${lead.ClinicID})##if clinic id found#if($clinics.Map.get($clinicID))$clinics.Map.get($clinicID).Address1#end