Hello Experts,
I am trying to insert Unit Cost in Job Planning Line using Odata service in Business Central.
I created one line in Job Planning Line with POST method. The created line did not include Unit Cost or Unit Price.
So I thought update/Patch could insert Unit Cost and Unit Price in Job Planning Line.
However, the following error came out when I did PATCH method.
{
"error": {
"code": "BadRequest_MethodNotAllowed",
"message": "'PATCH' requests for 'ZZJobPlanningLines' of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services. CorrelationId: f28d720f-adb4-4fbd-a658-891e310e7e86."
}
}
ZZJobPlanningLines is Service Name I created in Web Services.
The data is:
<Headers>
| If-Match |
W/"JzQ0O0liM3Z0bk1HcTJ6bnlSL20wNWcxOXFLaWhSYVdWWENCTlNKc09zdXpJUWc9MTswMDsn" |
<Body>
{
"Unit_Cost": 1200
}
Please advice me to enter Unit Cost and Unit Price in Job Planning Line via Web Service.
Thank you.