<?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: Getting last node id with REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/getting-last-node-id-with-rest-api/m-p/146324#M38752</link>
    <description>&lt;P&gt;The request for Search API is:&lt;/P&gt;&lt;PRE&gt;curl -X POST "http://localhost/alfresco/api/-default-/public/search/versions/1/search" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"query\": {    \"language\": \"afts\",    \"query\": \"TYPE:'cm:content'\"  },  \"paging\": {    \"maxItems\": 1,    \"skipCount\": 0  },  \"sort\": [    {      \"type\": \"FIELD\",      \"field\": \"cm:created\",      \"ascending\": false    }  ]}"&lt;/PRE&gt;&lt;P&gt;The query from this request is:&lt;/P&gt;&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "TYPE:'cm:content'"
  },
  "paging": {
    "maxItems": 1,
    "skipCount": 0
  },
  "sort": [
    {
      "type": "FIELD",
      "field": "cm:created",
      "ascending": false
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;It's just a draft for the direction to moving on. Check the properties and make a closer query string.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 19:12:41 GMT</pubDate>
    <dc:creator>fedorow</dc:creator>
    <dc:date>2022-10-21T19:12:41Z</dc:date>
    <item>
      <title>Getting last node id with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-last-node-id-with-rest-api/m-p/146323#M38751</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using rest API and I'm able to work with nodes as soon as I have his ID ..&lt;/P&gt;&lt;P&gt;but in that new case I would like to retrieve, with the REST API, the doc id of the last document that has been created&lt;/P&gt;&lt;P&gt;Could someone help achieve this result ?&lt;/P&gt;&lt;P&gt;thnaks !&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 11:56:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-last-node-id-with-rest-api/m-p/146323#M38751</guid>
      <dc:creator>JC83</dc:creator>
      <dc:date>2022-10-21T11:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting last node id with REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/getting-last-node-id-with-rest-api/m-p/146324#M38752</link>
      <description>&lt;P&gt;The request for Search API is:&lt;/P&gt;&lt;PRE&gt;curl -X POST "http://localhost/alfresco/api/-default-/public/search/versions/1/search" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{  \"query\": {    \"language\": \"afts\",    \"query\": \"TYPE:'cm:content'\"  },  \"paging\": {    \"maxItems\": 1,    \"skipCount\": 0  },  \"sort\": [    {      \"type\": \"FIELD\",      \"field\": \"cm:created\",      \"ascending\": false    }  ]}"&lt;/PRE&gt;&lt;P&gt;The query from this request is:&lt;/P&gt;&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "TYPE:'cm:content'"
  },
  "paging": {
    "maxItems": 1,
    "skipCount": 0
  },
  "sort": [
    {
      "type": "FIELD",
      "field": "cm:created",
      "ascending": false
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;It's just a draft for the direction to moving on. Check the properties and make a closer query string.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 19:12:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/getting-last-node-id-with-rest-api/m-p/146324#M38752</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-10-21T19:12:41Z</dc:date>
    </item>
  </channel>
</rss>

