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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Create Bom through code x++

(0) ShareShare
ReportReport
Posted on by 35

Hi i've a requirement where i want to create a new bom with header & lines through code. In Ax2012/2009 we can use AXBOM & AXBOMVersion objects to create a bom, but in d365fo if i want to create it how would i do that ? Want to use same classes which system is using. 

does anyone have done the same assignment before ? kindly suggest some solutions. 

Regards,

Zohan

I have the same question (0)
  • Zohan_Shahid Profile Picture
    35 on at

    Any suggestion ?

  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Zohan,

    If you want to use the methods of the system's classes, one of the possible ways may be:

    1. Navigate to Product information management > Bills of materials and formulas > Bills of materials.
    2. Press the new button and enter the BOM name, Site, and Item group the specified page is the page where the Bom was created.

    Then you can navigate to AOT and debug the methods of the system's classes by yourself, because I don't have a test environment at hand, you may need to debug it yourself. alternatively, you can see if others have any suggestions.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 704 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 570 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 408 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans