Please Make sure your Microsoft Office 365 integration is working Error: Invalid refresh token, please sign in again |
Please Make sure your Microsoft Office 365 integration is working Error: Code: InvalidAuthenticationToken Message: CompactToken Validation failed with reason code: 80049228. Inner error: AdditionalData: date: |
Please Make sure your Microsoft Office 365 integration is working Error: invalid_grant |
Please review the list of errors
|
Please review the list of errors
|
The above errors generally indicate that the Office 365 API has not been set up correctly in Azure or SmartDocs. For example, Invalid Grant usually means a permission error where one or more app registration permissions are not enabled.
Re-establish the Office 365 API connection
Go to Setup > Configuration > Integration.
Locate the Office 365 API in the list.
Click the Edit button.
Use the API Key (Application Client ID) and Account Key (Value of the Client Secret) from your Microsoft Azure account. NOTE: You may need to create a new Client Secret to obtain the Value.
Confirm the API URL https://login.microsoftonline.com/common/v2.0
Click Connect to Office 365 to test the connection.
If you need to send emails before fixing the API, delete the Office365 API from SmartDocs so the system temporarily reverts to the centralised mailbox (hub.ddslive).
The most common cause of these errors is that the person setting up the integration did not log out of Azure before connecting SmartDocs to Office 365.
Incorrect email address used after reconnecting
If SmartDocs starts sending from your email address instead of the nominated mailbox:
Ensure you logged out of Azure before Step 9 of the setup instructions.
Delete the Office 365 API in SmartDocs.
Ensure you have saved the Application (Client) ID and Value of the Client Secret.
Fully log out of Azure—closing the window is not enough.
Reconnect the API again while logged out of Azure.
Tip:
Use an Incognito window when logging into SmartDocs so that the correct Microsoft login screen appears.
A video is provided in the original article showing the correct logout position in Azure.
“I can’t sign into the nominated mailbox”
If you see an error while attempting to give access to the nominated mailbox, check for URL errors in Step 2 of the setup instructions. Ensure there are no spaces or spelling issues.
The article includes:
A setup video
Step‑by‑step instructions
A document containing the full Office 365 setup guide
A video on common setup mistakes
MFA considerations
If you enable MFA on your Office365 mailbox, you must reconnect the API Integration in SmartDocs and enter the verification code.
