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 / Adding users email add...
Power Apps
Answered

Adding users email address to the excel data table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi 🙂

 

The user that is the last to update the record, I'm looking to add their email address to the data table so that we can see who made the last update.

 

This is the Patch code that I'm trying, but it isn't currently working:

 

Patch(Table2,ThisItem,{Updated By: User().Email})

 

But it isn't accepting this.

 

'Updated By' is the column header in the excel table, Table 2 is the excel table name.

 

Any help much appreciated, thank you 🙂 🙂

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Where are you seeing the error and what error?

    First surround your Updated By with single quotes - 'Updated By'

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thats brill thanks. 

     

    Really weird. I tried doing it without the User{}.Email first, just asking it to Patch with ordinary text (no single quotes around Updated By).

     

    That worked fine. 

     

    Soon as I swapped it to User().Email, it wouldn't work until there were single quotes put in.

     

    Anyway, that works now - thank you 🙂

  • eka24 Profile Picture
    20,925 on at

    Edited. Solution already given

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
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard