AnsweredAssumed Answered

ADF - get tasks-instances order By Id

Question asked by anakin59490 on Jun 19, 2018
Latest reply on Jun 21, 2018 by anakin59490

Hi,

This is what i have done :

 

getActiveTasks (user): Promise<{}> {
  const listScriptPath = 'api/task-instances?authority=' + user +
    '&properties=wfvd_nomService,bpm_priority,bpm_status,bpm_dueDate,bpm_description&exclude=wcmwf:*&skipCount=0&maxItems=1000&';
  return this.apiService.getInstance().webScript
    .executeWebScript('GET', listScriptPath, this.scriptArgs, this.contextRoot, this.servicePath);
}

And this is what I get :


Is it possible to sort the results by id ?
I think i can use "orderBy" with "DESC" option in listScriptPath variable
but i don't find the correct syntax

thank you in advance

Outcomes