<?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: Get All Notes for a ticket in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/795101#M64083</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65759"&gt;@jaysonb&lt;/a&gt;&amp;nbsp;just curious, did the solution&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/430961"&gt;@aaylsworth&lt;/a&gt;&amp;nbsp;outlined work for your use case?&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 16:40:28 GMT</pubDate>
    <dc:creator>laurabren</dc:creator>
    <dc:date>2023-05-17T16:40:28Z</dc:date>
    <item>
      <title>Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/594590#M51644</link>
      <description>&lt;P&gt;Hey all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to get a list of all the notes, along with their hs__note_body, or the body_preview (to pull the note message into our internal systems). I've been been looking over/sending requests to the Ticket/Notes/Engagements API's. So far I've only been able to do this by:&lt;BR /&gt;&lt;BR /&gt;1) hitting&amp;nbsp;&lt;A href="https://api.hubapi.com" target="_blank" rel="noopener"&gt;https://api.hubapi.com&lt;/A&gt;&lt;SPAN&gt;/crm/v3/objects/tickets/{{ticketId}}?hapikey={{KEY_HERE}}&amp;amp;associations=engagments&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to pull ticket Details and its associations to notes, example response below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "id": "...",
    "properties": {
....
    },
    "associations": {
        "engagements": {
            "results": [
                {
                    "id": "engagementId1",
                    "type": "ticket_to_engagement"
                },
                {
                    "id": "engagementId2",
                    "type": "ticket_to_engagement"
                },
                {
                    "id": "engagementId3",
                    "type": "ticket_to_engagement"
                },
                {
                    "id": "engagementId4",
                    "type": "ticket_to_engagement"
                }
            ]
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then using the engagementIds from the above response to hit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&lt;A href="https://api.hubapi.com/engagements/v1/engagements/{{EngagmeentID}}?hapikey={{KEY_HERE}}" target="_blank" rel="noopener"&gt;https://api.hubapi.com/engagements/v1/engagements/{{EngagmeentID}}?hapikey={{KEY_HERE}}&lt;/A&gt;&amp;nbsp;to pull data for that 1 note (based on its engagementID) to get its&amp;nbsp;&lt;SPAN&gt;bodyPreview. Example Below:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "engagement": {
......
        "source": "CRM_UI",
        "allAccessibleTeamIds": [],
        "bodyPreview": "hi",
        "queueMembershipIds": [],
        "bodyPreviewIsTruncated": false,
        "bodyPreviewHtml": "&amp;lt;html&amp;gt;\n &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;\n &amp;lt;body&amp;gt;\n &amp;lt;p&amp;gt;hi&amp;lt;/p&amp;gt;\n &amp;lt;/body&amp;gt;\n&amp;lt;/html&amp;gt;"
    },
    "associations": {
        "contactIds": [],
        "companyIds": [],
        "dealIds": [],
        "ownerIds": [],
        "workflowIds": [],
        "ticketIds": [
            1234
        ],
        "contentIds": [],
        "quoteIds": []
    },
    "attachments": [],
    "metadata": {
        "body": "&amp;lt;p&amp;gt;hi&amp;lt;/p&amp;gt;"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would have to do this call several times, for every unique ticketId I wanted to gather Note body information from.&lt;BR /&gt;&lt;BR /&gt;I haven't seen a batch "get all notes and their details, given a ticketId" endpoint - there's got to be a better way to do the above? this is the closest thing that I've seen in the forums, but it doesn't appear to be what we're looking for&lt;BR /&gt;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Getting-Latest-Notes-In-Tickets/m-p/571049#M50703" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/Getting-Latest-Notes-In-Tickets/m-p/571049#M50703&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 20:50:26 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/594590#M51644</guid>
      <dc:creator>vplatform</dc:creator>
      <dc:date>2022-03-14T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/594864#M51651</link>
      <description>&lt;P&gt;hi vplatform&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can directly get the notes using notes&amp;nbsp; engaments&amp;nbsp; API i.e.&amp;nbsp;&lt;STRONG class=""&gt;GET&lt;CODE class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" data-content="true"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;/crm/v3/objects/notes&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;refer to = https://developers.hubspot.com/docs/api/crm/notes,&amp;nbsp;it already have the params&amp;nbsp;&lt;SPAN&gt;hs__note_body which you want , you dont have&amp;nbsp; to calll a seperate API to achieve this&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps! If we were able to answer your query, kindly help the community by marking it as a solution. Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG class=""&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 08:08:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/594864#M51651</guid>
      <dc:creator>ChehakWadhdwa</dc:creator>
      <dc:date>2022-03-15T08:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/595029#M51658</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345416"&gt;@ChehakWadhdwa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I don't want to get a random list of all the notes possible (say we have 1,000 tickets created in our dashboard, then your above solution to just hit&amp;nbsp;GET/crm/v3/objects/notes&amp;nbsp; would retrieve a paginated dump of all notes that exist, regardless of a specific ticketId). I want to specifiy a &lt;STRONG&gt;ticketId&lt;/STRONG&gt; in the request above, and &lt;STRONG&gt;get a list of all notes for that ticketId&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 13:49:54 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/595029#M51658</guid>
      <dc:creator>vplatform</dc:creator>
      <dc:date>2022-03-15T13:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/647884#M54072</link>
      <description>&lt;P&gt;No response either? Everyone just points to the API docs. Trying to do this with contacts/deals. I want to get all notes associated with a contact_id.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:12:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/647884#M54072</guid>
      <dc:creator>jaysonb</dc:creator>
      <dc:date>2022-06-10T18:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/677410#M55631</link>
      <description>&lt;P&gt;I recently used the&amp;nbsp;&lt;STRONG&gt;/crm/v3/objects/notes/search&lt;/STRONG&gt; endpoint to get a lost of notes associated with a certain custom objectId. Should be able to modify it for your use case.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// /crm/v3/objects/notes/search
{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "hs_attachment_ids",
          "operator": "EQ",
          "value": "&amp;lt;&amp;lt;ticketId&amp;gt;&amp;gt;"
        }
      ]
    }
  ],
  "properties": [
    "hs_note_body"
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 17:44:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/677410#M55631</guid>
      <dc:creator>aaylsworth</dc:creator>
      <dc:date>2022-08-08T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/795101#M64083</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/65759"&gt;@jaysonb&lt;/a&gt;&amp;nbsp;just curious, did the solution&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/430961"&gt;@aaylsworth&lt;/a&gt;&amp;nbsp;outlined work for your use case?&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 16:40:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/795101#M64083</guid>
      <dc:creator>laurabren</dc:creator>
      <dc:date>2023-05-17T16:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/851849#M67578</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/430961"&gt;@aaylsworth&lt;/a&gt;&amp;nbsp;what will be the&amp;nbsp;propertyName?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returning&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"total"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"results"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&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;even the data is there&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Sep 2023 18:40:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/851849#M67578</guid>
      <dc:creator>Mahfuz1</dc:creator>
      <dc:date>2023-09-19T18:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/851851#M67580</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/322603"&gt;@laurabren&lt;/a&gt;&amp;nbsp;no.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 18:40:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/851851#M67580</guid>
      <dc:creator>Mahfuz1</dc:creator>
      <dc:date>2023-09-19T18:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/852527#M67619</link>
      <description>&lt;P&gt;Try this works my end&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;//https://api.hubapi.com/crm/v3/objects/notes/search

{
  "filterGroups": [
    {
      "filters": [
        {
          "propertyName": "associations.ticket",
          "operator": "EQ",
          "value":"YOUR TICKET ID"
        }
      ]
    }
  ],
  "properties": ["hs_note_body"]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 16:54:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/852527#M67619</guid>
      <dc:creator>psymon25</dc:creator>
      <dc:date>2023-09-20T16:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/852574#M67620</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/458459"&gt;@psymon25&lt;/a&gt;&amp;nbsp;. It worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 17:48:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/852574#M67620</guid>
      <dc:creator>Mahfuz1</dc:creator>
      <dc:date>2023-09-20T17:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get All Notes for a ticket</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/1042407#M76694</link>
      <description>&lt;P&gt;This worked!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 04:53:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Get-All-Notes-for-a-ticket/m-p/1042407#M76694</guid>
      <dc:creator>VGlobal</dc:creator>
      <dc:date>2024-09-18T04:53:56Z</dc:date>
    </item>
  </channel>
</rss>

