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

How to Get used Custom API in my business center APP which i developed in PHP.

(0) ShareShare
ReportReport
Posted on by

Hello, I want to develop an APP for D365 business center , i want to get - post purchase order with location, But i didn't found parameter for for location in purchase order.
So one of your support team suggest me to create custom API , 
I refer regarding custom API creation and found that it is create in AL extension using Visual Studio  for specific business center account . So how i can bridge APP with custom api which are created in AL language. ? How i will used custom api in my PHP APP code.

I have the same question (0)
  • Suggested answer
    Robyn2018 Profile Picture
    Most Valuable Professional on at

    Hi,

    yo can create a custom API following this page:

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api

    The process would be:

    - create your custom API page extension in AL language using Visual Studio

    - Publish this API page in your tenant (your Business Central installation).  Your API will be only in your installation.

    - Once you have the Extension published, you can call this API from Postman or from your PHP App with something like this:

    POST

    api.businesscentral.dynamics.com/.../companies(<company id>)/MyCustomPurchaseOrder

    Remember you would need an oAuth2.0 authentication in order to access to your Business Central data.

    Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.

    Roberto Corella

    Business Central developer

    blog: https://blog.msdyn365bc.es
    youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg
    Linkedin: www.linkedin.com/.../
    Twitter: https://twitter.com/rccorella

  • Community Member Profile Picture
    on at

    This custom api need to install in all business center account which used my PHP app.?
    Or my custom API works in all account which used my PHP app.

  • Suggested answer
    Amit Baru Profile Picture
    3,037 on at

    Hi,

    refer below link :

    erpconsultors.com/.../

    Regards

    Amit Sharma

    www.erpconsultors.com

    linkedin.com/in/amit-sharma-94542440/

  • Community Member Profile Picture
    on at

    This custom api need to install in all business center account which used my PHP app.?

    Or my custom API works in all account which used my PHP app.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,969 Super User 2026 Season 1

#2
Dhiren Nagar Profile Picture

Dhiren Nagar 1,051 Super User 2026 Season 1

#3
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans