Using email id as Node name | Community
Skip to main content
New Participant
May 17, 2021
Solved

Using email id as Node name

  • May 17, 2021
  • 3 replies
  • 1691 views

Hi,

 

I have a form to grab email id and other info for registration and saving as nodes.

 

I just want an advice on how right or safe to use email id as Node name.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

 

Thanks! 

3 replies

Varun_Shakya
New Participant
May 17, 2021
arunpatidar
New Participant
May 17, 2021

Hi,

you can encode an email to get a unique node name and use that as a node name.

https://www.base64encode.org/ 

Arun Patidar
Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
May 17, 2021

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

 

Thanks! 

hptaroraAuthor
New Participant
May 17, 2021
How long node name can be ?