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

Announcements

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May 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,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans