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 / Sequential number chal...
Power Apps
Unanswered

Sequential number challenge

(0) ShareShare
ReportReport
Posted on by 13
Hi community, I have an unusual request for a customer (don't ask why). They would a column in a Dataverse table which acts like a index for new rows with a few conditions.
  1. 8 digits in length
  2. Seed value is 50001112
  3. Is sequential
  4. The same number shouldn't appear more than 3 times in a row
Example.
  • 56663390 is ok
  • 50333344 should be skipped
Keen to see your solutions (can be a Power Apps, Power Automate or Dataverse - Formula solution)
 
Cheers!
Categories:
I have the same question (0)
  • Suggested answer
    ankit_singhal Profile Picture
    590 Super User 2025 Season 2 on at
    I think you can write code (plugin) in dataverse. In Plugin you can set some expression to skip these numbers. Or use auto number but register one plugin on create which check if there is these type of number then record should not be create and someone need to add 1 in seed number but as it is manual work so not recommended. 
     
    I can think one more solution, you can create one other table and store all these type of number in that table then you can skip these type number during the creation of record. 

    Note: Please mark verified, if it is helpful for you 
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    What do you mean by 
    1. The same number shouldn't appear more than 3 times in a row

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard