Public/Procurement/InventoryOnHand/Get-CWMInventoryOnHand.ps1
function Get-CWMInventoryOnHand { [CmdletBinding()] param( [Parameter(Mandatory=$false)] [Alias('ProductID')] [int]$parentId, [int]$id, [switch]$count, [string]$condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childConditions, [string]$customFieldConditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) if (!$parentId) { $ParentID = 1 } #$Endpoint = "/procurement/warehouseBins/$($parentId)/inventoryOnHand/$($ID)" $Endpoint = "/procurement/warehouseBins/$($parentId)/inventoryOnHand/" #$Endpoint = "/procurement/warehouseBins" Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |