APIs & Integrations

lolotlm
Participante

extract json file in template mail in hubspot

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 Me gusta
3 Respuestas 3
CPopolo
Miembro

extract json file in template mail in hubspot

Yet another request for HubSpot technical support that dies an early death, without even the dignity of a gravemarker.  The "fetch" statement doesn't work but somehow there's only a bunch of dead-end requests for help on that subject.  I guess the great resignation has hit HubSpot.

0 Me gusta
lscanlan
Exmiembro de HubSpot
Exmiembro de HubSpot

extract json file in template mail in hubspot

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 Me gusta
lolotlm
Participante

extract json file in template mail in hubspot

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 Me gusta