Please enable JavaScript.
Coggle requires JavaScript to display documents.
Sharepoint Search Documents - Coggle Diagram
Sharepoint Search Documents
[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 search in?
<btn> [Root Site Name]
<btn> Team Site
[Root Site Name]
https://graph.microsoft.com/v1.0/sites/root?select=id
Provide your search input:
{Single Line Input Text}
Mandatory*
<Submit>
[Submit]
[BOT calls API to search]
https://graph.microsoft.com/v1.0/sites/{siteID}/drive/root/search(q='XX
')
[Result Found]
Below are your search results for [searchinputhere]
Note- Ill show only top 10 results
<Carousel card>
Name: [name]
Web Url: [webUrl]
Size: [size]
Created By: [createdBy:email]
Last Modified By: [lastModifiedBy:email]
Last Modified DateTime: [lastModifiedDateTime]
Anything else?
[No result Found]
No results found for your input
Retry?
<btn> Yes
<btn> No
[No]
1 more item...
[Yes]
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 and your search query:
[Dropdown menu with Sitename]
<sitename1>
<sitename2>
<sitename3>
.....
[Single Line Input text]
Mandatory*
<btn> Submit
[BOT calls API to get site ID]
https://graph.microsoft.com/v1.0/sites/{domain}.sharepoint.com:/sites/{sitename}?$select=id
[No result Found]
Looks ike you dont have access to any site
Anything else?
[No Site found]
Sorry i couldnt find any sites
Anything else?