Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with New-CWMTicket #11

Open
jayposton opened this issue Apr 15, 2019 · 0 comments
Open

Error with New-CWMTicket #11

jayposton opened this issue Apr 15, 2019 · 0 comments

Comments

@jayposton
Copy link

New-CWMTicket fails when providing the company ID. To get around it I had to run the Invoke-RestMethod for the ticket to be created. Here is the error below:

PS C:> New-CWMTicket

cmdlet New-CWMTicket at command pipeline position 1
Supply values for the following parameters:
summary: testing
company: 250
Invoke-CWMWebRequest : An error has been thrown.
at Invoke-CWMWebRequest, : line 745
at Invoke-CWMNewMaster, : line 630
at New-CWMTicket, : line 3367
at , : line 1
--> ConnectWiseApi
--> Error converting value "250" to type 'ConnectWise.Apis.v3_0.v2015_3.Common.Models.CompanyReference'. Path
'company', line 3, position 21.
At line:630 char:15

  • $Result = Invoke-CWMWebRequest -Arguments $WebRequestArguments
    
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CWMWebRequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant