Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Fetchxml Public View filter against current logged in user custom field / preference

(0) ShareShare
ReportReport
Posted on by 15

Hi,

Product : D365 Sales Professional.

I have a need to create an Account system view that filters out records based on custom fields / preferences of the current logged in user.

This is not about security, team, groups, ownership etc. It's simply a user preferences concept.

We can do this in a form with Javascript and Web API, but how would I be able to do this in a table view?

EG We have a field "x" in the systemuser table that is set when the user is created.

So if user "Joe" has the field "loglevel" set to "warn" (choice id #1), the fetchxml in the view would filter based on an entity field "loglevel"

Is this possible? Is there a current user reference for fetchxml like there is in the javascript client API (EG  getGlobalContext.userSettings, context.getUserId)?

Am I going about this the wrong way?

Thanks in advance!

  • RE: Fetchxml Public View filter against current logged in user custom field / preference

    Hi Partner,

    Unfortunately, you can't achieve it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans