<?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 Folder structure creation under specific path in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111232#M31063</link>
    <description>&lt;P&gt;Hi There , I have requirement for creating folder structure periodically using scheduler. Scheduler configrued to execute a script , script will create document in specific folder ,&amp;nbsp; My root folder shown below&amp;nbsp; image . I need to create a folder '2020' under 'claim' folder&amp;nbsp; using Alfresco Javascript API.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FolderStruct.JPG" style="width: 501px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/403iD72EBBDE2746B0B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Question is&amp;nbsp; : -&lt;/P&gt;&lt;P&gt;1- How do i navigate to 'claim' using javascript API.&amp;nbsp; I have tried following script&lt;/P&gt;&lt;P&gt;var envSubFolder = companyhome.childByNamePath("CLAIM");&lt;/P&gt;&lt;P&gt;var claimPath&amp;nbsp; = envSubFolder.displayPath&lt;/P&gt;&lt;P&gt;'claimPath' always return 'PATH/Company Home'&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How will&amp;nbsp; i navigate to&amp;nbsp; 'Document/Buisness Documents/Claim' and create a child folder under 'Claim' folder ? Any blog or link is highly apprecirated .&lt;/P&gt;&lt;P&gt;My folder structure shows below.&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 09:49:47 GMT</pubDate>
    <dc:creator>brijeshnk</dc:creator>
    <dc:date>2020-01-29T09:49:47Z</dc:date>
    <item>
      <title>Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111232#M31063</link>
      <description>&lt;P&gt;Hi There , I have requirement for creating folder structure periodically using scheduler. Scheduler configrued to execute a script , script will create document in specific folder ,&amp;nbsp; My root folder shown below&amp;nbsp; image . I need to create a folder '2020' under 'claim' folder&amp;nbsp; using Alfresco Javascript API.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FolderStruct.JPG" style="width: 501px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/403iD72EBBDE2746B0B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Question is&amp;nbsp; : -&lt;/P&gt;&lt;P&gt;1- How do i navigate to 'claim' using javascript API.&amp;nbsp; I have tried following script&lt;/P&gt;&lt;P&gt;var envSubFolder = companyhome.childByNamePath("CLAIM");&lt;/P&gt;&lt;P&gt;var claimPath&amp;nbsp; = envSubFolder.displayPath&lt;/P&gt;&lt;P&gt;'claimPath' always return 'PATH/Company Home'&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How will&amp;nbsp; i navigate to&amp;nbsp; 'Document/Buisness Documents/Claim' and create a child folder under 'Claim' folder ? Any blog or link is highly apprecirated .&lt;/P&gt;&lt;P&gt;My folder structure shows below.&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 09:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111232#M31063</guid>
      <dc:creator>brijeshnk</dc:creator>
      <dc:date>2020-01-29T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111233#M31064</link>
      <description>&lt;P&gt;Check out this previous post and see if it provides the answers you need.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-create-folder-under-a-specific-site-and-library-using/td-p/190705" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/how-to-create-folder-under-a-specific-site-and-library-using/td-p/190705&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:59:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111233#M31064</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-29T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111234#M31065</link>
      <description>&lt;P&gt;Thanks for the reponse , But i am looking for Javascript API samples&amp;nbsp; .&amp;nbsp; Link&amp;nbsp; mentioned is&amp;nbsp; regarding REST API to create folder.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:23:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111234#M31065</guid>
      <dc:creator>brijeshnk</dc:creator>
      <dc:date>2020-01-29T14:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111235#M31066</link>
      <description>&lt;P&gt;Does this help? I am trying to find some Javascript that I have used.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.npmjs.com/package/alfresco-js-api#create-folder" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.npmjs.com/package/alfresco-js-api#create-folder&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111235#M31066</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-29T14:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111236#M31067</link>
      <description>&lt;P&gt;I am not sure this helps, but it was attached to a rule on a folder ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;document.properties['fn:ReportName']=rname;&lt;/P&gt;
&lt;P&gt;// function to create folder structure&lt;BR /&gt;function createFolder(parentNode, folderName, folderTitle) &lt;BR /&gt;{&lt;BR /&gt;var newFolder = parentNode.childByNamePath(folderName);&lt;BR /&gt;logger.log("Folder exists " + newFolder);&lt;BR /&gt;if (newFolder == null)&lt;BR /&gt;{&lt;BR /&gt;// create the folder for the first time&lt;BR /&gt;logger.log("Creating a new folder: " + folderName);&lt;BR /&gt;newFolder = parentNode.createFolder(folderName);&lt;BR /&gt;if(folderTitle != null)&lt;BR /&gt;{&lt;BR /&gt;logger.log("title: " + folderTitle);&lt;BR /&gt;newFolder.properties["cm:title"] = folderTitle;&lt;BR /&gt;newFolder.save();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;return newFolder;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;var parentNode = document.parent;&lt;BR /&gt;var higherParent = parentNode.parent;&lt;BR /&gt;var reportsNode = higherParent.childByNamePath("Reports");&lt;/P&gt;
&lt;P&gt;//var reportNodeRef = "workspace://SpacesStore/f5b8dac7-ba6b-4a12-9655-cfe33d9b3307"&lt;BR /&gt;//var parentNode = search.findNode(reportNodeRef);&lt;BR /&gt;//parentNode = createFolder(parentNode, reportID);&lt;/P&gt;
&lt;P&gt;// create folder for reportID with title long name&lt;BR /&gt;parentNode = createFolder(reportsNode, reportID, rname);&lt;BR /&gt;// create folder for date&lt;BR /&gt;parentNode = createFolder(parentNode, rdate, null);&lt;/P&gt;
&lt;P&gt;document.save();&lt;BR /&gt;document.move(parentNode);&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111236#M31067</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2020-01-29T14:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111237#M31068</link>
      <description>&lt;P&gt;I understand , this is for creating folders in Alfresco Repo . My requirement is more to create a folder under&amp;nbsp; Share . Under Sire / Document Library&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Script which i am executing is currently creating folders under repo . I can see that when i logged in as Admin . Under repository all the folders are created .&lt;/P&gt;&lt;P&gt;Is there any difference in Repo Folder structure and Alfresco Share Folder under Site/Document Library ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 15:54:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111237#M31068</guid>
      <dc:creator>brijeshnk</dc:creator>
      <dc:date>2020-01-29T15:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Folder structure creation under specific path</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111238#M31069</link>
      <description>&lt;P&gt;Solved it , using following path&lt;/P&gt;&lt;P&gt;&lt;SPAN class="comment-copy"&gt;companyhome.childByNamePath("Sites/YourSite/documentLibrary/BusinessDocument/CLAIM")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have just ignored the 'Site' path .&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 14:05:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/folder-structure-creation-under-specific-path/m-p/111238#M31069</guid>
      <dc:creator>brijeshnk</dc:creator>
      <dc:date>2020-01-30T14:05:21Z</dc:date>
    </item>
  </channel>
</rss>

