CRM Object Type Codes

CRM Object Type Codes are basicly split into 2 catagories – system entities and custom entities. All systementity typecodes are below or equal to 10.000, and all custom entity typecodes are greater than 10.000. Knowing the typecode for an entity can be very important in integrations and datamanagement.

The following table shows the type codes for system entities (CRM 2011, but they are still valid).

**NOTE**
Typecodes can often just be replaced by the entityname. Instead of using 1 as the Account typecode, you can use “account”. This is much easier for custom entities, as you dont really have a list of type codes for custom entities.

Entity NameObjectTypeCode
Account1
Contact2
Opportunity3
Lead4
Annotation5
BusinessUnitMap6
Owner7
SystemUser8
Team9
BusinessUnit10
PrincipalObjectAccess11
RolePrivileges12
SystemUserLicenses13
SystemUserPrincipals14
SystemUserRoles15
AccountLeads16
ContactInvoices17
ContactQuotes18
ContactOrders19
ServiceContractContacts20
ProductSalesLiterature21
ContactLeads22
TeamMembership23
LeadCompetitors24
OpportunityCompetitors25
CompetitorSalesLiterature26
LeadProduct27
RoleTemplatePrivileges28
Subscription29
FilterTemplate30
PrivilegeObjectTypeCodes31
SalesProcessInstance32
SubscriptionSyncInfo33
SubscriptionTrackingDeletedObject35
ClientUpdate36
SubscriptionManuallyTrackedObject37
TeamRoles40
PrincipalEntityMap41
SystemUserBusinessUnitEntityMap42
PrincipalAttributeAccessMap43
PrincipalObjectAttributeAccess44
PrincipalObjectAccessReadSnapshot90
RecordCountSnapshot91
Incident112
Competitor123
DocumentIndex126
KbArticle127
Subject129
BusinessUnitNewsArticle132
ActivityParty135
UserSettings150
ActivityMimeAttachment1001
Attachment1002
InternalAddress1003
CompetitorAddress1004
CompetitorProduct1006
Contract1010
ContractDetail1011
Discount1013
KbArticleTemplate1016
LeadAddress1017
Organization1019
OrganizationUI1021
PriceLevel1022
Privilege1023
Product1024
ProductAssociation1025
ProductPriceLevel1026
ProductSubstitute1028
SystemForm1030
UserForm1031
Role1036
RoleTemplate1037
SalesLiterature1038
SavedQuery1039
StringMap1043
UoM1055
UoMSchedule1056
SalesLiteratureItem1070
CustomerAddress1071
SubscriptionClients1072
StatusMap1075
DiscountType1080
KbArticleComment1082
OpportunityProduct1083
Quote1084
QuoteDetail1085
UserFiscalCalendar1086
SalesOrder1088
SalesOrderDetail1089
Invoice1090
InvoiceDetail1091
SavedQueryVisualization1111
UserQueryVisualization1112
RibbonTabToCommandMap1113
RibbonContextGroup1115
RibbonCommand1116
RibbonRule1117
RibbonCustomization1120
RibbonDiff1130
ReplicationBacklog1140
FieldSecurityProfile1200
FieldPermission1201
SystemUserProfiles1202
TeamProfiles1203
AnnualFiscalCalendar2000
SemiAnnualFiscalCalendar2001
QuarterlyFiscalCalendar2002
MonthlyFiscalCalendar2003
FixedMonthlyFiscalCalendar2004
Template2010
ContractTemplate2011
UnresolvedAddress2012
Territory2013
Queue2020
License2027
QueueItem2029
UserEntityUISettings2500
UserEntityInstanceData2501
IntegrationStatus3000
ConnectionRole3231
ConnectionRoleAssociation3232
ConnectionRoleObjectTypeCode3233
Connection3234
Equipment4000
Service4001
Resource4002
Calendar4003
CalendarRule4004
ResourceGroup4005
ResourceSpec4006
ConstraintBasedGroup4007
Site4009
ResourceGroupExpansion4010
InterProcessLock4011
EmailHash4023
DisplayStringMap4101
DisplayString4102
Notification4110
ActivityPointer4200
Appointment4201
Email4202
Fax4204
IncidentResolution4206
Letter4207
OpportunityClose4208
OrderClose4209
PhoneCall4210
QuoteClose4211
Task4212
ServiceAppointment4214
Commitment4215
UserQuery4230
RecurrenceRule4250
RecurringAppointmentMaster4251
EmailSearch4299
List4300
ListMember4301
Campaign4400
CampaignResponse4401
CampaignActivity4402
CampaignItem4403
CampaignActivityItem4404
BulkOperationLog4405
BulkOperation4406
Import4410
ImportMap4411
ImportFile4412
ImportData4413
DuplicateRule4414
DuplicateRecord4415
DuplicateRuleCondition4416
ColumnMapping4417
PickListMapping4418
LookUpMapping4419
OwnerMapping4420
ImportLog4423
BulkDeleteOperation4424
BulkDeleteFailure4425
TransformationMapping4426
TransformationParameterMapping4427
ImportEntityMapping4428
RelationshipRole4500
RelationshipRoleMap4501
CustomerRelationship4502
CustomerOpportunityRole4503
Audit4567
EntityMap4600
AttributeMap4601
PluginType4602
PluginTypeStatistic4603
PluginAssembly4605
SdkMessage4606
SdkMessageFilter4607
SdkMessageProcessingStep4608
SdkMessageRequest4609
SdkMessageResponse4610
SdkMessageResponseField4611
SdkMessagePair4613
SdkMessageRequestField4614
SdkMessageProcessingStepImage4615
SdkMessageProcessingStepSecureConfig4616
ServiceEndpoint4618
AsyncOperation4700
WorkflowWaitSubscription4702
Workflow4703
WorkflowDependency4704
IsvConfig4705
WorkflowLog4706
ApplicationFile4707
OrganizationStatistic4708
SiteMap4709
ProcessSession4710
WebWizard4800
WizardPage4802
WizardAccessPrivilege4803
TimeZoneDefinition4810
TimeZoneRule4811
TimeZoneLocalizedName4812
Solution7100
Publisher7101
PublisherAddress7102
SolutionComponent7103
Dependency7105
DependencyNode7106
InvalidDependency7107
Post8000
PostRole8001
PostRegarding8002
PostFollow8003
PostComment8005
PostLike8006
Report9100
ReportEntity9101
ReportCategory9102
ReportVisibility9103
ReportLink9104
TransactionCurrency9105
MailMergeTemplate9106
ImportJob9107
WebResource9333
SharePointSite9502
SharePointDocumentLocation9508
Goal9600
GoalRollupQuery9602
Metric9603
RollupField9604