extract json file in template mail in hubspot

lolotlm
Participant

Hi,

 

i search for extract data of json file in template email, my file is on other server (wordpress site)

 

how can i to do this ?

 

thanks for your help

0 Upvotes
2 Replies 2
lscanlan
HubSpot Alumni

Hi @lolotlm,

 

Are you asking about how to get the JSON for an email template that lives in your HubSpot account? If that's the case, you can use the CMS Templates API, which is documented here: https://developers.hubspot.com/docs/methods/templates/get_templates_template_id. Making a successful to request to that endpoint will return the JSON for the template.

 

Or are you asking how to import your external email into HubSpot? You may need to adjust the format of your JSON, but it's possible you could create an email template using the CMS Templates API: https://developers.hubspot.com/docs/methods/templates/post_templates, and then you could create an email from the template.

 

But if I've misunderstood what you're asking, let me know and I'll be happy to take another look.

Leland Scanlan

HubSpot Developer Support
0 Upvotes
lolotlm
Participant

Hi 

 

thank you for your answer. I can not understand how to use your documentation.

I try to re-explain my request :
I have a json file on a remote server with wordpress with all of my post blog on this server with wordpress, and I would like to use it in a loop in a template email hubspot to display my posts.

 

Laurent

0 Upvotes