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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset numbering by yea...
Power Apps
Unanswered

Reset numbering by years in Dataverse column

(1) ShareShare
ReportReport
Posted on by 27

hello community
I have a Dataverse column that has an autonumber with this format

 

 

Captura.PNG

 

It starts with the initials of the year and follows consecutive numbers, however I need that at the beginning of each year it starts counting the numbering at 1 again, for example in 2024 it would be 24-001.

Is there a way to change this in the Dataverse options
Thanks in advance

I have the same question (0)
  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @fredmaralfaro 

    This is not possible using the out of the box functionality of dataverse.

     

    The other alternative is to design and implement the autonumbering using your own custom table and plugins with locking mechanism.

     

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    Not out of the box.  Generally avoid it or create your own from scratch.

    In theory you just need to reset the Seed Value when the Year changes (easier said than done).  The seed value can be set via code which means you can automate it being reset - but the issue will be knowing the exact moment when it should be reset so you don't get a record just before or after the year change with the incorrect number.

    https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes?view=op-9-1#update-auto-number-attributes

     

    (note: the field itself is just a text field, the logic of formatting and sequence is separate to the field itself e.g. after populating you can change values in the field without impacting the next sequence etc, or change the autonumber format and seed value without impacting existing records) 

  • fredmaralfaro Profile Picture
    27 on at

    That the numbering is done separately from the table and is it like inserting the record?

  • Verified answer
    fredmaralfaro Profile Picture
    27 on at

    this is the solution, it can be done using power automate

    Solved: Reset autonumber each year (if possible via script... - Power Platform Community (microsoft.com)

    1111.PNG

  • Mira Ghaly Profile Picture
    11,413 Moderator on at

    @fredmaralfaro 

    You can further schedule it to run on yearly basis on the first day of the year.

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard