web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Update my incident alone in power app

(1) ShareShare
ReportReport
Posted on by 146
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
I have the same question (0)
  • Gyllentid Profile Picture
    892 on at
    Update my incident alone in power app
    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
    35,805 Super User 2025 Season 2 on at
    Update my incident alone in power app
    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
    146 on at
    Update my incident alone in power app
    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
    Update my incident alone in power app
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard