<?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: Batch update contacts with custom idProperty: Not working in Ruby client in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/949891#M72223</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That's great news, thanks very much for the update &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 08:58:34 GMT</pubDate>
    <dc:creator>zach_threadint</dc:creator>
    <dc:date>2024-03-26T08:58:34Z</dc:date>
    <item>
      <title>Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/920436#M70991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to batch update contacts by a custom property instead of by Hubspot ID. Things work as expected in CURL, however the same code done through the ruby hubspot client (17.2.0) just quietly doesn't work (returns no results, status="COMPLETE").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code that works in CURL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;curl --request POST \&lt;BR /&gt;--url https://api.hubapi.com/crm/v3/objects/contacts/batch/update \&lt;BR /&gt;--header 'authorization: Bearer my-token' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"inputs": [&lt;BR /&gt;{&lt;BR /&gt;"idProperty": "along_email",&lt;BR /&gt;"id": "test@test.com",&lt;BR /&gt;"properties": {&lt;BR /&gt;"lastname": "Doe",&lt;BR /&gt;"firstname": "John",&lt;BR /&gt;"along_short_name": "My updated name from CURL"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}'&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code that always returns no results in Ruby:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;properties &lt;/SPAN&gt;= {&lt;BR /&gt;  &lt;SPAN&gt;"lastname"&lt;/SPAN&gt;: &lt;SPAN&gt;"Doe"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;"firstname"&lt;/SPAN&gt;: &lt;SPAN&gt;"John"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;"along_short_name"&lt;/SPAN&gt;: &lt;SPAN&gt;"My updated name from Ruby Client"&lt;BR /&gt;&lt;/SPAN&gt;}&lt;BR /&gt;&lt;SPAN&gt;body &lt;/SPAN&gt;= { &lt;SPAN&gt;inputs&lt;/SPAN&gt;: [&lt;BR /&gt;  {&lt;SPAN&gt;idProperty&lt;/SPAN&gt;: &lt;SPAN&gt;"along_email"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;: &lt;SPAN&gt;"test@test.com"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"properties"&lt;/SPAN&gt;: &lt;SPAN&gt;properties&lt;/SPAN&gt;}&lt;BR /&gt;] }&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;api_response &lt;/SPAN&gt;= &lt;SPAN&gt;client&lt;/SPAN&gt;.crm.contacts.batch_api.update(&lt;SPAN&gt;body&lt;/SPAN&gt;: &lt;SPAN&gt;body&lt;/SPAN&gt;)&lt;BR /&gt;puts &lt;SPAN&gt;api_response&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Should I just assume that `idProperty` isn't available for batch updating contacts?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2024 00:33:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/920436#M70991</guid>
      <dc:creator>MBerger29</dc:creator>
      <dc:date>2024-02-10T00:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/920833#M71012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/708018"&gt;@MBerger29&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been able to replicate the issue you are experiencing. The &lt;A href="https://developers.hubspot.com/docs/api/crm/contacts" target="_blank" rel="noopener"&gt;API documentation&lt;/A&gt;&amp;nbsp;certainly makes it seem as though this should be possible with the Ruby API Client, but it doesn't work as expected. It'd be great if someone from HubSpot could take a look at this&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, is there a Ruby package that allows you to construct HTTP requests directly to HubSpot's APIs? I prefer Python, which has the &lt;A href="https://pypi.org/project/requests/" target="_blank" rel="noopener"&gt;&lt;EM&gt;&lt;STRONG&gt;requests&lt;/STRONG&gt;&lt;/EM&gt;&lt;/A&gt; package for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this proves useful. Please let me know if you have any follow-up questions.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 03:02:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/920833#M71012</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-03-05T03:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/922762#M71082</link>
      <description>&lt;P&gt;Thanks for looking, Zach. Yep we could in theory construct a CURL call for just this endpoint, but would be a pain (we're hoping to leverage the retry logic of the ruby client across all endpoints).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like at the minimum there should be an error if this flow isn't supported as opposed to quietly not working (feedback for Hubspot)&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 17:01:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/922762#M71082</guid>
      <dc:creator>MBerger29</dc:creator>
      <dc:date>2024-02-14T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/933763#M71471</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/708018"&gt;@MBerger29&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Just wanted to chime in here that I ran into this exact issue using Node.js / JavaScript, as well. As&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&amp;nbsp;mentioned, it does seem like it should be possible based on the documentation (especially as it works there in the "Node" code editor view)&lt;BR /&gt;&lt;BR /&gt;In my case, I reconstructed the exact call I was trying to make with my code in the documentation to batch update based on custom property with the unique value requirement. This worked using the "Test call" function there. However, when I test the same call in a Custom Coded workflow action, or in VS Code, the call fails with the following error:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "status": "COMPLETE",
  "results": [],
  "numErrors": 1,
  "errors": [
    {
      "status": "error",
      "category": "OBJECT_NOT_FOUND",
      "message": "Could not get some DEAL objects, they may be deleted or not exist. Check that ids are valid.",
      "context": {
        "ids": [
          "100001",
          "100002"
        ]
      }
    }
  ],
  "startedAt": "2024-02-27T16:12:33.882Z",
  "completedAt": "2024-02-27T16:12:33.903Z"
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I copied the input array of objects generated in the docs to a variable in my code and tried that as the input value to double check if my code was just incorrectly constructing the object. I ended up getting the same error using the input from the docs, so it seems like the issue is on their end (or it's not possible yet, which would make the documentation misleading because it works there).&lt;BR /&gt;&lt;BR /&gt;Not sure if there's going to be a resolution to this in the foreseeable future; for now I plan to use the Batch Read endpoint using the custom unique ID property to pull the default Deal IDs, then batch update them using that. Not ideal by any means but it'll work for now.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 16:38:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/933763#M71471</guid>
      <dc:creator>RyanCreveling</dc:creator>
      <dc:date>2024-02-27T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/934227#M71492</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/708018"&gt;@MBerger29&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455473"&gt;@RyanCreveling&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Community!&lt;BR /&gt;&lt;BR /&gt;I'm sorry to hear about your experience regarding this.&lt;BR /&gt;&lt;BR /&gt;I would like to apologize for the frustration, data issues, and business impact this has caused.&lt;BR /&gt;&lt;BR /&gt;I'd like to thank you for sharing your valuable feedback! This means a lot to us.&lt;BR /&gt;&lt;BR /&gt;I have shared it internally to bring more visibility to it and I have asked the team to have a look at the documentation and edit it if necessary.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; for the tag and the API documentation link, much appreciated!&lt;BR /&gt;&lt;BR /&gt;I'll get back to you as soon as I hear from the team, thanks for your patience.&lt;BR /&gt;&lt;BR /&gt;Please let me know if there is anything else I can help with. I'll be delighted to do so!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:22:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/934227#M71492</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-02-28T08:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/949324#M72187</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/708018"&gt;@MBerger29&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455473"&gt;@RyanCreveling&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are well!&lt;BR /&gt;&lt;BR /&gt;Thanks for your patience!&lt;BR /&gt;&lt;BR /&gt;I heard back from the Team and great news: they are just adding this option!&lt;BR /&gt;&lt;BR /&gt;It's not yet available for those languages, but it is coming soon! I don't have a precise timeline for it but they are working on it as we speak!&lt;BR /&gt;&lt;BR /&gt;Have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 13:49:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/949324#M72187</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-03-25T13:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/949891#M72223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That's great news, thanks very much for the update &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 08:58:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/949891#M72223</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-03-26T08:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/973828#M73500</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/708018"&gt;@MBerger29&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455473"&gt;@RyanCreveling&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;I hope that you are all doing well!&lt;BR /&gt;&lt;BR /&gt;Just to let you know that &lt;A href="https://github.com/HubSpot/hubspot-api-ruby/releases/tag/v18.0.0" target="_blank" rel="noopener"&gt;we released an update&lt;/A&gt;&amp;nbsp;(&lt;STRONG&gt;Ruby v.18.0.0&lt;/STRONG&gt;) and this fixed the behavior &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this helps!&lt;BR /&gt;&lt;BR /&gt;Have a lovely day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 11:29:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/973828#M73500</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-05-09T11:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Batch update contacts with custom idProperty: Not working in Ruby client</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/981554#M73864</link>
      <description>&lt;P&gt;Awesome, thanks for the update&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 05:42:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Batch-update-contacts-with-custom-idProperty-Not-working-in-Ruby/m-p/981554#M73864</guid>
      <dc:creator>zach_threadint</dc:creator>
      <dc:date>2024-05-24T05:42:41Z</dc:date>
    </item>
  </channel>
</rss>

