I´m trying to get an user calendar event with Microsoft Graph beta versión.
I can get calendar info with this request:
https://graph.microsoft.com/beta/users/{user}/calendars/{calendarid}
Then I try to access to specific event through this request
https://graph.microsoft.com/beta/users/{user}/calendars/{calendarid}/events/{eventId}
But I get this error code:
{
"error": {
"code": "NavigationNotSupported",
"message": "Recursive navigation is not allowed after property 'Events' according to the entity schema.",
"innerError": {
"request-id": "2c73c51d-05b0-4499-9420-9247f4c8c576",
"date": "2018-05-23T15:16:44"
}
}
}
Both requests works with Microsoft Graph REST API v1.0
Any help?
The way to get an event (regardless of which calendar it is in) once you have the id is like this:
https://graph.microsoft.com/beta/users/{user}/events/{eventId}
Related
I am trying to get the subject (ex. Maths 1) of an online TEAMS meeting via Microsoft Graph API.
When i send a request to https://graph.microsoft.com/v1.0/communications/callRecords/8f4477a7-f5b2-40ed-a165-95519825c9cg in the response there is no value for the subject of the meeting.
So my next move is to send a request to https://graph.microsoft.com/v1.0/communications/calls/8f4477a7-f5b2-40ed-a165-95519825c9cg because the Graph API documentation has the property 'subject' in the response. When i send this request i get this response:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2021-02-10T12:32:19",
"request-id": "9a81a114-8a58-457b-929v-390bda79669g",
"client-request-id": "9a81a114-8a58-457b-929a-490bda79669g"
}
}
}
with a response status code : 500 Interval Server Error from the Graph API.
I have tried this request with different meeting ids but the result is the same.
My API permissions are these:
API Permissions
I would appreciate it if I had a solution to my problem or some other way to find the subject of the meeting.
The reason why you are getting that error is because you are querying the teams meeting as a resource of type 'call' instead of 'event'.
Please use GET https://graph.microsoft.com/v1.0/users/{id |userPrincipalName}/events/{id} using Calendars.Read Application permission when querying as an application or GET https://graph.microsoft.com/v1.0/me/calendar/events/{id} with the Calendars.Read delegated permissions when querying as a signed-in user.
For further reference, have a look at https://learn.microsoft.com/en-us/graph/api/event-get?view=graph-rest-1.0&tabs=http
I am trying to insert a teams meeting link into our emails that are sent out. I want to call the api to generate a teams meeting link, WHICH I can do. However, how do I update this meeting if the time needs to be changed or if new participants are added? I can't find anything on the Microsoft Graph API documentation.
https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http
Only see get,create,delete options
Currently only create meeting event is exposed by Graph API.
PATCH /beta/me/onlineMeetings/{meetingId} appears to work for me, but /PATCH on the v1.0 endpoint returns an error:
{
"error": {
"code": "NotImplemented",
"message": "PATCH onlineMeeting is only supported in graph beta",
"innerError": {
"date": "2020-07-12T07:50:58",
"request-id": "0a1824d8-e329-452f-bc73-988d1de832ed"
}
}
}
I would like to get changes on a calendar associated to a meeting room.
When I call first the calendarView/delta with the startDateTime and endDateTime, the response is ok and I have the events.
My call is : https://graph.microsoft.com/beta/users/meetingRoomId/calendarView/delta?startDateTime=2000-01-01T00:00:00.000Z&endDateTime=2050-12-31T00:00:00.000Z
When I have the nextLink with the skipToken : https://graph.microsoft.com/beta/users/meetingRoomId/calendar/calendarView/delta?$skiptoken=token
I have the followed error :
{
"error": {
"code": "SyncStateNotFound",
"message": "The sync state root folder is not found.",
"innerError": {
"request-id": "5cab61d2-a254-485b-98ee-190130940307",
"date": "2018-04-19T12:56:51"
}
}
}
I have this error from the code and from the microsoft graph sandbox.
Why not use subscriptions (notification service)? We use it to get updates for room events...
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/subscription
I want to retrieve the calendar of a meeting room.
In order to do that I am using the following method
https://graph.microsoft.com/beta/users/meetingroom#mailadress.com/calendarview?endDateTime=2018-02-13T11:06:03&startDateTime=2018-02-12T11:06:03.
However I am getting this error:
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store.",
"innerError": {
"request-id": "e3401a80-6d31-4ae3-81d3-7a0b43eb7766",
"date": "2018-02-10T11:16:14"
}
}
}
I am using the Microsoft Graph Explorer where I have configured the following permissions :
- Calendars.Read
- Calendars.Read.Shared
- Calendars.ReadWrite
- Calendars.ReadWrite.Shared
I have no issue accessing the calendar of the meeting room through outlook application. What did I miss ?
I am primarily using the .net Microsoft graph client. I can create and change a group calendar's events with the API, but cannot delete them.
I know that my GraphServiceClient has a good user context token.
My code is
await client.Groups[GroupId.ToString()].Events[DeadlineId].Request().DeleteAsync();
I have also tried using an HTTP client "Delete" event to https://graph.microsoft.com/v1.0/groups/{GroupId}/events/{EventId}
The response I get is:
Error Received:
{
"error": {
"code": "ErrorInternalServerError",
"message": "[0x30140102] BodyTag",
"innerError": {
"request-id": "2ab3ad41-b6e2-47d1-88cc-ef3a3640d153",
"date": "2017-06-29T04:08:38"
}
}
}
Am I doing something wrong or is there a problem on Microsoft's end?