Skip to content

Get-CWMCompany Type ID #4

@jgshier

Description

@jgshier

When trying to run Get-CWMCompany -Condition 'typeids="1"' it fails at,
Invoke-CWMWebRequest : An error has been thrown.
at Invoke-CWMWebRequest, : line 745
at Invoke-CWMGetMaster, : line 412
at Get-CWMCompany, : line 866
at , : line 21
--> ApiFindCondition
--> typeids is not a recognized name.
At line:412 char:19

  • ... $Result = Invoke-CWMWebRequest -Arguments $WebRequestArguments
  •                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CWMWebRequest

Postman does work https://api-na.myconnectwise.net/v4_6_release/apis/3.0/company/companies?conditions=typeids="1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions