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