web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / LookUp control doesn't...
Power Pages
Unanswered

LookUp control doesn't work

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
 

Hello,


I'm new to power apps and I have a problem, I'm creating a login page for my application, and to do so the user has to enter his username and password. The application is linked to SharePoint, where the table containing this information is located.
but the problem is that my "OnSelect" entry doesn't work because there is an error I can't find. Here is the line :

 

If(LookUp(access_account, Title = username.Text, mukq) = password.Text,
Navigate([@HomeScreen], ScreenTransition.Fade), "")

 

the column of the identifier is "Title".
and the password column is "mukq".


thanks in advance and sorry for my english

 

2020-01-21_09-55-09.png
Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    The right syntax of navigate should be like:

    Navigate(Screenname, [, Transition [, UpdateContextRecord ] ] )

    The third parameter should be like:

     { field1: ...,field2:... }

    "" could not represent  Record, it can only represent a string.

    So if you do not want to pass any variable, you just need to use:

    If(LookUp(access_account, Title = username.Text, mukq) = password.Text,
    Navigate(HomeScreen, ScreenTransition.Fade)
     )

    // I think the screen name should be like : HomeScreen.

    If you want to pass a variable(value is ""), you need to use:

    If(LookUp(access_account, Title = username.Text, mukq) = password.Text,
    Navigate(HomeScreen, ScreenTransition.Fade,{variablename:""})
     )

    Here's a doc about Navigate function for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-navigate

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    thanks for the answer but it still doesn't work, I've put a picture attached, so you can see.
    Power apps gives me the error:
    "Unexpected character. The formula contains "ParentClose" while "Error" is expected.
    thank you for your answers.

    chrome_2020-01-22_11-22-43.png
  • TechnoKitty Profile Picture
    68 on at

    May I ask you why are you building login functionality? Portal provides both internal login (portal user) or external using Azure AD, Facebook or can integrate with other identities , here’s an awesome article from @nhayduk : https://www.engineeredcode.com/blog/power-apps-portals-authentication-overview 

    if you need to make look and feel custom, it’s also possible through css and scripts.

    I presume there may  be another reasons?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 42

#2
Valantis Profile Picture

Valantis 24

#3
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard