cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jgulliver
Frequent Visitor

Power Apps - Filter to restrict users to only view what they have submitted

Hi All,

A Power App newbie here looking for some help please. Created a power app to submit leave/work arrangement request but with no approval workflow. It's more for providing visibility (in a SharePoint calendar view) to see staff on leave, working from home and/or working at another office location. Created the app using one of the templates (as shown below) but don't know how to ensure that users can only see what they have submitted on the main display screen as well as hide certain buttons, e.g., delete, so that only the owner of the app can make this change if needed.

I can provide screenshots if needed but it seems I do not have permission. Any help will be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @jgulliver ,

This would show only records created by the current user

SortByColumns(
   Filter(
      [@'Staff Leave and Work Arrangement'],
      StartsWith(
         Title, 
         TextSearchBoxl.Text
      ) && 
      'Created By'.Email = User().Email
   ), 
   "Title",
   If(
      SortDescendingl, 
      Descending, 
      Ascending
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

View solution in original post

3 REPLIES 3
jgulliver
Frequent Visitor

This is the page I am referring to.

jgulliver_0-1668651030557.png

 

WarrenBelz
Super User
Super User

Hi @jgulliver ,

This would show only records created by the current user

SortByColumns(
   Filter(
      [@'Staff Leave and Work Arrangement'],
      StartsWith(
         Title, 
         TextSearchBoxl.Text
      ) && 
      'Created By'.Email = User().Email
   ), 
   "Title",
   If(
      SortDescendingl, 
      Descending, 
      Ascending
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

Thanks for your help @WarrenBelz. I'll give this a try and let you know the outcome :).

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,155)