Retrieve on account entity with role as a Xpath Constraint not working 

0
Dear All, Our project is to retrieve the account information of a specific user from an account entity with a specific role assigned to it, so we added the user role as an Xpath constraint, In this case, it retrieves all the accounts that do not work. I would appreciate if you could suggest what might be wrong with this
asked
1 answers
2

I think you should use the not() operator:

Example:
[not(System.UserRoles = '[%UserRole_SuperAdmin%]')]

[not(System.UserRoles = '[%UserRole_RESTUser%]')]

 

When you are comparing using the '!+' operator the expression returns true when it finds an object which does match the statement.

answered