Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel - formatting a number 8 70
g.p 10 & s.q.l 2008 R2 not working 17 117
Currency Translation for Consolidated Reporting 2 38
Dynamics Crm 2016 4 75
Automatically creating a Trello card using data from a Microsoft Dynamics CRM record turned out to be an easy project that yielded great results.  Here's how I did this for an internal team at General Code.
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

791 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