?
Solved

CRM 2011 - How to get a view with list of all entities

Posted on 2012-03-24
2
Medium Priority
?
1,338 Views
Last Modified: 2012-03-24
I will like to see a list of entities and their ownership? What is the way to do that?
0
Comment
Question by:tommym121
2 Comments
 
LVL 30

Accepted Solution

by:
Feridun Kadir earned 2000 total points
ID: 37761751
Try running this query against the crm databsae in sql server management studio:

select Name,OwnershipTypeMask from metadataschema.entity

The SDK has the following info for ownershiptypemask:

BusinessOwned Value = 4. Specifies that the entity is owned by a business unit. Not supported.
BusinessParented Value = 16. Specifies that the entity is parented by a business unit. Not supported.
None Value = 0. Specifies that the entity does not have an owner.
OrganizationOwned Value = 8. Specifies that the entity is owned by an organization
TeamOwned Value = 2. Specifies that the entity is owned by a team.  
UserOwned Value = 1. Specifies that the entity is owned by a system user.

Remarks
The only valid values for custom entities are OrgOwned or UserOwned. For Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online, UserOwned is interpreted as TeamOwned.
0
 

Author Closing Comment

by:tommym121
ID: 37762020
Thanks.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question