We have Business Central Dynamics SAAS.
I am using Postman OAUTH to update/patch the post_code (Postal Code) for a customer. I am successful at the "Get"
{
"@odata.etag": "W/\"JzQ0Ozc0d2RnWkNNaWlUR1VpMjMyQ2RCY2dlRHFDSDRkQk45cTM4WS9VNHFaV0U9MTswMDsn\"",
"No": "20000",
"Name": "Trey Research",
"Name_2": "",
"Responsibility_Center": "",
"Location_Code": "",
"Post_Code": "L5N 8L9",
"Country_Region_Code": "CA",
"Phone_No": "",
"IC_Partner_Code": "",
"Contact": "Helen Ray",
"Salesperson_Code": "PS",
"Customer_Posting_Group": "DOMESTIC",
"Gen_Bus_Posting_Group": "DOMESTIC",
"VAT_Bus_Posting_Group": "",
"Customer_Price_Group": "",
"Customer_Disc_Group": "",
"Payment_Terms_Code": "14 DAYS",
"Reminder_Terms_Code": "",
"Fin_Charge_Terms_Code": "",
"Currency_Code": "",
"Language_Code": "",
"Search_Name": "TREY RESEARCH",
"Credit_Limit_LCY": 0,
"Blocked": " ",
"Privacy_Blocked": false,
"Last_Date_Modified": "2020-09-08",
"Application_Method": "Manual",
"Combine_Shipments": false,
"Reserve": "Optional",
"Ship_to_Code": "",
"Shipping_Advice": "Partial",
"Shipping_Agent_Code": "",
"Base_Calendar_Code": "",
"Balance_LCY": 4908.72,
"Balance_Due_LCY": 4908.72,
"Sales_LCY": 88132.2,
"Payments_LCY": 94680.73,
"CFDI_Purpose": "",
"CFDI_Relation": "",
"Global_Dimension_1_Filter": "",
"Global_Dimension_2_Filter": "",
"Currency_Filter": "",
"Date_Filter": "''..03/09/21"
}
But when I try to patch the Post_Code above, I get this error
{
"error": {
"code": "BadRequest_MethodNotAllowed",
"message": "Entity does not support modifying data. CorrelationId: edaeed0d-3f44-4533-babe-dcd86ad74896."
}
}
I use JSON with the following in the body
{
"Post_Code": "H0H 0H0"
}
I have tried chaging If-Match from * to the odata etag W/"JzQ0Ozc0d2RnWkNNaWlUR1VpMjMyQ2RCY2dlRHFDSDRkQk45cTM4WS9VNHFaV0U9MTswMDsn"
But it's the same error.
I think there must be a setting in Business Central to authorize an update to the table, but where can I find that? Or is there something else that is wrong?