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 / Autofill user data bas...
Power Apps
Unanswered

Autofill user data based on e-mail (datasource: excel table)

(0) ShareShare
ReportReport
Posted on by 4

Hi guys, I am creating a Contact Finder app for my company.

 

As a data source, I used a exel table (Online Excel for Business), where I have  2 "contact columns": "Contact person" and "E-mail".

 

In the detail page of my app, I would like not only to show (in a form) the data taken from the excel, but also other data (City, phone Number ect) , which should automatically be filled in though Office365Users using as searchterm the name or at least the e-mail address already displayed the other datacardvalues. How do I do this?

 

I tried with these formulas, but it does not work:

 

Office365Users.UserProfile(ThisItem.'E-Mail ').TelephoneNumber

Office365Users.SearchUser({searchTerm:Gallery1_1.Selected.'Contact Person'}).City

First(Office365Users.SearchUser({searchTerm:ComboBox1.SearchText})).City

 

Thanks!!

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,432 Most Valuable Professional on at

    Hi @Elliago ,

    All of those formulas as valid if you have the user's email address in the relevant reference (I just tested them using this). When you say "does not work", are you getting an error or simply no result ?

  • Elliago Profile Picture
    4 on at

    There is no error, I simply get no result. Do you know how I might solve this problem? Thanks in advance! 

  • WarrenBelz Profile Picture
    156,432 Most Valuable Professional on at

    @Elliago ,

    If you have a valid email address in any of those references and a Telephone Number / City in the user's record in Active Directory, then the formulas you posted should display that item - have you checked all of these elements exist ?

  • Elliago Profile Picture
    4 on at

    Yes I checked. I also put myself on the contact list and tried the formulas. I know I have a Phone number, but it did not show anything at all. If I use User() it shows my Phone Number,  but that´s not the formula I am looking for 

  • WarrenBelz Profile Picture
    156,432 Most Valuable Professional on at

     

    Hi @Elliago ,

    Sorry, but that makes no sense to me presently - if you put these two items on Labels, do you see valid email addresses ?

    ThisItem.'E-Mail '
    Gallery1_1.Selected.'Contact Person'

    The third item though does not need First() as you are searching on the SearchText, not the selected item.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard