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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Get the Last value of Number Sequence that was used

(0) ShareShare
ReportReport
Posted on by 30

Greetings,

I am looking for a method to find the last value that was generated and used by a particular number sequence.

So the problem that I encountered was that the system was skipping few number's while generating number sequence and thus it resulted in a non-continuous series,  so I need a fix for that, any suggestions are welcomes,

thanks and regards 

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,286 on at

    Hi x.fire,
    If it skipped numbers then it is setup as non-continuous and last number won't help you. Non-continuous do not track gaps, so it could be 1, 2, 25 and next number here would be 26.

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    What is your business requirement?

    If you want to see the real last value used, just look into the latest record in the table that is using the number sequence.

    If you need to have a non-skipping number sequence, you can set it up as continuous, but this is recommended to use only when absolutely necessary. It will make the number sequence work slower, since AOS can't cache the numbers, instead it has to do a round trip (or actually two) to database every time a number is needed.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans