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

No info on New-CWMTicketNote #12

Open
bingo-the-pyro opened this issue May 15, 2019 · 1 comment
Open

No info on New-CWMTicketNote #12

bingo-the-pyro opened this issue May 15, 2019 · 1 comment

Comments

@bingo-the-pyro
Copy link

I can see this function in CWManage.psm1, but I cannot get it to work and there is no documentation on the main page.

new-cwmticketnote -ticketid 436792 -text 'Ticket note test'

`Invoke-CWMWebRequest : An error has been thrown.
at Invoke-CWMWebRequest, C:\scripts\CWManage.psm1: line 745
at Invoke-CWMNewMaster, C:\scripts\CWManage.psm1: line 630
at New-CWMTicketNote, C:\scripts\CWManage.psm1: line 3599
at , C:\scripts\test-cwmanage-tb.ps1: line 63
at , : line 1
--> InvalidObject
--> serviceNote object is invalid
-----> Please choose where to display the notes in order to save this record.
At C:\scripts\CWManage.psm1:630 char:15

  • $Result = Invoke-CWMWebRequest -Arguments $WebRequestArguments
    
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CWMWebRequest`
@bingo-the-pyro
Copy link
Author

With the help of a colleague (and some logging) we found this:
new-cwmticketnote -ticketid 436792 -text 'Ticket note test' -detailDescriptionFlag $true
There are obviously more parameters as well.
So there we go, just a New-CWMTicketNote readme and this will be more amazing :)

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