Team Chat messages not stored in folder "Team Chat" of the Team Mailbox?

%3CLINGO-SUB%20id%3D%22lingo-sub-1772782%22%20slang%3D%22en-US%22%3ETeam%20Chat%20messages%20not%20stored%20in%20folder%20%22Team%20Chat%22%20of%20the%20Team%20Mailbox%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1772782%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20cannot%20determine%20the%20number%20of%20messages%20in%20Team%20chat%20folder%20of%20the%20team%20mailbox.%20%220%22%20is%20returned%20but%20conversations%20are%20present%20in%20the%20post%20tab%20of%20the%20different%20teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20order%20to%20check%20the%20usage%20of%20the%20chat%2C%26nbsp%3B%20I%20want%20to%20count%20the%20number%20of%20messages%20in%20the%20Team%20chat%20folder%20and%20retrieve%20the%20date%20of%20the%20latest%20message%20sent.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%3CSPAN%3EHowever%20the%20output%20of%20the%20code%20below%20gives%20me%20the%20following%20result%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CP%3E%3CSTRONG%3E0%20Conversation%20History%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E0%20Team%20Chat%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24TeamChatData%20%3D%20(Get-MailboxFolderStatistics%20-Identity%20%228cd0bdf5-7437-4c8f-be7e-ba63b173662d%22%20-IncludeOldestAndNewestItems%20-FolderScope%20ConversationHistory)%0A%0Aforeach%20(%24T%20in%20%24TeamChatData)%20%7B%0AWrite-Host%20%24T.ItemsInFolder%20%24T.Name%0A%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CSPAN%3EIn%20the%20Teams%20Post%20tab%20of%20this%20team%2C%20there%20are%20converstations.%20File%20object%20used%20in%20the%20Team%20chat%20are%20stored%2C%20as%20expected%2C%20in%20the%20Sharepoint%20portal.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EDoes%20anyone%20has%20suggestions%20where%20else%20these%20messages%20could%20be%20stored%3F%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThanks%20in%20advance.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EKind%20regards%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EJ%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1772782%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EConversations%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hello,

 

I cannot determine the number of messages in Team chat folder of the team mailbox. "0" is returned but conversations are present in the post tab of the different teams.

 

In order to check the usage of the chat,  I want to count the number of messages in the Team chat folder and retrieve the date of the latest message sent.

However the output of the code below gives me the following result:

0 Conversation History
0 Team Chat

 

$TeamChatData = (Get-MailboxFolderStatistics -Identity "8cd0bdf5-7437-4c8f-be7e-ba63b173662d" -IncludeOldestAndNewestItems -FolderScope ConversationHistory)

foreach ($T in $TeamChatData) {
Write-Host $T.ItemsInFolder $T.Name
}                                                 

In the Teams Post tab of this team, there are converstations. File object used in the Team chat are stored, as expected, in the Sharepoint portal.

 

 
Does anyone has suggestions where else these messages could be stored?
Thanks in advance.
Kind regards,
J
 
 
 
0 Replies