How to create folder in share point i try to use find files and folders but it is not available now then i try to use for each file or folder but it is throwing error “advanced search is not when using personal microsoft accounts or using Application ID” even though i have passed application id and use simple search but it is throwing the same error
Use a work or school Microsoft account instead of a personal account. Ensure your Azure AD application has SharePoint API permissions like Sites.ReadWrite.All. Use the HTTP Request activity to call the SharePoint REST API. Use the endpoint POST https://<site_url>/_api/web/folders to create the folder.
i have given authentication type as application id and secret i cant able to show the screenshot its in the client server error it is showing is “caller do not have the permission to perform the action” when i used create folder
it was the permission issue now i can able to create the folder in sharepoint, but if we again run that it throws error “specified item name already exists” how can i overwrite the same folder name if we give the option autorename it will rename it any solution
glad it helped and you resolved the previous error
now for same name there is no option as such but you can use find files/folders first to check if the folder exists and then if not create else dont or change name and create
Unfortunately, SharePoint does not support direct folder overwrite. The best approach is to check if the folder exists and use “Create folder” with the “Auto Rename” option to avoid renaming, but it will not overwrite the existing folder directly without deletion.
check below link:
Here is my use i have 2 transaction in the 1 st transaction i need to download some documents from one website after i download all this i need to upload in the sharepoint, like One specific folder is always there in the Sharepoint, inside that folder i need to create folder as Now.ToString(“MMM”)_Now.ToString(“yyyy”) inside that folders i need to create sub folder TransactionName/Documents inside that documents folder i need to upload some files this will work for the 1st transaction but when it come to the second transaction it will throw error at create folder this part Now.ToString(“MMM”)_Now.ToString(“yyyy”) is there is any other approach i can do if i use folder exists also how can i take the output of the folder that i have created
You can use Get File or Folder activity, which is part of the UiPath.MicrosoftOffice365.Activities package, to interact with both OneDrive and SharePoint, allowing you to retrieve files and folders from either location.