cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jbrines
Post Prodigy
Post Prodigy

OnChange issue

Hi All,

 

I am using the following formula to get the name added when someone makes a choice 

 

UpdateContext({var2:Office365Users.UserProfile(User().Email).DisplayName})

 

but when I put var2 in the text it tells me that "expected record value"

 

How can I change it do it gets a text Value of the person's name?

 

John

6 REPLIES 6
rubin_boer
Super User
Super User

It should work, i copied and pasted it just like that and no problem.

 

Have you tried V2, UpdateContext({var2:Office365Users.UserProfileV2(User().Email).displayName})

 

Any reason you choose the office ocnnector for this and User().Fullname?

 

@rubin_boer 

 

Do you mean UpdateContext({var2:User().Fullname}) ?

rubin_boer
Super User
Super User

yes or UpdateContext({var2: User()}) then var2.FullName 

 
 

@rubin_boer 

 

No doesn't resolve it.

 

username.JPG

@rubin_boer  Ignore me as it has a space between . and Fullname

 

 

@rubin_boer 

 

I now want to update another name field but it is failing saying it is expecting Text

 

UpdateContext({var4: User()}) then var4.FullName

 

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,092)