(imported topic written by SystemAdmin)
Hello Forum users,
I’m new here so forgive me if I’ve missed some already available help. I’m working on an application that will utilize a few aspects of the new REST API as well as the SOAP API on webreports, and I’ve been struggling a bit with my relevance code.
I have a statement like this that works fine:
(id of it as string, states of it, times issued of it) of (bes actions whose
(name of it contains “My Action Title” and targeted list of it contains “ComputerName1”))
This gives me the expected result, and finds the action ID, etc based on the computer. I similarly have a statement that searches on the name of a targeted computer as follows:
(id of it as string, states of it, times issued of it) of (bes actions whose
(name of it contains “My Action Title” and name of targeted computers of it contains “ComputerName1”))
This too works as expected.
Now what I’d like to to do, is actually attempt to combine this set of searches into a single one so I don’t have to make dual calls to the SOAP API:
I’ve tried the following: (and a number of variations of this, but cannot get it to work).
id of it as string, states of it, times issued of it) of (bes actions whose
(name of it contains “My Action Title” and (name of targeted computers of it contains “ComputerName1” or targeted list of it contains “ComputerName1”)))
Does anyone have any suggestions on how to correctly craft this statement so that I can simultaneously search out the targeted list and the targeted computer name?
I’m using the session relevance editor to test, and it’s quite helpful but it seems I’m missing the definitive guide to relevance language. (both session and action)
thanks,
Ryan