Skip to main content
Solved

NQE for matching agains device.Tagnames

  • July 15, 2025
  • 4 replies
  • 71 views

Forum|alt.badge.img+2

Hello:

   Hopefully this isnt a repeat as i couldn’t find the answer on here so I wanted to post it.  im trying to match against “tags” within  the application, and everything I am tying, regarding the ‘where matches” command is used, isnt working.  This is in the regular inventory so i have the statement “foreach device in network.devices” list as well above where i think the match line should go.  I can it list the tags, just not match/filter on tags.

Best answer by RobertWelch

Try this…


foreach tag in device.tagNames

where tag == "MYTAG"

4 replies

RobertWelch
Employee
Forum|alt.badge.img+1
  • Employee
  • 16 replies
  • Answer
  • July 15, 2025

Try this…


foreach tag in device.tagNames

where tag == "MYTAG"


Forum|alt.badge.img+2
  • Author
  • Spotter
  • 24 replies
  • July 15, 2025

Well if i didnt over thing that one...thank you kindly as it worked.


RobertWelch
Employee
Forum|alt.badge.img+1
  • Employee
  • 16 replies
  • July 15, 2025

NP.  Don’t forget that there are some wonderful examples in the right side Data Model examples.  Use the search bar at the top.  Although in this case, the “where” is the key.  
Keep the questions coming.  Others lean by asking as well.  


cariddir
Spotter
Forum|alt.badge.img+5
  • Spotter
  • 25 replies
  • September 16, 2025

Also, you combine easily -
where "Network" in device.tagNames && "Router" in device.tagNames
to further filter.