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 / Not all records fillin...
Power Apps
Unanswered

Not all records filling in User information

(0) ShareShare
ReportReport
Posted on by 1,512

@RandyHayes 

 

I have this app that prefills the user information name and employee id 


If(
Form1.Mode = New,
First(
Filter(
CurrentEmployeeOrg,
Lower(Email) = User().Email
)
).EmployeeNumber,
ThisItem.EmpId
)

 

The issue is that not all of the people who login is having the ID fill it, I have less then 2000 records to lookup from the list CurrentEmployeeOrg

 

I know you gave me the other example

 

If(
Form1.Mode = New,
LookUp(
CurrentEmployeeOrg,
Lower(Email) = Lower(DataCardValue2.Selected.DisplayName),
EmployeeNumber
)
)

 

But i do not know how to apply that to this issue?

 

Any ideas?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dorinda 

    Yes, definitely ditch the First(Filter in your formulas!

     

    And, no, I don't believe that applies to your issue - you are stating that an employee (based on email) does not have a record in the CurrentEmployeeOrg list?  

    So, if that is the case, then what do you want the Employee ID to be?

     

    Am I missing something?

  • Dorinda Profile Picture
    1,512 on at

    No they are in the list i have validated that but when they open the form it is not filling it in like it does for me.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Dorinda 

    So, re-looking over your formula (the one you said I provided), you are trying to compare the lowercase version of the email with the lowercase version of the Display Name - that is not going to compare!  The formula I suggested to you compared email to email.

     

    Next, in your first formula, you are comparing the lower of the email from the CurrentEmployeeOrg to the non-lowered User().Email.  That will most likely cause issues.

    Also sometimes the User function in the lookup causes issues.

    It would be better practice to have this formula in the OnStart of the app:

       Set(AppUser, User())

     

    Then change your formula to the following:

    If(Form1.Mode = New,
     LookUp(CurrentEmployeeOrg,
     Lower(Email) = Lower(AppUser.Email), 
     EmployeeNumber
     ),
     ThisItem.EmpId
    )

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard