Skip to main content
17-Peridot
Solved

where is generateGUID(); service present in thingworx.

where is generateGUID(); service present in thingworx. Will this provide unique id for every service execution ? So we dont need to verift this ID again ?

PaiChungAnswer
22-Sapphire I

It is in snippets under 'misc'

// generateGUID():STRING
let id = generateGUID();

Will it always be unique, pretty much. there is an infinitesimally small chance that you'll get or even run into a duplicate.

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I

It is in snippets under 'misc'

// generateGUID():STRING
let id = generateGUID();

Will it always be unique, pretty much. there is an infinitesimally small chance that you'll get or even run into a duplicate.

Translate