Hi There – I’m hoping someone can help me with this.
In my PowerApp, I have a form for users to complete a timecard. The form contains a single-select drop-down field called HourType which is a lookup to another SharePoint list called CSHourTypes. This lookup works just fine.
However, I want to filter the options in the drop-down to only display HourTypes that the user is permitted to bill against.
I store the logged in user’s email address in a global variable called gbl_User and am trying to lookup the user in the CSUsers SharePoint list where the EmailAddress field = gbl_User and get the values in the CSHourTypesAllowed field which a multi-select field.
Then I want to populate the Items in the drop-down to only display matching hour types.
I've tried a couple of things along the lines of the following, but can't seem to get it to work. Any help or insight is greatly appreciated!
Filter(CSHourTypes, Title in LookUp(CSUsers, EmailAddress = gbl_User, HourTypesAllowed.Value), "Title")
CSHourTypes SharePoint List
CSUsers SharePoint List
- EmailAddress
- CSHourTypesAllowed