Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

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

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up