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


This is what i have done :


getActiveTasks (user): Promise<{}> {
  const listScriptPath = 'api/task-instances?authority=' + user +
  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