Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Saved Query vs User Query

(0) ShareShare
ReportReport
Posted on by 290

Hello everyone, 

I would like to know difference between saved query and user query and what is the need for having these two separate ? I know that saved query contains all Views & user query contains views specific to users (Personal views) but, Why CRM is not having these two kind of views in Same entity and separate with some flag like IsUserQuery ?

Thanks

Regards,

Harshil Shah

*This post is locked for comments

  • Akanksha09 Profile Picture
    Akanksha09 2 on at
    Saved Query vs User Query
    O these views in Model-Driven Apps are essentially saved queries that define how data is retrieved and displayed from the underlying database, which in the context of the Power Platform is the Dataverse (formerly known as the Common Data Service). These queries are primarily written in FetchXML? 
    when is the data fetched and load? is it when the MDA is loaded or when the view is clicked from drop-down menu?
  • Verified answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Saved Query vs User Query

    Hello,

    System Views are available for all users and are related to the entity itself. If the user has access to this entity, he will have access to its views as well. Only the System Admin/System Customizer are able to create System Views.

    Personal Views are private views and each user can create its own queries as per his need. Nobody can access the personal views created by other users unless the owner of this view shares them with other users.

    This is a security/access reason for having these two types of queries.

  • Verified answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Saved Query vs User Query

    Hi Harshil,

    the differennce is mainly around the security and visibility.

    As per microsoft official documentation:

    A user query, called a saved view in the application, is owned by an individual user, can be assigned and shared with other users, and can be viewed by other users depending on the query's access privileges. This is appropriate for frequently used queries that span entity types and queries that perform aggregation. A saved query, called a view in the application, is owned by an organization making it visible to all users in the organization.

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: Saved Query vs User Query

    Hi

    Primary reason for them being in separate entities is due to permissions.

    User Query (Personal View) is personal to user (no one has access to it, not even via sec roles) unless the user chooses to share it with others where as Saved Query (System View) is available to anyone and can be controlled via Security Roles and permissions.

    In short, they are treated separately as they have different permission model

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans