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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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!!

  • Nitin Verma Profile Picture
    21,812 Moderator on at

    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/.../

  • Suggested answer
    CU27040859-1 Profile Picture
    2 on at
    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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
11manish Profile Picture

11manish 9 Super User 2026 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 1 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans