Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
Please help to achieve sub string functionality in thingworx service.
Is there any snippet available please let us know.
Thanks
Anil Kesana
Solved! Go to Solution.
The service editor will allow you to use most javascript functions.
var str = "Hello world!";
var res = str.substring(1, 4);
the result will be "ell"
Hi Anil Kesana,
I think for SubString; normal JavaScript would work. Are you getting any error?
The service editor will allow you to use most javascript functions.
var str = "Hello world!";
var res = str.substring(1, 4);
the result will be "ell"