<?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 Tickets API search endpoint - sort by updatedAt in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699776#M57374</link>
    <description>&lt;P&gt;I'm trying to use endpoint `POST /crm/v3/objects/tickets/search` and receive list of tickets sorted by updatedAt descending. I've tried many combinations of "sorts" property but my tries seems to be ignored by API. Documentation does not contains so many informations about how "sorts" parameter should be used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyony could give me any clue about that ?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 05:30:55 GMT</pubDate>
    <dc:creator>webcitron</dc:creator>
    <dc:date>2022-09-29T05:30:55Z</dc:date>
    <item>
      <title>Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699776#M57374</link>
      <description>&lt;P&gt;I'm trying to use endpoint `POST /crm/v3/objects/tickets/search` and receive list of tickets sorted by updatedAt descending. I've tried many combinations of "sorts" property but my tries seems to be ignored by API. Documentation does not contains so many informations about how "sorts" parameter should be used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyony could give me any clue about that ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 05:30:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699776#M57374</guid>
      <dc:creator>webcitron</dc:creator>
      <dc:date>2022-09-29T05:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699828#M57378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey &lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041" target="_blank"&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455133" target="_blank"&gt;&lt;SPAN&gt;webcitron&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you try the below curl code&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;curl &lt;A href="https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey=YOUR_HUBSPOT_API_KEY" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/tickets/search?hapikey=YOUR_HUBSPOT_API_KEY&lt;/A&gt; \&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;--request POST \&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;--header "Content-Type: application/json" \&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;--data '{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"sorts": [&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"propertyName": "lastmodifieddate",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"direction": "DESCENDING"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;}'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 07:42:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699828#M57378</guid>
      <dc:creator>ChehakWadhdwa</dc:creator>
      <dc:date>2022-09-29T07:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699979#M57388</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345416"&gt;@ChehakWadhdwa&lt;/a&gt;&amp;nbsp;, thanks a lot of involvement. Please check out below listings. I've tried with 3 different payloads, all of them resulting with same (and not expected) ordering or the tickets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script just executing api call and displaying "updatedAt" property for each returned ticket (its displays them in the order as they came from api):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;$ curl -s --location --request POST '&lt;A href="https://api.hubapi.com/crm/v3/objects/tickets/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/tickets/search&lt;/A&gt;' --header 'Content-Type: application/json' --header 'Authorization: Bearer pat-na1-***' --data-raw '{&lt;BR /&gt;"limit": 5,&lt;BR /&gt;"sorts": [&lt;BR /&gt;{&lt;BR /&gt;"propertyName": "lastmodifieddate",&lt;BR /&gt;"direction": "DESCENDING"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}' | jq '.results[] | .updatedAt'&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2022-09-14T04:09:53.562Z"&lt;BR /&gt;"2022-08-08T09:55:56.104Z"&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2021-10-25T09:27:37.640Z"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ curl -s --location --request POST '&lt;A href="https://api.hubapi.com/crm/v3/objects/tickets/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/tickets/search&lt;/A&gt;' --header 'Content-Type: application/json' --header 'Authorization: Bearer pat-na1-***' --data-raw '{&lt;BR /&gt;"limit": 5,&lt;BR /&gt;"sorts": [&lt;BR /&gt;{&lt;BR /&gt;"propertyName": "updatedAt",&lt;BR /&gt;"direction": "DESCENDING"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}' | jq '.results[] | .updatedAt'&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2022-09-14T04:09:53.562Z"&lt;BR /&gt;"2022-08-08T09:55:56.104Z"&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2021-10-25T09:27:37.640Z"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ curl -s --location --request POST '&lt;A href="https://api.hubapi.com/crm/v3/objects/tickets/search" target="_blank"&gt;https://api.hubapi.com/crm/v3/objects/tickets/search&lt;/A&gt;' --header 'Content-Type: application/json' --header 'Authorization: Bearer pat-na1-***' --data-raw '{&lt;BR /&gt;"limit": 5,&lt;BR /&gt;"sorts": [&lt;BR /&gt;{&lt;BR /&gt;"propertyName": "updatedat",&lt;BR /&gt;"direction": "DESCENDING"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}' | jq '.results[] | .updatedAt'&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2022-09-14T04:09:53.562Z"&lt;BR /&gt;"2022-08-08T09:55:56.104Z"&lt;BR /&gt;"2022-09-14T04:09:53.553Z"&lt;BR /&gt;"2021-10-25T09:27:37.640Z"&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:34:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/699979#M57388</guid>
      <dc:creator>webcitron</dc:creator>
      <dc:date>2022-09-29T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/700451#M57433</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey &lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041" target="_blank"&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455133" target="_blank"&gt;&lt;SPAN&gt;webcitron&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Looking at the results you got :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's fetching the results based on recent results modifies.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please elaborate exactly what you want with the API ? How you want the data to come ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 06:02:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/700451#M57433</guid>
      <dc:creator>ChehakWadhdwa</dc:creator>
      <dc:date>2022-09-30T06:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/701198#M57497</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;, its not. look at updatedAt values which are returned by API (orginal ordering):&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.553Z" (row1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.562Z" (row2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2022-08-08T09:55:56.104Z" (row3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.553Z" (row4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2021-10-25T09:27:37.640Z" (row5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note year and month especially. Expected return should be:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.562Z" (row2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.553Z" (row1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"2022-09-14T04:09:53.553Z" (row4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2022-08-08T09:55:56.104Z" (row3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"2021-10-25T09:27:37.640Z" (row5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;```&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just reminding - im trying to fetch tickets ordered/sorted by updatedAt property value descending&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 09:28:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/701198#M57497</guid>
      <dc:creator>webcitron</dc:creator>
      <dc:date>2022-10-03T09:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/701686#M57526</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey &lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041" target="_blank"&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/455133" target="_blank"&gt;&lt;SPAN&gt;webcitron&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please try using the below property&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"propertyName": "hs_lastmodifieddate",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"direction": "DESCENDING"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 07:30:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/701686#M57526</guid>
      <dc:creator>ChehakWadhdwa</dc:creator>
      <dc:date>2022-10-04T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/703228#M57634</link>
      <description>&lt;P&gt;Yes, thats works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks a lot&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/345416"&gt;@ChehakWadhdwa&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clinking_beer_mugs:"&gt;🍻&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:49:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/703228#M57634</guid>
      <dc:creator>webcitron</dc:creator>
      <dc:date>2022-10-07T08:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/776138#M62721</link>
      <description>&lt;P&gt;doestn work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the response is the same without order.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 13:31:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/776138#M62721</guid>
      <dc:creator>FSoto8</dc:creator>
      <dc:date>2023-03-30T13:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/1059507#M77622</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Did you ever find a solution? The last post was over a year ago. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 22:04:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/1059507#M77622</guid>
      <dc:creator>josie_hill</dc:creator>
      <dc:date>2024-10-23T22:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Tickets API search endpoint - sort by updatedAt</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/1062369#M77786</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/130790"&gt;@josie_hill&lt;/a&gt;&amp;nbsp;I just tested this with my test portal, and I'm getting the expected response. Do you want to share a simple request and response where you are not getting the expected result? Either here or in a new post, and you can tag me there? I'll add mine here:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;I have 12 tickets in my portal going back to 2022&lt;/LI&gt;
&lt;LI&gt;Their last modified date is essentially the same as the created date for most, but it still works for this example&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Request and body (I kept it very simple for this example)&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;POST https://api.hubapi.com/crm/v3/objects/tickets/search&lt;/LI-CODE&gt;&lt;LI-CODE lang="javascript"&gt;{
    "sorts": [
      {
        "propertyName": "hs_lastmodifieddate",
        "direction": "DESCENDING"
      }
    ]
  }&lt;/LI-CODE&gt;
&lt;P&gt;Response&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "total": 12,
    "results": [
        {
            "id": "15816444829",
            "properties": {
                "content": null,
                "createdate": "2024-10-28T22:29:00.321Z",
                "hs_lastmodifieddate": "2024-10-28T22:29:00.967Z",
                "hs_object_id": "15816444829",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "testerr 6"
            },
            "createdAt": "2024-10-28T22:29:00.321Z",
            "updatedAt": "2024-10-28T22:29:00.967Z",
            "archived": false
        },
        {
            "id": "15812399104",
            "properties": {
                "content": null,
                "createdate": "2024-10-28T22:28:50.756Z",
                "hs_lastmodifieddate": "2024-10-28T22:28:51.565Z",
                "hs_object_id": "15812399104",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "testerrr 5"
            },
            "createdAt": "2024-10-28T22:28:50.756Z",
            "updatedAt": "2024-10-28T22:28:51.565Z",
            "archived": false
        },
        {
            "id": "15812399029",
            "properties": {
                "content": null,
                "createdate": "2024-10-28T22:28:44.477Z",
                "hs_lastmodifieddate": "2024-10-28T22:28:45.157Z",
                "hs_object_id": "15812399029",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "testerrr 4"
            },
            "createdAt": "2024-10-28T22:28:44.477Z",
            "updatedAt": "2024-10-28T22:28:45.157Z",
            "archived": false
        },
        {
            "id": "1555709794",
            "properties": {
                "content": null,
                "createdate": "2023-04-13T22:25:41.685Z",
                "hs_lastmodifieddate": "2024-07-31T15:57:50.072Z",
                "hs_object_id": "1555709794",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925265",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 3"
            },
            "createdAt": "2023-04-13T22:25:41.685Z",
            "updatedAt": "2024-07-31T15:57:50.072Z",
            "archived": false
        },
        {
            "id": "1503346867",
            "properties": {
                "content": null,
                "createdate": "2023-03-17T22:27:14.029Z",
                "hs_lastmodifieddate": "2023-03-17T22:27:14.967Z",
                "hs_object_id": "1503346867",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": "Cats and ninjas"
            },
            "createdAt": "2023-03-17T22:27:14.029Z",
            "updatedAt": "2023-03-17T22:27:14.967Z",
            "archived": false
        },
        {
            "id": "1500746070",
            "properties": {
                "content": null,
                "createdate": "2023-03-16T15:49:04.683Z",
                "hs_lastmodifieddate": "2023-03-16T15:49:06.041Z",
                "hs_object_id": "1500746070",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 2"
            },
            "createdAt": "2023-03-16T15:49:04.683Z",
            "updatedAt": "2023-03-16T15:49:06.041Z",
            "archived": false
        },
        {
            "id": "1500746054",
            "properties": {
                "content": null,
                "createdate": "2023-03-16T15:48:45.014Z",
                "hs_lastmodifieddate": "2023-03-16T15:48:46.290Z",
                "hs_object_id": "1500746054",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 1"
            },
            "createdAt": "2023-03-16T15:48:45.014Z",
            "updatedAt": "2023-03-16T15:48:46.290Z",
            "archived": false
        },
        {
            "id": "1478326183",
            "properties": {
                "content": null,
                "createdate": "2023-03-03T21:15:46.531Z",
                "hs_lastmodifieddate": "2023-03-03T21:15:51.870Z",
                "hs_object_id": "1478326183",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Cat Circus—Big top issue"
            },
            "createdAt": "2023-03-03T21:15:46.531Z",
            "updatedAt": "2023-03-03T21:15:51.870Z",
            "archived": false
        },
        {
            "id": "1317382811",
            "properties": {
                "content": null,
                "createdate": "2022-12-13T20:34:07.713Z",
                "hs_lastmodifieddate": "2022-12-13T20:34:09.268Z",
                "hs_object_id": "1317382811",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "2",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": null
            },
            "createdAt": "2022-12-13T20:34:07.713Z",
            "updatedAt": "2022-12-13T20:34:09.268Z",
            "archived": false
        },
        {
            "id": "1317387588",
            "properties": {
                "content": null,
                "createdate": "2022-12-13T20:26:40.691Z",
                "hs_lastmodifieddate": "2022-12-13T20:26:43.223Z",
                "hs_object_id": "1317387588",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "2",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": null
            },
            "createdAt": "2022-12-13T20:26:40.691Z",
            "updatedAt": "2022-12-13T20:26:43.223Z",
            "archived": false
        }
    ],
    "paging": {
        "next": {
            "after": "10"
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;And just for fun, if we flip it and use ASCENDING, here's the response&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "total": 12,
    "results": [
        {
            "id": "1046754424",
            "properties": {
                "content": "This is a test form submission",
                "createdate": "2022-08-11T23:23:54.489Z",
                "hs_lastmodifieddate": "2022-09-14T12:25:22.358Z",
                "hs_object_id": "1046754424",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "New form channel connected"
            },
            "createdAt": "2022-08-11T23:23:54.489Z",
            "updatedAt": "2022-09-14T12:25:22.358Z",
            "archived": false
        },
        {
            "id": "999396896",
            "properties": {
                "content": null,
                "createdate": "2022-07-14T16:08:40.033Z",
                "hs_lastmodifieddate": "2022-10-24T20:09:44.395Z",
                "hs_object_id": "999396896",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": "troubleshoot report"
            },
            "createdAt": "2022-07-14T16:08:40.033Z",
            "updatedAt": "2022-10-24T20:09:44.395Z",
            "archived": false
        },
        {
            "id": "1317387588",
            "properties": {
                "content": null,
                "createdate": "2022-12-13T20:26:40.691Z",
                "hs_lastmodifieddate": "2022-12-13T20:26:43.223Z",
                "hs_object_id": "1317387588",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "2",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": null
            },
            "createdAt": "2022-12-13T20:26:40.691Z",
            "updatedAt": "2022-12-13T20:26:43.223Z",
            "archived": false
        },
        {
            "id": "1317382811",
            "properties": {
                "content": null,
                "createdate": "2022-12-13T20:34:07.713Z",
                "hs_lastmodifieddate": "2022-12-13T20:34:09.268Z",
                "hs_object_id": "1317382811",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "2",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": null
            },
            "createdAt": "2022-12-13T20:34:07.713Z",
            "updatedAt": "2022-12-13T20:34:09.268Z",
            "archived": false
        },
        {
            "id": "1478326183",
            "properties": {
                "content": null,
                "createdate": "2023-03-03T21:15:46.531Z",
                "hs_lastmodifieddate": "2023-03-03T21:15:51.870Z",
                "hs_object_id": "1478326183",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Cat Circus—Big top issue"
            },
            "createdAt": "2023-03-03T21:15:46.531Z",
            "updatedAt": "2023-03-03T21:15:51.870Z",
            "archived": false
        },
        {
            "id": "1500746054",
            "properties": {
                "content": null,
                "createdate": "2023-03-16T15:48:45.014Z",
                "hs_lastmodifieddate": "2023-03-16T15:48:46.290Z",
                "hs_object_id": "1500746054",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 1"
            },
            "createdAt": "2023-03-16T15:48:45.014Z",
            "updatedAt": "2023-03-16T15:48:46.290Z",
            "archived": false
        },
        {
            "id": "1500746070",
            "properties": {
                "content": null,
                "createdate": "2023-03-16T15:49:04.683Z",
                "hs_lastmodifieddate": "2023-03-16T15:49:06.041Z",
                "hs_object_id": "1500746070",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 2"
            },
            "createdAt": "2023-03-16T15:49:04.683Z",
            "updatedAt": "2023-03-16T15:49:06.041Z",
            "archived": false
        },
        {
            "id": "1503346867",
            "properties": {
                "content": null,
                "createdate": "2023-03-17T22:27:14.029Z",
                "hs_lastmodifieddate": "2023-03-17T22:27:14.967Z",
                "hs_object_id": "1503346867",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925262",
                "hs_ticket_category": null,
                "hs_ticket_priority": "HIGH",
                "subject": "Cats and ninjas"
            },
            "createdAt": "2023-03-17T22:27:14.029Z",
            "updatedAt": "2023-03-17T22:27:14.967Z",
            "archived": false
        },
        {
            "id": "1555709794",
            "properties": {
                "content": null,
                "createdate": "2023-04-13T22:25:41.685Z",
                "hs_lastmodifieddate": "2024-07-31T15:57:50.072Z",
                "hs_object_id": "1555709794",
                "hs_pipeline": "19625033",
                "hs_pipeline_stage": "47925265",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "Testerr 3"
            },
            "createdAt": "2023-04-13T22:25:41.685Z",
            "updatedAt": "2024-07-31T15:57:50.072Z",
            "archived": false
        },
        {
            "id": "15812399029",
            "properties": {
                "content": null,
                "createdate": "2024-10-28T22:28:44.477Z",
                "hs_lastmodifieddate": "2024-10-28T22:28:45.157Z",
                "hs_object_id": "15812399029",
                "hs_pipeline": "0",
                "hs_pipeline_stage": "1",
                "hs_ticket_category": null,
                "hs_ticket_priority": null,
                "subject": "testerrr 4"
            },
            "createdAt": "2024-10-28T22:28:44.477Z",
            "updatedAt": "2024-10-28T22:28:45.157Z",
            "archived": false
        }
    ],
    "paging": {
        "next": {
            "after": "10"
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Talk soon! — Jaycee&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2024 22:10:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tickets-API-search-endpoint-sort-by-updatedAt/m-p/1062369#M77786</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-10-29T22:10:00Z</dc:date>
    </item>
  </channel>
</rss>

