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 :
Business Central forum

ODATAV4 customer endpoint address fields issue

(0) ShareShare
ReportReport
Posted on by

Hi,

I noticed a problem when updating customer address fields using ODATAV4 endpoint (object_type: page,  object_id: 21, service name: customer). In detail I can edit all fields, like  Address, Address2, City, County, Post_Code when I do not try to set also Country_Region_Code. When I provide Country_Region_Code, the Citym County, Post_Code are ignored by ODATA API. It worked some time ago, I believe this started to happen with the latest BC version (systemVersion:29060)/

The problem does not occur for example with latest Graph API for BC, where I can assign any value to address fields in any configuration.

Does ODATA somehow validate the address?

Categories:
  • Community Member Profile Picture
    on at

    I'm seeing the same issue as well.  Any information?

  • Max Sukholovyy Profile Picture
    5 on at

    Same issue here! Do you have any updates?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Never tested this specific case, but a page published ad OData web service inherits the user interface rules placed in the page code, so in the validate of field X some other fields becames readonly, the same behaviour happens in the ws.

    API pages (new type of page that you can create with AL) are born to avoid exposing to the outside world a UI object and so a logic created for handling the UI. They permit you to create a more "light" service.

    You can test what happens in the Customer card when you manually insert values on the fields you mention.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans