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)

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

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    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

  • Ganriver1 Profile Picture
    1,559 on at

    Hi Vilmos,

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

  • Suggested answer
    Ajit Profile Picture
    8,788 on at

    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.

  • Verified answer
    Ganriver1 Profile Picture
    1,559 on at

    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)));

    }

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 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans