Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

API reply - Access is denied to company

(1) ShareShare
ReportReport
Posted on by 7

Hello, 

We try to execute an API call using OUTH2.0. This call was initially impelemented using Basic authentication and worked for about a year.

The URL is:

api.businesscentral.dynamics.com/.../company=10020

I get: 

"Exception (OdataException):response.text='{\"error\":{\"code\":\"Internal_DataNotFoundFilter\",\"message\":\"Access is denied to company \\'10020\\'.  CorrelationId:  f79f8ecd-b0e4-4842-b460-fa112846e929.\"}}': response.status_code=400"

I am guessing there is something to do with permission missing in BC365 - does anyone have any idea?

Thanks!!

  • Suggested answer
    API reply - Access is denied to company
    Hi,
    Did you find the solution?
    I have two companies working with Web service, but I did a new one, and I can't connect, It's appearing this message "Access is denied to company
    In your case, maybe It was because of the due date of authentication??
     
    Thanks
  • Nitin Verma Profile Picture
    Nitin Verma 21,081 Super User 2024 Season 1 on at
    RE: API reply - Access is denied to company

    Hi,

    Please visit the below link to setup OAuth2.0, as the Basic authentication process is no more now from 1 Oct 2022.

    www.navwithnav.com/.../

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans