Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

IQL Condition - Change Object Status

James Calimutan March 10, 2022

Please help with a better syntax to generate an issue when the status of a computer or mobile device is set to pending return.

image.png

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
March 10, 2022

Hi @James Calimutan 

You'll want to combine your conditions into one. Right now your conditions are sequential and will likely collide.  Try a single IQL condition with this:

ObjectType IN(Computers, Mobile Devices) AND "Status" = "Is Pending Return"
James Calimutan March 10, 2022

Thanks @Mark Segall ! I keep getting this error. I have tried = "Is Pending Return", IS "Pending Return" 

 

image.png

Mark Segall
Community Champion
March 10, 2022

Hi James - You need an EQUALS in your query like I posted above for statuses.  This worked for me.  Also, be cautious with case sensitivity.  IQL can be fickle with that.

James Calimutan March 10, 2022

Hi Mark. Still getting that error message unfortunately

image.png

James Calimutan March 10, 2022

Thanks Mark. This is sorted. Made a few adjustments and it is now working.

image.png

Mark Segall
Community Champion
March 11, 2022

Ahh - Your status was called "Pending Return".  It was hard to tell if that "IS" was being inserted by the automation or what you actually called the status.  Glad you sorted through all of that and got it working.

Suggest an answer

Log in or Sign up to answer