web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display the correct ro...
Power Apps
Unanswered

Display the correct row of a Sharepoint list for a specific user in Power Apps

(0) ShareShare
ReportReport
Posted on by 691

Hello,
I have two Sharepoint lists: An "Notes de frais" list and a "Cagnottes" list.

s44_1-1641214922274.png

 

s44_0-1641214700384.png

 

In Power Apps, on this screen I display a line from the "Note de frais" list for a user and below I display the line from the "Cagnottes" list corresponding to this user.

s44_2-1641215091691.png

 

 

But when I look at the other screens corresponding to other users, I can see the line of the "Note de frais" list which is dedicated to them, but it does not display the correct line of the "Cagnottes" list.

 

For example : 

s44_3-1641215198276.png

Here for Romain it displays the first line of my "Cagnottes" list, but not the line dedicated to him according to his name / email.

 

The correct line to display is the one surrounded :

s44_4-1641215462013.png

 

Can you help me please? Thanks in advance.

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

    Hello,

     

    Can you try to user the Lower function in your filter to get something like Lower('Nom Prenom'.Email = Lower(User().Email)

     

    Best regards,

    Alaa

  • Hii_iii Profile Picture
    691 on at

    Hello @alaabitar
    It's doesn't work 😞 

    s44_0-1641304641216.png

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @s44 ,

    First of all please identify the control from Details Form where the Nom Prenom is showed ( in my example I named it NomPrenomControlNameFromFirstForm control).

    Then in item property of the second form, lookup in Cagnottes list for a record with the same email on 'Nom Prenom' (i suppose it is a person type column):

     

    LookUp(Cagnottes,'Nom Prenom'.Email=NomPrenomControlNameFromFirstForm.Selected.Email)

     

     or, because you have already a column email in Cagnottes list (from my point of view it is useless because you have the data stored in it) you can use:

     

    LookUp(Cagnottes,Email=NomPrenomControlNameFromFirstForm.Selected.Email)
    

     

     Hope it helps !

  • Hii_iii Profile Picture
    691 on at

    Thank you for your help @gabibalaban , but I don't know where to find the control from Details Form where is the Name Surname is showed. It's here ?  😮

    s44_0-1641305403017.png

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @s44 ,

    This is what are we looking for. Most probably is a combobox control. 

    gabibalaban_0-1641306931057.png

     

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello,

     

    Sorry I missplaced the ")" it should look like

     Lower('Nom Prenom'.Email) = Lower(User().Email)

  • Hii_iii Profile Picture
    691 on at

     @gabibalaban Oh ok, it's this for me^^  : 

    s44_1-1641308248906.png

     

     

    Can I write the formula like this ? : 

     

     

    LookUp(Cagnottes,'Nom Prenom'.Email=DataCardValue2.Selected.Email)

     

     

     

  • Hii_iii Profile Picture
    691 on at

     

    @gabibalaban  I still have the same problem. For example it is not the right line of the "Cagnottes" list that is displayed for noemie :

    s44_1-1641309796242.png

     

    The correct line to display is this:

    s44_2-1641309959895.png

     

  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    @s44 ,

    Hmm ... in this case check the item property of DetailForm and use it, as it is, inside our formula:

    LookUp(Cagnottes,'Nom Prenom'.Email=ItemFromDetailForm.'Nom Prenom'.Email)

     

  • Hii_iii Profile Picture
    691 on at

    s44_0-1641391122343.png

    The formula doesn't work 😞  @gabibalaban 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard