Notifications
Announcements
No record found.
HI, I had a problem on getting the existing or created number sequence in Dynamic 365. How to code it on X++??
Hi,
Your question is not clear. Can you elaborate more?
Are you asking how to create number sequence from scratch?
Thanks,
Girish S.
Hi, As Girish mentioned, your query is not clear. Please provide more information on what you are trying to do (Preferrably with your code/screenshots)
In the functional side, i created a number sequence in general ledger, after i created that i will used that on product creation. now, i want to get that number sequence using the X++ code. and put it on a variable.
You can use NumberSeq class to get the number.
You must know the EDT name related to number sequence.
NumberSeq numSeq; ttsBegin; numSeq = NumberSeq::newGetNum(NumberSeqReference::findReference(extendedTypeNum(YourEdtName))); tableName.fieldName = numSeq.num(); ttsCommit;
I only get the one specific number sequence like ChemTest
I can't understand. What do you mean by "ChemTest"?
Can you elaborate.
i got this error
the is the name of the number sequence i created
I think you missed some steps while creating custom number sequence.
You need to load the number seqeunce class using runnable class.
After that you need to go to Organization administration >> Number Sequence >> Number Sequence >> Generate (Button on the action pane).
Refer to the below blog.
https://community.dynamics.com/365/financeandoperations/b/nevoitechfinance/posts/custom-number-sequence-in-d365fo
Also, from the screenshot I can see that you are referring to "NumberSequenceCode" EDT which is a standard one.
Are you creating number sequence for that EDT?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 646 Most Valuable Professional
André Arnaud de Cal... 529 Super User 2025 Season 2
Sohaib Cheema 285 User Group Leader