sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Get followed documents not working anymore

Open Rafaelki opened this issue 6 years ago • 6 comments

The endpoint _/api/social.following/my/followed(types=2) is returning sites (ActorType=2) instead of documents (ActorType=1). types=4 also returns sites only types=6 is returning sites and documents

According to documentation, types allows bitwise combinations where Users = 1, Documents = 2, Sites = 4, Tags = 8.

This was working fine until 2 weeks ago when something was changed. Has this change been properly communicated? Is the /_api/social.following endpoint still supported? I am aware of this announcement (https://developer.microsoft.com/en-us/office/blogs/upcoming-api-changes-to-sharepoint-social-feed-apis-and-following/) but it doesn't make sense to mess with this endpoint until there is an alternative (Microsoft Graph doesn't have a way to retrieve followed documents).


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Rafaelki avatar May 05 '20 12:05 Rafaelki

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar May 05 '20 12:05 msft-github-bot

@Rafaelki After looking for alternatives myself yesterday I found that there is a Graph endpoint for following documents, albeit not sites as far as I can see. Maybe you can use /following for sites and graph for documents? I'm hoping to implement this myself.

https://docs.microsoft.com/en-us/graph/api/drive-list-following?view=graph-rest-1.0&tabs=http https://docs.microsoft.com/en-us/graph/api/driveitem-follow?view=graph-rest-1.0&tabs=http

Edit: Actually it seems they may both be out of beta: https://docs.microsoft.com/en-us/graph/api/sites-list-followed?view=graph-rest-1.0&tabs=http https://docs.microsoft.com/en-us/graph/api/site-follow?view=graph-rest-1.0&tabs=http

siljemda avatar May 06 '20 06:05 siljemda

Thank you @siljemda for your quick answer. At this point, I am only interested in Followed documents and I need exactly the same documents that appear under "Docs I'm following" in https://[YOUR TENANT]-my.sharepoint.com/personal/[USER_LOGON]/Social/FollowedContent.aspx.

The endpoint /me/drive/following is not returning any results for me.

I have several clients that are using my megamenu (application customizer for modern sites, control in masterpage for classic sites) which display this information, and they are very upset that suddenly this information is not available.

Rafaelki avatar May 06 '20 09:05 Rafaelki

@JeremyKelley ... possible change in REST API behavior?

andrewconnell avatar May 09 '20 12:05 andrewconnell

Dupe of #5630

andrewconnell avatar May 09 '20 12:05 andrewconnell

Closing this issue as a dupe. Please refer to our wiki for more details: Issue List Labels: status:duplicate

msft-github-bot avatar May 09 '20 12:05 msft-github-bot