question

Sonali-6504 avatar image
0 Votes"
Sonali-6504 asked Sonali-6504 answered

How I can import team's Channel Messages?

I am trying to Migrate team's Channel Messages.
I am able to read/get channel messages using graph API(v1.0) but how I can write/import it without using Beta API?


I was also trying same using Exchange service to read Hidden folder(Conversation History\Team Chat) where teams chat is stored,
But using Exchange I am unable to find any item in folder call Team Chat.


Is there any way to migrate channel message without using Beta API?
Thanks in advance!

office-teams-windows-itpromicrosoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JimmyYang-MSFT avatar image
0 Votes"
JimmyYang-MSFT answered Sonali-6504 commented

Hi @Sonali-6504

In my experience, you can try to use e-Discovery investigations to search Teams chat messages and Meeting IM conversations. Microsoft Teams data will appear as IM or Conversations in the Excel eDiscovery export output. You can open the .pst file in Outlook to view those messages after export. For more reference, you can refer to:

https://docs.microsoft.com/en-us/microsoftteams/ediscovery-investigation#overview


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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Sonali-6504

Do you have any further issue on this topic?

0 Votes 0 ·

Thank You @JimmyYang-MSFT for your reply ,
My concern is to import/Migrate channel messages
I am following the documentation at: https://docs.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams for using the Graph API to import a Team channel messages.
Each step has worked (create Team, create Channels,) until I try and post a request for the messages associated with a Team ID ,channel ID which is Step Three: Import messages in mention link.

Post : https://graph.microsoft.com/v1.0/teams/{ {TeamID}}/channels/{ {ChannelID}}/messages
returns a Forbidden Error with the following payload.
Code: Forbidden
Message: Forbidden
Inner error:
AdditionalData:
date: 2021-04-02T11:14:13
request-id: 69642fd9-c4cb-4d7a-bdd4-faba88555bd5
client-request-id: 69642fd9-c4cb-4d7a-bdd4-faba88555bd5
ClientRequestId: 69642fd9-c4cb-4d7a-bdd4-faba88555bd5

0 Votes 0 ·
Sonali-6504 avatar image
0 Votes"
Sonali-6504 answered

My Issue is solved,
Issue occurs because of ,after team creation I was assign owners to that team so owners/members can see that created teams,

after I follow given steps as it is mention in given in link :https://docs.microsoft.com/en-us/microsoftteams/platform/graph-api/import-messages/import-external-messages-to-teams
am able to import messages.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.