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 my incident alo...
Power Apps
Unanswered

Update my incident alone in power app

(1) ShareShare
ReportReport
Posted on by 184
Hi,
 
I have developed a power app so that employees can make the changes in the incidents i.e.
 
On the click of gallery item, employee is able to see the remaining column values in the edit form.
 
In the update button, patch function has been used to update the info back to the list.
 
But the employee should be able to update his incident alone via power app.
 
There is a column called RaisedBy with type people picker.
 
So is there any possibility to validate if the current logged in user is matching with Raisedby column, then only update should happen.
 
Please let me know the possibilities
 
Regards,
Sudheer
Categories:
I have the same question (0)
  • Gyllentid Profile Picture
    894 on at
    Yes, you can use for example User().Email to get the current user using the app. And you can use it to filter a datasource with in a gallery. Let me know if you need more help :)
     
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at
    Hi Sudheer
     
    One option would be to disable the save button if the RaisedBy value doesn't match the current user. You would add formula like this to the DisplayMode property of the button.
     
    If(YourGallery.Selected.RaisedBy.Email = User().Email 
       DisplayMode.Edit, 
       DisplayMode.Disabled
    )
     
  • NS-10041416-0 Profile Picture
    184 on at
    Hi,
     
    Right now I am facing the issue as mentioned below after checking with if condition
     
     
    Regards,
    Sudheer
  • Isabel Liu Profile Picture
    3 on at
    User().Mail function may look like it is getting the current user’s email, but it is actually the current user’s User Principal name.
     
    Use Office365Users connector to get the current users email address:
    Office365Users.UserProfile(User().Mail).Mail

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
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard