cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New command: m365 pp pipeline list

Open appieschot opened this issue 1 year ago • 6 comments

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 avatar Aug 30 '24 08:08 appieschot

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

DevPio avatar Oct 03 '24 17:10 DevPio

Sure thank you @DevPio!

milanholemans avatar Oct 04 '24 07:10 milanholemans

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?

DevPio avatar Oct 11 '24 19:10 DevPio

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

milanholemans avatar Oct 14 '24 07:10 milanholemans

@appieschot can we proceed with the standard API response?

DevPio avatar Oct 16 '24 14:10 DevPio

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

appieschot avatar Oct 16 '24 15:10 appieschot