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

Company Id null in Business Central on Premises

(0) ShareShare
ReportReport
Posted on by 40

Hello,

 

We are trying to create a Custom API in Business Central on Premises, but we see that when we get the list of companies, all the ids return null.

 

What do you recommend us to do? In the on-premises Id Company Null is always returned or is it a problem that we must solve? or the API call is made in a different way than this:

 

{{baseUrlAPI}} = https://<base URL>:<port>/<serverinstance>/api/<API publisher>/<API group>/<API version>

 

{{baseUrlAPI}}/companies({{CompanyIDMSCE}})/BCApiPlurE

 

Thank you very much in advance,

 

I have the same question (0)
  • Verified answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    Company ID is never null, but it contains the SystemId field of the record.
    Are you calling the correct url? You need to call the /companies standard endpoint:
    https://
    <base URL>:<port>/<serverInstance>/api/<API version>/ companies
  • ivanrjlg Profile Picture
    40 on at
    Hello, thank you very much for your time,

    The problem occurs because this Business Central on Premises comes from a migrated version of NAV2016, which just confirmed that this field did not exist.

    Maybe there was an error in the upgrade?

    What has occurred to us is to clone the company and delete the previous one, but we don't know if there is a best practice to solve this problem.

    Thank you so much,
     

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

#2
YUN ZHU Profile Picture

YUN ZHU 931 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