Announcements
Hi,
I'm trying to create a Service Item entity through a POST request through ODATA using a custom Service Item API
When I try and create the Service Item I get this error
{ "error": { "code": "Internal_RecordNotFound", "message": "The Service Item does not exist. Identification fields and values: No.='' CorrelationId: cbe1bd17-0b60-476c-835d-5c694b8f699b." } }
It seems the issue is with the No Series used on the Service Item to populate the No field
The JSON body I'm sending over is
{ "InstallationDate": "2016-11-30", "Description": "Test Description", "D365MinimumContractTerm": "12M", "D365MinimumContractTermTo": "2017-11-29", "SalesDate": "2016-09-25" }
This error also occurs if a specify a null or empty "No" in the JSON
If I specify a value for "No" in the JSON I get the following error
{ "error": { "code": "Application_DialogException", "message": "You may not enter numbers manually. If you want to enter numbers manually, please activate Manual Nos. in No. Series SM-ITEM. CorrelationId: 8ac6a927-20bb-41d8-96d2-2a1862eb81c4." } }
Creating a Service Item through the UI works fine and has no problems, but how can I get this POST request working?
Thanks
Hi Jonathan,
Can you send me the code for the Custom API which you have created for service item?
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.
Thanks.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156