I started looking for a Forum tip on “Session Relevance vs Client Relevance”, only to find I haven’t actually written one yet, though I keep meaning to get around to that. I’ll try to write up something in the next week or two.
For now, the short version is that Session Relevance is evaluated on the server, not the client. Clients cannot use Session Relevance, at all, because it requires a Session on the server. To use Session Relevance, you must be logged on (authenticated) to the Server.
Session Relevance is useful in creating custom Dashboards, Web Reports, or REST API queries, all of which run in a session on the server.
For testing Session Relevance, the easiest place is probably the Web Reports QNA page (
https://web-reports-server.domain:8083/webreports?page=QNA ). Other options include the Presentation Debugger in the Console (need to enable Console Debug options first). There’s also a Session Relevance Query Tester and an Excel Connector standalone tool.
In either a Custom Web Report, or in a custom Console Dashboard, in any of the HTML areas you can perform simple relevance substitutions via the special tags
<?relevance some relevance query /?>, for example
<?relevance concatenation of ps of names of bes computers ?> would output a set of HTML
<p> tags, with one computername in each paragraph.
EvaluateRelevance(string) are the most common. One returns a flat string of all the results, while the other returns an object allowing to step through each plural result and each property of the result.
You can also use Session Relevance via the REST API by posting to
https://bes-root-server.domain:52311/api/query . Some good details at https://developer.bigfix.com/rest-api/ and its sub-topics.