Get relevant flag from action results

Hi,
I am struggling to get relevant flag of fixlet for computer in Action results -

    (
       (
        name of source fixlet of action of it, name of action of it, name of computer of it ,status of it as string, detailed status of it as string,

(if (exists applicable computers whose (name of it as lowercase = "dcamw4u" as lowercase ) of source fixlet of action of it) then "baselineApplicable=true" else "baselineApplicable=false"),
        
     **(relevant flag of it) of results from (bes fixlets whose (name of it as lowercase =  (name of source fixlet of action of it as lowercase))) of computer of it**    
     
       )
       of results 
       whose
       (
         name of computer of it as lowercase is contained by set of ("dcamw4u" as lowercase )
       )
       of bes actions 
       whose
       (
          id of it = 106569
       )
    )

since I m provideing server name it works , but cant i use `name of computer of action like mentioned in **
(if (exists applicable computers whose (name of it as lowercase = “dcamw4u” as lowercase ) of source fixlet of action of it) then “baselineApplicable=true” else “baselineApplicable=false”)

Hi Siddhesh,

So what is it you’re trying to do here?

Looks like you’re looking at the results of a specific action, and for each one you’re getting:

  • Name of the fixlet it’s been created from
  • Name of the action itself (usually the same as the source fixlet, but not always)
  • Name of the targeted computer for the result
  • Status and detailed status of the result
  • Whether or not the source fixlet is still applicable to the targeted computer

The ** section you mentioned:

(relevant flag of it) of results from (bes fixlets whose (name of it as lowercase = (name of source fixlet of action of it as lowercase))) of computer of it

This does not look like valid relevance - the results themselves would not define a relevance flag, only the fixlet they are the results of.

But the crux of the issue seems to be that you would like to use the computer name of each result record to see if that computer is still relevant, without having to explicly call it out by name, right?

So something like this maybe is what you’re after?

 (
   (
     name of source fixlet of action of it, 
     name of action of it, 
     name of computer of it, 
     status of it as string, 
     detailed status of it as string, 
     (
       if
       (
         set of (names of applicable computers of source fixlet of action of it) contains name of computer of it
       )
       then
         "baselineApplicable=true" 
       else
         "baselineApplicable=false"
     )
   )
   of results 
   of bes action 
   whose
   (
     id of it = 106569
   )
 )
1 Like

Thanks Paul. Thats exactly I was looking for :slight_smile: