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

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
    237,965 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

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans