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 / update the current use...
Power Apps
Unanswered

update the current user to the share point list

(0) ShareShare
ReportReport
Posted on by 51

i have a multi selection person field in share point, they contain multiple person at the start but on select of the button, i want to update the field to the current user only.  how should i code the onselect button

 

arshad2_0-1659506758438.png

arshad2_1-1659506796343.png

arshad2_0-1659507015606.png

 

 

 

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

    Hello,
    In your code just add Table() to your code for people picker column:

    'Transport Approved By':Table ({
     Claims: Blank(),
    DisplayName: Blank(),
    Email: Blank(),
    Department: Blank(),
    Picture: Blank(),
    JobTitle: Blank()
    })
  • theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    Hello @arshad2,

    Did that work for you or still facing any issue?

    I will be happy to help you further.

    Otherwise, Please accept the solution as answer if it resolved your issue.

     

  • arshad2 Profile Picture
    51 on at

    Hi @theapurva ,

    it didnt work for me, still it showed a error that department is missing.

    arshad2_0-1659599699594.png

     

    i managed to take the current user a collection and calling the collection for the specific patch, then it works:

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

    Set(
    myItem,
    LookUp(
    'Transport Applicants',
    ID = Gallery3_1.Selected.ID
    )
    );
    Patch(
    'Transport Applicants',
    myItem,
    {

    'Transport Approval Status': {
    '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
    ID: 1,
    Value: "Approved"
    },
    'Transport Approved By': CurrentUser,

    'Transport Approval Time': Now()
    });
    );

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard