cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Accessing record within a record (Context Variable, Office365Users)

I have this variable UserProfile which is created like that:

UpdateContext({UserProfile:Office365Users.MyProfile()})

Everything works fine in the Variables (experimental) I can check that it is correctly assign with good values.

 1.png

The column BusinessPhones is a record so I click on it and it has Value which is the phone number

 2.png

In the PowerApps if I try to access this value it gives me errors

3.png

I tried

UserProfile.BusinessPhones

And

UserProfile.BusinessPhones.Value

None work. Do you know how to access this value?

 

NOTE: I can easily access otehr variables of the record (UserProfile.DisplayName, UserProfile.Mail, etc.)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: Accessing record within a record (Context Variable, Office365Users)

The value of the BusinessPhones property of the UserProfile is a list of phones, not a single number. You can use the First function to take the first element and show that phone number:

"Business phone: " & First(UserProfile.BusinessPhones).Value

View solution in original post

2 REPLIES 2
Highlighted
Power Apps
Power Apps

Re: Accessing record within a record (Context Variable, Office365Users)

The value of the BusinessPhones property of the UserProfile is a list of phones, not a single number. You can use the First function to take the first element and show that phone number:

"Business phone: " & First(UserProfile.BusinessPhones).Value

View solution in original post

Highlighted
Super User
Super User

Re: Accessing record within a record (Context Variable, Office365Users)

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,137)