Skip to main content
17-Peridot
May 12, 2022 6:09 AM UTC
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
May 12, 2022 5:07 PM UTC

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
May 12, 2022 5:07 PM UTC

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