web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    127 on at
    RE: WebAPI - Post a Purchase Order Receipt line

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans