Public/Procurement/ProductsItem/Get-CWMProduct.ps1
function Get-CWMProduct { [CmdletBinding()] param( [string]$Condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childconditions, [string]$customfieldconditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) $URI = "https://$($script:CWMServerConnection.Server)/v4_6_release/apis/3.0/procurement/products" return Invoke-CWMGetMaster -Arguments $PsBoundParameters -URI $URI } |