Service Output Result
A service can have an output. The name of the output needs to be result.
The output can be of any base type. The value will be assigned within the service by setting 'var result = ... '
If you choose the output to be an INFOTABLE base type, a Data Shape must be defined, else you will not be able to use the output in a mashup (although the REST API will be able to deliver the infotable).
If you add to that the option of it being a stream or Data Table, ThingWorx will then automatically also deliver the default fields of timestamp, source, sourcetype, location and tags.