Service Output Result
A service can have an output. The name of the output must be the result.
The output can be of any base type. The value is assigned within the service by setting 'var result = ... '. Null is not a valid value for the result variable in service scripts.
If you choose the output to be an INFOTABLE base type, a Data Shape must be defined. Otherwise, you cannot use the output in a mashup (although the REST API will be able to deliver the infotable).
If you add the option of it being a stream or Data Table, ThingWorx then also delivers the default fields of timestamp, source, source type, location, and tags.
Was this helpful?