We have a Business Central integration in our product which POSTs/PATCHes to numerous endpoints. The employees endpoint is suddenly giving us problems when adding a new employee, but only since I last looked in the summer, back when it was working fine. Nothing has changed in our code or on our demo Business Central account (using demo company), so it is a little puzzling.
When creating a new employee using a POST call, a 404 error is now returned to say that the employee record does not exist:
Our request from the app log:
POSTing JSON file to api.businesscentral.dynamics.com/.../employees
{"number":"13","givenName":"FRED","middleName":"","surname":"SMITH","jobTitle":"A","addressLine1":"","addressLine2":"","city":"","state":"","country":"GB","postalCode":"","phoneNumber":"","mobilePhone":"","status":"Active","birthDate":"1970-01-01"}
The response:
{"error":{"code":"Internal_RecordNotFound","message":"The Employee does not exist. Identification fields and values: No.='13' CorrelationId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx."}}
Is anyone else experiencing a similar issue? I can only presume this has started since the recent updates to the environment (I think two since then?) As I say, nothing has changed in our code.
Any help gratefully received!