Sdcript Functions does NOT return the complete long value ?
I created a custom script function called GenerateUid. This function generate a unique id(Long type) for every call using the snowflake id algorithm.
It works in the backend of the extension, I can see the unique id is generated correctly in debug. However, the last two digits of the value returned to ThingWorx is always "00". For example, the generated id is 569467214119305221, but the value in ThingWorx's service result is
In debug you can see the uid is 569467214119305221.