cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

GUID Generation in Expression

pshashipreetham
18-Opal

GUID Generation in Expression

Hi, 

 

Is it possible to generate a GUID in the Expression?, I remember seeing it long back in a Project, not sure what the correct syntax is to do it. 

 

In my stiuation I am tring to avoid the service. 

 

Thingworx: 9.4

 

Thanks,

Shashi Preetham,
+91 8099838001 | shashi@psptechhub.com,
PSPTechHub  ||  World of PTC Thingworx  ||  LinkedIn
1 REPLY 1

Hey,

 

self.crypto.randomUUID()

 

...and ignore the warning about unsupported object.

 

Note that it only works when your ThingWorx is served over HTTPS or from localhost.

 

/ Constantine

Announcements


Top Tags