Skip to main content
Community site session details

Community site session details

Session Id : yAiV6HCH4h6iSA9fSymEj0
Power Apps - Microsoft Dataverse
Unanswered

Auto number sequence of a column based on the value of a field

Like (0) ShareShare
ReportReport
Posted on 4 Oct 2023 11:33:33 by 15

I am working on a Purchase Order Table, Invoice Table, and Link Table in Microsoft Dataverse.

 

Link Table is created to link Purchase Order and Invoice together. This is to know how many Purchase Order has been invoiced, to know the outstanding balance, outstanding quantity, etc. 

 

My question is... I would like to have an automatic number sequence based on a column common value and reset the sequence if the value changes and generate another sequence based on the new value on the Link Table. 

 

Sample table: Sequence column reset based on the value on the item column

ItemSequence
Value 1100
Value 1101
Value 1102
Value 2100
Value 2101
Value 2102
Value 2103

 

Thank you and appreciate if someone can see if the above functionality is feasible in Dataverse. 

 

 

  • ivan_apps Profile Picture
    2,187 Moderator on 22 Oct 2023 at 18:10:51
    Re: Auto number sequence of a column based on the value of a field

    Yes it is possible but there are different ways to go about it.

    You’re obviously making a custom auto-number that can be overwritten if a column changes so out of the box auto number won’t work.

    If you are ok with asynchronous assignment of ID, push the custom auto numbering to Power Automate. You can define all your criteria there.

    if you need it instantly assigned, you can try JavaScript and tie it to the column change event. Note this will only execute when you modify the form, not if you update the value outside the form.

    the better answer would be a Plug-In. This is a Pro-Code solution as you need to know C#. I’d avoid unless you’re confortable creating one and supporting it in the future.

    PowerFX plugins are now a thing too, it may be possible to execute your criteria in this manner but note they are a relatively new feature.

  • AbigailCuadra Profile Picture
    15 on 22 Oct 2023 at 13:30:59
    Re: Auto number sequence of a column based on the value of a field

    Thank you @a33ik for sharing the post. 

    However, I am looking for a solution where the column has a dynamic value and not fixed. 

    Do we have any other solution for that requirement?

  • a33ik Profile Picture
    3,304 Most Valuable Professional on 04 Oct 2023 at 18:45:38
    Re: Auto number sequence of a column based on the value of a field

    Hello,

    Check this post - https://jonasr.app/anm-unique-seq/

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics

Loading complete