cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AndyTuke
Level: Powered On

Editing a record from the gallery based on connected user

I have an app I'm learning with which is based on a SharePoint list to allow users to choose menu items.  The app is displaying in a gallery on PowerApps and on my iPhone showing a list of staff and their menu choices.  

I now want to add a button 'Edit' to allow the connected user to edit their own menu selection, but not anyone elses.  The default automatically created apps have an edit option for each gallery item which depends on the Parent object to identify which item is to be edited.

I would like there to be a single Edit Button on the gallery screen, which when pressed identifies the connected user, and opens an edit screen with their menu choices so they can change them.  I'm pretty new to this so any help would be greatly appreciated.

Andy

1 ACCEPTED SOLUTION

Accepted Solutions
AndyTuke
Level: Powered On

Re: Editing a record from the gallery based on connected user

Thanks Mona,

 

I thought I had it working. I created an edit screen, and set the item of the editform to be

     LookUp ('Menu Choice',Staff_x0020_Name.DisplayName = Office365Users.MyProfile().DisplayName)

In my testing I had it set to

     LookUp ('Menu Choice',Staff_x0020_Name.DisplayName = "My Name")

which works, I thought I had changed it and was getting all pleased with myself until I spotted I hadn't.  It's changed now so I'll republish and test again

 

Tested, it works great.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Editing a record from the gallery based on connected user

Hi @AndyTuke,

 

This cannot be achieved within PowerApps so far. If you want the users to only be able to read and edit the items that they created by themselves, you need to give the setting on SharePoint list. 

 

Under List settings > Advanced Settings > Item Level Permissions > select the checkbox according to your need:

Capture.PNG

 

 

After this, you still create the the app using the SharePoint list connection. As the owner permission on the list, you could see all the items in the app. But after you share the app with the users of this list, they will only be shown with the items that they created.

 

Please go ahead and have a test. Let me know if this works for you.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AndyTuke
Level: Powered On

Re: Editing a record from the gallery based on connected user

Thanks Mona,

 

I thought I had it working. I created an edit screen, and set the item of the editform to be

     LookUp ('Menu Choice',Staff_x0020_Name.DisplayName = Office365Users.MyProfile().DisplayName)

In my testing I had it set to

     LookUp ('Menu Choice',Staff_x0020_Name.DisplayName = "My Name")

which works, I thought I had changed it and was getting all pleased with myself until I spotted I hadn't.  It's changed now so I'll republish and test again

 

Tested, it works great.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,869)