Pavlo Mykhailyshyn
Pavlo Mykhailyshyn

Reputation: 213

How to find out which Entity in Dynamics CRM is system?

I am using the request to GET "/api/data/v9.0/EntityDefinitions" to list all the entities that are present in Dynamics. But the problem is that I cannot find which field indicates that this entity is system.

Can anyone provide me with a solution to this minor issue?

Upvotes: 2

Views: 2122

Answers (5)

pawas
pawas

Reputation: 1

In Order to get the custom Entities created by user check

IsCustomEntity == true AND IsCustomizeable.Value == true AND IsCustomizable.CanBeChanged == true

Upvotes: 0

Zach Mast
Zach Mast

Reputation: 1716

There are some good answers here regarding metadata and related tools. At the end of the day, the most straightforward way to determine whether an entity is your custom entity is to look at the prefix.

For example, if I have a custom solution where my prefix is "zm_", then I could retrieve entity metadata filtering for those records where the entity schema name starts with "zm_"

Upvotes: 0

RR20
RR20

Reputation: 28

Below conditions justify that the entity in CRM is System entity or not.

IsCustomizable.Value == false && IsCustomEntity == false

We need to check both IsCustomizable and IsCustomEntity property and both should be false then the entity is said to be System entity.

Upvotes: 0

I just verified in XrmToolBox - Metadata browser plugin, there are more than 400+ System entities (non-custom) available per IsCustomEntity filter. You can connect to the environment, pull the metadata, move the columns you needed, export to Excel for analysis.

Along with my original custom entities, some LinkedIn integration entities & msdyn prefix entities are also marked as non-system (custom) entities. So you have to use James mentioned IsCustomEntity property to filter out the system entities.

enter image description here

Query to exclude system entities metadata while fetching:

api/data/v9.0/EntityDefinitions?$filter=IsCustomEntity eq true

Upvotes: 2

James Wood
James Wood

Reputation: 17562

EntityMetadata EntityType

Entity Set Path [organization URI]/api/data/v9.0/EntityDefinitions


IsCustomEntity Edm.Boolean Whether the entity is a custom entity.

Upvotes: 1

Related Questions