Skip to content

Instantly share code, notes, and snippets.

@michalvavra
Last active January 12, 2018 12:56
Show Gist options
  • Select an option

  • Save michalvavra/11ed4f182db0bf9f9781ab456c666f17 to your computer and use it in GitHub Desktop.

Select an option

Save michalvavra/11ed4f182db0bf9f9781ab456c666f17 to your computer and use it in GitHub Desktop.
// Run in Anonymous Window
Map<String, Schema.SObjectType> globalDescribe = Schema.getGlobalDescribe();
for (String objectName : globalDescribe.keyset()) {
SObjectType sObjectType = describe.get(objectName);
Schema.DescribeSObjectResult describe = sObjectType.getDescribe();
String sObjectName = String.valueOf(sObjectType.newSObject().getSobjectType());
String prefix = describe.getKeyPrefix();
if (prefix == null
&& !describe.isCustom()
&& !describe.isCustomSetting()) {
System.debug(sObjectName);
}
}
AcceptedEventRelation
AccountFeed
AccountHistory
AccountPartner
ActivityHistory
AgentWorkShare
AggregateResult
AssetFeed
AssetHistory
AssetRelationshipFeed
AssetRelationshipHistory
AttachedContentDocument
CampaignFeed
CampaignHistory
CaseFeed
CaseHistory
CaseStatus
CaseTeamMember
CaseTeamRole
CaseTeamTemplate
CaseTeamTemplateMember
CaseTeamTemplateRecord
ChannelProgramFeed
ChannelProgramHistory
ChannelProgramLevelFeed
ChannelProgramLevelHistory
ChannelProgramShare
CollaborationGroupFeed
CombinedAttachment
ContactFeed
ContactHistory
ContentDocumentFeed
ContentDocumentHistory
ContentFolderItem
ContentVersionHistory
ContractFeed
ContractHistory
ContractLineItemHistory
ContractStatus
DashboardComponentFeed
DashboardFeed
DeclinedEventRelation
EntitlementFeed
EntitlementHistory
EventFeed
FlowInterviewShare
FolderedContentDocument
LeadFeed
LeadHistory
ListEmailShare
LookedUpFromActivity
MacroHistory
MacroShare
Name
NoteAndAttachment
OpenActivity
OpportunityFeed
OpportunityFieldHistory
OpportunityPartner
OwnedContentDocument
PartnerFundAllocationFeed
PartnerFundAllocationHistory
PartnerFundAllocationShare
PartnerFundClaimFeed
PartnerFundClaimHistory
PartnerFundClaimShare
PartnerFundRequestFeed
PartnerFundRequestHistory
PartnerFundRequestShare
PartnerMarketingBudgetFeed
PartnerMarketingBudgetHistory
PartnerMarketingBudgetShare
PartnerRole
PendingServiceRoutingShare
Pricebook2History
ProcessInstanceHistory
Product2Feed
Product2History
QuoteFeed
QuoteShare
RecentlyViewed
ReportFeed
ServiceContractFeed
ServiceContractHistory
ServiceContractShare
SiteFeed
SiteHistory
SocialPersonaHistory
SocialPostFeed
SocialPostHistory
SocialPostShare
SolutionFeed
SolutionHistory
SolutionStatus
StreamingChannelShare
TaskFeed
TaskPriority
TaskStatus
TodayGoalShare
TopicFeed
UndecidedEventRelation
UserAppMenuCustomizationShare
UserFeed
UserProvisioningRequestShare
UserRecordAccess
UserServicePresenceShare
WorkAccessShare
WorkBadgeDefinitionFeed
WorkBadgeDefinitionHistory
WorkBadgeDefinitionShare
WorkThanksShare
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment