python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

Declined event messages not working

Open RandomNameUser opened this issue 5 years ago • 8 comments

It seems that when processing a Declined event message the Event object is not populated at all. It is created, but none of the member fields seem to have any data. As a consequence even basic things like repr don't work, as they depend on a valid start and end date.

From what I can see in Message::get_event() it gets a sensible response in the get call (i.e. 200), and the returned data has an event field, but it's empty. In an accepted event it seems to work, the event has sensible data for the event. I tried messing with the query a bit to see if I could get sensible data, but I don't understand this well enough for that, sorry. The docs make it look like that field should always be set. A little mysterious...

Thanks for all your work!

RandomNameUser avatar Apr 11 '20 17:04 RandomNameUser

After a little more testing it looks like the same thing is happening for MeetingRequest messages. Just FYI.

RandomNameUser avatar Apr 11 '20 18:04 RandomNameUser

@alejcas I've been trying to look at issues where I have some knowledge and create PRs to address them (I'm sure you have noticed). Not sure about this one though, as to what is mean to happen. I'll try to take a look and see if I can figure it out, probably into next week now.

I plan to take a look at some OneDrive stuff next, because at least I've got access to that - though I don't use it myself. Not sure I want to look at SharePoint, I probably have access in my subscription, but I never really liked it when I used it all the time.

Can connect to you on LinkedIn if you want to talk at all.

RogerSelwyn avatar Apr 18 '25 17:04 RogerSelwyn

Just investigating and I can see via graph explorer with ?$expand=microsoft.graph.eventMessage/event on the end of the message query, it gets the event for a meeting invite, but it gets an empty event for the response.

I can see someone had the same problem and resolved it, but not how - https://learn.microsoft.com/en-us/answers/questions/1668369/expand-microsoft-graph-eventmessage-event

RogerSelwyn avatar Apr 19 '25 11:04 RogerSelwyn

OK, I think I'm giving up, I've spent quite some time looking for an alternate method to retrieve the event for a response, but I can't find it.

Personally it looks like a bug in the Graph API.

RogerSelwyn avatar Apr 19 '25 15:04 RogerSelwyn

Can connect to you on LinkedIn if you want to talk at all.

Sure!

alejcas avatar Apr 22 '25 08:04 alejcas

Sure!

Just tried. It won't let me connect unless I know your email so I've guess it....

RogerSelwyn avatar Apr 22 '25 08:04 RogerSelwyn

Just tried. It won't let me connect unless I know your email so I've guess it....

Just hit connect!

https://www.linkedin.com/in/alejandrocasanovas/

alejcas avatar Apr 22 '25 08:04 alejcas

Just tried. It won't let me connect unless I know your email so I've guess it....

Just hit connect!

https://www.linkedin.com/in/alejandrocasanovas/

I tried there, but it asks for your email. You can try the reverse. Mine is easy, firstname @ lastname org uk

RogerSelwyn avatar Apr 22 '25 08:04 RogerSelwyn