Public/System/Documents/Get-CWMDocument.ps1
function Get-CWMDocument { [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 = '/system/documents' if($id){ $Endpoint = Join-Url $Endpoint $id } return Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |