Skip to main content

Notifications

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

  • Suggested answer
    huijij Profile Picture
    huijij 19,811 on at
    RE: Create Bom through code x++

    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.

  • Zohan_Shahid Profile Picture
    Zohan_Shahid 35 on at
    RE: Create Bom through code x++

    Any suggestion ?

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,971 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,846 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans