Categories
Microsoft Graph

How to export Microsoft Teams chats

Looking to export chats within Microsoft Teams? Exporting chats from Teams is an oft-requested feature, but at the moment there’s no out of the box functionality available for end users.

If you’re an end user

If you don’t have admin rights, at present your options are limited for exporting chats from Teams especially while using a work Office 365 account.

If you’re using a personal Microsoft account with Teams, you may be able to export your messages following the steps listed here.

For work accounts, one option is to setup a workflow using Microsoft Flow to call the Microsoft Graph API and convert individual chats to HTML or a PDF file.

An alternative is to call the Graph API endpoints to retrieve messages and conversations yourself as part of your own script/program, although that has a higher degree of complexity when compared to using a tool such as Microsoft Flow. These endpoints are also in beta.

You could also open the Microsoft Teams website in your browser (Chrome or Edge) and use a full page screenshot extension to capture a conversation. Note however that you’ll need to manually scroll back through the chat to ensure that the full history is shown.

If you’re an admin

The options are still quite limited, but you can try and use the eDiscovery tools available in Office 365 to retrieve messages from channels.

Categories
Microsoft Graph

What is the Microsoft Graph?

Ever heard someone mention the Microsoft Graph and not known what it is? In this article, we’ll dive deeper into what the graph is and what it can provide you access to.

What is the Microsoft Graph?

In a nutshell, the Microsoft Graph is designed to be a one-stop shop (ie a single endpoint) for interacting with the Microsoft suite of products. For now it’s limited to only a subset of Microsoft’s product range, but Microsoft has grand ambitions for continuing to grow this over time.

Delve, Excel, Microsoft Bookings, Microsoft Teams, OneDrive, OneNote, Outlook/Exchange, Planner, and SharePoint as well as many enterprise and mobility services are currently supported.

The key difference between the Microsoft Graph and Microsoft’s previous service-specific APIs is that the Graph is designed around user scenarios and is independent of the service that customers may interact with.

For example, where previously you may have directly called anOutlook API to access a user’s calendar, using the Graph you simply interact with Calendar data directly without caring about the service.

One side-effect of the Graph is that instead of each Microsoft product having its own platform-specific SDK, you can use one SDK to access them all. You can find a full list of the SDKs here, but platforms include iOS, Android, .NET, PHP, Ruby and Python.

Does the API use GraphQL?

No – while the “Microsoft Graph” name may confuse some, the API itself is a normal REST API and doesn’t use GraphQL at this point in time.

Can anyone use the API or do you need to be a partner?

Anyone can sign up to use the Graph API for free.Many of the customer scenarios around email, contacts and calendars are available for use in production apps today.

Keep in mind that some APIs are still in beta (such as The ones backed by Microsoft Booking) and as such shouldn’t be used in production apps yet.