# HubL in Email using SingleSendAPI data

**URL:** <https://community.hubspot.com/t/hubl-in-email-using-singlesendapi-data/9868>\
**Category:** CMS Development\
**Created:** [August 16, 2018, 3:57pm UTC](https://community.hubspot.com/t/hubl-in-email-using-singlesendapi-data/9868 "2018-08-16T15:57:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandraS](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sandras/32/105889_2.png) [@SandraS](https://community.hubspot.com/u/SandraS)\
**Post date:** [August 16, 2018, 3:57pm UTC](https://community.hubspot.com/t/hubl-in-email-using-singlesendapi-data/9868/1 "2018-08-16T15:57:08Z")

</div>

Hi all,

I am trying to make a table row appear based on data I am passing in from a single send API. If I pass a null value, do nothing. If there is something in there, make the row show up. It is not working. Any ideas one what I am doing wrong? (I’ve also tried the opposite of this and it didn’t work either)

**{% if custom.POLICY\_DENTAL\_SUBSIDIZED\_PREMIUM is none %}**

\<!—if a premium is not passed through, don’t show this table row --\>

**{% elif custom.POLICY\_DENTAL\_SUBSIDIZED\_PREMIUM ==”” %}**

**{% else %}**

\<tr\>

\<td width=“5%” align=“center” bgcolor=“#00529b” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”\> \</td\>

\<td width=“90%” align=“left” bgcolor=“#ffffff” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”\>\<table width=“100%” border=“0” cellspacing=“0” cellpadding=“0”\>

\<tr\>

\<td width=“21%” rowspan=“3”\>\<img src=“[https://cdn2.hubspot.net/hubfs/4155563/Carrier Templates/Dental.jpg](https://cdn2.hubspot.net/hubfs/4155563/Carrier%20Templates/Dental.jpg)” style=“display:block;width:80px;border-width:0;-ms-interpolation-mode:bicubic;”\>\</td\>

\<td height=“26” colspan=“3” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 14px; color: #000000;”\>\<strong\>Dental Plan\</strong\>\</td\>

\</tr\>

\<tr\>

\<td width=“27%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”\>\<strong\>Monthly Premium\</strong\>\<br\>\</td\>

\<td width=“20%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”\>\<strong\>Efective Date\</strong\>\</td\>

\<td width=“32%” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; color: #000000;”\>\<strong\>Federal Transaction ID\</strong\>\</td\>

\</tr\>

\<tr\>

\<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”\>{{custom.POLICY\_DENTAL\_SUBSIDIZED\_PREMIUM}}\</td\>

\<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”\>{{custom.POLICY\_DENTAL\_EFFECTIVE\_DATE}}\</td\>

\<td style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 11px; line-height: 12px; color: #000000;”\>\<div align=“center”\>{{custom.POLICY\_DENTAL\_TRANSACTION\_ID}}\</div\>\</td\>

\</tr\>

\</table\>\</td\>

\<td width=“5%” align=“center” bgcolor=“#00529b” style=“font-family:‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 18px; line-height: 26px; color: #ffffff;”\> \</td\>

\</tr\>

**{% endif %}**

---

<div class="post-metadata">

**Author:** ![roisinkirby](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@roisinkirby](https://community.hubspot.com/u/roisinkirby)\
**Post date:** [August 23, 2018, 10:49am UTC](https://community.hubspot.com/t/hubl-in-email-using-singlesendapi-data/9868/2 "2018-08-23T10:49:45Z")

</div>

Hey @SandraS can you please share a link to the page you are working so that the Community can assist? I’d also recommend posting to our API forum [here](http://integrate.hubspot.com).

---

<div class="post-metadata">

**Author:** ![SandraS](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sandras/32/105889_2.png) [@SandraS](https://community.hubspot.com/u/SandraS)\
**Post date:** [August 23, 2018, 2:30pm UTC](https://community.hubspot.com/t/hubl-in-email-using-singlesendapi-data/9868/3 "2018-08-23T14:30:13Z")

</div>

Hi,

It’s an email, triggered by API, not a webpage.

I was told HubL logic doesn’t work in SingleSendAPI triggered emails, so I put a request in the ideas area instead.

The workaround suggested was to add the data to the contacts db, use workflow api, and then delete the data after they have gone through.

Thanks for your help!
