Skip to content

feat: add ValueFromPipelineByPropertyName to Module/Model params (#729)#908

Merged
FH-Inway merged 7 commits into
d365collaborative:masterfrom
pavankadabala-png:fix/729-pipeline-module-model-params
Jul 18, 2026
Merged

feat: add ValueFromPipelineByPropertyName to Module/Model params (#729)#908
FH-Inway merged 7 commits into
d365collaborative:masterfrom
pavankadabala-png:fix/729-pipeline-module-model-params

Conversation

@pavankadabala-png

Copy link
Copy Markdown
Contributor

Add pipeline input support to 6 cmdlets that were missing it, so they can be chained directly from Get-D365Module or Get-D365Model:

$Module params (pipeline source: Get-D365Module):

  • Invoke-D365ProcessModule: add ValueFromPipelineByPropertyName = $true
  • Get-D365VisualStudioCompilerResult: same + begin/process/end blocks
  • Invoke-D365VisualStudioCompilerResultAnalyzer: same + begin/process/end blocks
  • New-D365CAReport: add ValueFromPipelineByPropertyName to both $Module and $Model (with new ModelName alias so Get-D365Model can bind both)

$Model params (pipeline source: Get-D365Model):

  • Remove-D365Model: add Alias(ModelName) + ValueFromPipelineByPropertyName
    • begin/process/end blocks
  • Get-D365InstalledHotfix: add Alias(ModelName) + ValueFromPipelineByPropertyName

Each updated cmdlet also gets a new .EXAMPLE showing pipeline usage.

Closes #729

…5collaborative#729)

Add pipeline input support to 6 cmdlets that were missing it, so they
can be chained directly from Get-D365Module or Get-D365Model:

$Module params (pipeline source: Get-D365Module):
- Invoke-D365ProcessModule: add ValueFromPipelineByPropertyName = $true
- Get-D365VisualStudioCompilerResult: same + begin/process/end blocks
- Invoke-D365VisualStudioCompilerResultAnalyzer: same + begin/process/end blocks
- New-D365CAReport: add ValueFromPipelineByPropertyName to both $Module
  and $Model (with new ModelName alias so Get-D365Model can bind both)

$Model params (pipeline source: Get-D365Model):
- Remove-D365Model: add Alias(ModelName) + ValueFromPipelineByPropertyName
  + begin/process/end blocks
- Get-D365InstalledHotfix: add Alias(ModelName) + ValueFromPipelineByPropertyName

Each updated cmdlet also gets a new .EXAMPLE showing pipeline usage.

Closes d365collaborative#729
Comment thread d365fo.tools/functions/get-d365installedhotfix.ps1 Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Splaxi While testing this command, I noticed that it never seems to finish. This is not caused by the changes. I never used this command before. Have you used it recently?

@FH-Inway

FH-Inway commented Jul 5, 2026

Copy link
Copy Markdown
Member

@pavankadabala-png If you run the generate text action on your fork, this should get rid of the failing checks.

@FH-Inway
FH-Inway merged commit 52d5def into d365collaborative:master Jul 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚸 All cmdlets with module/model parameters should support ValueFromPipelineByPropertyName and ValueFromPipeline

2 participants