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 / Patch - Create new rec...
Power Apps
Unanswered

Patch - Create new record username and email of current logged in

(0) ShareShare
ReportReport
Posted on by 407

Hi all,

 

How can I add username and email address of the current user logged in to a SharePoint list the Patch() function? This is what I have so far: 

 

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

 Any help is appreciated

 

Thanks

Categories:
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @_sourcecod3_ ,

     

    First of all, your formula only contains one Employee field, is it the only Required field in your SharePoint list? You have to include all the Required fields in Patch. 

     

    Secondly, please change the field formula to:

     

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

     

    Regards,

    Mona

  • _sourcecod3_ Profile Picture
    407 on at

    @v-monli-msftso that's what I'm confused with, how do I add the email address and update the column in the SharePoint list?

     

    Thanks

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard