AnsweredAssumed Answered

Pagination not working with get attachments REST call

Question asked by hguser on Jun 24, 2015
Latest reply on Jun 24, 2015 by trademak
Hi ,

I need to add pagination therefore, my get attachments request call is as below, with the start and size set.

var attachments = get(httpUrl + "/bpmn/runtime/tasks/" + id  + "/attachments?start="+start+ "&size=10",null,headers,"json").data;

but this always returns the entire data set. Even if i add static values like below, it always returns the entire data set.

var attachments = get(httpUrl + "/bpmn/runtime/tasks/" + id  + "/attachments?start=5&size=10",null,headers,"json").data;

Pagination is working for other REST calls such as get tasks. What could be the issue here?

Outcomes