Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to check item is a BOM item or not using code.

(0) ShareShare
ReportReport
Posted on by 506

Hello all,

How to check item is a BOM item or not using code.

The scenario is to check, is the Item is a BOM item or not. If the BOM item is selected in a parameter of dialog Box the report of particular type will open and if its not the BOM item a different type of report will open.

Thank You

Siddhant Singh

*This post is locked for comments

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: How to check item is a BOM item or not using code.

    Hi Siddhant Singh,

    You can check value of PmfProductType field, if inventTable.PmfProductType == PmfProductType == PmfProductType::BOM then it's BOM, however, don't forget that item can be formula as well, so you can use inventTable.isFormulaOrBOMAllowed() method that returns true if item is BOM, formula or planning item.

  • Suggested answer
    Mrdude Profile Picture
    Mrdude 285 on at
    RE: How to check item is a BOM item or not using code.

    BOM item record recid

    Existing in the child record

    I'm forget filed name

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to check item is a BOM item or not using code.

    Hi,

    In the released product form you have a field available (production type) that allows you identifying BOMs.

    Why do you need some coding here because you can simply filter your BOMs / BOM items by applying an advanced filter (ctrl + f3).

    Best regards,

    Ludwig

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans