Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Custom number sequence in d365fo

(0) ShareShare
ReportReport
Posted on by 22

Hi All 

I have followed below link to make Custom number sequence in D365FO as per my requirements.

(+) Custom number sequence in D365FO - Dynamics 365 Finance Community

I wants to add the new number sequence reference in Asset management parameters.

I have searched and found the below code in Asset management parameters form

3365.a1.jpg

Kindly let me know what changes are required and how to call this method to achieve my requirements. So, that I can add my reference below in Asset managemnt parameters like below marked area

1273.a2.jpg

Please give me more shed on this.

thanks!

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    Thanks Andre, it is working as expected

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    thanks Andre,

    Let me check and will update you.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    294,866 Super User 2025 Season 1 on at
    RE: Custom number sequence in d365fo

    Hi Arpan,

    It looks like you added a new module for the number sequences. "EntAssetGlobal" is not standard. Now you have overwritten the module within your extension.

    You should list both modules in your extension code like this:

    numberSequenceModules = [NumberSeqModule::EntAsset, NumberSeqModule::EntAssetGlobal];

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    Hi all,

    I wrote below code 

    7317.a.jpg

    So, it's showing the custom number sequence as below

    asset3.jpg

    but the issue is it is not showing the existing number sequence in Asset management parameters as below. It's overriding the existing number sequence with custom number sequence.

    6837.b.jpg

    I expected to get my custom number sequence as marked above.

    Kindly let me know what changes are required in my code ?

    Please give me more shed on this.

  • André Arnaud de Calavon Profile Picture
    294,866 Super User 2025 Season 1 on at
    RE: Custom number sequence in d365fo

    Hi Arpan,

    There is, in general, no need to extend this method. If you did not use the same module references for your number sequence, then you would need to extend it. If the Reet function did not help, you might indeed use another or new custom module reference in your coding for the new number sequence.

    Currently the form is set up to use the number sequences from the asset management module.  

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    Hi Andre,

    As I mentioned abovevthe method numberseqpreinit in AssetParameter form, is it required to call this method with CoC for my requirement?

    Note - I have found the reset button in your blogs.

    Kindly confirm.

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    Thanks Andre

    Is reset button is stnd features for all modules in parameters form? If yes kindly send me the screen shot pls

    Then I will check and update you.

  • André Arnaud de Calavon Profile Picture
    294,866 Super User 2025 Season 1 on at
    RE: Custom number sequence in d365fo

    Hi Arpan,

    There is no need to add additional coding. Read my blog and find the 'Reset' button on the number sequences form. This should add the record on the parameters form for your custom number sequence.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Custom number sequence in d365fo

    Hi Arpan,

    You can follow the suggestion provided by Andre for rest function.

    But the link you have followed talks about creating number sequence for custom module.

    If you want number seq list under asset management you must extend number sequence class related to asset management module.

    Have you done that?

    Thanks,

    Girish S.

  • @rp@n Profile Picture
    22 on at
    RE: Custom number sequence in d365fo

    Sorry Andre

    Not understand,  kindly elaborate me what code I need to add?

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 456 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 310

#3
Saalim Ansari Profile Picture

Saalim Ansari 261

Overall leaderboard

Product updates

Dynamics 365 release plans