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 / Change the rule to pro...
Power Apps
Unanswered

Change the rule to produce a {0} value

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello guys, 

 

I'm trying to retrieve a person (Trainer) from my gallery in my form in display mode. However, when I do this, I'm getting an error: 'Expected record value'. 

The on default property of the card is ThisItem.Trainer. Here the error should be. However, I don't know how to fix this issue. 

MathijsM_0-1660642158726.png

 

Anyone knows how to do this? 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    You have to use

    ThisItem.Trainer.DisplayName 
    This is used to display name of user added in Trainer column
    Or
    ThisItem.Trainer.Email

    This is used to display email id of user added in Trainer column

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @NandiniBhagya20 thanks for your reply! 

     

    I tried that solutions earlier, but still getting the error. The thing is that the right name is being displayed. However, I'm getting an error, so submission of the form goes wrong. Don't know what to do tbh. It happened after I selected the column option: allow multiple selections. 

     

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Ok
    Understood it now 🙂
    I think you should use - Gallery1.Selected.Trainer in Default and Default selected items property
    Here Gallery1 is name of your gallery

    OR
    Assuming Trainer is single select people picker
    Please use below formula on Default and DefaultSelectedItems property - 

    If(EditForm1.Mode <> FormMode.New, {
    Claims:Concatenate("i:0#.f|membership|",Gallery1.Selected.Trainer.Email),
    DisplayName:Gallery1.Selected.Trainer.DisplayName,
    Email:Gallery1.Selected.Trainer.Email,

    Department:"",

    JobTitle:"",
    Picture:""
    })

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    hi @NandiniBhagya20 I hate to say it, but it still doesnt work unfortunately. Maybe it's something in the sharepoint or anything. I guess im too unexperienced in power apps to see. Thanks a lot for your helping efforts though, I appreciate it!

  • DGS Profile Picture
    122 on at

    Why do they have to do what you suggested? How about explaining what {0} means. What is it that the control is looking for.
    Why are all the authors on this site so fkn useless.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard