I have customer has a data source.
I need to filter combo-box items based on user login, How can achieve this. Can anyone help me to fix this issue.
Thanks in advance
Solved! Go to Solution.
Hi @jeniviya ,
Could you please share a bit more about the data structure of your "Access Roles" Entity?
Could you please show more details about the formula you typed within the Items property of the Customer Name ComboBox?
I assume there are two Text type columns in your "Access Roles" Entity to store the Customer name and corresponding user. Based on the needs that you mentioned, I think the Filter function could achieve your needs.
Please set the Items property of the Customer ComboBox to following:
Distinct( Filter( 'Access Roles', UserName = User().FullName ), CustomerName )
Note: The UserName and CustomerName are both Text type columns in your "Access Roles" Entity. The UserName is used to store the User name, e.g. 'Smith Liu'. The CustomerName is used to store the Customer name, e.g. citi bank, citi finance.
Please consider take a try with above solution, check if the issue is solved.
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
How would I know which customer you want to have filtered for each user? Do you want me to guess what you want to do, lol? You need to provide more details than just a single sentence...
This is still not enough information. How would PowerApps know these 2 customers are what YOU should see as opposed to what OTHERS should see? Your question implies that each User should have different customers available in the dropdown.
If you cannot take the time to be detailed in your explanation then I cannot help you here.