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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

In X++ Numberseq two types

(0) ShareShare
ReportReport
Posted on by 130

Hi guys,

step 1 : As usually used in number sequence procedure. 

 <new EDT>

1. number sequence class in Existing module and Table new method.

2. load all module in D365Fo

3. Number sequence generated  then Form method and DS create, delete, update finished it.

step 2:

1. number sequence class in Existing module. 

2. Number sequence generated 

3. Table initValue i wrote a small code

Ex: this.RequestNumber = numberSeq::NewnumGet(numberseqreference::FindReference(extendedTypeNum(EDT, true)).Num();

Now, my question i followed in second step2  i don't write any form level method but it is working fine but  it does it have any impact elsewhere?

also which one is better to use step 1 or step 2?

i tried in much less effort for the number sequence.  

Regards,

WayToAx

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    240,333 Most Valuable Professional on at

    Yes, initValue() aren't called automatically from any places except of forms. It can be called manually from code, but it doesn't have to.

    That NumberSeqFormHandler exists and the documentation tells you to use it is not a coincidence, therefore that's the preferred way. You can see that it does things at places which your second techniques ignore, such as on delete. For example, you can create a record (which assigns a number) and then delete it before writing it to the database, therefore the number wasn't effectively used and the number sequence framework it notified about it.

  • Riyas ahamed F Profile Picture
    1,215 on at

    Thanks for your valuable answer  Martin Dráb.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 286 Super User 2026 Season 2

#2
SajeedMullaji Profile Picture

SajeedMullaji 272

#3
Martin Dráb Profile Picture

Martin Dráb 258 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans