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
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
Shaheryar Mehmood. Did you just modify your post to get a new date on your old/original (by now incorrect) answer?
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.
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?
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
This would require a customization.
Please consider that customer group for the customer can be changed after the customer has been created.
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.
Hi Mohammad Danish!
This link will be helpful Number sequence framework page.
Hi,
For what purpose do you need that?
That is, what is the underlying business scenario?
Best regards
Ludwig
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,387
Most Valuable Professional
nmaenpaa
101,156