<?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: Cannot replace custom parameters from single send email API in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391150#M38596</link>
    <description>&lt;P&gt;Im not sure you are naming your custom property correctly, it might be a guess but at least we can do a lookup to confirm if it is or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you checked the property system name in the email?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to your email in the marketing tab &amp;gt; open email in edit mode &amp;gt; click settings &amp;gt; scroll down to plain text and web version &amp;gt; click "customize" button. The name within the brackets {{ }} is the official system name for your property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats my primary guess for now anyway - hope it helps!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelC_0-1607029269088.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/35011i82E0C0365BF9B099/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelC_0-1607029269088.png" alt="MichaelC_0-1607029269088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 21:02:12 GMT</pubDate>
    <dc:creator>MichaelC</dc:creator>
    <dc:date>2020-12-03T21:02:12Z</dc:date>
    <item>
      <title>Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/390781#M38550</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a custom property called category_total using the portal dashboard.&amp;nbsp; I am trying to set this value in an email template and send the email using the single send email API as specified in documentation here:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/api/marketing/transactional-emails" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/marketing/transactional-emails&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i.e. POST to&amp;nbsp;&lt;A href="https://api.hubapi.com/marketing/v3/transactional/single-email/send" target="_blank" rel="noopener"&gt;https://api.hubapi.com/marketing/v3/transactional/single-email/send&lt;/A&gt;&amp;nbsp;using my API key&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried using the following JSON as specified by other posts I have seen in the forum:&lt;/P&gt;&lt;PRE&gt;{&lt;/PRE&gt;&lt;PRE&gt;     "emailId":38143921416,&lt;/PRE&gt;&lt;PRE&gt;     "message":{&lt;/PRE&gt;&lt;PRE&gt;          "to":"&lt;A href="mailto:dcornelljames@gmail.com" target="_blank" rel="noopener"&gt;dcornell@gmail.com&lt;/A&gt;"&lt;/PRE&gt;&lt;PRE&gt;     },&lt;/PRE&gt;&lt;PRE&gt;     "contactProperties":[&lt;/PRE&gt;&lt;PRE&gt;          {&lt;/PRE&gt;&lt;PRE&gt;                    "name":"firstName",&lt;/PRE&gt;&lt;PRE&gt;                    "value":"Bubba"&lt;/PRE&gt;&lt;PRE&gt;          }&lt;/PRE&gt;&lt;PRE&gt;     ],&lt;/PRE&gt;&lt;PRE&gt;     "customProperties":[&lt;/PRE&gt;&lt;PRE&gt;          {&lt;/PRE&gt;&lt;PRE&gt;               "name":"category_total",&lt;/PRE&gt;&lt;PRE&gt;               "value":"4071434"&lt;/PRE&gt;&lt;PRE&gt;          }&lt;/PRE&gt;&lt;PRE&gt;     ]&lt;/PRE&gt;&lt;PRE&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;When using this format, I get the following error returned from the API:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"Invalid input JSON on line 6, column 26: Cannot deserialize instance of `java.util.LinkedHashMap` out of START_ARRAY token"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"5f0520aa-8c32-4c6e-af04-4c0d8e406570"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This error seems to indicate that I should not be using arrays but rather name-value pairs.&amp;nbsp; If I change the format to:&lt;BR /&gt;{"emailId":38143921416,&lt;BR /&gt;&amp;nbsp;"message":{"to":"&lt;A href="mailto:dcornelljames@gmail.com" target="_blank" rel="noopener"&gt;dcornell@gmail.com&lt;/A&gt;"},&lt;BR /&gt;&amp;nbsp;"contactProperties":{"firstName":"Bubba"},&lt;BR /&gt;&amp;nbsp;"customProperties":{"contact.category_total":"999999","category_total":"990990909"}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;then the message is successfully sent and the contact property is overidden to show a first name of "Bubba".&amp;nbsp; However, the custom property is not getting set.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please advise and thanks in advance.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Dec 2020 22:00:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/390781#M38550</guid>
      <dc:creator>dcornelljames</dc:creator>
      <dc:date>2020-12-02T22:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391126#M38591</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/152362"&gt;@dcornelljames&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;Thanks for adding the question!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/10257"&gt;@RiccardoPisani&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/109312"&gt;@thesnappingdog&lt;/a&gt; , &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt;&amp;nbsp; would any of you be able to lend a hand here?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:47:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391126#M38591</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-12-03T19:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391150#M38596</link>
      <description>&lt;P&gt;Im not sure you are naming your custom property correctly, it might be a guess but at least we can do a lookup to confirm if it is or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you checked the property system name in the email?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to your email in the marketing tab &amp;gt; open email in edit mode &amp;gt; click settings &amp;gt; scroll down to plain text and web version &amp;gt; click "customize" button. The name within the brackets {{ }} is the official system name for your property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats my primary guess for now anyway - hope it helps!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelC_0-1607029269088.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/35011i82E0C0365BF9B099/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelC_0-1607029269088.png" alt="MichaelC_0-1607029269088.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 21:02:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391150#M38596</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-12-03T21:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391204#M38614</link>
      <description>&lt;P&gt;My template is one of the defaults with my custom parameter inline.&amp;nbsp; This is what the text of the email is using the instructions you have mentioned:&amp;nbsp;&lt;BR /&gt;---------&lt;/P&gt;&lt;P&gt;Hello {{contact.firstname}},&lt;/P&gt;&lt;P&gt;Plain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.&lt;/P&gt;&lt;P&gt;{{contact.category_total}}&lt;/P&gt;&lt;P&gt;Every email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.&lt;/P&gt;&lt;P&gt;Link text&lt;/P&gt;&lt;P&gt;Now it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Your full name&lt;/P&gt;&lt;P&gt;Your job title&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;You will see the custom parameter "contact.category_total" in the middle.&amp;nbsp; You will also see the standard parameter "contact.firstname" at the top.&amp;nbsp; When I run with the below JSON, the contact.firstname gets populated with Bubba, but the custom parameter does not.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"emailId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;38143921416&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"to"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"dcornelljames@gmail.com"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"contactProperties"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"firstName"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"Bubba"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"customProperties"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"contact.category_total"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"4071434"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;This is a screen grab of the resulting email:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-12-03 at 11.52.52 PM.png" style="width: 633px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/35016i4F3810A670293A0C/image-dimensions/633x501?v=v2" width="633" height="501" role="button" title="Screen Shot 2020-12-03 at 11.52.52 PM.png" alt="Screen Shot 2020-12-03 at 11.52.52 PM.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tried&lt;BR /&gt;"contact.category_total":"9999999"&lt;/DIV&gt;&lt;DIV&gt;"contact.category_total":9999999&lt;/DIV&gt;&lt;DIV&gt;"category_total":"9999999"&lt;/DIV&gt;&lt;DIV&gt;"category_total":9999999&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;None seem to work.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Dec 2020 04:57:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391204#M38614</guid>
      <dc:creator>dcornelljames</dc:creator>
      <dc:date>2020-12-04T04:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391209#M38615</link>
      <description>Try to move it to contact properties instead of custom properties area of your code. It looks as if it is a self made contact property. Worth a try.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"contactProperties":&lt;BR /&gt;{&lt;BR /&gt;"firstName":"Bubba",&lt;BR /&gt;"contact.category_total":"4071434"&lt;BR /&gt;//Try the different versions of the property names here&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Dec 2020 05:42:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391209#M38615</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-12-04T05:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391349#M38629</link>
      <description>&lt;P&gt;That was it.&amp;nbsp; So I guess there is a difference between a "custom property" and a "self made property" as you call it?&amp;nbsp; Somewhat confusing but it gets me over this hurdle.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 16:54:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391349#M38629</guid>
      <dc:creator>dcornelljames</dc:creator>
      <dc:date>2020-12-04T16:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391469#M38641</link>
      <description>&lt;P&gt;Well I agree that this was confusing and missleading. Maybe&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/13982"&gt;@dennisedson&lt;/a&gt;&amp;nbsp;can forward the information to someone in charge of API documentation to cleary things for future matter in the documentation. Happy the problem got solved - have a nice weekend&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/152362"&gt;@dcornelljames&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2020 06:31:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391469#M38641</guid>
      <dc:creator>MichaelC</dc:creator>
      <dc:date>2020-12-05T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot replace custom parameters from single send email API</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391715#M38668</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76423"&gt;@MichaelC&lt;/a&gt; , I alerted the team &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:55:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Cannot-replace-custom-parameters-from-single-send-email-API/m-p/391715#M38668</guid>
      <dc:creator>dennisedson</dc:creator>
      <dc:date>2020-12-07T15:55:31Z</dc:date>
    </item>
  </channel>
</rss>

