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
Solved! Go to Solution.
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.
Can you please try:
First(Office365Users.MyProfile().BusinessPhones).Value
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
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.
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
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
as I said, "BusinessPhones" is not a recognized option to Office365User.UserProfile. Pasting in what you offered only causes an error in the formula.
Session ID: 7fc9d3fa-2116-3a62-9cb6-5377bccb55e7
Thanks @Anonymous, we will look into it.
User | Count |
---|---|
252 | |
101 | |
94 | |
47 | |
38 |