List of Standard Objects in Salesforce

I recently had a need to get all of the standard objects for a Salesforce org.  I found a list of the standard objects in Salesforce, but it was not in a terribly useful format.  I wanted to iterate over this list for development purposes.

Here is the list for such a task:
Account
AccountContactRole
AccountFeed
AccountHistory
AccountOwnerSharingRule
AccountPartner
AccountShare
AccountTag
AccountTeamMember
AccountTerritoryAssignmentRule
AccountTerritoryAssignmentRuleItem
AccountTerritorySharingRule
ActivityHistory
AdditionalNumber
ApexClass
ApexComponent
ApexLog
ApexPage
ApexTrigger
Approval
Asset
AssetFeed
AssetTag
AssignmentRule
Attachment
Bookmark
BrandTemplate
BusinessHours
BusinessProcess
CallCenter
Campaign
CampaignFeed
CampaignMember
CampaignMemberStatus
CampaignOwnerSharingRule
CampaignShare
CampaignTag
Case
CaseArticle
CaseComment
CaseContactRole
CaseFeed
CaseHistory
CaseMilestone
CaseOwnerSharingRule
CaseShare
CaseSolution
CaseStatus
CaseTag
CaseTeamMember
CaseTeamRole
CaseTeamTemplate
CaseTeamTemplateMember
CaseTeamTemplateRecord
CategoryData
CategoryNode
CategoryNodeLocalization
CollaborationGroup
CollaborationGroupFeed
CollaborationGroupMember
Community
Contact
ContactFeed
ContactHistory
ContactOwnerSharingRule
ContactShare
ContactTag
ContentDocument
ContentDocumentHistory
ContentVersion
ContentVersionHistory
ContentWorkspace
ContentWorkspaceDoc
Contract
ContractContactRole
ContractFeed
ContractHistory
ContractLineItem
ContractLineItemHistory
ContractStatus
ContractTag
CronTrigger
CurrencyType
Dashboard
DashboardFeed
DashboardTag
DatedConversionRate
Division
DivisionLocalization
Document
DocumentAttachmentMap
DocumentTag
EmailMessage
EmailServicesAddress
EmailServicesFunction
EmailStatus
EmailTemplate
Entitlement
EntitlementContact
EntitlementHistory
EntityHistory
EntitlementTemplate
EntitySubscription
Event
EventAttendee
EventFeed
EventTag
FeedComment
FeedTrackedChange
FeedPost
FiscalYearSettings
Folder
ForecastShare
Group
GroupMember
Holiday
Idea
IdeaComment
KnowledgeArticle
KnowledgeArticleVersion
KnowledgeArticleViewStat
KnowledgeArticleVoteStat
Lead
LeadFeed
LeadHistory
LeadOwnerSharingRule
LeadShare
LeadStatus
LeadTag
LineitemOverride
MailmergeTemplate
MilestoneType
Name
NewsFeed
Note
NoteTag
NoteAndAttachment
OpenActivity
Opportunity
OpportunityCompetitor
OpportunityContactRole
OpportunityFeed
OpportunityFieldHistory
OpportunityHistory
OpportunityLineItem
OpportunityLineItemSchedule
OpportunityOverride
OpportunityOwnerSharingRule
OpportunityPartner
OpportunityShare
OpportunityStage
OpportunityTag
OpportunityTeamMember
Organization
OrgWideEmailAddress
Partner
PartnerNetworkConnection
PartnerNetworkRecordConnection
PartnerRole
Period
Pricebook2
PricebookEntry
ProcessInstance
ProcessInstanceHistory
ProcessInstanceStep
ProcessInstanceWorkitem
Product2
Product2Feed
ProductEntitlementTemplate
Profile
QuantityForecast
QuantityForecastHistory
Question
QuestionDataCategorySelection
QueueSobject
Quote
QuoteDocument
QuoteLineItem
RecordType
RecordTypeLocalization
Reply
Report
ReportFeed
ReportTag
RevenueForecast
RevenueForecastHistory
Scontrol
ScontrolLocalization
SelfServiceUser
ServiceContract
ServiceContractHistory
ServiceContractOwnerSharingRule
ServiceContractShare
Site
SiteHistory
SlaProcess
Solution
SolutionFeed
SolutionHistory
SolutionStatus
SolutionTag
StaticResource
TagDefinition
Task
TaskFeed
TaskPriority
TaskStatus
TaskTag
Territory
User
UserAccountTeamMember
UserFeed
UserLicense
UserPreference
UserProfileFeed
UserRole
UserTeamMember
UserTerritory
Vote
WebLink
WebLinkLocalization

This may or may not be useful. It may or may not be obvious. Here’s the one liner I used to generate this list:

wget -O- http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_list.htm | grep '<td width="30.333333333333336%' | sed 's/.*<span>//' | sed 's/<\/span><\/a>//' | grep -v 'Article Type'

Sure, I could have copied and pasted to my favorite spreadsheet application, then selected the object name column and pasted to somewhere else, then performed some manipulation there to get what I needed, but that’s just not the power user way. A great followup post to this will be how to generate an ant build.xml to list each of these in Package types for backup.

Of the items listed above, only 31 are customizable, which is very relevant to any ant deployments:
Account
AccountContactRole
Asset
Campaign
CampaignMember
Case
CaseComment
CaseContactRole
Contact
ContentVersion
Contract
ContractContactRole
Event
Idea
KnowledgeArticle
Lead
Opportunity
OpportunityContactRole
OpportunityLineItem
PartnerRole
Product2
Question
Quote
QuoteLineItem
Reply
Site
Solution
Task
Territory
User
UserLicense

Although for some items like UserLicense, I’m not entirely certain how one would go about customizing them.

It should be noted that there are perhaps more standard objects, see the Salesforce Standard Objects documentation for more information. The above listing is accurate as of API version 20.0 (Winter ’11) on an Unlimited Edition Org.

This entry was tagged , . Bookmark the permalink.