How to restore the Files/Attachments added to Channels in Teams when a Team is deleted permanently?

DeveloperTeams 20 Reputation points
2024-05-17T11:28:26.6866667+00:00

Hi Microsoft Team,

I have attached few Files and Folders in Channel's Files Tab and I have deleted a Team permanently by deleting the group from recycle bin which also deletes the SharePoint site created for that particular group. I have restored the Teams and channels through Graph API and the File tab is created in Channel which is a built-in default tab which is empty by default and has a newly created default SharePoint site. But i want to restore the files/attachments that were present in Teams before deleting. Is there any alternative solution or API to restore so that i can add those files to Tab?

The data that we are backing up are as below and we are using the same data to add a tab in the channel, but since the data is already deleted from SharePoint for that particular group even after restoring the tabs we are not able to see the file content as the newly generated SharePoint site is empty by default.

Image

Another question is, Is there an API/alternative solution to validate whether the file that we are using in Teams is already deleted in SharePoint or not? Because this data helps us to provide some information to user.

Please kindly help with a detailed technical solution asap.

Thanks

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,389 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,101 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,041 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,767 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.
2,967 questions
{count} votes