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

About Custom API for purchase order

(0) ShareShare
ReportReport
Posted on by

Hello team,
I want to create app in business center which need to create purchase order by location but when i checked API document for purchase order and found that it's didn't provide location parameter , So one of the support helper suggest to create custom API for purchase order,
So i want to know that create custom API in AL extension are installed in all account which used my app?

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,794 Moderator on at

    Hi,

    In that case you have to create a custom API page and publish that page, see the below link it will help you.

    docs.microsoft.com/.../devenv-develop-custom-api

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,165 Moderator on at

    You find the source code for the standard API's here

    github.com/.../pages

    Then you can take a copy of the API you want to modify so you do not have to start from scratch.

  • Community Member Profile Picture
    on at

    thanks for the reply,
    If i am creating purchase order using custom API then it's need to create other custom API for open and close purchase order ? and it's page are different for my custom purchase order and business center default purchase order?

  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at

    Hi, I think it depends on what you need to deal with, if your open and close is just a field, it should be fine to use this API directly.
    If this has special handling, you may need to use bound action.

    More details:

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

    Hope this helps.

    Thanks.

    ZHU

  • Community Member Profile Picture
    on at

    I need to get / post all purchase order data with location , but default purchase order api not have location parameter . so have one solution for create custom api for purchase order with add new field of location.. my concern is how i can marge my custom api purchase order with default business center purchase order.??

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,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans