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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Type must not be in BOM Component

(1) ShareShare
ReportReport
Posted on by 53
Hi,
 
I created an API endpoint for insert Item BOM Component. While running this API post request below error return.
I have the same question (0)
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at
    Hi,
     
    Please test with type as numeric in payload like - 

    "type" : 1
     
     
    Regards,
    Saurav Dhyani
     
  • Malith Ranawaka Profile Picture
    53 on at
    Hi Saurav Dhyani,
     
    Now this error return.
     
  • Verified answer
    Malith Ranawaka Profile Picture
    53 on at
    I resolved this error in the first post with only the Parent Item No and Type then patch with other fields.
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,419 User Group Leader on at
    Hi Malith,
     
    Great to hear that you resolved the issue.
     
    I am sure you did something like shown below and Remove Type field from Payload.
     
        trigger OnInsertRecord(BelowxRec: Boolean): Boolean
        begin
             Rec.Type = Rec.Type::Item;
        end;
     
     
    Regards,
    Saurav Dhyani
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,086 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,290 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,218

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans