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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup Email and Add p...
Power Apps
Unanswered

Lookup Email and Add phone Number to field

(0) ShareShare
ReportReport
Posted on by 185

Hey I have the following fields: 

knishal_0-1663595440929.png

 

The email field is coming from SharePoint person column, I am trying to automatically insert the phone number when an email is

selected. Currently its not letting me with SharePoint. 

 

I found this formula to display phone number but I want to modify it so it look at the email field and based on the email it automatically insert the phone number. The email field is datacardvalue40

 

First(Office365Users.UserProfileV2(ThisItem.Name.Email).businessPhones).Value

 

Is this possible?

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

    @knishal 

    What is the Items property of your Email combobox?  If it is already Office 365 based, then you don't need to perform the UserProfile action again, you can just reference the combobox.

    i.e.

    First(yourDropdown.Selected.businessPhones).Value

     

    I hope this is helpful for you.

  • knishal Profile Picture
    185 on at

    The email combobox is a person column from a sharepoint list. I tried the formula you provided but its not working

     

    knishal_0-1663596717082.png

     

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

    @knishal 

    Yes...that is why I asked if the Items property was Office 365 based!  Since it is not, then it will not have any of that information and you will need to perform the userprofile action.

     

    So, your Default property on your Phone Number textinput control should then be:

    First(Office365Users.UserProfileV2(DataCardValuie43.Selected.Email).businessPhones).Value

     

     

  • knishal Profile Picture
    185 on at

    I have the office 365 connector and its giving this error: I have to enter information before the error goes away. Is there a fix for when the form is blank?

     

    knishal_0-1663597272179.png

     

  • knishal Profile Picture
    185 on at

    knishal_0-1663597960806.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @knishal 

    Sure...

     

    If(!IsBlank(DataCardValuie43.Selected.Email),
     First(Office365Users.UserProfileV2(DataCardValuie43.Selected.Email).businessPhones).Value
    )
  • knishal Profile Picture
    185 on at

    @RandyHayes amazing, It works. thanks a lot for your help with this

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

    @knishal 

    Excellent!  Happy to help!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard