Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Where shared info is saved

Posted on by 645

I have shared views and dashboards and I need to know who are the users who these views and dashboards shared with using SQL, how do I do that? what is the name of the column this data is saved in.

  • Suggested answer
    Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: Where shared info is saved

    Refer this C# Code for more clarity about share object in Dynamic CRM.

    vjcity.blogspot.com/.../how-to-migrate-personal-views-dashboard.html

    Refer and follow Blog : https://vjcity.blogspot.com/

    Get Latest updates of Dynamic CRM from Group : www.facebook.com/.../

    Please mark answer correct if you are happy

  • Suggested answer
    Vipin J Profile Picture
    Vipin J 1,583 on at
    RE: Where shared info is saved

    Hi,

    Refer these tables to know what objects are being shared.

    QueryExpression userSavedQueries = new QueryExpression("userquery") { ColumnSet = new ColumnSet() { AllColumns = true }, NoLock = true };  // Personal Views
    QueryExpression query1 = new QueryExpression("userqueryvisualization") { ColumnSet = new ColumnSet() { AllColumns = true }, NoLock = true }; // Personal Charts
    QueryExpression query2 = new QueryExpression("userform") { ColumnSet = new ColumnSet() { AllColumns = true }, NoLock = true }; // Personal Dashboard

    Make a Inner Join with systemuser table to get the user details.

    I created a C# Console App to migrate these object to another environment, as OOB was not supported for some reasons.

    Refer and follow Blog : https://vjcity.blogspot.com/

    Get Latest updates of Dynamic CRM from Group : https://www.facebook.com/groups/554941725236365/

  • Suggested answer
    Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Where shared info is saved

    Please refer below url for your reference:

    us.hitachi-solutions.com/.../

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Where shared info is saved

    Hello,

    All shares are stored in PrincipalObjectAccess table.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans