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

People can only see forms in which they have been listed

Hello,
I think it is much simpler than I think. I want to build an app where people first come to a gallery page and then continue to the corresponding form.
4 fields are filled in advance (manually):
1. title (single line of text)
2. other information (single line of text)
3. person who should fill the form (Person or Group)
4. other person who should fill the form (Person or Group)

 

My question is now how do I make it so that the persons in point 3 & 4 only see the forms in the gallery where they were entered in point 3 & 4. And not the forms where other people have to enter information.

Thanks in Advance

Translated with www.DeepL.com/Translator (free version)

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

You can filter the Items shown in the gallery using the identity of the currently logged-in user:

Filter(myTable, UserColumn.Email = User().Email || UserColumn2.Email = User().Email)

This code searches through the table 'myTable' looking in the UserColumn or UserColumn2 (assumed to be People-type columns) for email addresses that match the email address of the currently-logged in user. You'll need to change the table and column names to match your scenario.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
BCLS776
Super User
Super User

You can filter the Items shown in the gallery using the identity of the currently logged-in user:

Filter(myTable, UserColumn.Email = User().Email || UserColumn2.Email = User().Email)

This code searches through the table 'myTable' looking in the UserColumn or UserColumn2 (assumed to be People-type columns) for email addresses that match the email address of the currently-logged in user. You'll need to change the table and column names to match your scenario.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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