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

Notifications

Announcements

Community site session details

Community site session details

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

OData Web Services read-only fields

(0) ShareShare
ReportReport
Posted on by 53

Using OData V4 and Dynamics NAV 2018 web service on table where the StartDateTimeOffset is a read-only field.  I create a new entity for the specified table and fill in the editable fields but not setting value for the read-only field.  I then add the new entity to the collection and try and savechanges(), only to get the error:

DataServiceClientException: {"error":{"code":"BadRequest_InvalidOperation","message":"Control 'Start DateTime' is read-only."}}

I have had this problem in other web service pages with read-only fields.  How to create a new web service entity and add to the collection if there are read-only fields?

I have the same question (0)
  • Verified answer
    JAngle Profile Picture
    135 on at

    Perhaps creating a copy of the table and page but without any code or restricting properties. OnAfterInsert you could use the TRANSFERFIELDS function into the actual table you want to have the data in. If the field IDs between tables match exactly it will just move the data. Might skip out the issue

  • Webz Profile Picture
    53 on at

    Thank you for a suggestion, however we do not have developer license and are looking for a work around that avoids getting a developer involved.  I have worked at modifying other ERP in the past such as Infor, but in other cases didn't have to pay someone so we can make internal modifications.

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

News and Announcements

Season of Giving Solutions is Here!

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 1,798

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 812 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 717 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans