Solved

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

Posted on 2012-03-24
2
1,207 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 29

Accepted Solution

by:
Feridun Kadir earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
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…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now