azure-sdk-for-node icon indicating copy to clipboard operation
azure-sdk-for-node copied to clipboard

WorkflowRunActions only returns 30 actions max

Open penggaolai opened this issue 4 years ago • 2 comments

We have a logic app that contains over 100 actions. But I run following snippet, it only returns me 30 actions.

        var actions = _client.WorkflowRunActions
             .List(resourceGroup, logicApp, workflowRun.Name)
             .OrderBy(x => x.StartTime);

For all logic apps that contains less than 30 actions, it works fine. Are there any settings that control this limitation?

penggaolai avatar May 08 '20 01:05 penggaolai

@penggaolai Hi Thanks for reporting this, Can you try if add this

var options = {
   "top" = 100
}
var actions = _client.WorkflowRunActions
     .List(resourceGroup, logicApp, workflowRun.Name, options)
     .OrderBy(x => x.StartTime);

works or not?

qiaozha avatar May 26 '20 03:05 qiaozha

@penggaolai there is a listNext method to follow the continuation (nextLink) returned by the list method so you can get more run actions. The listNext can also return a continuation (nextLink) so you might need to call it more than once.

Reference Azure SDK for Node.js documentation

joechung-msft avatar Aug 30 '20 04:08 joechung-msft