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 / Using Office O365 User...
Power Apps
Answered

Using Office O365 User Connector to populate Labels

(0) ShareShare
ReportReport
Posted on by 1,151

Hi All

I have an App created and i would like to prepopulate some text inputs for submission to sharepoint list by using the O365 User Connector.

I have a person/group field which the user selects a name (DataCardValue2).

i used

Text=Office365Users.UserProfileV2(DataCardValue2.Selected.Value).JobTitle

 

Text=Office365Users.UserProfileV2(DataCardValue2.Text).JobTitle

ERROR asking for userid

 

Then i started again and got this far

Office365Users.UserProfileV2(DataCardValue2.Selected.DisplayName,{'$select':)

Now i am lost

Any Help appreciated

Gary

 

Categories:
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @gazzo1967 

     

     

    Use 

    If(!IsBlank(DataCardValue2.Selected), Office365Users.UserProfileV2(DataCardValue2.Selected.Email).jobTitle)

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    You want to grab the email value from DataCardValue2 to lookup the job title.

     

    Try this:  Office365Users.UserProfileV2(DataCardValue2.Selected.Email).jobTitle

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard