web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

adding "Work Description" while creating a sales quote using API

(1) ShareShare
ReportReport
Posted on by 37
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
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,384 Most Valuable Professional on at
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,838 Super User 2025 Season 2 on at

    Since the Work description field type is Blob, you can't simply add or store data in it as you would with other data types like Integer, Code, or Text. Blob fields require specific handling to store and retrieve data.

    Handling Blob fields through the API requires a slightly different approach, as Blobs are typically managed via separate data streams. If "Work Description" is simple text that needs to be stored as a BLOB, you can encode the text in Base64 format and store it in the BLOB field.

    Hope it helps: https://community.dynamics.com/forums/thread/details/?threadid=8d3c4cbe-db2e-4c9f-9596-8f1d93771ec7

  • Prem A Nair Profile Picture
    37 on at
    i am a new bee and yet to explore BC :) 
     
    The "Work Description" field is present in the default sandbox setup. Pls see the attached screenshot circled part. That field is OOTB and I thought it shd be returned by the API call (either as normal data or as a sep req to get blob data)
     
     
     
  • Suggested answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at
    Please check this post, it will show an example how to handle BLOB fields in API. You need to create a copy of standard API and update it accordingly.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,838 Super User 2025 Season 2 on at
    I know that it is present in the table and on the page. However, it's a BLOB field, so when you're pushing data, you need to handle it specifically.  You can follow the link that Suresh mentioned.
  • Suggested answer
    YUN ZHU Profile Picture
    95,750 Super User 2025 Season 2 on at
    Before Work Description was of BLOB type, you used the standard API of Sales Quote. WorkDescription does not exist in the standard API, so you first need to customize the API.
    More details: Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
    Hope this helps.
    Thanks.
    ZHU
  • Verified answer
    Prem A Nair Profile Picture
    37 on at
    an update on this. I could retrieve and update the "Work Description" using the ODataV4 URLs not with the normal REST api. Here are the details
     
    retrieve Work Description from Sales Quote
     
     
    update Work Description
     
     
    with a header If-Match * and plain txt data in body as new value for Work Description
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans