Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

New Number Sequence

(0) ShareShare
ReportReport
Posted on by 284
Hello everyone,
I have created a new number sequence in my development environment and created a new reference by extending NumberSeqModuleProduction
[ExtensionOf(classStr(NumberSeqModuleProduction))]final class NumberSeqModuleProductionClassTCI_Extension{    protected void loadModule()    {        NumberSeqDatatype datatype = NumberSeqDatatype::construct();        //Setup Outside Service Packing Slip ID        datatype.parmDatatypeId(extendedTypeNum(TCI_OutsideServicePackingSlipId));        datatype.parmReferenceHelp(literalStr(/Outside Service Packing Slip Id/));        datatype.parmWizardIsContinuous(false);        datatype.parmWizardIsManual(NoYes::No);        datatype.parmWizardIsChangeDownAllowed(NoYes::No);        datatype.parmWizardIsChangeUpAllowed(NoYes::No);        datatype.parmWizardLowest(00001);        datatype.parmWizardHighest(99999);        datatype.parmSortField(6);        this.create(datatype);        next loadModule();            }}
And here is the reference in my dev under Production, Production Parameters, Number Sequences
Yet when we got this checked into our Sandbox, it's not there.  We also included a job to run to force them to load.  Here is the code for that
internal final class TCI_OutsideServiceNumSeqRunClass{    /// <summary>    /// Class entry point. The system will call this method when a designated menu     /// is selected or when execution starts and this class is set as the startup class.    /// </summary>    /// <param name = /_args/>The specified arguments.</param>    public static void main(Args _args)    {        NumberSeqModuleProduction numSeqMod = new NumberSeqModuleProduction();        numSeqMod.load();    }}
But even after we run that, the reference is not showing up in the Num Sequence in Parameters......
If anyone could point me in the direction of what I might be missing, that would be super helpful.
  • Andrew Huisman Profile Picture
    Andrew Huisman 284 on at
    New Number Sequence
    Yes, sorry.  This was my first post on the new layout of this forum and I obviously am not used to it yet.  I will repost the question in the right forum, thank you
  • Martin Dráb Profile Picture
    Martin Dráb 231,401 Most Valuable Professional on at
    New Number Sequence
     
    Let me post your code once more to make it readable.
    First snippet:
    [ExtensionOf(classStr(NumberSeqModuleProduction))]final class NumberSeqModuleProductionClassTCI_Extension
    {
    	protected void loadModule()
    	{
    		NumberSeqDatatype datatype = NumberSeqDatatype::construct();
    		//Setup Outside Service Packing Slip ID
    		datatype.parmDatatypeId(extendedTypeNum(TCI_OutsideServicePackingSlipId));
    		datatype.parmReferenceHelp(literalStr(/Outside Service Packing Slip Id/));
    		datatype.parmWizardIsContinuous(false);
    		datatype.parmWizardIsManual(NoYes::No);
    		datatype.parmWizardIsChangeDownAllowed(NoYes::No);
    		datatype.parmWizardIsChangeUpAllowed(NoYes::No);
    		datatype.parmWizardLowest(00001);
    		datatype.parmWizardHighest(99999);
    		datatype.parmSortField(6);
    		this.create(datatype);
    		
    		next loadModule();
    	}
    }
    Second snippet:
    internal final class TCI_OutsideServiceNumSeqRunClass
    {
    	public static void main(Args _args)
    	{
    		NumberSeqModuleProduction numSeqMod = new NumberSeqModuleProduction();
    		numSeqMod.load();
    	}
    }
     

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,401 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans