Hi, I need to create a purchase order using Postman with the standard API:
My main blocker is that I need to post data into the field named "Item Reference No" in the purchase line. As per the Business Central community dev suggestion, I should use "ItemVariant". Here is how the body looks:
{
"number": "Postman6",
"orderDate": "2025-01-14",
"postingDate": "2025-01-14",
"vendorNumber": "100",
"purchaseOrderLines": [
{
"lineType": "Item",
"lineObjectNumber": "100",
"description": "Item 1",
"quantity": 2,
"itemVariant": "TL-001"
},
{
"lineType": "Item",
"lineObjectNumber": "100",
"description": "Item 2",
"quantity": 1
}
]
}
However, it is giving an error.
Even when I use the standard API for the line:
I can't see any key that references "Item Reference No".
Can someone help me with this issue?
do i need to register the Item Reference No field by making standard API copy make my changes like here they have done it : - https://www.kauffmann.nl/2021/03/12/extending-standard-apis-1/