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
Related
When trying to make a request to the graph API endpoint for getting staff availability info on MS Bookings I keep receiving the below error which returns status code 500. I had followed the guide here and also decoded my access token and verified I had the right permissions.
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2022-07-25T08:21:46",
"request-id": "aa302590-9a6e-47a4-a5ac-51a12ef5e72e",
"client-request-id": "aa302590-9a6e-47a4-a5ac-51a12ef5e72e"
}
}
}
I also encountered the same error in graph explorer.
Well this seemed to work for me when I changed the timeZone value on the request payload from my local time zone to 'UTC'. So my request payload was changed as below
However same error persists on graph explorer - guessing its because application permissions are not currently supported on graph explorer
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}
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 attempting to create a new list item in SharePoint Online using the [beta] Microsoft Graph endpoint. The goal is to call Microsoft Graph from an Outlook Add-in but the problem persists on Postman.
When I call the endpoint as per the documentation I get the following error message:
{
"error": {
"code": "unauthenticated",
"message": "The caller is not authenticated.",
"innerError": {
"request-id": "bb094f39-71c9-4c7d-9d9b-913cc9622baf",
"date": "2017-08-08T11:32:02"
}
}
}
I'm using ADAL JS to fetch the authentication token and I initialized my AuthenticationContext with my tenantID. My app has the following permissions: offline_access, Sites.Read.All, Sites.ReadWrite.All, User.Read
2nd Edit - more details on readItem
I use the https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items endpoint with the {site-id} of my desired site from /sites and the {list-id} of the list from /sites/{site-id}/lists but this is the empty response I get:
{
"#odata.context": "https://graph.microsoft.com/...",
"value": []
}
If I try to to add /{item-id} to my original call to access specific item I receive this response:
{
"error": {
"code": "itemNotFound",
"message": "The specified list was not found",
"innerError": {
"request-id": "6e7ccae3-3aee-4dbb-ae3e-de61250478e0",
"date": "2017-08-09T13:13:33"
}
}
}
Which doesn't make sense because I can retrieve valid information about the list if i make the call without /items/..
Any and all input appreciated :) I'll gladly provide more code, this is all I deemed relevant and didn't want to overcrowd the post.
might be that you actually don't have an item with that id, since https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items/1 works for me.
test the id's you really have by just https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items and each item returns it's id.
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?