Overview of complex text mode filters that use EXISTS statements

Consider the following when creating filters that span multiple levels in the object hierarchy or filter for missing objects:

  • You must create complex filters when you want to reference objects not directly connected to the filter object.

  • You must use an EXISTS statement to do the following:

    • Create filters that span multiple levels.
    • Create filters that look for objects that are missing.
      For example, when building a user report, you can filter for users who have not logged time for a certain period of time.

Consider the following rules when using EXISTS statements in a filter:

  • There are three objects that you could reference in an EXISTS filter:

    • The object of the filter (Original Object).
    • The object whose field you want to reference (Target Object).
    • The object that connects the Original and the Target Objects, in case they are not directly connected to one another (Linking Object).
  • Filters that use EXISTS contain two separate statements linked by an equal sign:

    • The statement before the equal sign refers to the object you are referring to (the Linking or the Target Object).
    • The statement after the equal sign refers to the object you are referring from (the Original Object).
  • You must use the object code of the Linking Object to connect your statements.
    You can find the object code of all objects in the API Explorer.
    For information about the API Explorer, see the API Explorer.

  • When a Linking Object is missing because the Original and the Target Objects are connected to each other directly, you can use the Object Code of the Target Object instead of the Linking Object.

  • You can refer to multiple fields (Target Fields) on the same object (Target Object), in which case you must connect the lines that are referring to the fields by AND.
    For an example of filtering for more than one field that belongs to the Target Object, see the Example 4: Filter by multiple fields: tasks by Portfolio Owner Name and Portfolio Alignment Scorecard ID section in this article.

  • The only modifier supported for an EXISTS statement is NOTEXISTS.