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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Unique numbers

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi

I'm creating an application that has generates a random number and stores this number in the SP list.

Now, I'm trying to figure out how can I ensure the newly generated number is NOT already available in SP List? and if it's available in SharePoint list, I wish to generate a new one.

 

Categories:
  • Verified answer
    KennyJ Profile Picture
    168 on at

    Hey,

    the way I would do this is to user a combination of the date and time as a string. 
    Default = Text(Now(), “yyyymmddhhmmss”)

     

    this will give you a unique number but also something that you can recognise of you needed to. 

    thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is CLEVER!

    I was thinking to query the SP List after each generation, but this is going to solve my problem and make my life easy and save me a lot of code writing 🙂

    Thanks a lot

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 312

#3
Mohsin Ali Profile Picture

Mohsin Ali 252

Last 30 days Overall leaderboard