
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
}
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