<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Associate customProperties and dealProperties w Contact during a Transactional Email in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/252088#M22264</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/58926"&gt;@webmaestro&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies that this post fell through the cracks.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11385"&gt;@cbarley&lt;/a&gt;&amp;nbsp;responded to your other post &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/250782/highlight/true#M22115" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 13:21:54 GMT</pubDate>
    <dc:creator>IsaacTakushi</dc:creator>
    <dc:date>2019-02-11T13:21:54Z</dc:date>
    <item>
      <title>Associate customProperties and dealProperties w Contact during a Transactional Email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/250643#M22108</link>
      <description>&lt;P&gt;We are submitting &lt;EM&gt;contactProperties&lt;/EM&gt;, &lt;EM&gt;customProperties&lt;/EM&gt; and &lt;EM&gt;dealProperties&lt;/EM&gt; when sending Transactional Emails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we're noticing that the Contacts created do not have their respective &lt;EM&gt;customProperties&lt;/EM&gt; nor the &lt;EM&gt;dealProperties&lt;/EM&gt; associated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Are we doing something wrong?&lt;/P&gt;&lt;P&gt;* How do we fix this, so we can view the Transactions that our Contacts have made?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to associate customProperties &amp;amp; dealProperties with a Contact Record during a Transactional Email. But it isn't happening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's some JSON to play with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;* We've got &lt;EM&gt;contactProperties&lt;/EM&gt; (ADD record or UPDATE if it exists), &lt;EM&gt;customProperties&lt;/EM&gt; and &lt;EM&gt;dealProperties&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;* Duplicated some &lt;EM&gt;contactProperties&lt;/EM&gt; &amp;amp; &lt;EM&gt;dealProperties&lt;/EM&gt; fields to &lt;EM&gt;customProperties&lt;/EM&gt; fields so they can be used in Transactional Email, since:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; a) we want text to reflect what's sent, not HubSpot Contact,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; b) &lt;EM&gt;dealProperties&lt;/EM&gt; are not available as Transactional Email fields (!)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "emailId":6824020861,
   "message":{
      "to":"csmith@xyz.tv",
      "sendId":"xyz-receipt-007"
   },
   "contactProperties":[
      {
         "name":"firstname",
         "value":"Jessica"
      },
      {
         "name":"lastname",
         "value":"Rabbit"
      },
      {
         "name":"email",
         "value":"csmith@xyz.tv"
      },
      {
         "name":"email_consent",
         "value":"1"
      },
      {
         "name":"ipaddress",
         "value":"123.45.67.89"
      }
   ],
   "customProperties":[
      {
         "name":"firstname",
         "value":"Jessica"
      },
      {
         "name":"lastname",
         "value":"Rabbit"
      },
      {
         "name":"email",
         "value":"csmith@xyz.tv"
      },
      {
         "name":"address",
         "value":"1234 Main Street, Suite 200, Tustin, CA 92780 USA"
      },
      {
         "name":"amount",
         "value":"100.00"
      },
      {
         "name":"payment_type",
         "value":"VISA"
      },
      {
         "name":"card_last4",
         "value":"7890"
      },
      {
         "name":"transaction_id",
         "value":"1234567890"
      },
      {
         "name":"transaction_datetime",
         "value":"December 21, 2018 - 09:24:01 Pacific Standard Time"
      },
      {
         "name":"comments",
         "value":"Keep the change ya filthy animal!"
      }
   ],
   "dealProperties":[
      {
         "name":"amount",
         "value":"100.00"
      },
      {
         "name":"gift_code",
         "value":"M092018"
      },
      {
         "name":"closedate",
         "value":"20181221-09:24:01"
      },
      {
         "name":"createdate",
         "value":"20181221-09:24:01"
      },
      {
         "name":"hs_analytics_source",
         "value":"email"
      },
      {
         "name":"hs_analytics_source_data_1",
         "value":"https://www.xyz.org/gift/prod"
      },
   ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 23:52:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/250643#M22108</guid>
      <dc:creator>webmaestro</dc:creator>
      <dc:date>2019-02-04T23:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Associate customProperties and dealProperties w Contact during a Transactional Email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/252088#M22264</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/58926"&gt;@webmaestro&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies that this post fell through the cracks.&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/11385"&gt;@cbarley&lt;/a&gt;&amp;nbsp;responded to your other post &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/250782/highlight/true#M22115" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:21:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/252088#M22264</guid>
      <dc:creator>IsaacTakushi</dc:creator>
      <dc:date>2019-02-11T13:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Associate customProperties and dealProperties w Contact during a Transactional Email</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/252142#M22271</link>
      <description>&lt;P&gt;Thanks. You can close/REMOVE this one since it's a DUPLICATE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a great week!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 16:04:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Associate-customProperties-and-dealProperties-w-Contact-during-a/m-p/252142#M22271</guid>
      <dc:creator>webmaestro</dc:creator>
      <dc:date>2019-02-11T16:04:02Z</dc:date>
    </item>
  </channel>
</rss>

