Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Create custom Number Sequence for customer group

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear all,

      I am new for AX so I want to know about complete process of creating number sequence for customer group in AX 2012. Please help me.

Thanks

*This post is locked for comments

  • nilfri Profile Picture
    nilfri 122 on at
    RE: Create custom Number Sequence for customer group

    Shaheryar MehmoodDid you just modify your post to get a new date on your old/original (by now incorrect) answer?

  • Shaheryar Profile Picture
    Shaheryar 275 on at
    RE: Create custom Number Sequence for customer group

    Hi Danish, 

    There is no specific sequence of a customer group based number sequence and it is usually defined for individual customer account, the system in your case does however support the setting of number sequence to manual where you can have number as per your liking a specified number for each customer account according to its customer group but that is manual and you may lose proper control as human element is involved. Other wise to achieve it would only be possible through a customization which can automate the sequence for customer group. 

    Another way is to design a small utility in excel which can populate a new number for each group based upon formulas etc and then copy paste the number sequence against the customer record.

  • Suggested answer
    nilfri Profile Picture
    nilfri 122 on at
    RE: Create custom Number Sequence for customer group

    Microsoft added this (late in 2018?). I finally got around to do a post on this. It will be detailed further later on, with more about daily use, video etc.

    But perhaps you could use it for now?

    How to use a custom Number Sequence per Customer group in D365FO

    How to use a custom Number Sequence per Customer group in D365FO

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create custom Number Sequence for customer group

    First create a new Extended Data Type (EDT). Open AOT→ Data Dictionary → Extended Data Types

    Right Click on Extended Data Types and create a new EDT ‘MyNumSeq’ of type String

    Now go to AOT → Classes and open the NumberSeqModuleCustomer class by right clicking it and selecting View Code

    In  the loadModule method, add the following code after the last line of code McdVoice

    //define the EDT

    datatype.parmDatatypeId(extendedTypeNum(MyNumSeq));//define its default properties

    datatype.parmReferenceHelp(literalStr(“Unique number for customer group”));

    datatype.parmWizardIsContinuous(true);

    datatype.parmWizardIsManual(NoYes::No);

    datatype.parmWizardIsChangeDownAllowed(NoYes::No);

    datatype.parmWizardIsChangeUpAllowed(NoYes::No);

    datatype.parmWizardHighest(999999);

    datatype.parmSortField(27);

    //define its scope

    datatype.addParameterType(NumberSeqParameterType::DataArea, true, false);

    this.create(datatype);

    ·         Now, go to AOT → Jobs  and create a new job loadMyNumSeq

    Write the following code in the job and then run it

    static void loadMyNumSeq(Args _args)

    {

    //define the class variable

    NumberSeqModuleCustomer numSeqMod = new NumberSeqModuleCustomer();

    //load the number sequences that were not generated

    numSeqMod.load();

    }

    Now, go to  System Administration → Organization administration → Common → Number sequences → Number sequences

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Create custom Number Sequence for customer group

    This would require a customization.

    Please consider that customer group for the customer can be changed after the customer has been created.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Create custom Number Sequence for customer group

    Hi Mohammad,

    There is no option in the standard application to be able to configure number sequences for/per customer group. What's in a number? When really required, you can consider a customization.

  • Suggested answer
    Rustem Galiamov Profile Picture
    Rustem Galiamov 8,072 on at
    RE: Create custom Number Sequence for customer group

    Hi Mohammad Danish!

    This link will be helpful Number sequence framework page.

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Create custom Number Sequence for customer group

    Hi,

    For what purpose do you need that?

    That is, what is the underlying business scenario?

    Best regards

    Ludwig

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans