cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gazzo1967
Level 8

Using Office O365 User Connector to populate Labels

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Using Office O365 User Connector to populate Labels

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

 

Try this:  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.

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Using Office O365 User Connector to populate Labels

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.

Super User
Super User

Re: Using Office O365 User Connector to populate Labels

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

 

Try this:  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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,964)