Variable as an input for XPath

1
Hi, I have entities employee, region and job. Every employee is associated with a region and a job How can I use XPath for filtering the employees based on the region of current user?   Thanks in advance
asked
3 answers
1

[MyModule.Employee_region = $CurrentAccount/Account_Region]

You can use something like that. You need to adjust it based on the naming of your associations, modules and entities.

answered
1

If you want to do it on a page and not in a microflow, you may need to have a dataview showing the current user so that you can use it as “currentObject”

answered
1

If your user is always only allowed to see this set of Employees, you can also add an xpath to the access rules of your employee entity and only give read permissions on those employees that are associated to a region that is associated with the user.

answered