Please enable JavaScript.
Coggle requires JavaScript to display documents.
Create Folder in Sharepoint - Coggle Diagram
Create Folder in Sharepoint
[Bot calls API to list sharepoint team-site and root-site]
https://graph.microsoft.com/v1.0/sites/root
https://graph.microsoft.com/beta/groups/?$filter=createdByAppId
eq '00000003-0000-0ff1-ce00-000000000000'&$select=displayName
[Site Found]
Where do you want to create a new folder?
<btn> [Root Site Name]
<btn> Team Site
[Root Site Name]
https://graph.microsoft.com/v1.0/sites/root?select=id
Provide site path to create folder, if provided blank, will use root level.
eg- Documents/abc/abc, just pass abc/abc
[Single Input Line]
Enter Folder Name to be created:
[Single Input Line]
Mandatory*
<btn> Submit
[submit]
[BOT calls API to create new folder]
POST
https://graph.microsoft.com/v1.0/sites/{SiteID}/drive/items/root:/abc/abc:/children
[API Success]
[Foldername] has been created at [path]
1 more item...
[API Failure]
Looks like there was some problem, i have notified support team about this.
1 more item...
[Team Site]
[BOT checks user membership]
https://graph.microsoft.com/v1.0/groups/?$filter=displayName
eq 'personal-team'&$select=id
https://graph.microsoft.com/v1.0/groups/{groupID}/members?$filter=id
eq '{userID}'
[Result Found]
[username], please select site name where you want to create folder:
[Dropdown menu with Sitename]
<sitename1>
<sitename2>
<sitename3>
...
<btn> Submit
[BOT calls API to get site ID]
https://graph.microsoft.com/v1.0/sites/{domain}.sharepoint.com:/sites/{sitename}?$select=id
[submit]
[No result Found]
Looks ike you dont have access to any site
Anything else?
[Site Not Found]
Sorry i cant find any sites
Anything else?