Public/Procurement/ProductsItem/Get-CWMProduct.ps1
function Get-CWMProduct { [CmdletBinding()] param( [int]$id, [string]$Condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childconditions, [string]$customfieldconditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) $Endpoint = '/procurement/products' if($id){ $Endpoint = Join-Url $Endpoint $id } return Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |