-
Hi Team, I am using below solution to fetch data from ServiceNow CMDB. It works fine, I got list of servers only for organization XYZ, however I would like to add one more filter to narrow the list of hosts.
If I add another entry under query (example below) it will take second one as higher priority and ignore fist entry.
How can I add another filter? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are two ways of combining filtering conditions: using the query:
- company: LIKE XYZ
- install_status: = 5003 will return CMDB items that contain the XYZ string in the company name OR whose install status is equal to 5003. If you change your query to query:
- company: LIKE XYZ
install_status: = 5003 inventory plugin will return CMDB items that contain the XYZ string in the company name AND whose install status is equal to 5003. Of course, you can also combine those things. For example: query:
- company: LIKE XYZ
install_status: = 5003
- install_status: = 5004 |
Beta Was this translation helpful? Give feedback.
There are two ways of combining filtering conditions: using the
AND
andOR
operators. Your querywill return CMDB items that contain the XYZ string in the company name OR whose install status is equal to 5003. If you change your query to
inventory plugin will return CMDB items that contain the XYZ string in the company name AND whose install status is equal to 5003. Of course, you can also combine those things. For example: