Hi Everyone
In My Landing screen of Power App I have a button
On select of the button :
If(
User().Email in LookUp('Skill Info_GEC', 'Employee Email ID', 'Employee Email ID'),
Navigate('New Search Skill Screen'),
Notify("Please Create a New Account")
)
Basically, What Iam locking for is if the logged in user email is on the SharePoint list, ( Column Employee Email ID )
I want the user to navigate to a different screen or else notify them to please create a new Account
But Iam Facing an error for the look up function called "function lookup has some invalid argumnets"
Could anyone please help me to fix the issue
Hi , @Danny_Dicaprio
Thanks for your response ! The lookup() function's second parameter need to use the expression which return true or false.
In my code is "'Employee Email ID' =User().Email"
For more information, you can refer to :
Filter, Search, and LookUp functions (contains video) - Power Platform | Microsoft Learn
Best Regards,
Yueyun Zhang
Hi , @Danny_Dicaprio
You can try to use this code :
If(
!(IsBlank( LookUp('Skill Info_GEC', 'Employee Email ID' =User().Email) ) ) ,
Navigate('New Search Skill Screen'),
Notify("Please Create a New Account")
)
If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance!
Best Regards,
Yueyun Zhang
WarrenBelz
146,653
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional