Skip to main content

Notifications

Announcements

No record found.

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

Custom basic API on Premise, not detected after deploy

(1) ShareShare
ReportReport
Posted on by 80
Hello, 

I am currently learning to use API on BC On-prem, 
I've followed the guide from this link https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api
I even use the same objectname and and field. But I cannot get the respon from postman.
I can call the standard API, but not the custom one.



I already check on table Metadata it's already listed there but I still unable to call it.
////
 
Is there any step that I missed?
 
 



**SOLVED Thank you ZHU.

Turned out the root cause is because the request URI missing API publisher and API group.
Missed it because I did comparing with the standard API which didn't not use the them.
 
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 74,115 Super User 2024 Season 2 on at
    Custom basic API on Premise, not detected after deploy
    It seems that there is a problem with your endpoint. Your endpoint does not contain the new publisher and api group you defined in the code.
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Shrey Chauhan Profile Picture
    Shrey Chauhan 288 on at
    Custom basic API on Premise, not detected after deploy
    Hello,

    To get the data of the Custom API : 
    Step-1 : Create the web service of your page.
    Step-2 : Copy the Odata URL.
    Step-3 : Use the NTLM Authentication in PostMan.
    Step-4 : Use the UserName and Password of your PC.
    Step-5 : And get the data.



    Hope this help's you.
    May other experts give's you better solution's.

    Thank You,
    Shrey Chauhan.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans