Hi All,
Looking for a session relevance to bring the values of a custom property. Please suggest as I tried the below with few more combinations and it did not work:-
Hi All,
Looking for a session relevance to bring the values of a custom property. Please suggest as I tried the below with few more combinations and it did not work:-
Hi, the error is exactly what it says - “name” is not defined on the “results” level (the way you have it). You can do
(name of property of it, values of it) of results ...
or
(name of computer of it, values of it) of results ...
Rule of thumb when writing session relevance remember which level you are on and look up what properties you have on it: https://developer.bigfix.com/relevance/reference/bes-property-result.html
I would highly recommend looking at the BigFix excel connector as well.You can select your properties that you would like to collect information on then pull in the results directly into Excel. Then if you still need the session relevance for that query to use it with a custom report or with Rest API you can click on Show Relevance Code and it will provide you with the session relevance query to pull the data from your data set.
Thank you for responding,
We use o365 to work on excel but I will work it out. I understand the power of excel tool connector, it’s awesome for making session relevance’s.
I did this once to help someone on my team, but when a property name is not unique, I found a way to refer to it by ID. For example, we have many properties with the name “Installed” and belong to many different Analyses.
value of result (it, bes properties whose (name of it = “Installed” and id of it = (5555, 1234, 1))) | “N/A”,
5555 = forgot what this ID was right now, I think it may be the site ID but could be wrong.
1234 = ID of the Analysis
1 = First property in the Analysis (which is named “Installed”)
Yes that’s a good tactic. The original problem in this post is that one can retrieve a name of <bes property>
but not a name of result of <bes property>
. Results don’t have names, only the Property has a name.
When that Property Name is not unique, as you say we can use the Property ID to refer to it instead. Or if you have multiple deployments where the ID will be different but the site or analysis are known, you could also use lookups such as
// Global Property:
(name of it, id of it) of bes properties whose (name of it = "Something" and not analysis flag of it)
// From an Analysis:
(name of it, id of it) of bes properties whose (name of it = "Something" and name of source analysis of it = "My Analysis")
// From an Analysis in a specific Site:
(name of it, id of it) of bes properties whose (name of it = "Something" and name of source analysis of it = "My Analysis" and name of site of source analysis of it = "My Site")
You may also use reserved flag of it
, default flag of it
, and custom flag of it
to find properties that are built-in or provided as default global properties.