Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: m365 pp pipeline list #6287

Open
appieschot opened this issue Aug 30, 2024 · 6 comments · May be fixed by #6434
Open

New command: m365 pp pipeline list #6287

appieschot opened this issue Aug 30, 2024 · 6 comments · May be fixed by #6434

Comments

@appieschot
Copy link
Member

appieschot commented Aug 30, 2024

Usage

m365 pp pipeline list

Description

List all pipelines in the specified Power Platform environment.

Options

Option Description
-e, --environmentName <environmentName> The name of the environment where the pipelines are located.
--asAdmin Run the command as admin and retrieve Power Pages pipelines for environments where you do not have explicitly assigned permissions.

Examples

List all pipeline models in the given Power Platform environment.

m365 pp pipeline list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 

List pipeline models in the given environment as admin.

m365 pp pipeline list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin

Default properties

  • Name
  • DeploymentPipelineId
  • Owner
  • statuscode

Additional Info

You can have a look at the logic behind: https://learn.microsoft.com/en-us/power-platform/developer/cli/reference/pipeline and/or https://learn.microsoft.com/en-us/power-platform/developer/pipelines/table-reference

@appieschot appieschot added the needs peer review Needs second pair of eyes to review the spec or PR label Aug 30, 2024
@Jwaegebaert Jwaegebaert added help wanted and removed needs peer review Needs second pair of eyes to review the spec or PR labels Sep 2, 2024
@Adam-it Adam-it added the hacktoberfest Issue perfect for hacktoberfest label Sep 24, 2024
@DevPio
Copy link

DevPio commented Oct 3, 2024

I would like to take on this task. Could you please assign it to me? Thank you!

@milanholemans
Copy link
Contributor

Sure thank you @DevPio!

@DevPio
Copy link

DevPio commented Oct 11, 2024

Is it acceptable for the response to return only the user ID in the Owner property? When retrieving pipelines, the response currently returns just the user’s ID instead of detailed information like fullname or firstname. Additionally, in the PR, it’s suggested to return the following data:

Name
DeploymentPipelineId
Owner
statuscode

image

However, expanding the Owner field consistently throws this error:

"Could not find a property named 'fullname' on type 'Microsoft.Dynamics.CRM.principal'"

image

To fetch the user's details, it seems a separate request would be needed for each user, which may not be efficient in terms of performance. Is it acceptable to continue returning only the user ID, or should additional user details be included in the response?

@milanholemans
Copy link
Contributor

@appieschot, do you know a way to make it work? If not, then we just keep the response as-is.

@DevPio
Copy link

DevPio commented Oct 16, 2024

@appieschot can we proceed with the standard API response?

@appieschot
Copy link
Member Author

Yeah we can proceed with standard API repsonse! Let's get that one in first 🦾. Great job so far!

@Adam-it Adam-it removed the hacktoberfest Issue perfect for hacktoberfest label Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants