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 :
Microsoft Dynamics AX (Archived)

how to move products from category to category:

(0) ShareShare
ReportReport
Posted on by 2,475

Hi ALL ;

We need to move (10,000) all products from category to category in AX retail product category  as below image :-

2251.13.jpg_2D00_550x0.jpg

We need move in all one time not one by one .

Thanks 

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    304,508 Super User 2026 Season 1 on at

    Hi Khaled,

    You can also use Data Import Export Framework to load a file with the new category assignments.

  • Khaled Ahmed Profile Picture
    2,475 on at

    Many Thanks  fro your replay 

    Yes I need more detail or steps for that better if there screenshot

  • Khaled Ahmed Profile Picture
    2,475 on at

    Kindly , can you send me more details?

  • André Arnaud de Calavon Profile Picture
    304,508 Super User 2026 Season 1 on at

    Hi Khaled,

    If you want to use the data import export framework, you can read the user guide on internet: docs.microsoft.com/.../data-import-export-framework-user-guide-dixf-dmf

    If you then have more detailed questions or you get stuck, do not hesitate to update this thread.

  • Khaled Ahmed Profile Picture
    2,475 on at

    Many thanks,

    I need code for update , I wort below code to move items from category to other , but I need the update code , can you help on that?

    static void MoveProducutsFromCategToCateg(Args _args)
    {
        EcoResProductCategory   Prodcat;
        int i;
    
        ;
    
        while select forupdate Prodcat where Prodcat.Category ==5637144594
        {
            ttsBegin;
            Prodcat.Category=5637145528;
            Prodcat.update();
            ++i;
            ttsCommit;
    
        }
        info(strFmt("NUMBEROFROWS %1,%2",i,Prodcat.Product));
    }
    


  • Verified answer
    André Arnaud de Calavon Profile Picture
    304,508 Super User 2026 Season 1 on at

    Hi Khaled,

    You can better use the update_recordset function for bulk updates. It will then do one call to the database which will handle the records at once instead of one by one. This will be performance wise better.

    Example:

    static void MoveProducutsFromCategToCateg(Args _args)
    {
        EcoResProductCategory   prodCat;
        ;
    
        ttsbegin;
    
        update_recordset prodCat
        setting
            Category = 5637145528
        where Category == 5637144594;
    
        ttsCommit;
    
        info("Job done");
    }

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans