cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrstian89
Helper III
Helper III

Create random, unique barcode value

When moving from Sharepoint lists to Dataverse, I found that it is not possible to generate barcodes (for free).

Is there any way to do the following when adding a new item to my equipment list:

 

- Generate a random12 digit number.

- Make sure that the new random number is unique to the table/column.

 

If this is possible, I can use and external site to generate the barcode based on the generatad number.

 

QR-codes: Is it possible to do something similar with QR-codes in stead? I guess they are more complex..

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Community Champion
Community Champion

Hi @mrstian89 

 

In Dataverse, we have Autonumber field which generates based on a few combinations

  • Sequential format
  • Datetime
  • RandomString (Max 6 Char)

You can combine these 3 options to get 12 char lengths.

 

For example

{SEQNUM:6}{RANDSTRING:6} --> 001000QUKJIN
{DATETIMEUTC:yyyyddMM}{RANDSTRING:6} --> 20211410D344BG

 

StalinPonnusamy_0-1634257442973.png

 

View solution in original post

1 REPLY 1
StalinPonnusamy
Community Champion
Community Champion

Hi @mrstian89 

 

In Dataverse, we have Autonumber field which generates based on a few combinations

  • Sequential format
  • Datetime
  • RandomString (Max 6 Char)

You can combine these 3 options to get 12 char lengths.

 

For example

{SEQNUM:6}{RANDSTRING:6} --> 001000QUKJIN
{DATETIMEUTC:yyyyddMM}{RANDSTRING:6} --> 20211410D344BG

 

StalinPonnusamy_0-1634257442973.png

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,066)