Skip to main content

Morning,

I would like to create a UUID in my workbench as a parameter and call it at various points through my workbench. The issue I have is that currently it keeps generating me a new UUID every time I call it. I am using the @UUID() function.

Is there a way to populate the parameter once and persist it thoughout the workbench so I can use it in filenames, database table names etc.

Many Thanks,

Oliver

I use this pattern with a private scripted parameter quite a lot:

0684Q00000ArLfsQAF.png

Code:

import uuid
return str(uuid.uuid4())

It's then easy to reference this parameter value wherever you need it in the workspace.


@david_r

Thank you this works perfectly for my needs.