Hello Eirik,
the field exposed via Sales Order Endpoint (saleOrderUpdateDto) is
{
"project": {
"value": 0
}
this field requires the value of the Project's "Internal ID" that can be retrieved from GET Project/{ProjectID}
then we should send the following fields in the payload (SalesOrder Header), based on your project defined in the company
"project":
{"value": 7692}
SalesOrderLine
"projectTask":
{"value": "01"}
Example JSON:
{
"project": {
"value": 7692
},
"lines": [
{
"operation": "Insert",
"lineNbr": {
"value": "1"
},
"inventoryId": {
"value": "122"
},
"warehouse": {
"value": "1"
},
"uom": {
"value": "STK"
},
"quantity": {
"value": 3
},
"note": {
"value": "Test Project"
},
"projectTask": {
"value": "01"
}
}
],
"customerVATZone": {
"value": "03"
},
"orderType": {
"value": "SO"
},
"hold": {
"value": true
},
"date": {
"value": "2022-11-08T00:00:00"
},
"requestOn": {
"value": "2022-11-08T00:00:00"
},
"customer": {
"value": "10025"
},
"location": {
"value": "MAIN"
}
}
Financials ERP Output:
Project (ScreenId=PM301000)
SalesOrder (ScreenId=SO301000)
SalesOrderLine
We'll inform development team to improve the documentation of the field that to specify it requires the "InternalID" of the project. Regards.
... View more