TransWikia.com

Filtering List View by Current User Email

SharePoint Asked by HushHoney on February 18, 2021

We have a Power app which feeds into a SharePoint list when users submit a form on the app. We don’t use the ‘People Field’ when building apps as they are complicated and cause a few issues. So instead we use office 365 to grab the users info and save that in the relevant Field.

My question is, can I filter the list by the current user based on an email address in a field in the list rather than using the ‘People’ field?

Thanks,
Helen

2 Answers

You are doing the right thing. Using User ID (email) instead of the weird people field type is what I was doing as well. Many do the same.

Of course you can filter any list by an email in Power Apps. Filtering my email is not different from filtering by any other string-based field. Sample steps:

  1. Add Office 365 Users connector.
  2. Get current user's email like so
Office365Users.MyProfile().Mail

enter image description here

  1. Now you can filter your SharePoint lists by email:
Filter('My SharePoint list', 'Email'= Office365Users.MyProfile().Mail)

Answered by Denis Molodtsov on February 18, 2021

You may try using Current User Filter under Filters category. Then connect this Web Part with the main List View Web Part.

This has been described in details at FILTER A VIEW BY “ME” WITHOUT A PEOPLE COLUMN

Answered by Matiur Rahman on February 18, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP