We're trying to troubleshoot connecting to Microsoft 365 via Exchange EWS using OAuth on an email trigger. Getting the following in the Log Viewer after the trigger has been running for about 20-30 minutes at a time:
10/17/2022 12:01:21 AM Err ContinueRetryConnect->Error occured: ReceiveMail->Error in Mail Trigger (3), ex: System.Net.WebException: The remote server returned an error: (401) Unauthorized.
We'd like to see the communication that goes back and forth to 365 when that trigger does its inbox check so we can troubleshoot with our O365 support vendor... how can we find this?