Forum Discussion
avinash1239
Feb 07, 2020Copper Contributor
SPFX WebPart consuming Graph api to display events is not working in IE11
I have created SPFX Webpart which displays calendar events using Graph API. It is working in Chrome but not in IE11 Im getting error (in the attachment) in IE11 when trying to display upcoming e...
avinash1239 can you share the error details, not just the message, and also the line of code where that is happening (if it doesn't contain anything confidential)?
avinash1239
Feb 11, 2020Copper Contributor
var currentDate = 'end/Datetime ge 2020-02-11T00:00:00.000'
msgraphclient.api('/me/calendar/events')
.version("v1.0")
.filter(currentDate)
.orderby("start/dateTime")
.top(3)
.get( (error:any,eventsResponse:any,rawResponse?:any)=>{
const calendarEvents:MicrosoftGraph.Event[]=eventsResponse.value;
console.log(calendarEvents);
});
If I remove the filter condition ,its working fine
- Feb 11, 2020Just to validate, do other requests to graph from your code work from IE?
Is the eventsResponse object exactly the same (same properties) when executing from IE and a different browser?
It doesn't seem to