Dynamic email content - merge field in custom buttons


#1

Hi there,

I need an email template that contains a call to action button with the following URL but ?I need to add a merge field that’s being supplied by Salesforce ($SalesforceAccountId). See below:

https://Intelliflo104072.jitterbit.eu/OnPrem/IOProviderOptOut + $SalesforceAccountId

Basically we want to send an email with a call to action button that points the recipient to their own URL.

Is that doable do you know?

Thanks.


#2

Hi @moodoir,

It’s not possible to put personalization tokens in a HubSpot CTA and have them render properly in an email, but it is possible to put personalization tokens in the href attribute of an anchor tag, like this:
<a href="https://www.example.com/?firstname={{contact.firstname}}">Click here to go to your page!</a>


#3

Hey Derek, thanks for the swift reply. Ah that’s a shame but thanks for the tip on the href attribute. I’ll give that a go.

Thanks a million!

Dan.