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?

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 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
    IB-29041624-0 Profile Picture
    1,191 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
    103,196 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 755 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 413 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 387 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans