Please enable JavaScript.
Coggle requires JavaScript to display documents.
Upload file in Sharepoint - Coggle Diagram
Upload file 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 upload file?
<btn> [Root Site Name]
<btn> Team Site
[Root Site]
https://graph.microsoft.com/v1.0/sites/root?select=id
Provide existing/ new site path to upload file, if provided blank, will use root level.
eg- Documents/abc/abc, just pass abc/abc
[Single Input Line]
<btn> Submit
[Submit]
Please click on paperclip at the bottom by the typing bar and select the file to attach
[User clicks paperclip and selects file]
[BOT calls API to get drive ID and upload file]
https://graph.microsoft.com/v1.0/sites/{SiteID}/drive
https://graph.microsoft.com/v1.0/drives/{driveID}/root:/{abc/abc/file}:/content
2 more items...
[Team Site]
[BOT checks user membership]
https://graph.microsoft.com/v1.0/groups/?$filter=displayName
eq {'site-name'}&$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 upload:
[Dropdown menu with Sitename]
<sitename1>
<sitename1>
<sitename1>
....
<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?