Forum Discussion
Örjan Andersson
Feb 10, 2017Brass Contributor
Following O365 Sites API
Ref this post : https://techcommunity.microsoft.com/t5/Office-365-Groups/Following-O365-Group-Sites-excluded-in-API/td-p/28494. I have the same need for an API endpoint to retrieve all sites ...
Brent Ellis
Feb 10, 2017Silver Contributor
We made the same modification and shifted to using this url, like you mentioned, not really formally documented, but there is a ton that isnt. This was the best (only?) option we were able to find.
url : _spPageContextInfo.webAbsoluteUrl + "/_vti_bin/homeapi.ashx/sites/followed?mostRecentFirst=true&start=0&count=100&fillSiteData=true",
We created a web part for our intranet homepage that shows these sites
- Mirko RiestererOct 31, 2018Copper Contributor
Is there any option that can be passed in the url to text-filter the results?
I ask, because your screenshot shows a search box.
Or are you filtering the results after the api response?
- Sigi Van GinhovenJun 26, 2017Copper Contributor
Brent Ellis and Örjan Andersson what a great solution! I'm looking for some time for this one.
Is there a (small) chance to get the code for this webpart you use?
Thanks,
Sigi
- Örjan AnderssonJun 28, 2017Brass Contributor
I can send you the React Component + "service" that returns the "followed sites". The React component refers to other libraries so not very easy to send full working code. My implementation just display a list and is not that fancy as Brent Ellis implementation for filtering and paging. That was not required for me :-) See example below.
- Örjan AnderssonFeb 13, 2017Brass Contributor
Thanks. I think we go for the same option for now. :-) Nice finding!