Microsoft Graph API: How to use Get Call Method? - microsoft-graph-api

I'm using the Microsoft Graph API to retrieve information about Microsoft Teams.
Now i want to retrieve information about the call using the method in the documentation below:
https://learn.microsoft.com/en-us/graph/api/call-get?view=graph-rest-1.0&tabs=http
Here is written that i have to use the following url:
GET /communications/calls/{id}
The thing is that i don't know what is the id i need to use because in the documentation is not specified.
I try to use the group id, channel id and personal id of Teams but none of them works. Somebody knows how to use this method?
Thanks

See Properties of call resource type, id is the call id. Read-only.
When you create a call, you will get an id in the response. see the response sample.
When you need to get the call, just put this id value into GET https://graph.microsoft.com/v1.0/communications/calls/{id}.

Related

Slack API - Detecting user in a call?

Is there an endpoint in Slack API to detect a user (AKA me) is in a call? getPresence just returns 'active' and 'away' which is not helpful - I can be active but not in a call. I tried getting user status, that is of no help either
There's no API that will return that information at this time. The calls.info method would return a list of users in a specific call but you'd need to know the call id for that. Something as simple as knowing if any given user is on a call would be a great feature request for the users.getPresence method. Happy to pass that along!

MS Graph: Get all users by manager id

I'm trying to gather all users with a given manager's id.
It seems that MS graph has a bug here.
My query:
https://graph.microsoft.com/v1.0/users?$filter=manager/id eq '0f3b8a2f-8bec-4694-8021-dbfc55eed287'
I expect this query to return all the users that belong to the manager with the given id.
However, this query returns the manager and not the users. But I clearly filter the id of the manager related property and not the user's id.
There's an API specifically for this, List directReports.
You can get the users assigned to the manager with id 0f3b8a2f-8bec-4694-8021-dbfc55eed287 like:
GET /users/0f3b8a2f-8bec-4694-8021-dbfc55eed287/directReports
Another way would be
GET /users/0f3b8a2f-8bec-4694-8021-dbfa55eed297?$expand=directReports

How to get line items from Business Central Web Service (Odata)?

From Microsoft Documentation, to get salesOrderLines, the following http request is needed:
GET businesscentralPrefix/companies({id})/salesOrders({id})/salesOrderLines({salesOrderLineId})
However, it assumes each json object has a unique GUID. But when I try to get Odata, the only thing close to a unique id I get back is "#odata.etag", and this does not allow me to access the salesOrderLines.
Use /salesOrders?$expand=SalesOrderSalesLines

How to get the end screen element with an end_screen_element_id from Youtube API

With a channel reporting job, we can get the end_screen_element_ids for a given video. These IDs look like GUIDs.
The question is : How do we query the Youtube API to get what video/channel/... these end_screen_element_ids points to ?
Thanks!
You may use the reportTypes.list method. This returns a list of report types that the channel or content owner can retrieve. Each item in the list contains an id property, which identifies the report's ID, and you need this value to schedule a reporting job.

Missing property in resourceVisualization in Trending endpoint

The documentation for resourceVisualization resource type (Trending endpoint) says that one of the properties that gets returned as part of the object is type.
However, when I use Graph Explorer to test the endpoint I don't see this property. Is it going to be added soon?
We have that identified and we are working on updating the API schema to have that property available by the end of next week.
Mario

Resources