Generate GUID/UUID

1
  Hi,   How to generate a GUID/UUID within a Microflow?   Thanks
asked
3 answers
6

No need for DYI. Use community commons' somewhat hidden java-action randomHash.

answered
3

create a  java action (no parameters, and return a string) and place this in:

at the top:

import java.util.UUID;
	@Override
	public java.lang.String executeAction() throws Exception
	{
		// BEGIN USER CODE
        UUID uuid = UUID.randomUUID();
        return uuid.toString();
		// END USER CODE
	}

 

answered
0

You can also use the ‘Random Hash’ Java action from the Community Commons module. 

answered