You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are multiple cmdlets that have a (often mandatory) Module and/or Model parameter. Some of those cmdlets decorate those parameters with the ValueFromPipelineByPropertyName and/or ValueFromPipeline attributes. This makes the cmdlets easy to use in combination with other cmdlets that return a list of modules, such as Get-D365Module.
To provide a consistent user experience, it would be nice if all cmdlets support the ValueFromPipeline* options.
I.e. one can do Get-D365Module -Name "MyPrefix*" | Invoke-D365ModuleFullCompile
but not Get-D365Module -Name "MyPrefix*" | Invoke-D365ProcessModule -ExecuteCompile
The text was updated successfully, but these errors were encountered:
FH-Inway
changed the title
All cmdlets with module/model parameters should support ValueFromPipelineByPropertyName and ValueFromPipeline
🚸 All cmdlets with module/model parameters should support ValueFromPipelineByPropertyName and ValueFromPipelineApr 30, 2023
I will compile a list of cmdlets that we should look at. Searching for "[string] $Module" in the functions seems to be a good starting point. Finds 13 files and about half of them already have pipeline support.
There are multiple cmdlets that have a (often mandatory)
Module
and/orModel
parameter. Some of those cmdlets decorate those parameters with theValueFromPipelineByPropertyName
and/orValueFromPipeline
attributes. This makes the cmdlets easy to use in combination with other cmdlets that return a list of modules, such asGet-D365Module
.To provide a consistent user experience, it would be nice if all cmdlets support the
ValueFromPipeline*
options.I.e. one can do
Get-D365Module -Name "MyPrefix*" | Invoke-D365ModuleFullCompile
but not
Get-D365Module -Name "MyPrefix*" | Invoke-D365ProcessModule -ExecuteCompile
The text was updated successfully, but these errors were encountered: