# create an marketing email via API with a table insert

**URL:** <https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161>\
**Category:** APIs & Integrations\
**Created:** [October 29, 2022, 4:15am UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161 "2022-10-29T04:15:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![karien](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karien/32/9776_2.png) [@karien](https://community.hubspot.com/u/karien)\
**Post date:** [October 29, 2022, 4:15am UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161/1 "2022-10-29T04:15:50Z")

</div>

Has anyone created a table insert for marketing email (via API). Is this possible? thx. (and then populate the table with fields/custom object workflow)

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [October 29, 2022, 7:50pm UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161/2 "2022-10-29T19:50:18Z")

</div>

Hi @karien

You could create a [Custom Module](https://knowledge.hubspot.com/design-manager/create-and-edit-modules) that can be added to an email.

The code in your Custom Module could pull in the data you need.

Have fun

Mike

---

<div class="post-metadata">

**Author:** ![karien](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karien/32/9776_2.png) [@karien](https://community.hubspot.com/u/karien)\
**Post date:** [November 1, 2022, 7:34pm UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161/3 "2022-11-01T19:34:38Z")

</div>

[@Mike\_Eastwood](https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259) thx Mike, are you talking about the classic email editor, because that is what i used to get around this? just to clarify. thx

---

<div class="post-metadata">

**Author:** ![Mike\_Eastwood](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mike_eastwood/32/70075_2.png) [@Mike\_Eastwood](https://community.hubspot.com/u/Mike_Eastwood)\
**Post date:** [November 1, 2022, 10:13pm UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161/4 "2022-11-01T22:13:15Z")

</div>

Hi @karien

We typically code a Custom Module to make it easy for normal humans to drop the module into a Drag and Drop Email Template, then add the content directly to the Custom Module in the email.

While it takes a bit of effort to set up the Custom Module it saves time creating the emails.

Also, have you had a look at [HubSpot’s Programmable Emails](https://www.hubspot.com/products/operations/programmable-automation)?

Mike

---

<div class="post-metadata">

**Author:** ![karien](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karien/32/9776_2.png) [@karien](https://community.hubspot.com/u/karien)\
**Post date:** [November 11, 2022, 5:34am UTC](https://community.hubspot.com/t/create-an-marketing-email-via-api-with-a-table-insert/68161/5 "2022-11-11T05:34:34Z")

</div>

Ah yes, thx Mike, creating custom modules now.
