cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Filter Collection by User

I would like to filter a collection by the logged in user. Currently there already is a filter on the collection and I would like to add another that compares the current logged in user to the user that added the data to the collection.

 

I'm not sure how to go about this.

 

Thanks

 

Joe

1 ACCEPTED SOLUTION

Accepted Solutions
iAm_ManCat
Super User II
Super User II

Hi,

 

If anyone is looking at this after searching for a similar issue, here's how we'd do it:

 

If you are using SharePoint you can create a text column that stores the creator's email address, as this can then be filtered without worry about delegation ie:

Filter(datasource, creatorEmailAddress = User().Email)

 

If you are using CDS/Oakdale/Dataverse, then you can simply filter by the creator,

 

Cheers,

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

1 REPLY 1
iAm_ManCat
Super User II
Super User II

Hi,

 

If anyone is looking at this after searching for a similar issue, here's how we'd do it:

 

If you are using SharePoint you can create a text column that stores the creator's email address, as this can then be filtered without worry about delegation ie:

Filter(datasource, creatorEmailAddress = User().Email)

 

If you are using CDS/Oakdale/Dataverse, then you can simply filter by the creator,

 

Cheers,

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (38,772)