Skip to main content
lokeshk0623
July 21, 2023
Solved

unable to fetch outlook Calendar

  • July 21, 2023
  • 2 replies
  • 0 views

Am able to get the token generation, after registering the application on azure platform, with the help of client secret and client id and Application tentant Id, but now, when  am trying to read calendar, am not able to as it says 

"error": {
        "code""BadRequest",
        "message""/me request is only valid with delegated authentication flow.",
        "innerError": {
            "date""2023-07-21T12:12:46",
Please let me know, what can be there issue here.
and also when am trying to enter my organization email address instead of me in URL, still getting the below error:
 "error": {
        "code""BadRequest",
        "message""Resource not found for the segment  ********@****.com
    Best answer by lokeshk0623

    so basically with every request you hit for Microsoft graph, you need to delegate permissions of the API, you want to use, for delegate level as well as application level, so you need to have those approvals in place, once done, you can access them.
    referred from: https://graph.microsoft.com/v1.0/users/gokul.parameswaran@yexle.com/calendars

    2 replies

    lokeshk0623
    lokeshk0623AuthorAnswer
    July 24, 2023

    so basically with every request you hit for Microsoft graph, you need to delegate permissions of the API, you want to use, for delegate level as well as application level, so you need to have those approvals in place, once done, you can access them.
    referred from: https://graph.microsoft.com/v1.0/users/gokul.parameswaran@yexle.com/calendars