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 / Value from 'Office365-...
Power Apps
Answered

Value from 'Office365-users'.MyProfile().TelephoneNumber is table values

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all.

 

I have a PowerApp that gets data from the users profile from the Office365-users'.MyProfile() function, from the current user, that is using the PowerApp. I have a problem with getting data from the the BusinessPhones field. I get this error when I try to get data from the MyProfile.BusinessPhones field into a textinput field:

 

The property of this control expects text values. The rule produces table values that are incompatible. Edit the rule to produce a {0} value

 

As far as I can see the error occurs because the BusinessPhones field is a table, and that is not compatible with my text input field. The question is how can I make a rule that gives me the phone number from the table (there is always only one number), and pass this number into a textinput field? Do I need to creat a galery to collect all of the the users data before I can use it int the textinput fields, or can I write some sort of function that can give me the data?

 

Greetings from Denmark

Frank Nielsen

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    As this is of type table, you can perform a concatenation if you want all the phone Number:
     
    Expression: Concat(Office365Users.MyProfile().BusinessPhones,Value,",")
     
    In case you just want to get only first Phone Number, please use: First(Office365Users.MyProfile().BusinessPhones).Value
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @yashag2255  - YOU ROCK. That is awesome. THX a 1000 times Smiley Wink

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @Anonymous 

     

    Glad I was of some help!!

  • TalComoSoy88 Profile Picture
    4 on at

    What if I want to put the first one in one field (I can do that with first) and list the second one somewhere else?  How can I specify which one I want (other than first)? Can I put a [0] or [1] somewhere to say whether I want the first or second one?

  • lhynlen Profile Picture
    4 on at

    @yashag2255 This works like a charm! Thank you.

  • subsguts Profile Picture
    1,259 Moderator on at

    @yashag2255 I can get this to work as you indicate with "MyProfile", but I'd like to use it with UserProfileV2.  The following produces an error.  What am I doing wrong?  Thanks!

     

    First(Office365Users.UserProfileV2(<email>).businessPhones).Value

  • subsguts Profile Picture
    1,259 Moderator on at

    Sorry, I don't know what I did wrong.  I did the following and it worked:

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

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard