Self reference xpath question

1
I have a person entity that is a generalization of administration.account. I use a self-reference of this entity to be able to add another person as re placement of this person. But now a person can select itself as its re placement. What would the xpath be in the reference selector be to show all persons except the dataview of the person I am editing? Or should I use a microflow to avoid that a person can have itself as its re placement?
asked
1 answers
1

Seem to have found my own answer:

[Username != Persons.Person_Replacement/Persons.Person/Username]

does not work. But

[id !='[%CurrentObject%]'] does work.

answered