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