01-29-2020 08:17 PM
Hi there ,
can someone please help me to find Javascript API for creating folder under site/document library/documents .
When I execute createFolder API it always creates folders under repository.
Apart from name , I can see one more parameter in createFolder Javascript API , does that helps me to create folder under document library / documents folder ?
Example
01-30-2020 05:53 AM
"userhome" is the root place where you are creating the folder. In your case, as you are using admin user, that means "repository".
Hope this sample helps you:
http://www.contcentric.com/create-folders-and-sub-folders-on-uploading-a-csv-file-in-alfresco/
01-30-2020 06:06 AM
Solved , following script is what i used
companyhome.childByNamePath("Sites/YoutSite/documentLibrary/BusinessDocument/CLAIM")
01-30-2020 05:53 AM
"userhome" is the root place where you are creating the folder. In your case, as you are using admin user, that means "repository".
Hope this sample helps you:
http://www.contcentric.com/create-folders-and-sub-folders-on-uploading-a-csv-file-in-alfresco/
01-30-2020 06:06 AM
Solved , following script is what i used
companyhome.childByNamePath("Sites/YoutSite/documentLibrary/BusinessDocument/CLAIM")
01-30-2020 06:27 AM
Glad you have a solution. Also thanks for posting your update - this will help others who have the same issue.
Explore our Alfresco products with the links below. Use labels to filter content by product module.