Cli-microsoft365: List all Flows in environment does not return all Flows

Created on 28 Jan 2019  Â·  8Comments  Â·  Source: pnp/cli-microsoft365

I'm trying to list all the flows in my environment. When logged in to the Flow admin center I get 2 flows and a load more button. When using the cli, my results are limited to those same 2 flows.

azmgmt flow list --environment Default-The-Guid --asAdmin

bug work in progress

Most helpful comment

We have this logic implemented in Graph commands, just not in Azmgmt commands. Thanks for reporting. Will update shortly!

All 8 comments

When you click the load more button; does the UI actually provide more flows? In my test tenant I do see the button as well, even though there are no additional flows available. Clicking the button does not change anything (it does a request but that does not return additional results).

Sorry, I should have been more specific. Yes, the button in the UI does load more flows. There are plenty in the environment but I can't seem to list them using the command in the cli. I'll try and see if I can replicate in another tenant.

Can't replicate the behaviour, possibly because there aren't that many in the other environment. What API does the command use?

I was able to perform the API calls with Postman and get the same 2 Flows returned on the first call and a "nextLink" JSON object. If I then send a GET request to the URL value of that object, I get more results and another "nextLink". So its similar in operation as the web UI. I suspect some logic is required to list all Flows when this nextLink is part of the response.

We have this logic implemented in Graph commands, just not in Azmgmt commands. Thanks for reporting. Will update shortly!

I can't reproduce on another tenant either. The one I have the problem with contains multiple environments (Dynamics, Office) and a large amount of Flows. Don't know if it is related. Let me know if I can help test the changes.


Van: Waldek Mastykarz notifications@github.com
Verzonden: maandag 4 februari 2019 20:04
Aan: pnp/office365-cli
CC: wnzn; Mention
Onderwerp: Re: [pnp/office365-cli] List all Flows in environment does not return all Flows (#776)

@wnznhttps://github.com/wnzn how can I reproduce this behavior? When I go to the Flow admin center, I'm getting all my Flows at once. Any way to get the paged behavior like you mentioned?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/pnp/office365-cli/issues/776#issuecomment-460370793, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AWXlwnHm2alVW4fUHHt74K9PplWroyyPks5vKIRJgaJpZM4aWOFf.

I have a PR ready which and by slightly adjusting the API call I was able to get paged results. The new implementation should handle the nextLink correctly. Thanks for spotting it!

Was this page helpful?
0 / 5 - 0 ratings