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 / Automatic fill dropdow...
Power Apps
Unanswered

Automatic fill dropdown by nested lookup

(0) ShareShare
ReportReport
Posted on by 32

Hi all!

 

I have made a NewForm and I want the field Kenteken (lookup field) to be filled automatic based on the users login info.

 

Table Klanten:

KlantNr (PK) = 1000

Zakelijk mailadres

 

Table Kentekens:

Kenteken (PK)

Bestuurder (LookUp) = 1000

Table SchadeDossiers (NewForm);

ID

Kenteken (Lookup)

 

So I want to check the users email with the Klant table to get the KlantNr. If I have the KlantNr I can look into the Kenteken table to get the kenteken matching with the KlantNr=Bestuurder. But I cannot get this to work.

 

This is one of the codesnippets I used: 

LookUp(Kentekens, Value(Bestuurder) = LookUp(Klanten, 'zakelijk mailadres' = User().Email, KlantNr), Kenteken)

 

Can someone help me?

maltie01_0-1701783596333.png

 

 

Categories:
  • swaminawale Profile Picture
    195 on at

    Hi @maltie01 ,

     

    Try to use this -

     

    LookUp(Kentekens, Bestuurder.Value = LookUp(Klanten, 'zakelijk mailadres' = User().Email, KlantNr), Kenteken)

  • maltie01 Profile Picture
    32 on at

    Hi!

     

    This does not work unfortunately but I am not getting a specific error to show you unfortunately

  • swaminawale Profile Picture
    195 on at

    Here's what I understood. Please correct me if I'm wrong 🙂

     

    So you want to lookup in "Kentekens" table First you want to check whether logged in user email exists in "Klanten" table and if it exisits then you need to get "KlantNr (PK)" value. After that you need to check in "Kenteken" table where "KlantNr (PK)" = "Bestuurder"

  • maltie01 Profile Picture
    32 on at

    Yes indeed! And then get the Kenteken from that specific user.

  • swaminawale Profile Picture
    195 on at

    Can you try this -

     

    Lookup('Kentekens', Bestuurder.Value = Lookup('Klanten','Zakelijk mailadres' = User().Email).KlantNr)

     

     

    Lookup('Klanten','Zakelijk mailadres' = User().Email).KlantNr -> this will lookup into Klanten table to check whether loggedin user present or not and then returns the value and if it is not present then it will return blank.

     

    After returning the value then it will check in "Kentekens" table for that value 

  • maltie01 Profile Picture
    32 on at

    I get the following errors:

    Bestuurder isn't recognized

    Zakelijk mailadres isn't recognized

    Lookup is an unknown or unsupported function 2x
    Invalid use of '.'

  • swaminawale Profile Picture
    195 on at

    Are you able to put screenshot of the list you are using... Just wanted to cross check column names or any info. u can share

  • maltie01 Profile Picture
    32 on at

    maltie01_1-1701848974340.pngmaltie01_2-1701848998346.png

    maltie01_3-1701852077006.png

    Here they are 🙂

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard