We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
May 20, 2022 8:31 AM - edited May 22, 2022 1:40 PM
Hi,
im going to create a special email module for my emailing purposes. In best case this module schould be stand-alone, so i can reuse it in all my email templates without adjusting (adding custom code) my workflows every single time (like Drag and Drop).
This takes user preferences (list of ids, already saved in user) and schould be able to fetch data from external server responding with "xml" content type and then preprocess it a little bit.
What is the best approach to fetch data inside a module for email template? As I know, usage of js files as well as <script> tag is not supported by email clients.
Thanks!
Solved! Go to Solution.
May 23, 2022 2:12 AM
Hi @dmilovanov ,
I tried to build this for a client, but this isn't really possible without using the Single Send API and custom tokens in your email.
The best thing you can probably do is store the information in HubSpot instead of retrieving it from an external platform if you want to be able to use the drag and drop emails. Either in a custom object or in contact properties, depending on the usecase.
May 23, 2022 2:12 AM
Hi @dmilovanov ,
I tried to build this for a client, but this isn't really possible without using the Single Send API and custom tokens in your email.
The best thing you can probably do is store the information in HubSpot instead of retrieving it from an external platform if you want to be able to use the drag and drop emails. Either in a custom object or in contact properties, depending on the usecase.
May 20, 2022 4:10 PM
@Teun what are you thinking? 😀
![]() | Make sure to subscribe to our YouTube channel where you can find the HubSpot Community Developer Show |