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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Fields can't be created by passed value through OData Service

(0) ShareShare
ReportReport
Posted on by 140

Hi Experts,

I have a question for OData service. When we use Odata service to create sales order, we find some fields value are not value the we passed in the request body.

For example, Due Date. In the request we pass due date as furture date, but in the new created Sales Order, the due date is showed as one month later than document date.

If we want to change the Due Date as we passed in the value, we have to send another request to update this sales order.

Is it the logic for 365BC service? Is it possible to create sales order as the value we passed in for these kind of fields?

pastedimage1597311276723v1.png

  • Suggested answer
    raelhefn Profile Picture
    Microsoft Employee on at

    Hi Denny1986,

    DueDate is set based on the payment terms and the document data. So in effect the field its read only when you access it directly.  Duedate will be set based on payment terms. IF you need to override, you can issue a patch request to the salesInvoice:

    {{url}}/companies({{companyId}})/salesInvoices(100ad9f9-61a6-ea11-a813-000d3a646d34)

    If-Match : ETAG  

    {        

               "dueDate": "2020-08-14"

    }

  • Suggested answer
    Denny1986 Profile Picture
    140 on at

    Thank you for your information.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 645 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 432 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 248 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans