Generate a random 8-character string for each record
![Matt](https://us.v-cdn.net/6037124/uploads/userpics/S9IH7C4NYFWD/nWSW4BEIKQEDA.jpg)
In a product I'm building I'm in a spot where I think I'll need a way to allow users to invite other users to share data.
My thought is if John wants to let Sarah access his records, John will add both Sarah's email address and Sarah's 8-digit code in a form to add her. Meaning, Sarah doesn't need to receive an email to accept, but she would just give John the 8-digit code.
Any time a user record is created, I'll want a code generated.
What's a good way of accomplishing creating this 8-digit string when a user is created or even if the user records already exist?
Comments
-
Hey there!
I would suggest using the generate password function which you can access when in the function stack builder. You can configure the required character count and some other options as per the screenshot below. -
Awesome, thank you - perfect suggestion!
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback