I would like to delete the Assembly BOM records for a given Parent_Item_No. I looked at using OData services with a DELETE request and receive a message "'DELETE' requests for 'AssemblyBOM' of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services.
So it appears the AssemblyBOM OData web service does not allow delete requests. Is there any way around this?
I also looked for an API for the Assembly BOM table but that does not seem to exist. Could someone please confirm this?
I have started looking at creating a custom API with AL code to perform the delete. I believe I have found a guide to create a custom codeunit API, however, I can't figure out the AL code required to actually delete the BOM records based on a Parent_Item_No parameter. Any guidance?

Report
All responses (
Answers (