question

SalokyaSandip-9499 avatar image
0 Votes"
SalokyaSandip-9499 asked SalokyaSandip-9499 published

User calendarView response attributes for 'subject' & 'bodyPreview' are showing 'Organizer name' and 'empty' respectively, which is not correct information

User calendarView response attributes for 'subject' & 'bodyPreview' are showing 'Organizer name' and 'empty' respectively, which is not correct information
'https://graph.microsoft.com/v1.0/users/conferenceRoomEmailId/calendarView/?startDateTime=2021-05-31T22:23:00Z&endDateTime=2021-06-02T00:00:00Z'
Response:
"subject": "Organizer Name ",
"bodyPreview": "",
For above Graph permission is given as calendar.Read.Shared.


now same compare with own calendarView the response is coming correctly
'https://graph.microsoft.com/v1.0/me/calendarView/?startDateTime=2021-05-31T22:23:00Z&endDateTime=2021-06-02T00:00:00Z'
Response:
"subject": "demo test ",
"bodyPreview": "testing graph API",



microsoft-graph-calendar
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is still an existing issue - I'm receiving the exact same now.

@SalokyaSandip-9499 did you ever resolve the issue?

0 Votes 0 ·

Hi Alex, this is almost 1 year from now. That is the behavior of APIs when you use for other user or when you use for your own. if you are using outlook you can see calendar view for your own not others. this is the same behavior in graph apis too

'https://graph.microsoft.com/v1.0/users/emailId/calendarView/' -> it is not displaying the details because of security reason may be.
https://graph.microsoft.com/v1.0/me/calendarView/ -> where as it is displaying.

if you need users calendersView here user means two thing
1. the actual user email id
2. conference room email id
the response is always like below
"subject": "Organizer Name ",
"bodyPreview": ""

how ever you need to use me/calendarView/ to get the complete details. here me mean you need to pass the User accessToken.
you can think how you can use both api one after another based on the business need. or you can combine them in single response, not recommended due to performance

you need to check whether you have configured delegate or Application & consents.

0 Votes 0 ·

0 Answers