Error while attempting to fetch activities for a drive item

vikram 21 Reputation points
2022-01-10T02:59:13.507+00:00

I am attempting to fetch the activities for a given item by making a GET to 'https://graph.microsoft.com/v1.0/drives/<driveId>/items/<itemId>/activities'

I get this in the response:

"code":"InternalServerError","message":"The Path property 'drives('<driveId>')/items('<itemId>')/activities' of ODataMessageWriterSetting.ODataUri must end with the navigation property which the contained elements being written belong to.",

Fetching permissions in the same way works fine. "InternalServerError" sounds like a problem on the microsoft side of things

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,587 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,896 Reputation points
    2022-01-11T08:00:19.007+00:00

    Hi @vikram

    The /drives/{drive-id}/items/{item-id}/activities endpoint is still in limited preview and has not yet released an official version. So it does not support v1.0 endpoints and is currently only available to beta endpoints for some tenants. See this link.

    https://graph.microsoft.com/beta/drives/{drive id}/items/{item id}/activities  
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful