web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,698 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,105 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
    95,329 Super User 2025 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans