Hello
I am trying to create a sales quote by posting the required data to http://<businesscentralPrefix>/companies({id})/salesQuotes
The minimum required json is the following
{
"customerNumber": "10000"
}
The above is working and creating a sales quote with defaults.
But I also need to add the "Work Description" while i create the quote. The API documentation is not mentioning about it. But I can create/add "Work Description" when I create the quote thru BC. Also while I retrieve the quotes the "Work Description" updated is not retrieved by the API.
I tried with the following json
{
"customerNumber": "10000",
"workDescription" : "bla bla bla"
}
But the API complained and returned the following
{
"error": {
"code": "BadRequest",
"message": "The property 'workDescription' does not exist on type 'Microsoft.NAV.salesQuote'. Make sure to only use property names that are defined by the type. CorrelationId: 962c3d60-00db-481a-a3ff-20273fa1e8ec."
}
}
Please let me know if someone has some thoughts on this.
Thanks
Prem