How to fetch data in chunks with SearchThingsByTemplate method
Hi,
I am using SearchThingsByTemplate method to get all remote things data from a server to my system.
The data is so huge and I am getting timeout while fetching the data.
Is there any way to fetch the data in chunks.
Currently I am using below code to get all data together.
var Entityresult = Subsystems["PlatformSubsystem"].GetEntityCount({ type: "Things" });
var maximumThingsCount= Entityresult.count;
var params =
{
maxItems: maximumThingsCount,
nameMask: undefined,
query: undefined,
thingTemplate: 'ThingworxTemplate',
tags: 'TWX:RuntimeData'
};
var result = Resources["SearchFunctions"].SearchThingsByTemplate(params);
With the same code if I am getting 2000 Things together. How can I get the data in batch of 100 ?
Thanks

