on miscrosoft graph api they provide v1.0 and v2.0
with v1.0 we used code as they provided on doc, but it does not work and we are not able to access token.
and everywhere they just mentioned all apis that are in v1.0 there is no example of adding calendar event with v2.0.
infect i have used their postman collection and used that one for generating token.
its generated token successfully.
but when i used api that get my calendar events its returns me
{
"error": {
"code": "OrganizationFromTenantGuidNotFound",
"message": "The tenant for tenant guid 'f3fd3de8-d438-4470-b351-5a7dde989db8' does not exist.",
"innerError": {
"oAuthEventOperationId": "10aaa007-edfb-4d36-ab46-d68e51af1e28",
"oAuthEventcV": "bFc6s7xHD3sZPpSDf6Ve5Q.1.1",
"errorUrl": "https://aka.ms/autherrors#error-InvalidTenant",
"requestId": "41ca535c-2339-4e95-8915-2f1cdda88231",
"date": "2024-06-10T06:12:02"
}
}
}
i have searched lots of example and documents but i don’t get any solution.
at the end i found that token which i have generated is correct one but when i call any calendar addd or get event api its gives me this error.
i have added all full permission to the app for the calendars.
It should add event to calendar