web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error Message: Could Not Get Access Token

(4) ShareShare
ReportReport
Posted on by 96
Hello,
I am looking for some help in understanding this error and how to resolve?
 
 

"Email - OAuth Client"(CodeUnit 4507).TryGetAccessTokenInternal - Email - Outlook REST API by Microsoft
"Email - OAuth Client"(CodeUnit 4507).GetAccessToken - Email - Outlook REST API by Microsoft
"Email - Outlook API Helper"(CodeUnit 4509).Send line 11 - Email - Outlook REST API by Microsoft
"Microsoft 365 Connector"(CodeUnit 4503).Send line 2 - Email - Microsoft 365 Connector by Microsoft
"Send Email"(CodeUnit 8890).OnRun(Trigger) line 25 - System Application by Microsoft
"Email Dispatcher"(CodeUnit 8888).SendEmail line 22 - System Application by Microsoft
"Email Dispatcher"(CodeUnit 8888).OnRun(Trigger) line 20 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).Send line 41 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).Send line 4 - System Application by Microsoft
"Email Impl"(CodeUnit 8900).Send line 7 - System Application by Microsoft
Email(CodeUnit 8901).Send line 2 - System Application by Microsoft
"iPay API Helper"(CodeUnit 70436539).SendNotification line 101 - iPayments Credit Card & Collections by iSolutions
"iPay Process Transaction"(CodeUnit 70436535).ProcessAPI line 211 - iPayments Credit Card & Collections by iSolutions
"iPay Transaction Create HPP"(Page 70436576).OnInsertRecord(Trigger) line 148 - iPayments Credit Card & Collections by iSolutions

 
 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at
    Hi,
     
    You posted the question in the general forum, but when the error shows codeunits, I do assume this is about Business Central or NAV, so I moved the question to the correct forum for you.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,603 Super User 2025 Season 2 on at
    The error "Could Not Get Access Token" indicates that the system failed to retrieve an OAuth access token for the integration with Microsoft 365 (Outlook). This issue typically arises due to authentication or configuration problems.
  • CU30071507-3 Profile Picture
    6 on at

    Hi,
    I’m encountering the same issue. Have any solution
     please share it with me, as it would be helpful. Getting this in Business central.

    Error:

    "Email - OAuth Client"(CodeUnit 4507).TryGetAccessTokenInternal - Email - Outlook REST API by Microsoft "Email - OAuth Client"(CodeUnit 4507).GetAccessToken - Email - Outlook REST API by Microsoft "Email - Outlook API Helper"(CodeUnit 4509).Send line 11 - Email - Outlook REST API by Microsoft "Microsoft 365 Connector"(CodeUnit 4503).Send line 2 - Email - Microsoft 365 Connector by Microsoft "Send Email"(CodeUnit 8890).OnRun(Trigger) line 25 - System Application by Microsoft "Email Dispatcher"(CodeUnit 8888).SendEmail line 22 - System Application by Microsoft "Email Dispatcher"(CodeUnit 8888).OnRun(Trigger) line 20 - System Application by Microsoft "Email Impl"(CodeUnit 8900).Send line 41 - System Application by Microsoft "Email Impl"(CodeUnit 8900).Send line 4 - System Application by Microsoft "Email Impl"(CodeUnit 8900).Send line 7 - System Application by Microsoft Email(CodeUnit 8901).Send line 2 - System Application by Microsoft "eShop-ePay Functions"(CodeUnit 70009600).SendCaptureEmail line 83 - ePay Credit Card & ACH Payments by Dynamics eShop Inc. "eShop-ePay Functions"(CodeUnit 70009600).InsertTransaction line 207 - ePay Credit Card & ACH Payments by Dynamics eShop Inc. "eShop-ePay WebService"(CodeUnit 70009602).PayInvoice line 269 - ePay Credit Card & ACH Payments by Dynamics eShop Inc

    Thank you.

  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    OAuth 2.0 Client Credential Grant for Dynamics 365 Business Central - Microsoft Q&A

    Best Regards
    Gerardo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans