Export live messages out of MS Teams into another Office application - microsoft-graph-api

I have got a question concerning the export of live messages out of MS Teams into antother office application. Is it possible to export messages (live) out of a teams chat into another office application to analyse them there?
I thought about using Microsoft Graph, but I am not sure if MS Graph is the right tool to solve my issue.
If it is what would be the first steps to do so?
Many thanks,
Lennart

Related

Restore Microsoft Teams Channel via Graph API

I have a service which utilises MS Graph API and I'm looking for a way to delete and restore deleted channel(s) using MS Graph API.
To delete a channel I am utilising /teams/{id}/channels/{id} Graph API, however I am struggling to find a way to recover deleted channel.
In the description of above call it is mentioned that data is stored for couple of weeks (21 days since delete) so there should be a way to recover it?
I know it can be done using Teams application, however I would like to do it via Graph API.
I checked below article and Graph documentation but was not able to find suitable solution. Am I missing something or this has not been implemented yet?
https://blogs.technet.microsoft.com/uclobby/2018/08/21/restore-deleted-teams-and-channels-from-microsoft-teams/
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0

How to connectt Skype for Business Online data from Microsoft Graph Explorer

I am trying to start collecting Skype for Business Online data using Microsoft Graph Explorer in order to do my own reporting. Eventually, my goal is to automate this process using API calls and write the return data in my own monitoring database.
I opened a O365 trial account and using graph explorer with my global admin account to generate some SfB reports but having no luck:
SfB Business Activity Report
Am I doing something wrong here?
Also, I believe this query is supposed to return a CSV file. Is there a better way to achieve what I am trying to do?
Thanks,
The API you're using is in beta, and (contrary to the published documentation) seems to only work when:
you provide an output format parameter
that output format is JSON
The call you're trying to make will work as follows: GET https://graph.microsoft.com/beta/reports/getSkypeForBusinessActivityUserDetail(period='D7')?$format=application/json
You're not the only one waiting for these APIs to solidify and include more information. Hope this helps!

Can I create alerts on document folders using MS Graph API?

When you view document folders in a SharePoint online site you have the ability to configure email alerts on folders based on when items are added or deleted. Can I do the same thing via the Microsoft Graph API? If this is not possible now, is there any plan to add this to the API in the near future? The only workaround I have been able to come up with involves using the Delta API to poll for changes periodically, but that requires a lot of processing as the Delta API is not very granular.
You do this using webhooks and registering a subscription against the resource you want to monitor.
See Using webhooks to receive service-to-service notifications for details and examples of how this works.

how to get all tasks from outlook with Microsoft Graph or Office 365 REST API?

I am building a web application that needs to fetch all tasks from an organization that uses Outlook Task. Can this be done with Microsoft Graph or Office 365 REST API?
I haven't found any calls in the documentation of either services that would do something similar to that: https://outlook.office.com/api/v2.0/tenant/tasks
Should I find another approach or is it something that is doable?
Outlook Tasks is available in Preview on Microsoft Graph today:
GET /users/{id|userPrincipalName}/outlook/tasks (Graph Explorer example)
I'm afraid I don't have an ETA for when this will be generally available at the moment. According to the Change Log this functionality was added in April so it is still a somewhat recent addition.
This functionality is also available as part of the Office 365 REST API.
If you're looking for something production ready today, you may need to use this API instead. If possible, I would suggest waiting for Graph. Graph is where all future engineering energy will be focused and is the best long-term integration play.

Create Microsoft team for office group programmatically

I'm creating an office group using Microsoft Graph API. After that I would like to create a Microsoft Team which is associated with the group. I can do this step manually, but I'm wondering if it's also possible to do so via API.
Graph API doesn't seem to support Microsoft Teams yet. Am I correct?
You are correct, Teams is not yet part of the Graph API, nor do we yet have support for creating Teams. Both are on the road map, but I do not have an ETA for you at this time.
Actually you can do this semi-automatically using the beta API on Skype. Here is a GitHub project doing this from PowerShell: https://github.com/sanderdewit/teams-module
This approach is semi-automatically, because you need a user to sign-in once via a pop-up window. And for sure this is not a supported scenario.

Resources