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

X++ Code To Create Item Or Released Product in D365 FO

(0) ShareShare
ReportReport
Posted on by 2,546

Please share me X++ Code To Create Item Or Released Product in D365 FO

I have the same question (0)
  • Suggested answer
    Piyush Adhikari Profile Picture
    2,546 on at

    class CreateReleasedProduct

    {        

       /// <summary>

       /// Runs the class with the specified arguments.

       /// </summary>

       /// <param name = "_args">The specified arguments.</param>

       public static void main(Args _args)

       {        

           EcoResReleasedProductCreationV2Entity   ecoResReleasedProductCreationV2Entity;

           ;

           ecoResReleasedProductCreationV2Entity.clear();

           ecoResReleasedProductCreationV2Entity.initValue();

           ecoResReleasedProductCreationV2Entity.ItemNumber = '1104X';

           ecoResReleasedProductCreationV2Entity.ItemModelGroupId = 'Stocked';

           ecoResReleasedProductCreationV2Entity.InventoryUnitSymbol = 'ea';

           ecoResReleasedProductCreationV2Entity.BOMUnitSymbol = 'ea';

           ecoResReleasedProductCreationV2Entity.ProductGroupId = 'FG';

           ecoResReleasedProductCreationV2Entity.ProductType = EcoResProductType::Item;

           ecoResReleasedProductCreationV2Entity.ProductNumber = '1104X';

           ecoResReleasedProductCreationV2Entity.ProductSearchName = '1104X';

           ecoResReleasedProductCreationV2Entity.ProductName = '1104X';

           ecoResReleasedProductCreationV2Entity.TrackingDimensionGroupName = 'None';

           ecoResReleasedProductCreationV2Entity.ProductSubType = EcoResProductSubtype::Product;

           ecoResReleasedProductCreationV2Entity.SearchName = '1104X';

           ecoResReleasedProductCreationV2Entity.SalesUnitSymbol = 'ea';

           ecoResReleasedProductCreationV2Entity.StorageDimensionGroupName = 'SiteWH';

           ecoResReleasedProductCreationV2Entity.PurchaseUnitSymbol = 'ea';

           ecoResReleasedProductCreationV2Entity.insert();

       }

    }

  • Blue Wang Profile Picture
    Microsoft Employee on at

    Hi Piyush,

    Is the code you shared yourself your solution?

  • Piyush Adhikari Profile Picture
    2,546 on at

    Yes Please mark it as ANSWERED

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans