Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Create new number sequence in AX

(0) ShareShare
ReportReport
Posted on by 1,559

Hi Friends,

I am trying to add a new number sequence.

Here are steps I found on web to generate a new one.

1. create EDT: GroupId

2. modify method 'loadModule' in existing NumberSeqReference_xxx class. Save and compile it.

    numRef.DataTypeId               =   typeId2ExtendedTypeId(GroupId));
    numRef.ReferenceHelp            =   literalstr("Group ID");
    numRef.WizardManual             =   NoYes::No;
    numRef.WizardAllowChangeDown    =   NoYes::No;
    numRef.WizardAllowChangeUp      =   NoYes::No;
    numRef.SortField                =   7;
    this.create(numRef);

But, when I go to number sequence wizard, I don't see it.

I guess I missed a step somewhere.

It's confused to me that how this works. It looks I can manually create a new one in Number Sequence form.

Any help is appreciated.

*This post is locked for comments

  • Verified answer
    Ganriver1 Profile Picture
    1,559 on at
    RE: Create new number sequence in AX

    I made it work.

    What I did is add following method in modul's parameter setup table.

    static client server NumberSequenceReference numRefGroupID()

    {

       return NumberSeqReference::findReference(typeId2ExtendedTypeId(typeid(GroupId)));

    }

  • Suggested answer
    Ajit Profile Picture
    8,755 on at
    RE: Create new number sequence in AX

    AX 2009 - 

    static void LoadModule(Args _args)
    {
    NumberSeqReference_Customer numSeqCustomer;

    numSeqCustomer = new NumberSeqReference_Customer(NumberSeqModule::Cust);
    numSeqCustomer.load();
    }

    AX 2012 -

    static void LoadModule(Args _args)
    {
    NumberSeqModuleCustomer numSeqModuleCustomer = new NumberSeqModuleCustomer();
    numSeqModuleCustomer.load();
    }

    Note - Change 'NumberSeqModuleCustomer' class with your class.

  • Ganriver1 Profile Picture
    1,559 on at
    RE: Create new number sequence in AX

    Hi Vilmos,

    Looks like AX 2009 works differently. I couldn't load it.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Create new number sequence in AX

    First of all the Extended Data Type which you are using be more specific rather than using a very generic one that many other EDTs might be exntending. Make your own EDT preferably.

    Then you also need to load the module.

    Try this to load all modules, I am unsure if it is available for 2009 as well though:

    msdn.microsoft.com/.../numberseqapplicationmodule.loadall.aspx

    If it does not work, you could load the specific module yourself as shown in the example for the AX 2012 documentation. "Loading Number Sequence Information for a Module" part:

    msdn.microsoft.com/.../aa608474.aspx

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 46

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans