Hi, I am trying to create automations for my work. I want to know if the sharepoint tool will allow me to create folders (like google drive) before I ask for sharepoint permissions. I see that the tool has a create item option, but is that the same as a folder?
1 Like
Dear @Collin Hope everything is good with you.
Can you please share more idea regarding your point as this will help to understand your idea better.
Happy to help…
Hi kuldlp! I have a certain file structure that I want to create in sharepoint.
Example:
01 Main
02 Files
03 Archive
I had the same question and I found out that the existing nodes for SharePoint only work with files, not folders.
To do this, you need to go for a “HTTP Resquest” node.
So you need to do something that looks like :
| Parameters | Value |
|---|---|
| HTTP Method | POST |
| URL | https://YOURINSTANCE.sharepoint.com/sites/YOURSITENAME/_api/web/folders |
| Authentication | Microsoft OAuth2 API |
| Headers | Add headers. See below. |
| Body Content | JSON |
| Body | {"__metadata":{"type":"SP.Folder"},"ServerRelativeUrl":"/sites/YOURSITENAME/Document Library/NewFolderName"} |
Headers
-
Key:
Accept
Value:application/json;odata=verbose -
Key:
Content-Type
Value:application/json;odata=verbose
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.