Skip to main content
17-Peridot
May 12, 2022
Solved

where is generateGUID(); service present in thingworx.

  • May 12, 2022
  • 1 reply
  • 1157 views

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 ?

Best answer by PaiChung

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

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.