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

WebAPI - Post a Purchase Order Receipt line

(0) ShareShare
ReportReport
Posted on by 190

Hi,

I've created a Page and try to post a Purchase Order Receipt through the page.

The body looks like below.

But I found the "Received" field on Purchase Order don't update. (although I can see this receipt line created successfully in system). 

Do I need call some API to trigger the "Received" field update on PO lines? Or is it something wrong with the http body below?

{
"Document_No": "PRC100143",
"Line_No": 90000,
"Type": "Item",
"Order_No": "PO100241",
"No": "ID002034",
"Order_Line_No": 10000,
"Location_Code": "",
"Expected_Receipt_Date": "2022-04-04",
"Description": "Some items desc",
"Description_2": "",
"Unit_of_Measure": "Each",
"Quantity": 3
}

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    131 on at

    If you check the bottom the code shown here: github.com/.../APIV2PurchaseOrders.Page.al

    There is a procedure in the standard api page which handles posting. It is for receive and invoice though. There is no such action in the lines page, making it an all or nothing.

    Therefore you might find this repo very helpful: github.com/.../PostOrdersWebService

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,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans