web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Web service request to delete production bom lines

(0) ShareShare
ReportReport
Posted on by 15

Hello,

I am looking for a way to delete production bom lines in an existing production bom version. I have tried to use delete method on production bom lines request but get the below error: 

'DELETE' requests for 'ProductionBomLines' of EdmType 'Collection' are not allowed within Dynamics 365 Business Central OData web services.
The request i tried: myurl/ProductionBomLines?$count=true&$filter=Production_BOM_No eq '1052' and Version_Code eq 'A'
Is there a way to delete all bom lines unside a production bom version or just need to delete the bom version which in effect deleted the bom lines.
Kindly advise.
Thanks in advance.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    93,872 Super User 2025 Season 2 on at
    RE: Web service request to delete production bom lines

    Hi, It looks like you have a problem with the following situation, so hopefully that will give you some hints.

    ‘PATCH’ requests for ‘ServiceName’ of EdmType ‘Collection’ are not allowed within Dynamics 365 Business Central OData web services

    https://yzhums.com/38278/

    Thanks

    ZHU

  • sina123 Profile Picture
    15 on at
    RE: Web service request to delete production bom lines

    Thanks, the issue is resolved by removing the filter in the web request and pointing to a single record .

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,179

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,999

#3
YUN ZHU Profile Picture

YUN ZHU 1,892 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans