<?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: Retrieve notes associated with contact in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647883#M54071</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65759"&gt;@jaysonb&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have two options here:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Get the associated note ids on the contact&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations/v3" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/associations/v3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/associations/contact/note/batch/read

{"inputs": [{
"id": "457501"
}]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which will return:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{ "status": "COMPLETE", "results": [ { "from": { "id": "457501" }, "to": [ { "id": "22570614037", "type": "contact_to_note" }, { "id": "22570614134", "type": "contact_to_note" } ] } ], "startedAt": "2022-06-10T18:00:15.317Z", "completedAt": "2022-06-10T18:00:15.338Z" }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then batch get the note properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/notes" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/notes&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/objects/notes/batch/read

{"inputs": [
{"id": "22570614037"},
{"id": "22570614134"}
], "properties":["hs_note_body"]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which will return the details of the notes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Post the search api&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/objects/notes/search

{"filters":
[{"propertyName":"associations.contact","operator":"EQ","value":"457501"}],
"properties":["hs_note_body"]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which will return the details of the notes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may seem like option 2 is clearly better, but the search api has a seperate 4 per second api limit(seperate from all other requests). While the other two requests share the same 10 or 15(tier depending) api limit of all other requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 18:12:44 GMT</pubDate>
    <dc:creator>JBeatty</dc:creator>
    <dc:date>2022-06-10T18:12:44Z</dc:date>
    <item>
      <title>Retrieve notes associated with contact</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647866#M54069</link>
      <description>&lt;P&gt;I need to retrieve all notes associated with a contact id. I am using Integromat + Custom API Call, easy to experiment with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hubspot engagement note documentation is hard for me to follow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I put the contact id?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.hubapi.com/crm/v3/objects/notes?limit=10&amp;amp;properties=hs_note_body&amp;amp;associations=contact&amp;amp;archived=false&amp;amp;hapikey=YOUR_HUBSPOT_API_KEY" target="_blank" rel="noopener"&gt;https://api.hubapi.com/crm/v3/objects/notes?limit=10&amp;amp;properties=hs_note_body&amp;amp;associations=contact&amp;amp;archived=false&amp;amp;hapikey=YOUR_HUBSPOT_API_KEY&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 17:56:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647866#M54069</guid>
      <dc:creator>jaysonb</dc:creator>
      <dc:date>2022-06-10T17:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve notes associated with contact</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647883#M54071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65759"&gt;@jaysonb&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have two options here:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Get the associated note ids on the contact&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/associations/v3" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/associations/v3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/associations/contact/note/batch/read

{"inputs": [{
"id": "457501"
}]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which will return:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{ "status": "COMPLETE", "results": [ { "from": { "id": "457501" }, "to": [ { "id": "22570614037", "type": "contact_to_note" }, { "id": "22570614134", "type": "contact_to_note" } ] } ], "startedAt": "2022-06-10T18:00:15.317Z", "completedAt": "2022-06-10T18:00:15.338Z" }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then batch get the note properties&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/notes" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/notes&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/objects/notes/batch/read

{"inputs": [
{"id": "22570614037"},
{"id": "22570614134"}
], "properties":["hs_note_body"]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which will return the details of the notes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Post the search api&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/api/crm/search" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/crm/search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Post /crm/v3/objects/notes/search

{"filters":
[{"propertyName":"associations.contact","operator":"EQ","value":"457501"}],
"properties":["hs_note_body"]}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which will return the details of the notes.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may seem like option 2 is clearly better, but the search api has a seperate 4 per second api limit(seperate from all other requests). While the other two requests share the same 10 or 15(tier depending) api limit of all other requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:12:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647883#M54071</guid>
      <dc:creator>JBeatty</dc:creator>
      <dc:date>2022-06-10T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve notes associated with contact</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647896#M54073</link>
      <description>&lt;P&gt;Dude. Thank You!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didnt see any of this in the documentation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got your first option at least working in seconds. You put me on the right track!!!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:25:09 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Retrieve-notes-associated-with-contact/m-p/647896#M54073</guid>
      <dc:creator>jaysonb</dc:creator>
      <dc:date>2022-06-10T18:25:09Z</dc:date>
    </item>
  </channel>
</rss>

