<?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: API communications batch create results do not preserve order in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/895011#M69813</link>
    <description>&lt;P&gt;This is a problem with pretty much all V3 batch create APIs. There is very little documentation on these batch APIs, and nothing on the ordering or even how to associate the incoming records to the created records. The only workaround I can think of is to create a custom field in the object, send a unique value , and match the response based on that unique value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would expect Hubspot APIs to handle this, but they have some ways to go to achieve API maturity&lt;/P&gt;</description>
    <pubDate>Sun, 17 Dec 2023 18:07:28 GMT</pubDate>
    <dc:creator>Syncari</dc:creator>
    <dc:date>2023-12-17T18:07:28Z</dc:date>
    <item>
      <title>API communications batch create results do not preserve order</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/765037#M61966</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the API&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/crm/v3/objects/communications/batch/update to create multiple objects.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I use the response to save the communication ID to update them later.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;But, the order in the JSON&amp;nbsp;array&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;results&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;is not preserved (I tested with a batch of 3 communications). So I can't save the communication ID.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Is it possible to preserve order in the 'results' attribute of response API ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;(Maybe this issue affects other API endpoints as well?)&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 07 Mar 2023 08:06:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/765037#M61966</guid>
      <dc:creator>NBP</dc:creator>
      <dc:date>2023-03-07T08:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: API communications batch create results do not preserve order</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/765585#M62007</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/113269"&gt;@NBP&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; That set of endpoints does not offer a “sorts” filter or parameter.&amp;nbsp; Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/193060"&gt;@JBeatty&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt;&amp;nbsp; &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/241684"&gt;@ChrisoKlepke&lt;/a&gt;,&amp;nbsp;do you have any workarounds or suggestions for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/113269"&gt;@NBP&lt;/a&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 22:27:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/765585#M62007</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-03-07T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: API communications batch create results do not preserve order</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/895011#M69813</link>
      <description>&lt;P&gt;This is a problem with pretty much all V3 batch create APIs. There is very little documentation on these batch APIs, and nothing on the ordering or even how to associate the incoming records to the created records. The only workaround I can think of is to create a custom field in the object, send a unique value , and match the response based on that unique value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would expect Hubspot APIs to handle this, but they have some ways to go to achieve API maturity&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2023 18:07:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/API-communications-batch-create-results-do-not-preserve-order/m-p/895011#M69813</guid>
      <dc:creator>Syncari</dc:creator>
      <dc:date>2023-12-17T18:07:28Z</dc:date>
    </item>
  </channel>
</rss>

