APIs & Integrations

moodoir
Participant

Dynamic email content - merge field in custom buttons

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.

0 Upvotes
2 Replies 2
moodoir
Participant

Dynamic email content - merge field in custom buttons

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.

Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Dynamic email content - merge field in custom buttons

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>

0 Upvotes