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

WebAPI - Post a Purchase Order Receipt line

(0) ShareShare
ReportReport
Posted on by 194

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
}

  • Suggested answer
    JAngle Profile Picture
    161 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 344 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 189 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans