web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

View for specific Users

(0) ShareShare
ReportReport
Posted on by 20

Hi,

I have a requirement like, show the custom views for specific roles in specific region. say. I have three regions US, UK, Aus. and each region have 1 Manager role.

Create 3 views for each region and show only to Manager of those regions like - All open Accounts for US, UK and Aus.

I can do everything by creating custom views and share with specific people, but that will create too many views and its straight forward and simple. Is there any other optimized way to achieve this.

I have the same question (0)
  • Verified answer
    mobeenmohsin Profile Picture
    on at

    Hi,

    We can write plugin for retrieveMultiple and modify the filter attributes for savedquery(view) in order to get the required results, this approach will avoid the need to create multiple views instead it will filter the view query at runtime according to user security role. Please find more information at following:

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/org-service/samples/modify-query-preoperation-stage

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/best-practices/business-logic/implement-all-types-of-queries-when-filtering-preoperation-retrievemultiple

    https://hachecrm2011.wordpress.com/2013/07/19/filtering-views-by-intercepting-retrieve-multiple-queries-with-a-plugin/

    Thanks.

    Mobeen 

  • WheelsShar Profile Picture
    20 on at

    Thanks for this.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans