JonL
August 12, 2020, 10:00am
1
I already implemented this with custom code for my project but as I’ve seen some people asking for UUID in the forum I thought I would open a FR for a similar but better approach to unique ids.
Antony
August 13, 2020, 8:05am
2
@JonL , would you be willing to share your custom code here so we can just paste it into our designs?
JonL
August 13, 2020, 8:12am
3
Unfortunately it is not one of those you can just copy and paste.
Any tips for implementing this then? I’ll have a bit more of look at the link, but it wouldn’t be all that hard would it?
JonL
August 13, 2020, 8:53am
5
No, it is not difficult. It just depends on the implementation and server model(thus the FR). I’ve seen js, php and asp.net implementations.
JonL
October 28, 2020, 3:48am
6
Released for nodejs as a custom module extension.
I just finished building the custom module extension for nanoid
A tiny, secure, URL-friendly, unique string ID generator for JavaScript.
Think of UUID but faster .
You can grab it from the public repository (PRs accepted) and store the two files in extensions/server_connect/modules/
Feel free to fork and port to other server models. I work exclusively with nodejs so I don't have time to build and test it for the rest.
Make sure to install the package before npm i nanoid
It implements all …
2 Likes
Teodor
September 30, 2021, 4:53pm
7
You can now generate UUID in server connect:
Intro
You can quickly generate an unique UUID identifier in Server Connect and use it in your API Action (Server Action) steps, where required.
Generating UUID
The UUID is available in the global value in the server data picker, not as a separate step in the server action steps. So it will be available for you in every step, where you see the data picker icon - database insert, update and many others.
We will show you the generated UUID using a simple set value step.
We created an API Actio…
1 Like