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

Identifying the Sequence from Number Sequence Group id

(0) ShareShare
ReportReport
Posted on by

I am experimenting with the Number Sequence framework, and I have created a form to select a Number Sequence Group from those available in the NUMBERSEQUENCEGROUP table. When I select a group, then I have its group-id in a string variable.

How can I use the group-id (string) using X++ code to identify the corresponding sequence for a given area and reference? I need to use the sequence in order to get numbers using the NumberSeq::newGetNum() method.

I am not familiar with the concepts and I also wonder what the area and reference parameters practically are; is there a table to look for their available values and how can I use them in this context?

I have the same question (0)
  • Verified answer
    greengrimms Profile Picture
    1,400 on at

    Hi Yiannis,

    Reference parameter is basically where you configured the number sequence. So for example, in Accounts receivable parameters, you have a section that references the number sequences configurations for AR. That would be where you'd get the Reference parameter.

    The NumberSeqReference::findReference() might also aid you in this.

    The area field is coming from NumberSequenceGroupRef table, which you'll use in order to get the desired NumberSequence:

    pastedimage1625840836289v1.png

    Hope this helps.

  • Community Member Profile Picture
    on at

    Thank you Danilo; your feedback is very useful to understand better these tables relationships and the Reference part.

    Regarding the area field, I am interesting in particular for the Accounts payable area.

    Which NumberSequenceGroupRef table field describes the area? I can see only the following fields there: [NUMBERSEQUENCEDATATYPE],[NUMBERSEQUENCEGROUPID],[NUMBERSEQUENCEID],[NUMBERSEQUENCESCOPE],[RECVERSION],[PARTITION],[RECID].

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

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 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