AnsweredAssumed Answered

PI WebAPI batch Request only returning 1000 objects

Question asked by SahilG on Jul 8, 2016
Latest reply on Jul 8, 2016 by gregor

var data = {};

// for getting all eventframes
data["0"] = {

   "Method": "GET",

   "Resource": encodeURI(basePIWebAPIUrl + 'assetdatabases/' + DBWebID + '/eventframes?starttime=' + starttime + '&endtime=' + endtime)

};

//to filter events having attribute name as product
data["1"] = {

   "Method": "GET",

   "RequestTemplate": {

   "Resource": "https://localhost/piwebapi/eventframes/{0}/attributes?nameFilter=Product"
   },

   "Parameters": [

   "$.0.Content.Items[*].WebId"
   ],

   "ParentIds": [

   "0"
   ]

};

//Gets Value(Name) of the product
data["2"] = {

   "Method": "GET",

   "RequestTemplate": {

   "Resource": "{0}"
   },

   "Parameters": [

   "$.1.Content.Items[*].Content.Items[0].Links.Value"
   ],

   "ParentIds": [

   "1"
   ]

};

//Get Reference Element(Unit) id of the Events
data["3"] = {

   "Method": "GET",

   "RequestTemplate": {

   "Resource": basePIWebAPIUrl+"elements/{0}"
   },

   "Parameters": [

   "$.0.Content.Items[*].RefElementWebIds[0]"
   ],

   "ParentIds": [

   "0"
   ]

};

 

all sub-requests of above batch request is returning only 1000 objects per sub-request. I have made the RateLimitMaxRequest =100000

Outcomes