Hello Everyone,
I had an strange issue. I am calling Microsoft Graph API from SharePoint Designer 2013 Workflow. I am successful to get the access_token, but when I used this token to call graph uri I am facing below error:
RequestorId: 7efb6ad4-bc80-3351-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ArgumentException: JsonWebToken.Issuer != clientId@realm at Microsoft.Activities.Messaging.SendHttpRequest.OnReceiveResponse(NativeActivityContext context, Bookmark bookmark, Object value) at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context, Bookmark bookmark, Object value) at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) Exception from activity SendHttpRequest HttpGet Switch<String> Sequence Microsoft.SharePoint.WorkflowServices.Activities.CallHTTPWebService Call Graph Sequence Flowchart Sequence ftg.WorkflowXaml_e8d8be20_476d_4f06_9b9f_f755783ea29d
To get token I am calling: https://login.microsoftonline.com/5dfd4cfb-a749-4e84-b7f4-d3656896cee3/oauth2/v2.0/token
To get user mailbox setting using Microsoft graph api I am using : https://graph.microsoft.com/v1.0/users/******@kxxxxsharepoint.onmicrosoft.com/mailboxSettings/automaticRepliesSetting
Above url works on https://www.xxxx.it/
Thanks
[Personal Information removed by MSFT]