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.
anything on this? I see others have the same issue, so is it truly just an enhancement idea? or a bug?
@tcfranks- Can you please try setting this formula for a Label.Text and tell us what happens?
First(Office365Users.MyProfile().BusinessPhones.Value).Value
It complains of invalid arguments
Thanks for trying @tcfranks,
The issue you are seeing is really weird, we are trying to understand what may be happening here.
it was created from the org brower template.
Deleting the data source and re-adding it seems to have fixed the issue. Now I need to go figure out how to make it work for users other than myself.....
Great to hear that! For other users it should work as described earlier:
First(Office365Users.UserProfile("AnotherUser@contoso.com").BusinessPhones).Value
Hi, Did you ever figure out how to make this work for other users?
Thanks,
Mike Bailey
Also, I'm still unable to get this to work. I tried removing the data connection and adding it back but still get errors saying "The First function has some invalid arguments."
MIike
@mbailey218To clarify, you removed the "Office365Users" connection from this menu and then added it again?
I had removed it from the whole app and not that screen. Just did and it worked.
Thanks,
Mike Bailey
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
257 | |
248 | |
83 | |
36 | |
30 |
User | Count |
---|---|
299 | |
268 | |
117 | |
66 | |
45 |