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)

System-mandated continuous number sequences

(0) ShareShare
ReportReport
Posted on by 45

There are some number sequences that are required —by AX itself— to be continuous (e.g. the one used for 'Advanced ledger entry' in the "General ledger' module).  Can anyone point me to a list of the number sequences that AX demands must be set to continuous?

(AX 2012 R3 CU11)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    You could run the below job to get the list of number sequences(along with module and format) that were set to continuous(by default) by Ax.

    Continuity is defined on the datatype(like SalesId, PurchId etc) in a given module.

    static void NumberSeq(Args _args)

    {

       NumberSequenceScope numberSeqScope;

       NumberSequenceTable numberSeqTable;

       NumberSequenceReference  numberSeqRef;

       NumberSequenceDatatype   numberSeqType;

       while select numberSeqTable

           where numberSeqTable.Continuous == true

           join numberSeqRef

           where numberSeqRef.NumberSequenceId == numberSeqTable.RecId

           join numberSeqType

           where numberSeqType.RecId == numberSeqRef.NumberSequenceDatatype      

           && numberSeqType.WizardContinuous == true

           // && numberSeqType.DatatypeId == 123

           // && numberSeqType.Module == 1   // Module 1 refers to General Ledger, enumvalues from enum NumberSeqModule are taken here

           join numberSeqScope

           where numberSeqScope.RecId == numberSeqRef.NumberSequenceScope        

           && numberSeqScope.DataArea == "dat"

       {

           info(strFmt("Module: %1, Sequence: %2, Format: %3", numberSeqRef.referenceModuleLabel(), numberSeqTable.NumberSequence, numberSeqTable.Format));

       }

    }

    If you feel your question is answered, please mark this answer as verified.

    Thanks,

    Chaitanya Golla  

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Have a search in the AOT for the NumberSeqReference classes where the number sequence references based on the Extended Data Types are defined for each module of AX, using the continuous keyword as your search term. The continuous flag is set in there from source code, this way it would be easily identifiable what you are looking for.

    You may find an example for creating such sequences in this blog entry:

    http://theaxapta.blogspot.hu/p/how-to-create-new-number-sequence.html

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans