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

Unable to update a field data in "Sales_Prices" in BC

(0) ShareShare
ReportReport
Posted on by 15

request Action:PATCH

request url: api.businesscentral.dynamics.com/.../Sales_Prices(Item_No ='100001', Sales_Type ='Customer Price Group' , Sales_Code ='BH' ,Currency_Code ='BHD' ,Variant_Code = ' ', Unit_of_Measure_Code = 'NOS', Minimum_Quantity ='0',Starting_Date= '0001-01-01')

request Body: 

{
    "Mageno_Sync": true
}
response:
{
"error": {
"code": "BadRequest_NotFound",
"message": "Bad Request - Error in query syntax. CorrelationId: df27ae4d-a122-489e-9d1c-6f4eee092f99."
}
}
I tried with another request body:
request url: 
api.businesscentral.dynamics.com/.../Sales_Prices eq '100001' and Sales_Type eq 'Customer Price Group' and Sales_Code eq 'BH' and Currency_Code eq 'BHD' and Variant_Code eq '' and Unit_of_Measure_Code eq '' and Minimum_Quantity eq 0
request body: 
{
    "Mageno_Sync": true
}
response:
{
"error": {
"code": "BadRequest_MethodNotAllowed",
"message": "'PATCH' requests for 'Sales_Prices' of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services. CorrelationId: def90d9b-6bd7-47fd-bea0-d1bee46477c1."
}
}
Can anyone tell me what is the wrong thing or missing part in the request body and URL?
I tried doing this using postman but was unable to do so. As I have checked there are 8 primary keys that are being sent in the URL.
I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    Try it without the field references perhaps. System knows the primary key fields it just needs the data in the correct format to slot into that.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,055 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,063 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,014 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans