java.util.UUID in form SDK


Following documentation in the form SDK I try to get the uuid of an entity.

camForm.on('form-loaded', function() {

camForm.on('variables-fetched', function() {
    console.log(idObj, varManager.variableValue(objVar))

The output is the serialized form of the object (the object in this case is an UUID Object). How to deserialize and use toString() to obtain the real uuid in string format? I read any kind of example related to this situation, without any clue on what I’m doing wrong. Have I to convert it into a String before passing to form?


Hi @Mizar01, here’s a full example to help with your case:


This is the exact same thing I wrote in the first place to access the variable from form sdk. I mean what is the difference between that code and mine?

The value property always returns me a serialized Object of UUID class, unusable inside the form and I cannot convert it to a usable one.

I think UUID object are not correctly deserialized from the sdk for some reason.

I ended up to use an additional variable as a uuid converted into a String.