Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Authentication for PowerApps By Email using Sharepoint list

(0) ShareShare
ReportReport
Posted on by

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"

Danny_Dicaprio_0-1707891789293.png

 

 

Could anyone please help me to fix the issue 

  • v-yueyun-msft Profile Picture
    on at
    Re: Authentication for PowerApps By Email using Sharepoint list

    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

  • Danny_Dicaprio Profile Picture
    on at
    Re: Authentication for PowerApps By Email using Sharepoint list

    @v-yueyun-msft 

    It worked. 

    Thanks a lot man!

    Could you please explain why my formula didn't work?

  • Verified answer
    v-yueyun-msft Profile Picture
    on at
    Re: Authentication for PowerApps By Email using Sharepoint list

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,653 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard