Microsoft Office 365 Error: AADSTS50011: The Redirect URI Specified In The Request Does Not Match

We get AADSTS50011 error when running O365 (Office 365) activities. How to solve the AADSTS50011 error?

When using Microsoft Office365 activities, an error is thrown: Error AADSTS50011 - The redirect URI specified in the request does not match the redirect URIs configured for the application .

Resolution: Make sure the redirect URI sent in the request matches one added to the application in the Azure portal. Navigate to documentation Error AADSTS50011 with OpenID authentication: The redirect URI specified in the request does not match to learn more about how to fix this.