sgtoj / PSConnectWise

PowerShell Module that provide several CmdLets to interact with ConnectWise REST API service.
MIT License
45 stars 13 forks source link

Get ServiceBoard and Ticket Items without ID #4

Closed sgtoj closed 8 years ago

sgtoj commented 8 years ago

Get all items without having to specify the ID?

Get-CWServiceBoard -Server $Server
Get-CWServiceTicket -Server $Server
sgtoj commented 8 years ago

The latest commit was my best effort. The primary reasoning is performance issues Get-CWServiceTicket without any filters. I have instead added the ability to retrieve by descending order. Because of that added option, these examples should achieve the same outcome.

# get all tickets; major performance hit on large CW servers
Get-CWServiceTicket -Filter "id>0" -Descending -Server $Server;
# get open tickets; not as much of a performance hit on large servers
Get-CWServiceTicket -Filter "closedFlag=false" -Descending -Server $Server;

Still need to work on expanding the company search.

sgtoj commented 8 years ago

Going to wildcard search for companies via #11.