web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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 30

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!

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    Hi Arpan,

    When you performed the build and a database synchronization, there is no automatic insert of a record in the number sequence references table for your new number sequence. You need to run a 'Reset' function. You can read on my blog more about this feature and how to run it: dynamicspedia.com/.../

  • @rp@n Profile Picture
    30 on at

    Sorry Andre

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

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    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.

  • @rp@n Profile Picture
    30 on at

    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.

  • @rp@n Profile Picture
    30 on at

    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.

  • André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    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
    30 on at

    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.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,915 Super User 2025 Season 2 on at

    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
    30 on at

    thanks Andre,

    Let me check and will update you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans