<?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 I want to create folder next inside folder need to create subfolders. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-create-folder-next-inside-folder-need-to-create/m-p/119331#M32859</link>
    <description>&lt;P&gt;Please share Rest api code for creating folder and sub folders using java?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Education&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SSC&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Professional&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kyc&lt;/P&gt;&lt;P&gt;Here education is parent folder and remaining three are subfolders .I need code please share ASAP.&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jul 2021 12:13:17 GMT</pubDate>
    <dc:creator>rajeev7842</dc:creator>
    <dc:date>2021-07-24T12:13:17Z</dc:date>
    <item>
      <title>I want to create folder next inside folder need to create subfolders.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-create-folder-next-inside-folder-need-to-create/m-p/119331#M32859</link>
      <description>&lt;P&gt;Please share Rest api code for creating folder and sub folders using java?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Education&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SSC&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Professional&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Kyc&lt;/P&gt;&lt;P&gt;Here education is parent folder and remaining three are subfolders .I need code please share ASAP.&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 12:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-create-folder-next-inside-folder-need-to-create/m-p/119331#M32859</guid>
      <dc:creator>rajeev7842</dc:creator>
      <dc:date>2021-07-24T12:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: I want to create folder next inside folder need to create subfolders.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-create-folder-next-inside-folder-need-to-create/m-p/119332#M32860</link>
      <description>&lt;P&gt;AFAIK, It is not possible to create the folders and subfolders in one go via any rest apis. However, please the below rest api which can be used to create folders:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/content-services/5.2/develop/rest-api-guide/folders-files/#create-a-folder" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/5.2/develop/rest-api-guide/folders-files/#create-a-folder&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{id}/children" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/{id}/children&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;id&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;can be either one of the constants&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;-root-&lt;/CODE&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;-shared-&lt;/CODE&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;-my-&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or an Alfresco Node Identifier (e.g. 444be4a6-5693-4d10-af4b-b55448fe4f97). The POST data defines the folder metadata and looks like in this example:&lt;/P&gt;
&lt;DIV class="copy-pane"&gt;
&lt;DIV class="tooltip-dropdown"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="hljs json"&gt;{
  &lt;SPAN class="hljs-attr"&gt;"name"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"My Folder"&lt;/SPAN&gt;,
  &lt;SPAN class="hljs-attr"&gt;"nodeType"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"cm:folder"&lt;/SPAN&gt;,
  &lt;SPAN class="hljs-attr"&gt;"properties"&lt;/SPAN&gt;: {
    &lt;SPAN class="hljs-attr"&gt;"cm:title"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"My Folder"&lt;/SPAN&gt;,
    &lt;SPAN class="hljs-attr"&gt;"cm:description"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string"&gt;"My new folder"&lt;/SPAN&gt;
  }
}&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you would have to create the folder and subfolders in one go, you would have to &lt;A href="http://ecmarchitect.com/alfresco-developer-series-tutorials/webscripts/tutorial/tutorial.html" target="_self" rel="nofollow noopener noreferrer"&gt;create your custom webscript&lt;/A&gt; to handle your specific requirement. In your &lt;A href="https://github.com/jpotts/alfresco-developer-series/tree/master/webscripts/webscripts-tutorial" target="_self" rel="nofollow noopener noreferrer"&gt;webscript&lt;/A&gt; you can include the code to create folders/subfolders based on the path value passed.&lt;/P&gt;
&lt;P&gt;See the detailed solution here:&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-create-directory-structure-using-java-api/m-p/303068/highlight/true#M21989" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-create-directory-structure-using-java-api/m-p/303068/highlight/true#M21989&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 12:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-create-folder-next-inside-folder-need-to-create/m-p/119332#M32860</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-07-26T12:39:52Z</dc:date>
    </item>
  </channel>
</rss>

