Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

BC V22 W1 On-Prem - API v2.0 - Standard endpoints not found

(0) ShareShare
ReportReport
Posted on by 11
Hi guys
 
First time integrating with Business Central.  It's an on-prem installation for which the implementation is in progress, was V16 initially but then upgraded to V22 W1 during the development cycle.  Development was done to create a general journal, integrate lines to it, and then post the journal.  On V16 we were able to query things like customers, currencies, journals, i.e. standard available endpoints as per API (v2.0) for Dynamics 365 Business Central - Business Central | Microsoft Learn, however since upgrading to V22 these standard endpoints no longer seem to be available / accessible.
 
1. We can query companies or a specific company as below, and results are returned.
 
 
2. However when trying to go down any further like querying the customers for a specific company as below, we're getting a 404 not found.
 
 
From what I've been able to find it doesn't seem like specific endpoints, e.g. company(guid)/currencies, can be enabled / disabled for the API, can only turn the whole API off of on via configuration, and unless I'm missing something obvious the format of the URL is also correct.
 
Why would we be receiving 404's when calling endpoints like customers, currency, journals, etc. but companies are being returned as per the first screenshot?
 
  • Verified answer
    Community member Profile Picture
    Community member 11 on at
    BC V22 W1 On-Prem - API v2.0 - Standard endpoints not found
    Thanks to @YUN ZHU for pointing me in the right direction.
     
    Okey, so seems that the API v2.0 is an extension / app of some sort (please correct me if I'm wrong), which needs to be installed, the extension / app's name is "_Exclude_APIV2_".
     
    Using the Business Central Administration Shell I:
     
    1. Ran the Get-NAVAppInfo -ServerInstance <ServerInstance> command to get a list of all the extension / app's published to the instance to confirm that the extension exists on the environment, which it did.
    2. Ran the Install-NAVApp -ServerInstance <ServerInstance> -Name "_Exclude_APIV2_" command to install the extension.
    3. Calling the .../api/v2.0/$metadata endpoint now shows all the expected endpoints and doing calls like .../api/v2.0/companies(guidhere)/customers or journals returns the expected results instead of the 404 received previously.

    Note that if the required extension is not listed in the results from step 1, seems that the Publish-NAVApp -ServerInstance <ServerInstanceName> -Path "<PathToExtensionFile>" command needs to be run first to publish the extension / app to the specific instance.
  • Community member Profile Picture
    Community member 11 on at
    BC V22 W1 On-Prem - API v2.0 - Standard endpoints not found
    Hi, I checked the "2000000153 - NAV App Installed App" table on the environment and the result is as below.  As those API entries are not displayed on our new V22 environment, does that mean the API v2.0 is not installed on the new environment, or does their absence mean they are installed?

    Apologies if these are stupid questions, I'm not familiar with Business Central.
     
     
    Just some additional context, I did check the $metadata as well, see the result.  From what I can see the standard endpoints, customers, currency, etc. are not listed, but they were definitely there in V16 before the upgrade as we were calling them.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,802 Super User 2024 Season 2 on at
    BC V22 W1 On-Prem - API v2.0 - Standard endpoints not found
    Hi, you can use table 2000000153 “NAV App Installed App” to see if the following extensions have been installed in your environment. It seems that these two extensions were uninstalled during the upgrade process.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 13,011 Most Valuable Professional on at

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,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans