Teneo Developers Community

Filter session that only contain empty inputs

Hi, in the session viewer I sometimes see sessions that only contain empty inputs. What is the best way to filter those sessions?

Hello Marcus! This question comes up occasionally so we should probably document it better.

Whichever query you’re using, if you add this constraint on the right, you can assure the query only lists sessions that have at least one non-empty input:

t.e.userInput!=""

So one query might look like this:

listAll s.id: t.e.userInput!=""

Note that the constraint “exists t.e.userInput” is also true if the input is empty.

1 Like