Followers Are Great, Contacts Are Gold. Create a Free AI-Quiz With Lead Magnet to Share With Your Followers and Own Your Contacts!

Personalization Tags in custom html via API getting encoded and not replaced on send

JonathanN736
Rookie
0 Votes

We are uploading html_content via the create/update endpoints for campaigns

POST /emails and PUT /emails/activities/{campaign_activity_id}

 

We have links within our html that use custom fields as params.

ex.

<a href="https://mywebsite.com?custom_param=[[custom.custom_attr]]">Cool Link</a>

 

Our problem is the brackets in anchor tags are being url encoded.

ex.

`<a href="https://mywebsite.com?custom_param=%5B%5Bcustom.custom_attr%5D%5D">Cool Link</a>`

So, when the email is sent the value isn't replaced. 

0 REPLIES 0
Resources
Developer Portal

View API documentation, code samples, get your API key.

Visit Page