I have a power app in which users will need to select enter data relating to their accounts and sites.
I want users to only see accounts which only relate to them within a dropdown box when they log in to the app.
The Items property of my dropdown box is Choices([@'Operational Review Commentary_1'].'UKI Accounts')
I have the following formula within the onstart property however this doesn't seem to work as my accounts Sharepoint list is a reference list and the email field is within this list. Is this the right approach if not how would I ensure that my dropdown only shows the accounts related to the user logged in
Set(
varUser,
User()
);
Set(
isUserSPList,
!IsBlank(
LookUp(
'UKI - Accounts List' ,
'Access Email' = varUser.Email
)
)
)