Please enable JavaScript.
Coggle requires JavaScript to display documents.
API Sharepoint Search Documents, Sharepoint Search Documents - Coggle…
API 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
[API Success]
[BOT calls API to get Root Site and Team site user has access to]
Root Site ID-
https://graph.microsoft.com/v1.0/sites/root?select=id
Team-site ID-
https://graph.microsoft.com/v1.0/groups/?$filter=displayName
eq {team-site-name}&$select=id
Membership-
https://graph.microsoft.com/v1.0/groups/{groupID}/members?$filter=id
eq '{userID}'
[Site count <=5]
[Pass Root Site ID and team site ID]
Provide your search input:
[Single Line Input Text]
Mandatory*
<btn> Submit
[Submit]
[BOT calls API to search with provided Site IDs]
https://graph.microsoft.com/v1.0/sites/{siteID}/drive/root/search(q='XX
')
[Result Not Found]
1 more item...
[Result Found]
1 more item...
[Site count >5]
[User], you have access to [count] sharepoint sites,
would you like to limit your search?
[Multi select Dropdown menu with list of sites]
<Continue>
[Continue]
[API Failure]
Sorry i had some trouble accessing Sites right now.
Anything else?
Sharepoint Search Documents
[BOT checks db for sharepoint flag in config]
[Flag not present]
flow: API Sharepoint Search Documents
[Flag present]
[GET all sharepoint groups Name/ID from table]
[BOT checks users membership]
https://graph.microsoft.com/v1.0/groups/{groupID}/members?$filter=id
eq '{userID}'
[Result Found]
[GET All site IDs]
[Site count <=5]
[Site count >5]
[User], you have access to [count] sharepoint sites,
would you like to limit your search?
[Multi select Dropdown menu with list of sites]
<Continue>
[Continue]
[No Result Found]
[Use Root Site ID]
https://graph.microsoft.com/v1.0/sites/root?select=id
Provide your search input:
[Single Line Input Text]
Mandatory*
<btn> Submit
[submit]
[BOT calls API to search with provided Site IDs]
https://graph.microsoft.com/v1.0/sites/{siteID}/drive/root/search(q='XX
')
[Result not Found]
No results found for [searchinputhere]
Retry?
<Yes><No>
[Yes]
1 more item...
[No]
1 more item...
[Result Found]
Below are your search results for [searchinputhere]
<Carousel Card with results of each sites>
<Show More Results>
[Show More Results]
2 more items...