This article is a copy of my post on my old SPandCRM.com blog, I will be slowly moving across some of the more popular articles.
Another quick reference article today, in this article I’ll provide a list of type codes which are internal ID references to entities and I’ll provide some and SQL query that will allow you to easily return your own ID values.
It’s worth knowing that Microsoft has reserved ID numbers 0 – 10,000 with any custom entities appearing from 10,000 onwards. Any system entities should have the same ID’s as below but you will need to run the below code against your organisation database to return custom entity ID’s-
select [ObjectTypeCode], [Name], [LogicalName]
from EntityView
order by ObjectTypeCode
Entity ID List
ID | Name | LogicalName |
---|---|---|
2 | Contact | contact |
3 | Opportunity | opportunity |
4 | Lead | lead |
5 | Annotation | annotation |
6 | BusinessUnitMap | businessunitmap |
7 | Owner | owner |
8 | SystemUser | systemuser |
9 | Team | team |
10 | BusinessUnit | businessunit |
11 | PrincipalObjectAccess | principalobjectaccess |
12 | RolePrivileges | roleprivileges |
13 | SystemUserLicenses | systemuserlicenses |
14 | SystemUserPrincipals | systemuserprincipals |
15 | SystemUserRoles | systemuserroles |
16 | AccountLeads | accountleads |
17 | ContactInvoices | contactinvoices |
18 | ContactQuotes | contactquotes |
19 | ContactOrders | contactorders |
20 | ServiceContractContacts | servicecontractcontacts |
21 | ProductSalesLiterature | productsalesliterature |
22 | ContactLeads | contactleads |
23 | TeamMembership | teammembership |
24 | LeadCompetitors | leadcompetitors |
25 | OpportunityCompetitors | opportunitycompetitors |
26 | CompetitorSalesLiterature | competitorsalesliterature |
27 | LeadProduct | leadproduct |
28 | RoleTemplatePrivileges | roletemplateprivileges |
29 | Subscription | subscription |
30 | FilterTemplate | filtertemplate |
31 | PrivilegeObjectTypeCodes | privilegeobjecttypecodes |
32 | SalesProcessInstance | salesprocessinstance |
33 | SubscriptionSyncInfo | subscriptionsyncinfo |
35 | SubscriptionTrackingDeletedObject | subscriptiontrackingdeletedobject |
36 | ClientUpdate | clientupdate |
37 | SubscriptionManuallyTrackedObject | subscriptionmanuallytrackedobject |
39 | SharedObjectsForRead | sharedobjectsforread |
40 | TeamRoles | teamroles |
41 | PrincipalEntityMap | principalentitymap |
42 | SystemUserBusinessUnitEntityMap | systemuserbusinessunitentitymap |
43 | PrincipalAttributeAccessMap | principalattributeaccessmap |
44 | PrincipalObjectAttributeAccess | principalobjectattributeaccess |
45 | SubscriptionStatisticsOffline | subscriptionstatisticsoffline |
46 | SubscriptionStatisticsOutlook | subscriptionstatisticsoutlook |
47 | SubscriptionSyncEntryOffline | subscriptionsyncentryoffline |
48 | SubscriptionSyncEntryOutlook | subscriptionsyncentryoutlook |
50 | Position | position |
51 | SystemUserManagerMap | systemusermanagermap |
52 | UserSearchFacet | usersearchfacet |
90 | PrincipalObjectAccessReadSnapshot | principalobjectaccessreadsnapshot |
91 | RecordCountSnapshot | recordcountsnapshot |
92 | TeamTemplate | teamtemplate |
99 | SocialProfile | socialprofile |
112 | Incident | incident |
113 | ChildIncidentCount | childincidentcount |
123 | Competitor | competitor |
126 | DocumentIndex | documentindex |
127 | KbArticle | kbarticle |
129 | Subject | subject |
132 | BusinessUnitNewsArticle | businessunitnewsarticle |
135 | ActivityParty | activityparty |
150 | UserSettings | usersettings |
950 | NewProcess | newprocess |
951 | TranslationProcess | translationprocess |
952 | PhoneToCaseProcess | phonetocaseprocess |
953 | OpportunitySalesProcess | opportunitysalesprocess |
954 | LeadToOpportunitySalesProcess | leadtoopportunitysalesprocess |
955 | ExpiredProcess | expiredprocess |
1001 | ActivityMimeAttachment | activitymimeattachment |
1002 | Attachment | attachment |
1003 | InternalAddress | internaladdress |
1004 | CompetitorAddress | competitoraddress |
1006 | CompetitorProduct | competitorproduct |
1007 | ImageDescriptor | imagedescriptor |
1010 | Contract | contract |
1011 | ContractDetail | contractdetail |
1013 | Discount | discount |
1016 | KbArticleTemplate | kbarticletemplate |
1017 | LeadAddress | leadaddress |
1019 | Organization | organization |
1021 | OrganizationUI | organizationui |
1022 | PriceLevel | pricelevel |
1023 | Privilege | privilege |
1024 | Product | product |
1025 | ProductAssociation | productassociation |
1026 | ProductPriceLevel | productpricelevel |
1028 | ProductSubstitute | productsubstitute |
1030 | SystemForm | systemform |
1031 | UserForm | userform |
1036 | Role | role |
1037 | RoleTemplate | roletemplate |
1038 | SalesLiterature | salesliterature |
1039 | SavedQuery | savedquery |
1043 | StringMap | stringmap |
1048 | DynamicProperty | dynamicproperty |
1049 | DynamicPropertyOptionSetItem | dynamicpropertyoptionsetitem |
1055 | UoM | uom |
1056 | UoMSchedule | uomschedule |
1070 | SalesLiteratureItem | salesliteratureitem |
1071 | CustomerAddress | customeraddress |
1072 | SubscriptionClients | subscriptionclients |
1075 | StatusMap | statusmap |
1080 | DiscountType | discounttype |
1082 | KbArticleComment | kbarticlecomment |
1083 | OpportunityProduct | opportunityproduct |
1084 | Quote | quote |
1085 | QuoteDetail | quotedetail |
1086 | UserFiscalCalendar | userfiscalcalendar |
1088 | SalesOrder | salesorder |
1089 | SalesOrderDetail | salesorderdetail |
1090 | Invoice | invoice |
1091 | InvoiceDetail | invoicedetail |
1094 | AuthorizationServer | authorizationserver |
1095 | PartnerApplication | partnerapplication |
1111 | SavedQueryVisualization | savedqueryvisualization |
1112 | UserQueryVisualization | userqueryvisualization |
1113 | RibbonTabToCommandMap | ribbontabtocommandmap |
1115 | RibbonContextGroup | ribboncontextgroup |
1116 | RibbonCommand | ribboncommand |
1117 | RibbonRule | ribbonrule |
1120 | RibbonCustomization | ribboncustomization |
1130 | RibbonDiff | ribbondiff |
1140 | ReplicationBacklog | replicationbacklog |
1141 | Characteristic | characteristic |
1142 | RatingValue | ratingvalue |
1144 | RatingModel | ratingmodel |
1145 | BookableResourceBooking | bookableresourcebooking |
1146 | BookableResourceBookingHeader | bookableresourcebookingheader |
1147 | BookableResourceCategory | bookableresourcecategory |
1148 | BookableResourceCharacteristic | bookableresourcecharacteristic |
1149 | BookableResourceCategoryAssn | bookableresourcecategoryassn |
1150 | BookableResource | bookableresource |
1151 | BookableResourceGroup | bookableresourcegroup |
1152 | BookingStatus | bookingstatus |
1189 | RecommendedDocument | recommendeddocument |
1200 | FieldSecurityProfile | fieldsecurityprofile |
1201 | FieldPermission | fieldpermission |
1202 | SystemUserProfiles | systemuserprofiles |
1203 | TeamProfiles | teamprofiles |
1213 | QueueMembership | queuemembership |
1234 | ChannelPropertyGroup | channelpropertygroup |
1235 | DynamicPropertyAssociation | dynamicpropertyassociation |
1236 | ChannelProperty | channelproperty |
1300 | SocialInsightsConfiguration | socialinsightsconfiguration |
1309 | SavedOrgInsightsConfiguration | savedorginsightsconfiguration |
1333 | DynamicPropertyInstance | dynamicpropertyinstance |
1400 | SyncAttributeMappingProfile | syncattributemappingprofile |
1401 | SyncAttributeMapping | syncattributemapping |
1402 | SystemUserSyncMappingProfiles | systemusersyncmappingprofiles |
1403 | TeamSyncAttributeMappingProfiles | teamsyncattributemappingprofiles |
1404 | PrincipalSyncAttributeMap | principalsyncattributemap |
2000 | AnnualFiscalCalendar | annualfiscalcalendar |
2001 | SemiAnnualFiscalCalendar | semiannualfiscalcalendar |
2002 | QuarterlyFiscalCalendar | quarterlyfiscalcalendar |
2003 | MonthlyFiscalCalendar | monthlyfiscalcalendar |
2004 | FixedMonthlyFiscalCalendar | fixedmonthlyfiscalcalendar |
2010 | Template | template |
2011 | ContractTemplate | contracttemplate |
2012 | UnresolvedAddress | unresolvedaddress |
2013 | Territory | territory |
2015 | Theme | theme |
2016 | UserMapping | usermapping |
2020 | Queue | queue |
2023 | QueueItemCount | queueitemcount |
2024 | QueueMemberCount | queuemembercount |
2027 | License | license |
2029 | QueueItem | queueitem |
2500 | UserEntityUISettings | userentityuisettings |
2501 | UserEntityInstanceData | userentityinstancedata |
3000 | IntegrationStatus | integrationstatus |
3005 | ChannelAccessProfile | channelaccessprofile |
3008 | ExternalParty | externalparty |
3231 | ConnectionRole | connectionrole |
3232 | ConnectionRoleAssociation | connectionroleassociation |
3233 | ConnectionRoleObjectTypeCode | connectionroleobjecttypecode |
3234 | Connection | connection |
4000 | Equipment | equipment |
4001 | Service | service |
4002 | Resource | resource |
4003 | Calendar | calendar |
4004 | CalendarRule | calendarrule |
4005 | ResourceGroup | resourcegroup |
4006 | ResourceSpec | resourcespec |
4007 | ConstraintBasedGroup | constraintbasedgroup |
4009 | Site | site |
4010 | ResourceGroupExpansion | resourcegroupexpansion |
4011 | InterProcessLock | interprocesslock |
4023 | EmailHash | emailhash |
4101 | DisplayStringMap | displaystringmap |
4102 | DisplayString | displaystring |
4110 | Notification | notification |
4120 | ExchangeSyncIdMapping | exchangesyncidmapping |
4200 | ActivityPointer | activitypointer |
4201 | Appointment | appointment |
4202 | ||
4204 | Fax | fax |
4206 | IncidentResolution | incidentresolution |
4207 | Letter | letter |
4208 | OpportunityClose | opportunityclose |
4209 | OrderClose | orderclose |
4210 | PhoneCall | phonecall |
4211 | QuoteClose | quoteclose |
4212 | Task | task |
4214 | ServiceAppointment | serviceappointment |
4215 | Commitment | commitment |
4216 | SocialActivity | socialactivity |
4220 | UntrackedEmail | untrackedemail |
4230 | UserQuery | userquery |
4231 | MetadataDifference | metadatadifference |
4232 | BusinessDataLocalizedLabel | businessdatalocalizedlabel |
4250 | RecurrenceRule | recurrencerule |
4251 | RecurringAppointmentMaster | recurringappointmentmaster |
4299 | EmailSearch | emailsearch |
4300 | List | list |
4301 | ListMember | listmember |
4400 | Campaign | campaign |
4401 | CampaignResponse | campaignresponse |
4402 | CampaignActivity | campaignactivity |
4403 | CampaignItem | campaignitem |
4404 | CampaignActivityItem | campaignactivityitem |
4405 | BulkOperationLog | bulkoperationlog |
4406 | BulkOperation | bulkoperation |
4410 | Import | import |
4411 | ImportMap | importmap |
4412 | ImportFile | importfile |
4413 | ImportData | importdata |
4414 | DuplicateRule | duplicaterule |
4415 | DuplicateRecord | duplicaterecord |
4416 | DuplicateRuleCondition | duplicaterulecondition |
4417 | ColumnMapping | columnmapping |
4418 | PickListMapping | picklistmapping |
4419 | LookUpMapping | lookupmapping |
4420 | OwnerMapping | ownermapping |
4421 | BookableResourceBookingExchangeSyncIdMapping | bookableresourcebookingexchangesyncidmapping |
4423 | ImportLog | importlog |
4424 | BulkDeleteOperation | bulkdeleteoperation |
4425 | BulkDeleteFailure | bulkdeletefailure |
4426 | TransformationMapping | transformationmapping |
4427 | TransformationParameterMapping | transformationparametermapping |
4428 | ImportEntityMapping | importentitymapping |
4450 | DataPerformance | dataperformance |
4490 | OfficeDocument | officedocument |
4500 | RelationshipRole | relationshiprole |
4501 | RelationshipRoleMap | relationshiprolemap |
4502 | CustomerRelationship | customerrelationship |
4503 | CustomerOpportunityRole | customeropportunityrole |
4545 | EntitlementTemplateProducts | entitlementtemplateproducts |
4567 | Audit | audit |
4600 | EntityMap | entitymap |
4601 | AttributeMap | attributemap |
4602 | PluginType | plugintype |
4603 | PluginTypeStatistic | plugintypestatistic |
4605 | PluginAssembly | pluginassembly |
4606 | SdkMessage | sdkmessage |
4607 | SdkMessageFilter | sdkmessagefilter |
4608 | SdkMessageProcessingStep | sdkmessageprocessingstep |
4609 | SdkMessageRequest | sdkmessagerequest |
4610 | SdkMessageResponse | sdkmessageresponse |
4611 | SdkMessageResponseField | sdkmessageresponsefield |
4613 | SdkMessagePair | sdkmessagepair |
4614 | SdkMessageRequestField | sdkmessagerequestfield |
4615 | SdkMessageProcessingStepImage | sdkmessageprocessingstepimage |
4616 | SdkMessageProcessingStepSecureConfig | sdkmessageprocessingstepsecureconfig |
4618 | ServiceEndpoint | serviceendpoint |
4619 | PluginTraceLog | plugintracelog |
4700 | AsyncOperation | asyncoperation |
4702 | WorkflowWaitSubscription | workflowwaitsubscription |
4703 | Workflow | workflow |
4704 | WorkflowDependency | workflowdependency |
4705 | IsvConfig | isvconfig |
4706 | WorkflowLog | workflowlog |
4707 | ApplicationFile | applicationfile |
4708 | OrganizationStatistic | organizationstatistic |
4709 | SiteMap | sitemap |
4710 | ProcessSession | processsession |
4712 | ProcessTrigger | processtrigger |
4724 | ProcessStage | processstage |
4725 | BusinessProcessFlowInstance | businessprocessflowinstance |
4800 | WebWizard | webwizard |
4802 | WizardPage | wizardpage |
4803 | WizardAccessPrivilege | wizardaccessprivilege |
4810 | TimeZoneDefinition | timezonedefinition |
4811 | TimeZoneRule | timezonerule |
4812 | TimeZoneLocalizedName | timezonelocalizedname |
6363 | EntitlementProducts | entitlementproducts |
7000 | SystemApplicationMetadata | systemapplicationmetadata |
7001 | UserApplicationMetadata | userapplicationmetadata |
7100 | Solution | solution |
7101 | Publisher | publisher |
7102 | PublisherAddress | publisheraddress |
7103 | SolutionComponent | solutioncomponent |
7105 | Dependency | dependency |
7106 | DependencyNode | dependencynode |
7107 | InvalidDependency | invaliddependency |
7108 | DependencyFeature | dependencyfeature |
7272 | EntitlementContacts | entitlementcontacts |
8000 | Post | post |
8001 | PostRole | postrole |
8002 | PostRegarding | postregarding |
8003 | PostFollow | postfollow |
8005 | PostComment | postcomment |
8006 | PostLike | postlike |
8050 | TraceLog | tracelog |
8051 | TraceAssociation | traceassociation |
8052 | TraceRegarding | traceregarding |
8181 | RoutingRule | routingrule |
8199 | RoutingRuleItem | routingruleitem |
8840 | HierarchyRule | hierarchyrule |
9006 | AppModule | appmodule |
9007 | AppModuleComponent | appmodulecomponent |
9009 | AppModuleRoles | appmoduleroles |
9100 | Report | report |
9101 | ReportEntity | reportentity |
9102 | ReportCategory | reportcategory |
9103 | ReportVisibility | reportvisibility |
9104 | ReportLink | reportlink |
9105 | TransactionCurrency | transactioncurrency |
9106 | MailMergeTemplate | mailmergetemplate |
9107 | ImportJob | importjob |
9201 | LocalConfigStore | localconfigstore |
9300 | ConvertRule | convertrule |
9301 | ConvertRuleItem | convertruleitem |
9333 | WebResource | webresource |
9400 | ChannelAccessProfileRule | channelaccessprofilerule |
9401 | ChannelAccessProfileRuleItem | channelaccessprofileruleitem |
9404 | ChannelAccessProfileEntityAccessLevel | channelaccessprofileentityaccesslevel |
9502 | SharePointSite | sharepointsite |
9507 | SharePointDocument | sharepointdocument |
9508 | SharePointDocumentLocation | sharepointdocumentlocation |
9509 | SharePointData | sharepointdata |
9510 | RollupProperties | rollupproperties |
9511 | RollupJob | rollupjob |
9600 | Goal | goal |
9602 | GoalRollupQuery | goalrollupquery |
9603 | Metric | metric |
9604 | RollupField | rollupfield |
9605 | EmailServerProfile | emailserverprofile |
9606 | Mailbox | mailbox |
9607 | MailboxStatistics | mailboxstatistics |
9608 | MailboxTrackingFolder | mailboxtrackingfolder |
9613 | SqlEncryptionAudit | sqlencryptionaudit |
9650 | ComplexControl | complexcontrol |
9699 | OrgInsightsMetric | orginsightsmetric |
9700 | Entitlement | entitlement |
9701 | EntitlementChannel | entitlementchannel |
9702 | EntitlementTemplate | entitlementtemplate |
9703 | EntitlementTemplateChannel | entitlementtemplatechannel |
9750 | SLA | sla |
9751 | SLAItem | slaitem |
9752 | SLAKPIInstance | slakpiinstance |
9753 | CustomControl | customcontrol |
9754 | CustomControlResource | customcontrolresource |
9755 | CustomControlDefaultConfig | customcontroldefaultconfig |
9866 | MobileOfflineProfile | mobileofflineprofile |
9867 | MobileOfflineProfileItem | mobileofflineprofileitem |
9868 | MobileOfflineProfileItemAssociation | mobileofflineprofileitemassociation |
9869 | SyncError | syncerror |
9910 | MultiEntitySearch | multientitysearch |
9911 | MultiEntitySearchEntities | multientitysearchentities |
9919 | HierarchySecurityConfiguration | hierarchysecurityconfiguration |
9930 | KnowledgeBaseRecord | knowledgebaserecord |
9931 | IncidentKnowledgeBaseRecord | incidentknowledgebaserecord |
9932 | TimeStampDateMapping | timestampdatemapping |
9933 | RecommendationModel | recommendationmodel |
9934 | RecommendationModelMapping | recommendationmodelmapping |
9935 | RecommendationModelVersion | recommendationmodelversion |
9936 | AzureServiceConnection | azureserviceconnection |
9937 | RecommendationModelVersionHistory | recommendationmodelversionhistory |
9938 | RecommendationCache | recommendationcache |
9940 | DocumentTemplate | documenttemplate |
9941 | PersonalDocumentTemplate | personaldocumenttemplate |
9942 | TopicModelConfiguration | topicmodelconfiguration |
9943 | TopicModelExecutionHistory | topicmodelexecutionhistory |
9944 | TopicModel | topicmodel |
9945 | TextAnalyticsEntityMapping | textanalyticsentitymapping |
9946 | TopicHistory | topichistory |
9947 | KnowledgeSearchModel | knowledgesearchmodel |
9948 | Topic | topic |
9949 | AdvancedSimilarityRule | advancedsimilarityrule |
9950 | OfficeGraphDocument | officegraphdocument |
9951 | SimilarityRule | similarityrule |
9953 | KnowledgeArticle | knowledgearticle |
9954 | KnowledgeArticleIncident | knowledgearticleincident |
9955 | KnowledgeArticleViews | knowledgearticleviews |
9957 | LanguageLocale | languagelocale |
9958 | Feedback | feedback |
9959 | Category | category |
9960 | KnowledgeArticlesCategories | knowledgearticlescategories |
9961 | DelveActionHub | delveactionhub |
9962 | ActionCard | actioncard |
9968 | ActionCardUserState | actioncarduserstate |
9973 | ActionCardUserSettings | actioncardusersettings |
9983 | CardType | cardtype |
9986 | InteractionForEmail | interactionforemail |
9987 | ExternalPartyItem | externalpartyitem |
9997 | EmailSignature | emailsignature |