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 Apps / Add the set value in l...
Power Apps
Answered

Add the set value in login screen

(0) ShareShare
ReportReport
Posted on by 2

Hello,
I am creating a login screen where I want to fetch userid and save it during the login but it's not able to navigate to browse screen

Here the command

If(
!IsEmpty(

Filter(Users, UserName=username_input.Text,
Password=password_input.Text
)

),

Set(userrow, LookUp(Users, UserName=username_input.Text, Value(UserID))),
Navigate(BrowseScreen1),

Notify("Credential not matching"),
Reset(password_input),
Reset(username_input)
)

 

Categories:
  • Prabhakar_S Profile Picture
    735 Moderator on at

    Hi @sameerkhan7869 ,

     

    Try this formula,

     

    If(
    !IsEmpty(
    Filter(
    Users,
    UserName = username_input.Text,
    Password = password_input.Text
    )
    ),
    Set(userrow, First(Filter(Users, UserName = username_input.Text, Password = password_input.Text)).UserID),
    Navigate(BrowseScreen1),
    Notify("Credentials not matching"),
    Reset(password_input),
    Reset(username_input)
    )

     

    Thanks!!!

     

    Please consider marking my response as the accepted solution if it successfully resolves your concern. If you found the information beneficial in other aspects, kindly express your appreciation by giving it a thumbs-up.

  • Verified answer
    WarrenBelz Profile Picture
    156,963 Most Valuable Professional on at

    Hi @sameerkhan7869 ,

    I think you need to change this bit (semi-colon instead of comma at the end of the first line)

    Set(userrow, LookUp(Users, UserName=username_input.Text, Value(UserID)));
    Navigate(BrowseScreen1),

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard