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 / Can't get SharePoint t...
Power Apps
Answered

Can't get SharePoint to capture logged in user name

(0) ShareShare
ReportReport
Posted on by 109

Hi,  I am building a very simple app that allows users to communicate if they are leaving work early.  The app feeds a SharePoint list so HR knows where our team is. I have all cards populating the proper fields on that list EXCEPT for the Team Member (person.) I want the Team Member column to automatically record the logged in user.

 

This is an image of the Card Level:

amulhearn0207_0-1595942667717.png

And this is an image of the label level I'm using to pull the team member name:

amulhearn0207_1-1595942738862.png

It seems to be returning the user name correctly in the app, but it is not storing in SharePoint.

The list is getting the other info, though.

amulhearn0207_2-1595942805416.png

 

Categories:
I have the same question (0)
  • Liam_Chapman Profile Picture
    187 on at

    Hi @amulhearn0207 ,

     

    I think the issue might be with your Update property on your card.

    Change it from ThisItem.Team Member to User().FullName

  • amulhearn0207 Profile Picture
    109 on at

    Thank you for the quick reply. 

    I've tried that option, and I get an error.


    amulhearn0207_1-1595944291757.png

    I CAN enter it as User() only, but SharePoint still doesn't capture the name.

    amulhearn0207_2-1595944321320.png

     

    I initially wrote it as a dropdown, which is still in place on another screen. It works there, but I don't want this option as it is only going to cause frustration or errors. I only want the logged in user to be the Team Member recorded for an entry. But it does work this way.

     

    amulhearn0207_3-1595944441590.png

    amulhearn0207_4-1595944474256.png

     

  • Verified answer
    Liam_Chapman Profile Picture
    187 on at

    Hi,

     

    Try using this in your update function

    {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    Claims:"i:0#.f|membership|" & User().Email,
    Department:"",
    DisplayName:User().FullName,
    Email:User().Email,
    JobTitle:"",
    Picture:""
    }

    Assuming team members is a person column

  • amulhearn0207 Profile Picture
    109 on at

    Thank you very much. This is perfect.

  • Verified answer
    Liam_Chapman Profile Picture
    187 on at

    @amulhearn0207  no problem at all.

     

    If that has resolved your issue, please mark as solution.

     

    Thanks 🙂

  • Florian_Klug Profile Picture
    33 on at

    Same problem here... i can´t get logged in user in sharepoint list.

    Unfortunately fhe formula for the update function doesn´t work.

    Here are screenshots of my settings...

     

    this part of the formula "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser" is marked red.

    I´m thankful for every tip.

    Loggedinuser_problem.jpg
    Loggedinuser_problem_sp.jpg

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 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 321

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 311 Super User 2025 Season 2

Last 30 days Overall leaderboard