Session relevance for REST API statement that adds client setting value to this Session Relevance statement

I need to add the value of a client setting to the below session relevance statement that I am creating for REST API call

Add this or something like it (not required to have the else statement , just nice to have)
of (value of setting “Destination” of client as
string)) else (“No Data - Client Setting Does Not Exist”)

to this

(source id of fixlet of it as string,source severity of fixlet of it as string,source of fixlet of it as string,category of fixlet of
it as string,name of fixlet of it as string,name of computer of it as string, last became relevant of it as string )of results from (bes fixlets whose (fixlet flag of it and display name of site of it contains "Patches for Windows")) whose (exists first became relevant of it and relevant flag of it = true) of bes computers

First part of is now working and now I need to add to second part.

( name of it, (if (exists client settings whose (name of it = "Department") of it) then (value of client settings whose (name of it = "Department") of it) else "None") ) of bes computers

This is a more straightforward way to write the session relevance for the Department:

(value of client settings whose(name of it = "Department") of it | "None") of bes computers

If you don’t need the result to be singular and don’t need a result for every computer, then it can be like this:

values of client settings whose(name of it = "Department") of bes computers

Thanks jgstew. I am struggling joining the two session statements together , do you have any thoughts for that?

Maybe something like this:

( (value of client settings whose(name of it = "Department") of it | "None") of computer of it, source id of fixlet of it as string,source severity of fixlet of it as string,source of fixlet of it as string,category of fixlet of
it as string,name of fixlet of it as string,name of computer of it as string, last became relevant of it as string )of results from (bes fixlets whose (fixlet flag of it and display name of site of it contains "Patches for Windows")) whose (exists first became relevant of it and relevant flag of it = true) of bes computers

That is exactly what I need. Much appreciated

1 Like