cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gazzo1967 Continued Contributor
Continued Contributor

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (6,261)