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 / Employee Phone number ...
Power Apps
Answered

Employee Phone number missing

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

In my powerapps I am using office365user as a datasource. I added below code to display user phone extension number but nothing showing whereas if I use .MobilePhone it does show use mobile no. What I am doing wrong? I have tried to use .BusinessPhones but still no luck. I can see user extension no through office365 mail.

 

Any help will be appreciable.

 

If(IsBlank(First(Employeeprofile).TelephoneNumber),"-",First(EmployeeProfile).TelephoneNumber)

 

Thanks

Mohammad

Categories:
I have the same question (0)
  • sarafankit Profile Picture
    on at

    Can you please try:

     

    First(Office365Users.MyProfile().BusinessPhones).Value
  • 3m Profile Picture
    16 on at

    Thanks for prompt reply. It works only for mine but when I search other user phone no doesn't change!

     

    Sorry, I am very new in the tools.

     

    Thanks

     

  • Verified answer
    sarafankit Profile Picture
    on at

    Can you please paste the formula you are using, I was able to get this to work for other users as well.

     

    Here is something you can try:

    First(Office365Users.UserProfile("AnotherUser@contoso.com").BusinessPhones).Value

    Please replace the anotheruser@contoso.com with the UPN/Email-id of other user in your org. The formula I had pasted earlier was showing the Phone for the current user.

     

    Essentially the phone number will be part of the BusinessPhones, which is like an array, so you need to do First() on it.

  • Community Power Platform Member Profile Picture
    on at

    am I missing something here?  Because "businessphones" does not come up in the property browser.  I get mobilePhone or TelephoneNumber, and both have my mobile phone number.  This is the same for me whether I use EmployeeProfile or Office365Users.UserProfile

  • 3m Profile Picture
    16 on at

    Hi tcfranks,

     

    This is what I am using to get employee business phone no. Hope this help

     

    Concatenate("(03) 9999 -", First(Office365Users.UserProfile((First(EmployeeProfile).UserPrincipalName)).BusinessPhones).Value)

     

    Regards,

    Mohammad

  • Community Power Platform Member Profile Picture
    on at

    as I said, "BusinessPhones" is not a recognized option to Office365User.UserProfile.  Pasting in what you offered only causes an error in the formula.

  • sarafankit Profile Picture
    on at

    @SameerCh@archanan - Any ideas what may be happening here?

     

    @Anonymous- Can you please provide us a Session ID from your authoring session when you are hitting this? You can get the Session Id by going to File> Account > Diagnostics > Session Details

  • Community Power Platform Member Profile Picture
    on at

    Session ID: 7fc9d3fa-2116-3a62-9cb6-5377bccb55e7

  • sarafankit Profile Picture
    on at

    Thanks @Anonymous, we will look into it.

  • Community Power Platform Member Profile Picture
    on at

    anything on this?  I see others have the same issue, so is it truly just an enhancement idea? or a bug?

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard