Search with Filter Based Upon User Detail

0
Hi Community! I have a requirement to have (1) a search function on an input field that is also (2) filtered based upon a users account. I can achieve the first part through using an XPath as a data source on a listview. (Grabbing the entire entity list) I can also achieve the second part through accessing the data through a Microflow: My problem is that I cannot seem to achieve both together. Any help would be much appreciated. Thanks, Ryan  
asked
1 answers
1

Hello Ryan,

The second sounds like an access rule to me, for example – displaying only the projects the current user has been assigned.

If that’s the case you should put that as an XPath on the entity security.

If that’s not the case I would suggest just using the default search functionality, because the alternative would be a set of ifs with filters applied selectively and it can get messy. If you just want to get the simple search going you need to retrieve from database and put the associations in the XPath rather than retrieve via association.

Hope this helps.

answered