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 :
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans