Skip to main content

Notifications

Announcements

No record found.

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

Trying to make API call for Microsoft Dynamics 365 BC On premise version, but getting error 401 and 404

(0) ShareShare
ReportReport
Posted on by 45

Hi Team,
I am trying to make API call for MSD 365 BC On premise version, but getting issue, I have installed On premise setup and configured it properly its running fine when credential type is Windows but unable to connect with postman.

When trying with Credential Type as "NavUserPassoword" my instance is failing to into Running status and unable to start it. Also unable to make API calls

Auth type used in postman is - Basic Auth -> Combination of User Name and AWS key

Created Demo certificates and done almost all the setting by following the MS docs, still not able to connect.

Please help me on this.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,942 Super User 2024 Season 2 on at
    RE: Trying to make API call for Microsoft Dynamics 365 BC On premise version, but getting error 401 and 404

    Hi, This is what I tested a long time ago with an older version.

    Version: W1 17.1 (Platform 17.0.18204.18458 + Application 17.1.18256.18474)

    Download: https://support.microsoft.com/en-us/topic/update-17-1-for-microsoft-dynamics-365-business-central-2020-release-wave-2-application-build-17-1-18256-18792-platform-build-17-0-18204-18738-676b03f5-7308-fe1c-5bf4-a65290caa639

    Hope this helps.

    Thanks.

    ZHU

  • ballu Profile Picture
    ballu 45 on at
    RE: Trying to make API call for Microsoft Dynamics 365 BC On premise version, but getting error 401 and 404

    Hi ZHU,

    Thanks for the reply.

    I tried following the steps, still unable to start the instance, and got an error when CredentialType is set as either NavUserPassword or AccessControlService. It seems like while setup the installation something didn't go right.

    Can you please let me know which version you have tried and got success, it will be really helpful if you can share the URL of that version.

    Thank you!

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,942 Super User 2024 Season 2 on at
    RE: Trying to make API call for Microsoft Dynamics 365 BC On premise version, but getting error 401 and 404

    Hi, as MS mentioned in Docs, your solution must be configured to use NavUserPassword or AccessControlService authentication. So the Windows credential type can not be used for the APIs for Dynamics 365 Business Central On-Premises.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/endpoints-apis-for-dynamics#-on-prem

    pastedimage1652057716626v1.png

    I think it is still a setting problem, please confirm that the setting in the file below has also been updated.

    pastedimage1652057875952v2.png

    I've tested Office 365 certification before and worked well.

    More details: https://yzhums.com/5367/

    Hope this helps.

    Thanks.
    ZHU

  • Suggested answer
    tanya07 Profile Picture
    tanya07 1,548 on at
    RE: Trying to make API call for Microsoft Dynamics 365 BC On premise version, but getting error 401 and 404

    Hi,

    Please check  Enable API Services checkbox. under the OData Services tab in the Administration tool. If not, please enable it.

    Thank you,

    Tanya Kharbanda

    Don't forget to help the community by verifying the answer if your question has been answered. It will let others know that the topic has a verified answer.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans