Announcements
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.
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
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 345 Super User 2026 Season 2
M Bilal Khan 312
Mohsin Ali 252