LabtechConsulting / ConnectWise-Manage-Powershell

This is a PowerShell wrapper for the ConnectWise Manage REST API.
http://labtechconsulting.com
34 stars 19 forks source link

Problem with "AND" in Conditions on GET #21

Open OverviewTS opened 4 years ago

OverviewTS commented 4 years ago

Hello, a bit new to this so please be gentle!

We are trying to use some logic in our queries to define multiple conditions that both should be used in a query. I have tried both of these, and the examples given do not give much direction. Is this broken or am I doing this wrong?

Get-CWMScheduleEntry -Condition ("dateEntered > [2020-07-22T01:00:00Z]" AND "acknowledgedFlag = False") Get-CWMScheduleEntry -Condition "dateEntered > [2020-07-22T01:00:00Z]" -childconditions "acknowledgedFlag = False"

Neither of these work correctly and throw an error, however, when using only a single condition, I am able to get the results I desire. Thank You!

bangiebindy commented 3 months ago

I was also unable to make this work.