Extract the entire contents of a msteams channel

Jason Bernard 21 Reputation points
2020-11-09T12:55:42.21+00:00

I would like to extract the contents (json, xml, csv ...in order of preference) of a msteams channel.
I have used webhooks to post information to the channel but need the data (which was not being saved else where).
It is a bit much to cut and paste...any ideas on how to export or use python to grab it?

I would appreciate any director provided.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,977 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vasil Michev 104K Reputation points MVP
    2020-11-09T14:23:05.98+00:00

    Channel messages can only be accessed via protected APIs. for which you need to request access. Here's the relevant endpoint documentation: https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-1.0&tabs=http

    0 comments No comments

  2. Sharon Zhao-MSFT 25,081 Reputation points Microsoft Vendor
    2020-11-10T05:32:59.2+00:00

    @Jason Bernard ,

    As we are mainly responsible for general issue of Microsoft Teams. Your question which is involved in development is not supported by us.

    You can refer to this article which introduce the channel resource type. It seems helpful to your scenario.

    Meanwhile, this forum is a more appropriate place for Microsoft Teams development. You can get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction.

    Thank you for your understanding.


    If the response is helpful, please click "Accept Answer" and upvote it.

    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 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.