question

VedantDesai-1990 avatar image
0 Votes"
VedantDesai-1990 asked saldana-msft edited

[UPGRADING] API from 'outlook.office.com' to 'graph.microsoft.com'

Hi There,

Let me explain to you the use case

We are using your calendar API for our appointment integration, there was an announcement Outlook Calendar REST API https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/calendar-rest-operations#delete-calendars .

So we decide to migrate our application in order to support new API changes (graph.microsoft.com)

During the migration, we found out that the " authorization token" which is generated by using old API is no longer valid for graph API(newly created API's).

Can you please suggest to us how we can reuse the authorization token?

I appreciate your time ; taken while reading

Thanks in advance!




microsoft-graph-calendarmicrosoft-graph-users
· 3
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.

Hello @VedantDesai-1990 are you able to reproduce the issue using postman/graph explorer? Would you share the error message you get when trying to make a request to graph using the older token - and confirm that you have granted permissions to access ms graph to the application requesting access.

Please let me know if this helps.

0 Votes 0 ·

Yes I have provided the permission, please find the attached screen shot

93586-screenshot-2021-05-04-at-34746-pm.png


0 Votes 0 ·

Hi Diana,

I could able to resolve this issue with passing one more parameter scope in request body


Thanks
Vedant Desai

0 Votes 0 ·
VedantDesai-1990 avatar image
0 Votes"
VedantDesai-1990 answered VedantDesai-1990 edited

Need to add one more parameter pass one more parameter in request body called scope based older scopes.
Vedant

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.

VedantDesai-1990 avatar image
0 Votes"
VedantDesai-1990 answered

Thanks for updated. Please find the attached screen shot

93304-screenshot-2021-04-30-at-60626-pm.png




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.