Possible to use token [%CurrentUser%] in OQL queries

0
We trying to get some OQL queries running using tokens like the CurrentUser, raising errors on runtime. Just to make sure before spending more time on it: is this possible, has anyone experience with this or an example available. Thanks in advance.
asked
2 answers
2

Tokens can in fact be used in OQL. They can be used in where statements.

For example. You can call [%CurrentDateTime] in an where statement when you are comparing a date time attribute. 

Following this logic, if you have a atribute connected to System.User you should be able to reach the [%CurrentUser].

Such a statement would look something like this:

Where

(StartEntity)_User/System.User/ID = '[%CurrentUser%]'

answered
-1

Bob,

Tokens like that are only for use in Xpath queries.  See documentation here.

Mike

answered