Public/Project/ProjectsTeamMembers/Get-CWMProjectTeamMember.ps1
function Get-CWMProjectTeamMember { [CmdletBinding()] param( [Parameter(Mandatory=$true)] [Alias('ProjectID')] [int]$parentId, [int]$id, [string]$Condition, [ValidatePattern('\S* (desc|asc)')] [string]$orderBy, [string]$childConditions, [string]$customFieldConditions, [int]$page, [int]$pageSize, [string[]]$fields, [switch]$all ) $Endpoint = "/project/projects/$($parentId)/teamMembers" if($id){ $Endpoint = Join-Url $Endpoint $id } return Invoke-CWMGetMaster -Arguments $PsBoundParameters -Endpoint $Endpoint } |