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

eb service access key is no longer supported as authentication. Please use OAuth

(1) ShareShare
ReportReport
Posted on by 254
Hello everyone!
 
I hope you are doing well!
 
I remember a few years ago, I could create web service and used Odata for my excel and Power BI project. But now I have created a web service (Item Reference page) like the image but I see the error:
 
 
{"error":{"code":"Authentication_InvalidCredentials","message":"Web service access key is no longer supported as authentication. Please use OAuth.
I would appreciate if you could tell me what is the solution?
Thanks in advance
I have the same question (0)
  • Suggested answer
    Ramiz Profile Picture
    597 on at
    Hi,

    You need an O-Auth for accessing web services now.

    Hope this helps.
    https://yzhums.com/20690/
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,441 Super User 2025 Season 2 on at
    Web Service Access Key is deprecated and is no longer supported for authentication in Business Central. Microsoft now mandates the use of OAuth 2.0 for secure authentication.
    Hope this helps: 
     
    Use following to set OAuth2
  • CU07101338-0 Profile Picture
    254 on at
    Thanks for your kind replies!

    I tried to do the steps based on the given link (https://yzhums.com/20690/).
     
    I am not sure about this part of the article:

    Enter the redirect URl of the application, and then choose Configure.
    For example: https://localhost:8080/login
    Anyway, I tried both but unfortunately, I cannot see the page Azure Active Directory Applications in Business Central? or in the user card I cannot see a web service section to put my keys there!

    Does anyone know how to do that?
    Thanks in advance!
  • Suggested answer
    Ramiz Profile Picture
    597 on at
    Hi,

    You can put this URL in the redirect URL of the app.

    https://businesscentral.dynamics.com/OAuthLanding.htm

    In Business Central, search for page Microsoft Entra Applications
  • CU07101338-0 Profile Picture
    254 on at
    Thanks for your time,
     
    Yes, the link is working and I have completed the process.
    but, in a few years ago, I remember I used web service (Odata) for excel and Power BI, but now how can I use the link in Excel for instance? 

     
    Thanks!
  • Suggested answer
    Ramiz Profile Picture
    597 on at
    Hi,

    Excel still has OData and other data sources that you can use. Are you trying to consume Business Central API in excel to make some reports?

  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,441 Super User 2025 Season 2 on at
    Could you elaborate your goal so we can help further.
  • CU07101338-0 Profile Picture
    254 on at
    Thanks for your kind responses! 
    Yes, Excel can support Odata, but Microsoft has changed its process.
    a few years ago, I could use web services like this https://api.businesscentral.dynamics.com/v2.0/942220cb-7074-4cd9-a22e-295996e916a9/Production/ODataV4/ and I noticed Microsoft has changed the procedure. 
    So, I completely proceed the given link steps, but still the link is not working. 
    I still see the same error.

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

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

    The comprehensive guide to using Business Central Excel Report Metadata with refreshable APIs – BC Development Notebook

    Best Regards
    Gerardo

  • Suggested answer
    Ramiz Profile Picture
    597 on at
    Hi @CU07101338-0,

    You need to login with the Organizational account. Click on it and then signed it with the account and it will work.


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,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans