Subscribe to Change notification for files and folders in a channel in MS-teams

Admin@8tdr7h 1 Reputation point
2022-09-19T06:41:20.607+00:00

Hi,

We want use Change notification API to get a notification when a file/folder is added within a channel in a team.

The resource - 'teams/{teamsId}/channels/{channelId}/filesFolder' is not available for subscription.

Is there any other way to get change notifications for files/folders in a channel?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,774 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,186 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nivedipa-MSFT 3,006 Reputation points Microsoft Vendor
    2022-09-19T08:07:39.793+00:00

    There is no way to get a notification when a file/folder is added within a channel in a team.

    You can get the notification for Get all files folder in channel using below resource path.
    Changes to channels in all teams:

    /teams/getAllChannels  
    

    Changes to channel in a specific team:

    /teams/{id}/channels  
    

    You can refer below document for getting the notification for Teams channel resource.
    https://learn.microsoft.com/en-us/graph/teams-change-notification-in-microsoft-teams-overview
    https://learn.microsoft.com/en-us/graph/api/resources/channel?view=graph-rest-1.0#methods

    Thanks,
    Nivedipa


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.