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

Community site session details

Session Id : OdqFDjEKR6HduUqW6KIcsj
Power Apps - Building Power Apps
Unanswered

In Canvas App How to pre set lookup value

Like (0) ShareShare
ReportReport
Posted on 22 Jul 2022 09:32:30 by 13

My Question regarding power canvas app

in canvas app  i created login page .in login page it will first check email and password from crm entity called dipendenti . If  eamil and password is correct it will go to next screen and in next screen as you show below second image you can see there are some field one of them is lookup field .

1.From here check email and password on behalf of that user can login into next page and name field will be store in lookup filed of next screen 

roto4.png

Login page check from dipendenti entity 

 

Login pageLogin page

2. I want to set this look up field pre set .it is possible to take name from where we checking email and password and pre set that name in lookup field  

roto2.png

this look value show the name of dipendeti entity 

roto3.png

 

 

 

 

Thankyou in advance 

!please help mw with this 

 

Categories:
  • Beginner Aman Profile Picture
    13 on 25 Jul 2022 at 15:14:12
    Re: In Canvas App How to pre set lookup value

    I put this code On  default but it's not work for me , And my table name is 

    Beginner_Aman_0-1658760681984.png

    First one is table name  of current screen form And second yellow mark is represent Lookup field logical name 

    But i want to pre set the lookup value base on our login page which are compare from user id and password from another entity (syncu_dependentie )

    Beginner_Aman_1-1658761897011.png

    After compare email and password it auto set lookup value from which they login 

     

  • WiZey Profile Picture
    3,023 Moderator on 22 Jul 2022 at 13:18:14
    Re: In Canvas App How to pre set lookup value

    You've put the "LookUp()" in the wrong property of the dropdown.

     

    You've put it in "OnChange()" when it should be in "Default" property.

     

    Also, you must swap "table" and "name" with your table name and your column name to properly retrieve the column's value from your table. 

    "table" and "name" were merely examples in my sample code as I don't know your table's name and structure.

  • Beginner Aman Profile Picture
    13 on 22 Jul 2022 at 13:01:52
    Re: In Canvas App How to pre set lookup value

    Yes but in my case all record having their password and email if Someone enter particular record email or password name field be pre set in lookup field or if there is another way to set the name on another screen then please help me with this 

    Thank you very much for reply #

    NandiniBhagya20
     
  • Beginner Aman Profile Picture
    13 on 22 Jul 2022 at 12:58:09
    Re: In Canvas App How to pre set lookup value

    this code i use to Check login user information, i put this code into an Login button

    roto5.pngroto5.png

     

    After check and successfully enter into the next screen i want to pre set the lookup  value in lookup value their is name from where email  and password is enter , i just want to preset the name of that record which are list in lookup field  

     

    roto5.png

    This Dipendenti (syncu_dipendenti) records ,  All Nome(Name) Exist in lookup field

    roto5.png

     

    This is one of those record which are i am login through there email and Password and this record name i want to pre set in the lookup field , which are in  another screen of canvas app

     

    roto4.png

     

     

    Thankyou very much for reply ! #Wizy

    I tried your code but does not work for me.  please understand my scenario and help me with this

     

  • Beginner Aman Profile Picture
    13 on 22 Jul 2022 at 12:11:38
    Re: In Canvas App How to pre set lookup value

    Yes, Could you help me 

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on 22 Jul 2022 at 09:47:26
    Re: In Canvas App How to pre set lookup value

    Hi 

    Do you want to set default value of the look up field based on current logged in user ?

  • WiZey Profile Picture
    3,023 Moderator on 22 Jul 2022 at 09:45:04
    Re: In Canvas App How to pre set lookup value

    Hello @Beginner_Aman ,

     

    Yes, it is possible.

     

    Inside the "Default" property of your combobox, put the "LookUp()" function to retrieve the name of the person in your table based on the condition where the mail and the password correspond.

     

    LookUp(table; And(Mail=InputMail.Text;Password=InputPassword.Text)).Name

     

    I hope this was helpful to you.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete