Public/Time/TimeEntries/Get-CWMTimeEntry.ps1
function Get-CWMTimeEntry { [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 = '/time/entries' if($id){ $Endpoint = Join-Url $Endpoint $id } return Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |