SOAP API Developer Guide
User Manual:
Open the PDF directly: View PDF  .
.
Page Count: 2547
| Download |  | 
| Open PDF In Browser | View PDF | 
SOAP API Developer Guide
Version 39.0, Spring ’17
@salesforcedocs
Last updated: April 27, 2017
© Copyright 2000–2017 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc.,
as are other names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
GETTING STARTED
.................................................1
Chapter 1: Introducing SOAP API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
When to Use the SOAP API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Customize, Integrate, and Extend Your Salesforce Solutions . . . . . . . . . . . . . . . . . . . . . . . . . 3
Supported Salesforce Editions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Standards Compliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Development Platforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
SOAP API Support Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Choosing a WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Related Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Step 1: Obtain a Salesforce Developer Edition Organization . . . . . . . . . . . . . . . . . . . . . . 6
Step 2: Generate or Obtain the Web Service WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Step 3: Import the WSDL File Into Your Development Platform . . . . . . . . . . . . . . . . . . . . . 7
Step 4: Walk Through the Sample Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Chapter 2: Object Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Primitive Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Field Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Compound Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Address Compound Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Geolocation Compound Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Compound Field Considerations and Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
API Data Types and Salesforce Field Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Core Data Types Used in API Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
sObject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
API Fault Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
ExceptionCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
StatusCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
ExtendedErrorDetails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Duplicate Management Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
System Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Required Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Frequently-Occurring Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
API Field Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Relationships Among Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Relabeling Fields and Tabs and the API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Contents
Tooling API Objects in the Enterprise WSDL . . . . . . . .
Force.com AppExchange Object Prefixes and the API .
Custom Objects . . . . . . . . . . . . . . . . . . . . . . . . . .
External Objects . . . . . . . . . . . . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
73
74
74
76
Chapter 3: Call Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Characteristics of API Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Factors that Affect Data Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Package Version Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Chapter 4: Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Error Handling for Session Expiration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
More About Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Chapter 5: Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
User Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
User Profile and Permission Sets Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Security Token . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Implicit Restrictions for Objects and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
API Access in Force.com AppExchange Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Outbound Port Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Chapter 6: Using the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Obtaining the Partner WSDL File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Calls and the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Objects, Fields, and Field Data and the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Queries and the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Namespaces in the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Package Versions and the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
User Interface Themes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Examples Using the Partner WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Sample query and queryMore Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Sample search Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Sample create Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Sample update Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
REFERENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Chapter 7: Data Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Sales Objects . . . . . . . . . . . . . . . . . . . .
Task and Event Objects . . . . . . . . . . . . . .
Support Objects . . . . . . . . . . . . . . . . . .
Document, Note, and Attachment Objects .
User, Sharing, and Permission Objects . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
112
113
114
115
116
Contents
Profile and Permission Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Record Type Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Product and Schedule Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Sharing and Team Selling Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Customizable Forecasting Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Forecasts Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Territory Management 2.0 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Territory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Process Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
Content Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
ContentNote Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
Chatter Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Chatter Feed Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Salesforce Knowledge Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Work.com Badge and Reward Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Work.com Feedback and Performance Cycle Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Chapter 8: Standard Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
AcceptedEventRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
AccountContactRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
AccountCleanInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
AccountContactRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
AccountFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
AccountHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
AccountOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
AccountPartner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
AccountShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
AccountTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
AccountTeamMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
AccountTerritoryAssignmentRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
AccountTerritoryAssignmentRuleItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
AccountTerritorySharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
ActionLinkGroupTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
ActionLinkTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
ActivityHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
AdditionalNumber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
AgentWork . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
AllowedEmailDomain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Announcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
ApexClass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
ApexComponent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
ApexLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276
ApexPage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278
Contents
ApexTestQueueItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
ApexTestResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
ApexTestResultLimits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
ApexTestRunResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
ApexTestSuite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
ApexTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
AppMenuItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 296
Approval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Article Type__DataCategorySelection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Article Type__Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306
Asset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
AssetFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
AssetOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
AssetShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
AssetTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
AssetTokenEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
AssignedResource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
AssignmentRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
AsyncApexJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334
AttachedContentDocument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
AttachedContentNote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Attachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
AuraDefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 345
AuraDefinitionBundle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
AuthConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349
AuthConfigProviders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
AuthProvider . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
AuthSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358
BackgroundOperation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
BackgroundOperationResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
Bookmark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
BrandTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
BusinessHours . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
BusinessProcess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
CallCenter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
Campaign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379
CampaignFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
CampaignInfluence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
CampaignInfluenceModel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
CampaignMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
CampaignMemberStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
CampaignOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
CampaignShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
CampaignTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
Contents
Case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
CaseArticle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
CaseComment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 424
CaseContactRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
CaseFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
CaseHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
CaseMilestone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
CaseOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
CaseShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
CaseSolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
CaseStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
CaseTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 447
CaseTeamMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 448
CaseTeamRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449
CaseTeamTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
CaseTeamTemplateMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450
CaseTeamTemplateRecord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451
CategoryData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
CategoryNode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
CategoryNodeLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
ChatterActivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
ChatterAnswersActivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
ChatterAnswersReputationLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
ChatterConversation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
ChatterConversationMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
ChatterMessage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468
ClientBrowser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
CollaborationGroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
CollaborationGroupFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
CollaborationGroupMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
CollaborationGroupMemberRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487
CollaborationGroupRecord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
CollaborationInvitation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489
CombinedAttachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
Community (Zone) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495
ConnectedApplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499
ContactCleanInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
ContactFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
ContactHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
ContactOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
ContactShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531
ContactTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533
ContentAsset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534
Contents
ContentDistribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
ContentDistributionView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541
ContentDocument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
ContentDocumentFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
ContentDocumentHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
ContentDocumentLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
ContentFolder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
ContentFolderItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 562
ContentFolderLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 564
ContentFolderMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 565
ContentHubItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
ContentHubRepository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570
ContentNote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
ContentVersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
ContentVersionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
ContentWorkspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
ContentWorkspaceDoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
Contract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
ContractContactRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
ContractFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
ContractHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
ContractLineItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612
ContractLineItemHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
ContractStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617
ContractTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
CorsWhitelistEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
CronJobDetail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
CronTrigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624
CurrencyType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626
CustomBrand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628
CustomBrandAsset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
Custom Metadata Type__mdt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
Custom Object__Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
CustomPermission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
CustomPermissionDependency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
DandBCompany . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
Dashboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668
DashboardComponent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674
DashboardComponentFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675
DashboardFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 682
DashboardTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690
DataAssessmentFieldMetric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 691
DataAssessmentMetric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693
DataAssessmentValueMetric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 694
Contents
DatacloudCompany . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 695
DatacloudContact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704
DatacloudDandBCompany . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709
DatacloudOwnedEntity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 732
DatacloudPurchaseUsage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733
DatacloudSocialHandle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735
DatedConversionRate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736
DcSocialProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 738
DcSocialProfileHandle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 740
DeclinedEventRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 741
Division . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742
DivisionLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744
Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745
DocumentAttachmentMap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 750
DocumentTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751
Domain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 752
DomainSite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 754
DuplicateRecordItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755
DuplicateRecordSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756
DuplicateRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757
EmailDomainKey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759
EmailMessage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762
EmailMessageRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 768
EmailServicesAddress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770
EmailServicesFunction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 772
EmailStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777
EmailTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 778
EmbeddedServiceDetail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783
Entitlement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 785
EntitlementContact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 789
EntitlementFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791
EntitlementHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 798
EntitlementTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 799
EntityHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802
EntityMilestone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803
EntitySubscription . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 810
EnvironmentHubMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 812
Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816
EventFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 830
EventLogFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 838
EventRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993
EventTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 998
EventWhoRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 999
ExternalDataSource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1000
Contents
ExternalDataUserAuth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004
FeedAttachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1006
FeedComment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008
FeedItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1013
FeedLike . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1024
FeedPollChoice . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1025
FeedPollVote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027
FeedPost . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1027
FeedRevision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1031
FeedTrackedChange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1034
FieldHistoryArchive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1037
FieldPermissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1040
FiscalYearSettings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1043
FlexQueueItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1046
FlowInterview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1048
FlowInterviewOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1049
FlowInterviewShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1051
Folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1052
FolderedContentDocument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1055
ForecastingAdjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1056
ForecastingFact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1061
ForecastingItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1063
ForecastingOwnerAdjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1069
ForecastingQuota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1073
ForecastingType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1076
ForecastingUserPreference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1078
ForecastShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1080
Goal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1082
GoalFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1084
GoalHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1090
GoalLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1091
GoalShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1091
GoogleDoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1093
Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1094
GroupMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1097
HashtagDefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1098
Holiday . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1100
Idea . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1103
IdeaComment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1109
IdeaReputation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1112
IdeaReputationLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1114
IdeaTheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1115
KnowledgeableUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1117
KnowledgeArticle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1118
Contents
KnowledgeArticleVersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1120
KnowledgeArticleVersionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1128
KnowledgeArticleViewStat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1130
KnowledgeArticleVoteStat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1132
Lead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1134
LeadCleanInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1151
LeadFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1165
LeadHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1173
LeadOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1174
LeadShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1176
LeadStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1178
LeadTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1180
LimitAllocationPerApp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1181
LineitemOverride . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1183
LinkedArticle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1185
LinkedArticleFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1187
LinkedArticleHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1190
ListView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1192
ListViewChart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1194
ListViewChartInstance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1195
LiveAgentSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1199
LiveAgentSessionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1203
LiveAgentSessionOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1204
LiveAgentSessionShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1206
LiveChatBlockingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1207
LiveChatButton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1209
LiveChatButtonDeployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1217
LiveChatButtonSkill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1218
LiveChatDeployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1219
LiveChatSensitiveDataRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1222
LiveChatTranscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1225
LiveChatTranscriptEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1232
LiveChatTranscriptHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234
LiveChatTranscriptOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1235
LiveChatTranscriptShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1237
LiveChatTranscriptSkill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1239
LiveChatUserConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1240
LiveChatUserConfigProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1246
LiveChatUserConfigUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247
LiveChatVisitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1247
LoginEvent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1249
LoginGeo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1256
LoginHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1259
LoginIp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1263
Contents
LookedUpFromActivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1265
Macro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1271
MacroInstruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1274
MailmergeTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1275
MatchingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1278
MatchingRuleItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1281
MetadataPackage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1283
MetadataPackageVersion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1284
Metric . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1287
MetricDataLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1290
MetricDataLinkHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1291
MetricFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1292
MetricHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1297
MetricsDataFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1298
MetricShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1301
MilestoneType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1303
Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1304
NamedCredential . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1307
NavigationLinkSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1310
NavigationMenuItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1311
NavigationMenuItemLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1314
Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1315
NetworkActivityAudit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1323
NetworkMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1326
NetworkMemberGroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1331
NetworkModeration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1333
NetworkPageOverride . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1334
NetworkSelfRegistration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1335
NewsFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1336
Note . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343
OauthToken . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1345
NoteAndAttachment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1347
NoteTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1349
ObjectPermissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1350
ObjectTerritory2AssignmentRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1353
ObjectTerritory2AssignmentRuleItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1355
ObjectTerritory2Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1357
OpenActivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1358
OperatingHours . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1366
OperatingHoursFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1367
OperatingHoursHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1370
Opportunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1371
OpportunityCompetitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1381
OpportunityContactRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1382
Contents
OpportunityFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1384
OpportunityFieldHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1392
OpportunityHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1393
OpportunityLineItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1395
OpportunityLineItemSchedule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1402
OpportunityOverride . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1406
OpportunityOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1409
OpportunityPartner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1411
OpportunityShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1412
OpportunitySplit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1414
OpportunitySplitType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1416
OpportunityStage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1419
OpportunityTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1422
OpportunityTeamMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1423
Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1426
OrderFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1435
OrderHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1442
OrderItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1443
OrderItemFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1446
OrderItemHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1453
OrderOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1454
Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1457
OrgWideEmailAddress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1477
OwnedContentDocument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1478
PackageLicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1480
PackagePushError . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1482
PackagePushJob . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1484
PackagePushRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1487
PackageSubscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1490
Partner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1494
PartnerNetworkConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1496
PartnerNetworkRecordConnection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1499
PartnerNetworkSyncLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1503
PartnerRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1505
Period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1506
PermissionSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1508
PermissionSetAssignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1514
PermissionSetLicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1516
PermissionSetLicenseAssign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1519
PlatformAction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1520
PresenceUserConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1527
PresenceUserConfigProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1529
PresenceUserConfigUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1530
Pricebook2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1530
Contents
Pricebook2History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1534
PricebookEntry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1535
ProcessDefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1538
ProcessInstance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1540
ProcessInstanceHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1543
ProcessInstanceStep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1545
ProcessInstanceNode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1548
ProcessInstanceWorkitem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1550
ProcessNode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1552
Product2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1554
Product2Feed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1560
ProductEntitlementTemplate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1567
Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1568
ProfileSkill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1571
ProfileSkillEndorsement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1573
ProfileSkillEndorsementFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1574
ProfileSkillEndorsementHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1579
ProfileSkillFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1580
ProfileSkillHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1585
ProfileSkillShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1586
ProfileSkillUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1588
ProfileSkillUserFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1589
ProfileSkillUserHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1593
PushTopic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1594
QuantityForecast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1597
QuantityForecastHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1604
QueueRoutingConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1607
Question . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1609
QuestionDataCategorySelection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1614
QuestionReportAbuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1616
QuestionSubscription . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1617
QueueSobject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1618
QuickText . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1619
QuickTextHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1621
QuickTextOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1622
QuickTextShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1624
Quote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1626
QuoteDocument . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1639
QuoteFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1641
QuoteLineItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1645
RecentlyViewed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1650
RecordType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1653
RecordTypeLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1656
Reply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1658
Contents
ReplyReportAbuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1660
Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1661
ReportFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1665
ReportTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1673
ReputationLevel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1674
ReputationLevelLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1675
ReputationPointsRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1677
ResourceAbsence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1679
ResourceAbsenceFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1682
ResourceAbsenceHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1685
RevenueForecast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1686
RevenueForecastHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1694
RuleTerritory2Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1697
SamlSsoConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1698
Scontrol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1703
ScontrolLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1706
SearchPromotionRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1711
SecureAgent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1712
SecureAgentsCluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1714
SecurityCustomBaseline (Beta) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1715
SelfServiceUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1717
ServiceAppointment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1720
ServiceAppointmentFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1728
ServiceAppointmentHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1730
ServiceAppointmentOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1731
ServiceAppointmentShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1733
ServiceChannel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1735
ServiceChannelStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1736
ServiceContract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1737
ServiceContractFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1746
ServiceContractHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1753
ServiceContractOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1754
ServiceContractShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1756
ServicePresenceStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1758
ServiceResource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1759
ServiceResourceCapacity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1762
ServiceResourceCapacityFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1765
ServiceResourceCapacityHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1767
ServiceResourceFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1768
ServiceResourceHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1771
ServiceResourceOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1772
ServiceResourceShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1774
ServiceResourceSkill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1775
ServiceResourceSkillFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1777
Contents
ServiceResourceSkillHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1779
ServiceTerritory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1780
ServiceTerritoryFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1785
ServiceTerritoryHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1787
ServiceTerritoryMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1788
ServiceTerritoryMemberFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1793
ServiceTerritoryMemberHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1795
SessionPermSetActivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1796
SetupAuditTrail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1798
SetupEntityAccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1800
SignupRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1802
Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1809
SiteDomain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1815
SiteHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1816
Skill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1817
SkillProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1819
SkillRequirement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1819
SkillRequirementFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1821
SkillRequirementHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1824
SkillUser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1825
SlaProcess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1826
Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1829
SolutionFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1833
SolutionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1840
SolutionStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1842
SolutionTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1843
SOSDeployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1845
SOSSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1847
SOSSessionActivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1850
SOSSessionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1851
SOSSessionOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1852
SOSSessionShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1854
Stamp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1856
StampAssignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1856
StaticResource . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1857
StreamingChannel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1860
TagDefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1861
Task . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1863
TaskFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1874
TaskPriority . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1881
TaskRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1883
TaskStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1885
TaskTag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1887
TaskWhoRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1888
Contents
TenantSecret . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1889
Territory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1893
Territory2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1896
Territory2Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1899
Territory2ModelHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1901
Territory2Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1902
TestSuiteMembership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1903
ThirdPartyAccountLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1904
TimeSlot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1907
TimeSlotHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1909
Topic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1910
TopicAssignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1911
TopicFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1913
TopicLocalization—Beta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1919
TwoFactorInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1924
TwoFactorMethodsInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1925
TwoFactorTempCode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1927
UndecidedEventRelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1928
User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1930
UserAccountTeamMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1970
UserAppInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1973
UserAppMenuCustomization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1974
UserAppMenuCustomizationShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1975
UserAppMenuItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1976
UserConfigTransferButton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1980
UserConfigTransferSkill . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1980
UserCustomBadge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1981
UserCustomBadgeLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1982
UserFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1984
UserLicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1992
UserLogin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1995
UserMembershipSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1996
UserPackageLicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1998
UserPreference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1999
UserProfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2000
UserProfileFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2018
UserProvAccount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2025
UserProvAccountStaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2028
UserProvMockTarget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2031
UserProvisioningConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2033
UserProvisioningLog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2037
UserProvisioningRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2038
UserProvisioningRequestOwnerSharingRule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2044
UserProvisioningRequestShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2045
Contents
UserRecordAccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2047
UserRole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2049
UserServicePresence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2053
UserShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2054
UserTeamMember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2056
UserTerritory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2057
UserTerritory2Association . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2059
VerificationHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2060
VoiceCall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2066
VoiceCallList . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2069
VoiceCallListItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2070
VoiceCallListShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2071
VoiceCallShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2072
VoiceMailContent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2073
VoiceMailContentShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2075
VoiceUserLine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2076
VoiceUserLineShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2077
VoiceVendorInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2078
VoiceVendorLine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2079
VoiceVendorLineShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2081
Vote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2082
WebLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2084
WebLinkLocalization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2089
WorkAccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2094
WorkAccessShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2095
WorkBadge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2096
WorkBadgeDefinition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2099
WorkBadgeDefinitionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2102
WorkBadgeDefinitionShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2103
WorkCoaching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2105
WorkCoachingFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2106
WorkCoachingHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2112
WorkCoachingShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2113
WorkFeedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2115
WorkFeedbackHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2116
WorkFeedbackQuestion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2117
WorkFeedbackQuestionHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2120
WorkFeedbackQuestionSet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2121
WorkFeedbackQuestionSetHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2122
WorkFeedbackQuestionSetShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2123
WorkFeedbackQuestionShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2124
WorkFeedbackRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2126
WorkFeedbackRequestFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2131
WorkFeedbackRequestHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2136
Contents
WorkFeedbackRequestShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2137
WorkFeedbackShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2139
WorkGoal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2140
WorkGoalCollaborator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2146
WorkGoalCollaboratorHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2147
WorkGoalFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2149
WorkGoalHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2155
WorkGoalLink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2156
WorkGoalShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2157
WorkOrder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2158
WorkOrderFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2168
WorkOrderHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2172
WorkOrderLineItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2173
WorkOrderLineItemFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2181
WorkOrderLineItemHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2185
WorkOrderShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2186
WorkPerformanceCycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2187
WorkPerformanceCycleFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2190
WorkPerformanceCycleHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2195
WorkPerformanceCycleShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2196
WorkReward . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2198
WorkRewardFund . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2200
WorkRewardFundHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2202
WorkRewardFundShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2203
WorkRewardFundType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2204
WorkRewardFundTypeHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2207
WorkRewardFundTypeShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2208
WorkRewardHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2210
WorkRewardShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2211
WorkThanks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2212
WorkThanksShare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2213
WorkType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2214
WorkTypeFeed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2216
WorkTypeHistory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2219
Reusable Terms for API Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2220
Chapter 9: Core Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2221
convertLead() . . . . . . . .
LeadConvertResult
create() . . . . . . . . . . . .
SaveResult . . . . . .
delete() . . . . . . . . . . . .
DeleteResult . . . . .
emptyRecycleBin() . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2222
2228
2229
2238
2239
2242
2242
Contents
EmptyRecycleBinResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2245
executeListView() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2245
ExecuteListViewRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2246
ExecuteListViewResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2246
ListViewColumn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2247
ListViewRecord . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2247
ListViewRecordColumn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2248
findDuplicates() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2248
getDeleted() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2252
GetDeletedResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2256
getUpdated() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2256
GetUpdatedResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2260
invalidateSessions() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2260
InvalidateSessionsResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2262
login() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2262
LoginResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2267
logout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2268
merge() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2269
MergeResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2275
performQuickActions() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2275
PerformQuickActionResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2277
process() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2277
ProcessResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2280
query() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2281
QueryResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2284
QueryLocator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2287
queryAll() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2287
queryMore() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2290
QueryResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2293
QueryLocator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2294
retrieve() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2294
search() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2297
SearchResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2300
undelete() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2300
UndeleteResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2303
update() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2304
SaveResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2310
upsert() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2311
UpsertResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2316
Chapter 10: Describe Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2317
describeAllTabs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2318
describeAppMenu() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2319
DescribeAppMenuResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2320
Contents
describeApprovalLayout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2321
DescribeApprovalLayoutResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2323
describeAvailableQuickActions() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2323
DescribeAvailableQuickActionResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2324
describeCompactLayouts() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2325
DescribeCompactLayoutsResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2327
describeDataCategoryGroups() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2328
DescribeDataCategoryGroupResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2330
describeDataCategoryGroupStructures() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2331
describeDataCategoryGroupStructures() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2335
describeGlobal() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2335
DescribeGlobalResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2337
describeGlobalTheme() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2339
DescribeGlobalTheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2340
describeKnowledge()Call Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2341
describeLayout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2342
DescribeLayoutResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2347
describePrimaryCompactLayouts() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2360
describeQuickActions() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2361
DescribeQuickActionResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2363
describeSearchScopeOrder() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2367
DescribeSearchScopeOrderResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2368
describeSearchLayouts() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2369
DescribeSearchLayoutResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2370
describeSObject() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2371
describeSObjectResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2374
describeSObjects() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2374
DescribeSObjectResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2378
describeSoftphoneLayout() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2390
describeSoqlListViews() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2394
DescribeSoqlListView . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2395
DescribeSoqlListViewParams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2395
DescribeSoqlListViewResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2396
DescribeSoqlListViewsRequest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2396
ListViewColumn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2396
ListViewOrderBy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2397
describeTabs() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2397
describeTabSetResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2400
describeTheme() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2402
DescribeThemeResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2404
DescribeThemeItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2404
Chapter 11: Utility Calls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2405
getServerTimestamp() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2405
Contents
getServerTimestampResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2407
getUserInfo() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2407
getUserInfoResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2409
renderEmailTemplate() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2410
RenderEmailTemplateResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2413
resetPassword() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2414
sendEmail() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2416
SendEmailResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2425
sendEmailMessage() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2426
setPassword() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2429
Chapter 12: SOAP Headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2431
AllOrNoneHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2432
AllowFieldTruncationHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2433
AssignmentRuleHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2435
CallOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2436
DisableFeedTrackingHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2437
DuplicateRuleHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2438
EmailHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2439
LimitInfoHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2441
LocaleOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2442
LoginScopeHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2443
MruHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2444
OwnerChangeOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2445
PackageVersionHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2448
QueryOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2449
SessionHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2450
UserTerritoryDeleteHeader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2450
USING THE API WITH SALESFORCE FEATURES . . . . . . . . . . . . . . . . . . . . . 2451
Chapter 13: Implementation Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2451
Choosing a User for an Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2452
Login Server URL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2452
Log in to the Login Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2453
Typical API Call Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2453
Salesforce Sandbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2453
Multiple Instances of Salesforce Database Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2454
Content Type Requirement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2454
Monitoring API Traffic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2454
API Usage Metering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2454
Compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2456
HTTP Persistent Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2457
HTTP Chunking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2457
Contents
Internationalization and Character Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2457
XML Compliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2457
.NET, Non-String Fields, and the Enterprise WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2458
Chapter 14: Outbound Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2459
Understanding Outbound Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2460
Understanding Notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2461
Setting Up Outbound Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2461
Setting Up User Profiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2462
Defining Outbound Messaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2462
Downloading the Salesforce Client Certificate . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2463
Viewing Outbound Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2463
Tracking Outbound Message Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2464
Considerations for Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2464
Understanding the Outbound Messaging WSDL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2464
Building a Listener . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2466
Chapter 15: Data Loading and Integration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2468
Choosing the Right API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2469
Client Application Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2469
Salesforce Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2470
Best Practices with Any Data Loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2470
Integration and Single Sign-On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2471
Chapter 16: Data Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2472
API Calls for Data Replication . . . . . . . . . . . . . .
Scope of Data Replication . . . . . . . . . . . . . . . .
Data Replication Steps . . . . . . . . . . . . . . . . . .
Object-Specific Requirements for Data Replication
Polling for Changes . . . . . . . . . . . . . . . . . . . .
Checking for Structural Changes in the Object . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
2473
2473
2473
2474
2474
2475
Chapter 17: Feature-Specific Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2476
Archived Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2477
Person Account Record Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2477
Opportunity Forecast Override Business Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2478
OpportunityOverride Lifecycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2479
LineitemOverride Object Lifecycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2481
External Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2482
Call Centers and the API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2482
Implementing Salesforce Integrations on Force.com . . . . . . . . . . . . . . . . . . . . . . . . . . . 2484
Articles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2485
Data Categories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2488
GLOSSARY
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2491
Contents
INDEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2507
GETTING STARTED
CHAPTER 1
In this chapter ...
•
When to Use the
SOAP API
•
Customize, Integrate,
and Extend Your
Salesforce Solutions
•
Supported Salesforce
Editions
•
Standards
Compliance
•
Development
Platforms
•
SOAP API Support
Policy
•
Choosing a WSDL
•
Related Resources
•
Quick Start
Introducing SOAP API
Salesforce provides programmatic access to your org’s information using simple, powerful, and secure
application programming interfaces. To use this document, you should have a basic familiarity with
software development, Web services, and the Salesforce user interface.
Any functionality described in this guide is available if your organization has the API feature enabled.
This feature is enabled by default for Performance, Unlimited, Enterprise, and Developer Editions. Some
Professional Edition organizations may also have the API enabled. If you cannot access the features you
see in this guide, contact Salesforce.
Note: Salesforce Education Services offers a suite of training courses to enable developers to
design, create, integrate, and extend applications built on the Force.com platform. Be sure to visit
http://www.salesforce.com/training to learn more.
1
Introducing SOAP API
When to Use the SOAP API
When to Use the SOAP API
The Salesforce prebuilt applications provide powerful CRM functionality. In addition, Salesforce provides the ability to customize the
prebuilt applications to fit your organization. However, your organization may have complex business processes that are unsupported
by the existing functionality. When this is the case, the Force.com platform includes a number of ways for advanced administrators and
developers to implement custom functionality. These include the SOAP API, Apex, and Visualforce.
SOAP API
Use SOAP API to create, retrieve, update or delete records, such as accounts, leads, and custom objects. With more than 20 different
calls, SOAP API also allows you to maintain passwords, perform searches, and much more. Use SOAP API in any language that supports
Web services.
REST API
REST API provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages
include ease of integration and development, and it’s an excellent choice of technology for use with mobile applications and web
projects. However, if you have many records to process, consider using Bulk API, which is based on REST principles and optimized for
large sets of data.
Bulk API
Bulk API is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert,
update, upsert, or delete many records asynchronously by submitting batches. Salesforce processes batches in the background.
SOAP API, in contrast, is optimized for real-time client applications that update a few records at a time. You can use SOAP API for processing
many records, but when the data sets contain hundreds of thousands of records, SOAP API is less practical. Bulk API is designed to make
it simple to process data from a few thousand to millions of records.
Metadata API
Use Metadata API to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes
from a sandbox or testing org to your production environment. Metadata API is intended for managing customizations and for building
tools that can manage the metadata model, not the data itself.
The easiest way to access the functionality in Metadata API is to use the Force.com IDE or Force.com Migration Tool. Both tools are built
on top of Metadata API and use the standard Eclipse and Ant tools, respectively, to simplify working with Metadata API.
• Force.com IDE is built on the Eclipse platform, for programmers familiar with integrated development environments. Code, compile,
test, and deploy from within the IDE.
• The Force.com Migration Tool is ideal if you use a script or the command line for moving metadata between a local directory and a
Salesforce org.
Apex
Use Apex if you want to:
• Create Web services.
• Create email services.
2
Introducing SOAP API
Customize, Integrate, and Extend Your Salesforce Solutions
• Perform complex validation over multiple objects.
• Create complex business processes that are not supported by workflow.
• Create custom transactional logic (logic that occurs over the entire transaction, not just with a single record or object).
• Attach custom logic to another operation, such as saving a record, so that it occurs whenever the operation is executed, regardless
of whether it originates in the user interface, a Visualforce page, or from SOAP API.
For more information, see the Apex Developer Guide.
Visualforce
Visualforce consists of a tag-based markup language that gives developers a more powerful way of building applications and customizing
the Salesforce user interface. With Visualforce you can:
• Build wizards and other multistep processes.
• Create your own custom flow control through an application.
• Define navigation patterns and data-specific rules for optimal, efficient application interaction.
For more information, see the Visualforce Developer's Guide.
Customize, Integrate, and Extend Your Salesforce Solutions
The Force.com platform allows you to customize, integrate, and extend your Salesforce organization using the language and platform
of your choice:
• Customize Salesforce with custom fields, links, objects, page layouts, buttons, record types, s-controls, and tabs to meet specific
business requirements.
• Integrate Salesforce with your organization’s ERP and finance systems, deliver real-time sales and support information to company
portals, and populate critical business systems with customer information.
• Extend Salesforce in presentation, business logic, and data services with new functionality that reflects the business requirements
of your organization.
For more information about Force.com solutions, developer resources, and community resources, go to Salesforce Developers.
Supported Salesforce Editions
To use SOAP API, your organization must use Enterprise Edition, Performance Edition, Unlimited Edition, or Developer Edition. If you are
an existing Salesforce customer and want to upgrade to Enterprise, Unlimited, or Performance Edition, contact your account representative.
To develop Web service client applications, it is strongly recommended that you use Developer Sandbox, which is an exact replica of
your Salesforce deployment, including all customization and data. For more information, see
http://www.salesforce.com/products/sandbox.jsp.
Developer Edition provides access to all of the features available with Enterprise Edition. Developer Edition is constrained only by the
number of users and the amount of storage space. Developer Edition provides a development context that allows you to build and test
your solutions without affecting your organization’s live data. Developer Edition accounts are available for free at
https://developer.salesforce.com/page/Getting_Started.
3
Introducing SOAP API
Standards Compliance
Standards Compliance
SOAP API is implemented to comply with the following specifications:
Standard Name
Website
Simple Object Access Protocol (SOAP) 1.1
Web Service Description Language (WSDL) 1.1
http://www.w3.org/TR/2001/NOTE-wsdl-20010315
WS-I Basic Profile 1.1
http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html
Development Platforms
SOAP API works with current SOAP development environments, including, but not limited to, Visual Studio .NET 2005. In this document,
we provide examples in Java and C# (.NET). The Java examples are based on WSC 20.0 (WSC) and JDK 6 (Java Platform Standard Edition
Development Kit 6). Additional versions of WSC are available at https://github.com/forcedotcom/wsc and
http://mvnrepository.com/artifact/com.force.api/force-wsc. To see a complete list of compatible
development platforms and more sample code, go to developer.salesforce.com.
Note: Development platforms vary in their SOAP implementations. Implementation differences in certain development platforms
might prevent access to some or all of the features in the API. If you are using Visual Studio for .NET development, we recommend
that you use Visual Studio 2003 or higher.
SOAP API Support Policy
Salesforce recommends that your new client applications use the most recent version of the Force.com WSDL file to fully exploit the
benefits of richer features and greater efficiency. You can navigate to the most recent WSDL for your organization from Setup by entering
“API” in the Quick Find box, then selecting API. When a new version is released, use the following steps in Quick Start to update
your WSDL:
• Regenerate the WSDL file (see Step 2: Generate or Obtain the Web Service WSDL)
• Import it into your environment (see Step 3: Import the WSDL File Into Your Development Platform)
Backward Compatibility
Salesforce strives to make backward compatibility easy when using the Force.com platform.
Each new Salesforce release consists of two components:
• A new release of platform software that resides on Salesforce systems
• A new version of SOAP API
For example, the Winter ’07 release included SOAP API version 9.0 and the Summer ’07 release included SOAP API version 10.0.
We maintain support for each SOAP API version across releases of the platform software. SOAP API is backward compatible in that an
application created to work with a given SOAP API version will continue to work with that same SOAP API version in future platform
software releases.
4
Introducing SOAP API
Choosing a WSDL
Salesforce does not guarantee that an application written against one SOAP API version will work with future SOAP API versions: Changes
in method signatures and data representations are often required as we continue to enhance SOAP API. However, we strive to keep
SOAP API consistent from version to version with minimal if any changes required to port applications to newer SOAP API versions.
For example, an application written using SOAP API version 9.0 which shipped with the Winter ’07 release will continue to work with
SOAP API version 9.0 on the Summer ’07 release and on future releases beyond that. However, that same application may not work with
SOAP API version 10 without modifications to the application.
SOAP API End-of-Life
Salesforce is committed to supporting each SOAP API version for a minimum of three years from the date of first release. In order to
improve the quality and performance of SOAP API, versions that are more than three years old may cease to be supported.
When a SOAP API version is scheduled to be unsupported, an advance end-of-life notice will be given at least one year before support
for SOAP API version is ended. Salesforce will directly notify customers using SOAP API versions scheduled for end of life.
Choosing a WSDL
There are two Force.com Web services for which you can obtain WSDL files for API access:
• Force.com Enterprise WSDL—This API is for most enterprise users who are developing client applications for their organization.
The enterprise WSDL file is a strongly typed representation of your organization’s data. It provides information about your schema,
data types, and fields to your development environment, allowing for a tighter integration between it and the Force.com Web
service. This WSDL changes if custom fields or custom objects are added to, renamed, or removed from, your organization’s Salesforce
configuration. If you are downloading an enterprise WSDL and you have managed packages installed in your organization, you need
to take an extra step to select the version of each installed package to include in the generated WSDL.
Note the following when generating the enterprise WSDL:
– If new custom fields or objects are added to, renamed, or removed from your organization’s information, you need to regenerate
the WSDL file in order to access them.
– The generated WSDL contains the objects and fields in your organization, including those available in the selected versions of
each installed package. If a field or object is added in a later package version, you must generate the enterprise WSDL with that
package version to work with the object or field in your API integration.
• Force.com Partner WSDL—This API is for Salesforce partners who are developing client applications for multiple organizations.
As a loosely-typed representation of the Salesforce object model, the partner WSDL can be used to access data within any organization.
Related Resources
The Salesforce developer website provides a full suite of developer toolkits, sample code, sample SOAP messages, community-based
support, and other resources to help you with your development projects. Be sure to visit
https://developer.salesforce.com/page/Getting_Started for more information, or visit
https://developer.salesforce.com/signup to sign up for a free Developer Edition account.
You can visit these websites to find out more about Salesforce applications:
• Salesforce for information about the Salesforce application.
• Force.com AppExchange for access to apps created for Salesforce.
• Salesforce.com Community for services to ensure Salesforce customer success.
5
Introducing SOAP API
Quick Start
Quick Start
Use this quick start to create a sample application in your development environment.
Note: Before you begin building an integration or other client application:
• Install your development platform according to its product documentation.
• Read through all the steps before beginning this quick start. You may also wish to review the rest of this document to familiarize
yourself with terms and concepts.
Step 1: Obtain a Salesforce Developer Edition Organization
If you are not already a member of the Force.com developer community, go to developer.salesforce.com/signup and
follow the instructions for signing up for a Developer Edition organization. Even if you already have Enterprise Edition, Unlimited Edition,
or Performance Edition, use Developer Edition for developing, staging, and testing your solutions against sample data to protect your
organization’s live data. This is especially true for applications that insert, update, or delete data (as opposed to simply reading data).
If you already have a Developer Edition organization, verify that you have the “API Enabled” permission. This permission is enabled by
default, but may have been changed by an administrator. For more information, see the help in the Salesforce user interface.
Step 2: Generate or Obtain the Web Service WSDL
To access the Force.com Web service, you need a Web Service Description Language (WSDL) file. The WSDL file defines the Web service
that is available to you. Your development platform uses this WSDL to generate an API to access the Force.com Web service it defines.
You can either obtain the WSDL file from your organization’s Salesforce administrator or you can generate it yourself if you have access
to the WSDL download page in the Salesforce user interface. You can navigate to the most recent WSDL for your organization from
Setup by entering “API” in the Quick Find box, then selecting API.
For more information about WSDL, see http://www.w3.org/TR/wsdl.
Generating the WSDL File for Your Organization
Any user with the “Modify All Data” permission can download the Web Services Description Language (WSDL) file to integrate and
extend Salesforce using the API. (The System Administrator profile has this permission.)
The WSDL file is dynamically generated based on which type of WSDL file (enterprise or partner) you download. The generated WSDL
defines all of the API calls, objects (including standard and custom objects), and fields that are available for API access for your organization.
To generate the WSDL file for your organization:
1. Log in to your Enterprise, Unlimited, Performance, or Developer Edition Salesforce account. You must log in as an administrator or
as a user who has the “Modify All Data” permission. Logins are checked to ensure they are from a known IP address. For more
information, see “Restrict Where and When Users Can Log In to Salesforce” in the Salesforce online help.
2. From Setup, enter “API” in the Quick Find box, then select API to display the WSDL download page.
3. Download the appropriate WSDL:
• If you’re downloading an enterprise WSDL and you have managed packages installed in your org, click Generate Enterprise
WSDL. Salesforce prompts you to select the version of each installed package to include in the generated WSDL.
• Otherwise, right-click the link for the appropriate WSDL document to save it to a local directory. In the menu, Internet Explorer
users can choose Save Target As, while Mozilla Firefox users can choose Save Link As.
6
Introducing SOAP API
Step 3: Import the WSDL File Into Your Development Platform
Step 3: Import the WSDL File Into Your Development Platform
Once you have the WSDL file, you need to import it into your development platform so that your development environment can generate
the necessary objects for use in building client Web service applications in that environment. This section provides sample instructions
for WSC and Microsoft Visual Studio. For instructions about other development platforms, see your platform’s product documentation.
Note: The process for importing WSDL files is identical for the enterprise and partner WSDL files.
Instructions for Java Environments (WSC)
Java environments access the API through Java objects that serve as proxies for their server-side counterparts. Before using the API, you
must first generate these objects from your organization’s WSDL file.
Each SOAP client has its own tool for this process. For WSC, use the wsdlc utility.
Note: Before you run wsdlc, you must have the WSC JAR file installed on your system and referenced in your classpath.
The basic syntax for wsdlc is:
java –classpath pathToJAR/wsc-22.jar com.sforce.ws.tools.wsdlc pathToWsdl/WsdlFilename
pathToOutputJar/OutputJarFilename
This command generates an output jar file based on the specified WSDL file. After the output jar file is created, reference it along with
the wsc jar file (for example, wsc-22.jar) in your Java program to create a client application.
Instructions for Microsoft Visual Studio
Visual Studio languages access the API through objects that serve as proxies for their server-side counterparts. Before using the API, you
must first generate these objects from your organization’s WSDL file.
Once you have the proxy classes for the server-side objects, you need to ensure that you specify whether you have set any values on
non-string fields. For more information, see Implementation Considerations.
Visual Studio provides two approaches for importing your WSDL file and generating an XML Web service client: an IDE-based approach
and a command line approach. This walkthrough describes how to import your WSDL file through the IDE.
Note: Before you begin, the first step is to create a new application or open an existing application in Visual Studio. In addition,
you need to have generated the WSDL file, as described in Generating the WSDL File for Your Organization.
An XML Web service client is any component or application that references and uses an XML Web service. This does not necessarily
need to be a client-based application. In fact, in many cases, your XML Web service clients might be other Web applications, such as
Web Forms or even other XML Web services. When accessing XML Web services in managed code, a proxy class and the .NET Framework
handle all of the infrastructure coding.
To access an XML Web service from managed code:
1. Name your project Walkthrough or change the using directive in the following sample to
your_project_name.web_reference_name. Then, add a Web reference to your project for the XML Web service that
you want to access. The Web reference creates a proxy class with methods that serve as proxies for each exposed method of the
XML Web service.
2. Add the namespace for the Web reference.
3. Create an instance of the proxy class and then access the methods of that class as you would the methods of any other class.
You can add either a .NET 2.0 style Web reference, or a .NET 3.0 style Service reference, depending on your version of Visual Studio and
preferred developer environment. A .NET 3.0 style reference uses services like SoapClient instead of SforceService.
7
Introducing SOAP API
Step 4: Walk Through the Sample Code
To add a Web reference:
Note: These steps may be different depending on the version of Visual Studio that you’re using. For more information, see “Adding
and Removing Web References” in the Visual Studio documentation.
1. If you are using Visual Studio 2010 or earlier, on the Project menu, choose Add Web Reference. For later versions of Visual Studio,
on the Project menu, choose Add Service Reference, select Advanced and then select Add Web Reference.
2. In the URL box of the Add Web Reference dialog box, type the URL to obtain the service description of the XML Web service you
want to access, such as:
c:\WSDLFiles\enterprise.wsdl
3. Click Go to retrieve information about the XML Web service.
4. In the Web reference name box, rename the Web reference to sforce, which is the name you will use for this Web reference.
5. Click Add Reference to add a Web reference for the target XML Web service.
6. Visual Studio retrieves the service description and generates a proxy class to interface between your application and the XML Web
service.
Note: If you are using Visual Basic .Net 1.1 and the enterprise WSDL, you will need to modify the generated Web service client to
overcome a bug in Visual Studio's client generation utility. The API exposes two objects (Case and Event) whose names conflict
with Visual Basic keywords. When the classes that represent these objects are created, Visual Studio wraps the class names with
brackets ([Case] and [Event]). This is the method by which you can reuse keywords.
Unfortunately, in the definition of the SObject class, Visual Studio does not wrap Case and Event to class references in the
System.Xml.Serialization.XmlIncludeAttribute that are part of the SObject definition. To work around this
problem in Visual Studio, you need to edit the XmlIncludeAttribute settings for Case and Event as shown below. This does not
apply to C# and only applies when using the enterprise version of the WSDL.
System.Xml.Serialization.XmlIncludeAttribute(GetType([Event])), _
System.Xml.Serialization.XmlIncludeAttribute(GetType([Case])), _
Step 4: Walk Through the Sample Code
Once you have imported your WSDL file, you can begin building client applications that use the API. Use the following samples to create
a basic client application. Comments embedded in the sample explain each section of code.
Java Sample Code
This section walks through a sample Java client application that uses the WSC SOAP client. The purpose of this sample application is to
show the required steps for logging into the login server and to demonstrate the invocation and subsequent handling of several API
calls.
To run this sample, you must pass the authentication endpoint URL as an argument for your program. You can obtain this URL from the
WSDL file. This sample application performs the following main tasks:
1. Prompts the user for their Salesforce username and password.
2. Calls login() to log in to the single login server and, if the login succeeds, retrieves user information and writes it to the console
along with session information.
8
Introducing SOAP API
Step 4: Walk Through the Sample Code
3. Calls describeGlobal() to retrieve a list of all available objects for the organization’s data. The describeGlobal method
determines the objects that are available to the logged in user. This call should not be made more than once per session, since the
data returned from the call is not likely to change frequently. The DescribeGlobalResult is echoed to the console.
4. Calls describeSObjects() to retrieve metadata (field list and object properties) for a specified object. The
describeSObject method illustrates the type of metadata information that can be obtained for each object available to the
user. The sample client application executes a describeSObjects() call on the object that the user specifies and then echoes
the returned metadata information to the console. Object metadata information includes permissions, field types and lengths, and
available values for picklist fields and types for referenceTo fields.
5. Calls query(), passing a simple query string ("SELECT FirstName, LastName FROM Contact"), and iterating
through the returned QueryResult.
6. Calls logout() to the log the user out.
The following sample code uses try/catch blocks to handle exceptions that might be thrown by the API calls.
package com.example.samples;
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
import
java.io.BufferedReader;
java.io.FileNotFoundException;
java.io.InputStreamReader;
java.io.IOException;
com.sforce.soap.enterprise.DeleteResult;
com.sforce.soap.enterprise.DescribeGlobalResult;
com.sforce.soap.enterprise.DescribeGlobalSObjectResult;
com.sforce.soap.enterprise.DescribeSObjectResult;
com.sforce.soap.enterprise.EnterpriseConnection;
com.sforce.soap.enterprise.Error;
com.sforce.soap.enterprise.Field;
com.sforce.soap.enterprise.FieldType;
com.sforce.soap.enterprise.GetUserInfoResult;
com.sforce.soap.enterprise.LoginResult;
com.sforce.soap.enterprise.PicklistEntry;
com.sforce.soap.enterprise.QueryResult;
com.sforce.soap.enterprise.SaveResult;
com.sforce.soap.enterprise.sobject.Account;
com.sforce.soap.enterprise.sobject.Contact;
com.sforce.soap.enterprise.sobject.SObject;
com.sforce.ws.ConnectorConfig;
com.sforce.ws.ConnectionException;
public class QuickstartApiSample {
private static BufferedReader reader = new BufferedReader(
new InputStreamReader(System.in));
EnterpriseConnection connection;
String authEndPoint = "";
public static void main(String[] args) {
if (args.length < 1) {
System.out.println("Usage: com.example.samples."
+ "QuickstartApiSamples ");
System.exit(-1);
9
Introducing SOAP API
Step 4: Walk Through the Sample Code
}
QuickstartApiSample sample = new QuickstartApiSample(args[0]);
sample.run();
}
public void run() {
// Make a login call
if (login()) {
// Do a describe global
describeGlobalSample();
// Describe an object
describeSObjectsSample();
// Retrieve some data using a query
querySample();
// Log out
logout();
}
}
// Constructor
public QuickstartApiSample(String authEndPoint) {
this.authEndPoint = authEndPoint;
}
private String getUserInput(String prompt) {
String result = "";
try {
System.out.print(prompt);
result = reader.readLine();
} catch (IOException ioe) {
ioe.printStackTrace();
}
return result;
}
private boolean login() {
boolean success = false;
String username = getUserInput("Enter username: ");
String password = getUserInput("Enter password: ");
try {
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username);
config.setPassword(password);
System.out.println("AuthEndPoint: " + authEndPoint);
config.setAuthEndpoint(authEndPoint);
connection = new EnterpriseConnection(config);
10
Introducing SOAP API
Step 4: Walk Through the Sample Code
printUserInfo(config);
success = true;
} catch (ConnectionException ce) {
ce.printStackTrace();
}
return success;
}
private void printUserInfo(ConnectorConfig config) {
try {
GetUserInfoResult userInfo = connection.getUserInfo();
System.out.println("\nLogging in ...\n");
System.out.println("UserID: " + userInfo.getUserId());
System.out.println("User Full Name: " + userInfo.getUserFullName());
System.out.println("User Email: " + userInfo.getUserEmail());
System.out.println();
System.out.println("SessionID: " + config.getSessionId());
System.out.println("Auth End Point: " + config.getAuthEndpoint());
System.out
.println("Service End Point: " + config.getServiceEndpoint());
System.out.println();
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
private void logout() {
try {
connection.logout();
System.out.println("Logged out.");
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
/**
* To determine the objects that are available to the logged-in user, the
* sample client application executes a describeGlobal call, which returns
* all of the objects that are visible to the logged-in user. This call
* should not be made more than once per session, as the data returned from
* the call likely does not change frequently. The DescribeGlobalResult is
* simply echoed to the console.
*/
private void describeGlobalSample() {
try {
// describeGlobal() returns an array of object results that
// includes the object names that are available to the logged-in user.
DescribeGlobalResult dgr = connection.describeGlobal();
System.out.println("\nDescribe Global Results:\n");
// Loop through the array echoing the object names to the console
11
Introducing SOAP API
Step 4: Walk Through the Sample Code
for (int i = 0; i < dgr.getSobjects().length; i++) {
System.out.println(dgr.getSobjects()[i].getName());
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
/**
* The following method illustrates the type of metadata information that can
* be obtained for each object available to the user. The sample client
* application executes a describeSObject call on a given object and then
* echoes the returned metadata information to the console. Object metadata
* information includes permissions, field types and length and available
* values for picklist fields and types for referenceTo fields.
*/
private void describeSObjectsSample() {
String objectToDescribe = getUserInput("\nType the name of the object to "
+ "describe (try Account): ");
try {
// Call describeSObjects() passing in an array with one object type
// name
DescribeSObjectResult[] dsrArray = connection
.describeSObjects(new String[] { objectToDescribe });
// Since we described only one sObject, we should have only
// one element in the DescribeSObjectResult array.
DescribeSObjectResult dsr = dsrArray[0];
// First, get some object properties
System.out.println("\n\nObject Name: " + dsr.getName());
if (dsr.getCustom())
System.out.println("Custom Object");
if (dsr.getLabel() != null)
System.out.println("Label: " + dsr.getLabel());
// Get the permissions on the object
if (dsr.getCreateable())
System.out.println("Createable");
if (dsr.getDeletable())
System.out.println("Deleteable");
if (dsr.getQueryable())
System.out.println("Queryable");
if (dsr.getReplicateable())
System.out.println("Replicateable");
if (dsr.getRetrieveable())
System.out.println("Retrieveable");
if (dsr.getSearchable())
System.out.println("Searchable");
if (dsr.getUndeletable())
System.out.println("Undeleteable");
12
Introducing SOAP API
Step 4: Walk Through the Sample Code
if (dsr.getUpdateable())
System.out.println("Updateable");
System.out.println("Number of fields: " + dsr.getFields().length);
// Now, retrieve metadata for each field
for (int i = 0; i < dsr.getFields().length; i++) {
// Get the field
Field field = dsr.getFields()[i];
// Write some field properties
System.out.println("Field name: " + field.getName());
System.out.println("\tField Label: " + field.getLabel());
//
//
//
if
This next property indicates that this
field is searched when using
the name search group in SOSL
(field.getNameField())
System.out.println("\tThis is a name field.");
if (field.getRestrictedPicklist())
System.out.println("This is a RESTRICTED picklist field.");
System.out.println("\tType is: " + field.getType());
if (field.getLength() > 0)
System.out.println("\tLength: " + field.getLength());
if (field.getScale() > 0)
System.out.println("\tScale: " + field.getScale());
if (field.getPrecision() > 0)
System.out.println("\tPrecision: " + field.getPrecision());
if (field.getDigits() > 0)
System.out.println("\tDigits: " + field.getDigits());
if (field.getCustom())
System.out.println("\tThis is a custom field.");
// Write the permissions of this field
if (field.getNillable())
System.out.println("\tCan be nulled.");
if (field.getCreateable())
System.out.println("\tCreateable");
if (field.getFilterable())
System.out.println("\tFilterable");
if (field.getUpdateable())
System.out.println("\tUpdateable");
// If this is a picklist field, show the picklist values
if (field.getType().equals(FieldType.picklist)) {
System.out.println("\t\tPicklist values: ");
PicklistEntry[] picklistValues = field.getPicklistValues();
13
Introducing SOAP API
Step 4: Walk Through the Sample Code
for (int j = 0; j < field.getPicklistValues().length; j++) {
System.out.println("\t\tValue: "
+ picklistValues[j].getValue());
}
}
// If this is a foreign key field (reference),
// show the values
if (field.getType().equals(FieldType.reference)) {
System.out.println("\tCan reference these objects:");
for (int j = 0; j < field.getReferenceTo().length; j++) {
System.out.println("\t\t" + field.getReferenceTo()[j]);
}
}
System.out.println("");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
private void querySample() {
String soqlQuery = "SELECT FirstName, LastName FROM Contact";
try {
QueryResult qr = connection.query(soqlQuery);
boolean done = false;
if (qr.getSize() > 0) {
System.out.println("\nLogged-in user can see "
+ qr.getRecords().length + " contact records.");
while (!done) {
System.out.println("");
SObject[] records = qr.getRecords();
for (int i = 0; i < records.length; ++i) {
Contact con = (Contact) records[i];
String fName = con.getFirstName();
String lName = con.getLastName();
if (fName == null) {
System.out.println("Contact " + (i + 1) + ": " + lName);
} else {
System.out.println("Contact " + (i + 1) + ": " + fName
+ " " + lName);
}
}
if (qr.isDone()) {
done = true;
} else {
qr = connection.queryMore(qr.getQueryLocator());
}
}
14
Introducing SOAP API
Step 4: Walk Through the Sample Code
} else {
System.out.println("No records found.");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
}
C# Sample Code
This section walks through a sample C# client application. The purpose of this sample application is to show the required steps for
logging in and to demonstrate the invocation and subsequent handling of several API calls.
This sample application performs the following main tasks:
1. Prompts the user for their Salesforce username and password.
2. Calls login() to log in to the single login server and, if the login succeeds:
• Sets the returned sessionId into the session header, which is required for session authentication on subsequent API calls.
• Resets the Force.com endpoint to the returned serverUrl, which is the target of subsequent API calls.
All client applications that access the API must complete the tasks in this step before attempting any subsequent API calls.
• Retrieves user information and writes it to the console along with session information.
3. Calls describeGlobal() to retrieve a list of all available objects for the organization’s data. The describeGlobal method
determines the objects that are available to the logged in user. This call should not be made more than once per session, since the
data returned from the call is not likely to change frequently. The DescribeGlobalResult is echoed to the console.
4. Calls describeSObjects() to retrieve metadata (field list and object properties) for a specified object. The
describeSObject method illustrates the type of metadata information that can be obtained for each object available to the
user. The sample client application executes a describeSObjects() call on the object that the user specifies and then echoes
the returned metadata information to the console. Object metadata information includes permissions, field types and lengths, and
available values for picklist fields and types for referenceTo fields.
5. Calls query(), passing a simple query string ("SELECT FirstName, LastName FROM Contact"), and iterating
through the returned QueryResult.
6. Calls logout() to the log the user out.
The following sample code uses try/catch blocks to handle exceptions that might be thrown by the API calls.
The following code begins the sample C# client application.
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Web.Services.Protocols;
Walkthrough.sforce;
namespace Walkthrough
{
class QuickstartApiSample
{
15
Introducing SOAP API
Step 4: Walk Through the Sample Code
private SforceService binding;
[STAThread]
static void Main(string[] args)
{
QuickstartApiSample sample = new QuickstartApiSample();
sample.run();
}
public void run()
{
// Make a login call
if (login())
{
// Do a describe global
describeGlobalSample();
// Describe an account object
describeSObjectsSample();
// Retrieve some data using a query
querySample();
// Log out
logout();
}
}
private bool login()
{
Console.Write("Enter username: ");
string username = Console.ReadLine();
Console.Write("Enter password: ");
string password = Console.ReadLine();
// Create a service object
binding = new SforceService();
// Timeout after a minute
binding.Timeout = 60000;
// Try logging in
LoginResult lr;
try
{
Console.WriteLine("\nLogging in...\n");
lr = binding.login(username, password);
}
// ApiFault is a proxy stub generated from the WSDL contract when
// the web service was imported
catch (SoapException e)
{
16
Introducing SOAP API
Step 4: Walk Through the Sample Code
// Write the fault code to the console
Console.WriteLine(e.Code);
// Write the fault message to the console
Console.WriteLine("An unexpected error has occurred: " + e.Message);
// Write the stack trace to the console
Console.WriteLine(e.StackTrace);
// Return False to indicate that the login was not successful
return false;
}
// Check if the password has expired
if (lr.passwordExpired)
{
Console.WriteLine("An error has occurred. Your password has expired.");
return false;
}
/** Once the client application has logged in successfully, it will use
* the results of the login call to reset the endpoint of the service
* to the virtual server instance that is servicing your organization
*/
// Save old authentication end point URL
String authEndPoint = binding.Url;
// Set returned service endpoint URL
binding.Url = lr.serverUrl;
/** The sample client application now has an instance of the SforceService
* that is pointing to the correct endpoint. Next, the sample client
* application sets a persistent SOAP header (to be included on all
* subsequent calls that are made with SforceService) that contains the
* valid sessionId for our login credentials. To do this, the sample
* client application creates a new SessionHeader object and persist it to
* the SforceService. Add the session ID returned from the login to the
* session header
*/
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = lr.sessionId;
printUserInfo(lr, authEndPoint);
// Return true to indicate that we are logged in, pointed
// at the right URL and have our security token in place.
return true;
}
private void printUserInfo(LoginResult lr, String authEP)
{
try
17
Introducing SOAP API
Step 4: Walk Through the Sample Code
{
GetUserInfoResult userInfo = lr.userInfo;
Console.WriteLine("\nLogging in ...\n");
Console.WriteLine("UserID: " + userInfo.userId);
Console.WriteLine("User Full Name: " +
userInfo.userFullName);
Console.WriteLine("User Email: " +
userInfo.userEmail);
Console.WriteLine();
Console.WriteLine("SessionID: " +
lr.sessionId);
Console.WriteLine("Auth End Point: " +
authEP);
Console.WriteLine("Service End Point: " +
lr.serverUrl);
Console.WriteLine();
}
catch (SoapException e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
}
}
private void logout()
{
try
{
binding.logout();
Console.WriteLine("Logged out.");
}
catch (SoapException e)
{
// Write the fault code to the console
Console.WriteLine(e.Code);
// Write the fault message to the console
Console.WriteLine("An unexpected error has occurred: " + e.Message);
// Write the stack trace to the console
Console.WriteLine(e.StackTrace);
}
}
/**
* To determine the objects that are available to the logged-in
* user, the sample client application executes a describeGlobal
* call, which returns all of the objects that are visible to
* the logged-in user. This call should not be made more than
* once per session, as the data returned from the call likely
* does not change frequently. The DescribeGlobalResult is
* simply echoed to the console.
*/
18
Introducing SOAP API
Step 4: Walk Through the Sample Code
private void describeGlobalSample()
{
try
{
// describeGlobal() returns an array of object results that
// includes the object names that are available to the logged-in user.
DescribeGlobalResult dgr = binding.describeGlobal();
Console.WriteLine("\nDescribe Global Results:\n");
// Loop through the array echoing the object names to the console
for (int i = 0; i < dgr.sobjects.Length; i++)
{
Console.WriteLine(dgr.sobjects[i].name);
}
}
catch (SoapException e)
{
Console.WriteLine("An exception has occurred: " + e.Message +
"\nStack trace: " + e.StackTrace);
}
}
/**
* The following method illustrates the type of metadata
* information that can be obtained for each object available
* to the user. The sample client application executes a
* describeSObject call on a given object and then echoes
* the returned metadata information to the console. Object
* metadata information includes permissions, field types
* and length and available values for picklist fields
* and types for referenceTo fields.
*/
private void describeSObjectsSample()
{
Console.Write("\nType the name of the object to " +
"describe (try Account): ");
string objectType = Console.ReadLine();
try
{
// Call describeSObjects() passing in an array with one object type name
DescribeSObjectResult[] dsrArray =
binding.describeSObjects(new string[] { objectType });
// Since we described only one sObject, we should have only
// one element in the DescribeSObjectResult array.
DescribeSObjectResult dsr = dsrArray[0];
// First, get some object properties
Console.WriteLine("\n\nObject Name: " + dsr.name);
if (dsr.custom) Console.WriteLine("Custom Object");
if (dsr.label != null) Console.WriteLine("Label: " + dsr.label);
19
Introducing SOAP API
Step 4: Walk Through the Sample Code
//
if
if
if
if
if
if
if
if
Get the permissions on the object
(dsr.createable) Console.WriteLine("Createable");
(dsr.deletable) Console.WriteLine("Deleteable");
(dsr.queryable) Console.WriteLine("Queryable");
(dsr.replicateable) Console.WriteLine("Replicateable");
(dsr.retrieveable) Console.WriteLine("Retrieveable");
(dsr.searchable) Console.WriteLine("Searchable");
(dsr.undeletable) Console.WriteLine("Undeleteable");
(dsr.updateable) Console.WriteLine("Updateable");
Console.WriteLine("Number of fields: " + dsr.fields.Length);
// Now, retrieve metadata for each field
for (int i = 0; i < dsr.fields.Length; i++)
{
// Get the field
Field field = dsr.fields[i];
// Write some field properties
Console.WriteLine("Field name: " + field.name);
Console.WriteLine("\tField Label: " + field.label);
//
//
//
if
This next property indicates that this
field is searched when using
the name search group in SOSL
(field.nameField)
Console.WriteLine("\tThis is a name field.");
if (field.restrictedPicklist)
Console.WriteLine("This is a RESTRICTED picklist field.");
Console.WriteLine("\tType is: " + field.type.ToString());
if (field.length > 0)
Console.WriteLine("\tLength: " + field.length);
if (field.scale > 0)
Console.WriteLine("\tScale: " + field.scale);
if (field.precision > 0)
Console.WriteLine("\tPrecision: " + field.precision);
if (field.digits > 0)
Console.WriteLine("\tDigits: " + field.digits);
if (field.custom)
Console.WriteLine("\tThis is a custom field.");
//
if
if
if
if
Write the permissions of this field
(field.nillable) Console.WriteLine("\tCan be nulled.");
(field.createable) Console.WriteLine("\tCreateable");
(field.filterable) Console.WriteLine("\tFilterable");
(field.updateable) Console.WriteLine("\tUpdateable");
20
Introducing SOAP API
Step 4: Walk Through the Sample Code
// If this is a picklist field, show the picklist values
if (field.type.Equals(fieldType.picklist))
{
Console.WriteLine("\tPicklist Values");
for (int j = 0; j < field.picklistValues.Length; j++)
Console.WriteLine("\t\t" + field.picklistValues[j].value);
}
// If this is a foreign key field (reference),
// show the values
if (field.type.Equals(fieldType.reference))
{
Console.WriteLine("\tCan reference these objects:");
for (int j = 0; j < field.referenceTo.Length; j++)
Console.WriteLine("\t\t" + field.referenceTo[j]);
}
Console.WriteLine("");
}
}
catch (SoapException e)
{
Console.WriteLine("An exception has occurred: " + e.Message +
"\nStack trace: " + e.StackTrace);
}
Console.WriteLine("Press ENTER to continue...");
Console.ReadLine();
}
private void querySample()
{
String soqlQuery = "SELECT FirstName, LastName FROM Contact";
try
{
QueryResult qr = binding.query(soqlQuery);
bool done = false;
if (qr.size > 0)
{
Console.WriteLine("Logged-in user can see "
+ qr.records.Length + " contact records.");
while (!done)
{
Console.WriteLine("");
sObject[] records = qr.records;
for (int i = 0; i < records.Length; i++)
{
Contact con = (Contact)records[i];
string fName = con.FirstName;
string lName = con.LastName;
if (fName == null)
Console.WriteLine("Contact " + (i + 1) + ": " + lName);
else
21
Introducing SOAP API
Step 4: Walk Through the Sample Code
Console.WriteLine("Contact " + (i + 1) + ": " + fName
+ " " + lName);
}
if (qr.done)
{
done = true;
}
else
{
qr = binding.queryMore(qr.queryLocator);
}
}
}
else
{
Console.WriteLine("No records found.");
}
}
catch (Exception ex)
{
Console.WriteLine("\nFailed to execute query succesfully," +
"error message was: \n{0}", ex.Message);
}
Console.WriteLine("\nPress ENTER to continue...");
Console.ReadLine();
}
}
}
The following C# example is the same as the previous C# example, except it uses .NET 3.0 SoapClient services instead of .NET 2.0
SforceService services.
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Threading.Tasks;
using System.ServiceModel;
using Walkthrough.sforce;
namespace Walkthrough
{
class QuickstartApiSample
{
private static SoapClient loginClient; // for login endpoint
private static SoapClient client; // for API endpoint
private static SessionHeader header;
private static EndpointAddress endpoint;
static void Main(string[] args)
{
QuickstartApiSample sample = new QuickstartApiSample();
sample.run();
22
Introducing SOAP API
Step 4: Walk Through the Sample Code
}
public void run()
{
// Make a login call
if (login())
{
// Do a describe global
describeGlobalSample();
// Describe an account object
describeSObjectsSample();
// Retrieve some data using a query
querySample();
// Log out
logout();
}
}
private bool login()
{
Console.Write("Enter username: ");
string username = Console.ReadLine();
Console.Write("Enter password: ");
string password = Console.ReadLine();
// Create a SoapClient specifically for logging in
loginClient = new SoapClient();
// (combine pw and token if necessary)
LoginResult lr;
try
{
Console.WriteLine("\nLogging in...\n");
lr = loginClient.login(null, username, password);
}
catch (Exception e)
{
// Write the fault message to the console
Console.WriteLine("An unexpected error has occurred: " + e.Message);
// Write the stack trace to the console
Console.WriteLine(e.StackTrace);
return false;
}
// Check if the password has expired
if (lr.passwordExpired)
{
Console.WriteLine("An error has occurred. Your password has expired.");
return false;
}
23
Introducing SOAP API
Step 4: Walk Through the Sample Code
/** Once the client application has logged in successfully, it will use
* the results of the login call to reset the endpoint of the service
* to the virtual server instance that is servicing your organization
*/
// On successful login, cache session info and API endpoint info
endpoint = new EndpointAddress(lr.serverUrl);
/** The sample client application now has a cached EndpointAddress
* that is pointing to the correct endpoint. Next, the sample client
* application sets a persistent SOAP header that contains the
* valid sessionId for our login credentials. To do this, the sample
* client application creates a new SessionHeader object. Add the session
* ID returned from the login to the session header
*/
header = new SessionHeader();
header.sessionId = lr.sessionId;
// Create and cache an API endpoint client
client = new SoapClient("Soap", endpoint);
printUserInfo(lr, lr.serverUrl);
// Return true to indicate that we are logged in, pointed
// at the right URL and have our security token in place.
return true;
}
private void printUserInfo(LoginResult lr, String authEP)
{
try
{
GetUserInfoResult userInfo = lr.userInfo;
Console.WriteLine("\nLogging in ...\n");
Console.WriteLine("UserID: " + userInfo.userId);
Console.WriteLine("User Full Name: " +
userInfo.userFullName);
Console.WriteLine("User Email: " +
userInfo.userEmail);
Console.WriteLine();
Console.WriteLine("SessionID: " +
lr.sessionId);
Console.WriteLine("Auth End Point: " +
authEP);
Console.WriteLine("Service End Point: " +
lr.serverUrl);
Console.WriteLine();
}
catch (Exception e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
24
Introducing SOAP API
Step 4: Walk Through the Sample Code
}
}
private void logout()
{
try
{
client.logout(header);
Console.WriteLine("Logged out.");
}
catch (Exception e)
{
// Write the fault message to the console
Console.WriteLine("An unexpected error has occurred: " + e.Message);
// Write the stack trace to the console
Console.WriteLine(e.StackTrace);
}
}
/**
* To determine the objects that are available to the logged-in
* user, the sample client application executes a describeGlobal
* call, which returns all of the objects that are visible to
* the logged-in user. This call should not be made more than
* once per session, as the data returned from the call likely
* does not change frequently. The DescribeGlobalResult is
* simply echoed to the console.
*/
private void describeGlobalSample()
{
try
{
// describeGlobal() returns an array of object results that
// includes the object names that are available to the logged-in user.
DescribeGlobalResult dgr = client.describeGlobal(
header, // session header
null // package version header
);
Console.WriteLine("\nDescribe Global Results:\n");
// Loop through the array echoing the object names to the console
for (int i = 0; i < dgr.sobjects.Length; i++)
{
Console.WriteLine(dgr.sobjects[i].name);
}
}
catch (Exception e)
{
Console.WriteLine("An exception has occurred: " + e.Message +
"\nStack trace: " + e.StackTrace);
}
}
25
Introducing SOAP API
Step 4: Walk Through the Sample Code
/**
* The following method illustrates the type of metadata
* information that can be obtained for each object available
* to the user. The sample client application executes a
* describeSObject call on a given object and then echoes
* the returned metadata information to the console. Object
* metadata information includes permissions, field types
* and length and available values for picklist fields
* and types for referenceTo fields.
*/
private void describeSObjectsSample()
{
Console.Write("\nType the name of the object to " +
"describe (try Account): ");
string objectType = Console.ReadLine();
try
{
// Call describeSObjects() passing in an array with one object type name
DescribeSObjectResult[] dsrArray =
client.describeSObjects(
header, // session header
null, // package version header
null, // locale options
new string[] { objectType } // object name array
);
// Since we described only one sObject, we should have only
// one element in the DescribeSObjectResult array.
DescribeSObjectResult dsr = dsrArray[0];
// First, get some object properties
Console.WriteLine("\n\nObject Name: " + dsr.name);
if (dsr.custom) Console.WriteLine("Custom Object");
if (dsr.label != null) Console.WriteLine("Label: " + dsr.label);
//
if
if
if
if
if
if
if
if
Get the permissions on the object
(dsr.createable) Console.WriteLine("Createable");
(dsr.deletable) Console.WriteLine("Deleteable");
(dsr.queryable) Console.WriteLine("Queryable");
(dsr.replicateable) Console.WriteLine("Replicateable");
(dsr.retrieveable) Console.WriteLine("Retrieveable");
(dsr.searchable) Console.WriteLine("Searchable");
(dsr.undeletable) Console.WriteLine("Undeleteable");
(dsr.updateable) Console.WriteLine("Updateable");
Console.WriteLine("Number of fields: " + dsr.fields.Length);
// Now, retrieve metadata for each field
for (int i = 0; i < dsr.fields.Length; i++)
{
26
Introducing SOAP API
Step 4: Walk Through the Sample Code
// Get the field
Field field = dsr.fields[i];
// Write some field properties
Console.WriteLine("Field name: " + field.name);
Console.WriteLine("\tField Label: " + field.label);
//
//
//
if
This next property indicates that this
field is searched when using
the name search group in SOSL
(field.nameField)
Console.WriteLine("\tThis is a name field.");
if (field.restrictedPicklist)
Console.WriteLine("This is a RESTRICTED picklist field.");
Console.WriteLine("\tType is: " + field.type.ToString());
if (field.length > 0)
Console.WriteLine("\tLength: " + field.length);
if (field.scale > 0)
Console.WriteLine("\tScale: " + field.scale);
if (field.precision > 0)
Console.WriteLine("\tPrecision: " + field.precision);
if (field.digits > 0)
Console.WriteLine("\tDigits: " + field.digits);
if (field.custom)
Console.WriteLine("\tThis is a custom field.");
//
if
if
if
if
Write the permissions of this field
(field.nillable) Console.WriteLine("\tCan be nulled.");
(field.createable) Console.WriteLine("\tCreateable");
(field.filterable) Console.WriteLine("\tFilterable");
(field.updateable) Console.WriteLine("\tUpdateable");
// If this is a picklist field, show the picklist values
if (field.type.Equals(fieldType.picklist))
{
Console.WriteLine("\tPicklist Values");
for (int j = 0; j < field.picklistValues.Length; j++)
Console.WriteLine("\t\t" + field.picklistValues[j].value);
}
// If this is a foreign key field (reference),
// show the values
if (field.type.Equals(fieldType.reference))
{
Console.WriteLine("\tCan reference these objects:");
for (int j = 0; j < field.referenceTo.Length; j++)
Console.WriteLine("\t\t" + field.referenceTo[j]);
27
Introducing SOAP API
Step 4: Walk Through the Sample Code
}
Console.WriteLine("");
}
}
catch (Exception e)
{
Console.WriteLine("An exception has occurred: " + e.Message +
"\nStack trace: " + e.StackTrace);
}
Console.WriteLine("Press ENTER to continue...");
Console.ReadLine();
}
private void querySample()
{
String soqlQuery = "SELECT FirstName, LastName FROM Contact";
try
{
QueryResult qr = client.query(
header, // session header
null, // query options
null, // mru options
null, // package version header
soqlQuery // query string
);
bool done = false;
if (qr.size > 0)
{
Console.WriteLine("Logged-in user can see "
+ qr.records.Length + " contact records.");
while (!done)
{
Console.WriteLine("");
sObject[] records = qr.records;
for (int i = 0; i < records.Length; i++)
{
Contact con = (Contact)records[i];
string fName = con.FirstName;
string lName = con.LastName;
if (fName == null)
Console.WriteLine("Contact " + (i + 1) + ": " + lName);
else
Console.WriteLine("Contact " + (i + 1) + ": " + fName
+ " " + lName);
}
if (qr.done)
{
done = true;
}
else
28
Introducing SOAP API
Step 4: Walk Through the Sample Code
{
qr = client.queryMore(
header, // session header
null, // query options
qr.queryLocator // query locator
);
}
}
}
else
{
Console.WriteLine("No records found.");
}
}
catch (Exception ex)
{
Console.WriteLine("\nFailed to execute query succesfully," +
"error message was: \n{0}", ex.Message);
}
Console.WriteLine("\nPress ENTER to continue...");
Console.ReadLine();
}
}
}
29
CHAPTER 2
Object Basics
•
Primitive Data Types
•
Field Types
•
Compound Fields
Generally speaking, API objects represent database tables that contain your organization's information.
For example, the central object in the Salesforce data model represents accounts—companies and
organizations involved with your business, such as customers, partners, and competitors. The term
“record” describes a particular occurrence of an object (such as a specific account like “IBM” or “United
Airlines” that is represented by an Account object). A record is analogous to a row in a database table.
•
API Data Types and
Salesforce Field
Types
Objects already created for you by Salesforce are called standard objects. Objects you create in your
organization are called custom objects. Objects you create that map to data stored outside your
organization are called external objects.
•
Core Data Types
Used in API Calls
•
System Fields
•
Required Fields
•
Frequently-Occurring
Fields
While this document describes all of the objects available in the API, your applications work with only
the objects that you are authorized to access. Programmatic access to objects is determined by the
objects defined in your organization, your organization configuration, your user permissions and access
settings (which are configured by your organization’s system administrator), your data sharing model,
and other factors related specifically to the object.
•
API Field Properties
•
Relationships Among
Objects
•
Relabeling Fields and
Tabs and the API
•
Tooling API Objects
in the Enterprise
WSDL
•
Force.com
AppExchange Object
Prefixes and the API
•
Custom Objects
•
External Objects
In this chapter ...
Most of the objects accessible through the API are read-write objects. However, there are a few objects
that are read-only. This fact is noted in the description for the object.
30
Object Basics
Primitive Data Types
Primitive Data Types
The API uses the following primitive data types:
Value
Details
base64
Base 64-encoded binary data. Fields of this type are used for storing binary files in Attachment records,
Document records, and Scontrol records. In these objects, the Body or Binary field contains the (base64
encoded) data, while the BodyLength field defines the length of the data in the Body or Binary
field. In the Document object, you can specify a URL to the document instead of storing the document
directly in the record.
boolean
Boolean fields have one of these values: true (or 1), or false (or 0).
byte
A set of bits.
date
Date data. Fields of this type contain date values, such as ActivityDate in the Event object. Unlike
dateTime fields, date fields contain no time value—the time portion of a date field is not relevant and is
always set to midnight in the Coordinated Universal Time (UTC) time zone.
If you specify a date value in a query, you can filter on date fields only.
dateTime
Date/time values (timestamps). Fields of this type handle date/time values (timestamps), such as
ActivityDateTime in the Event object or the CreatedDate, LastModifiedDate, or
SystemModstamp in many objects. Regular dateTime fields are full timestamps with a precision of one
second. They are always transferred in the Coordinated Universal Time (UTC) time zone. In your client
application, you might need to translate the timestamp to or from a local time zone.
If you specify a dateTime value in a query, you can filter on dateTime fields only.
Development tools differ in the way that they handle time data. Some development tools report the local
time, while others report only the Coordinated Universal Time (UTC) time zone. To determine how your
development tool handles time values, refer to its documentation.
Note: The Event object has a DurationInMinutes field that specifies the number of minutes
for an event. Even though this is a temporal value, it is an integer type—not a dateTime type.
double
Double values. Fields of this type can contain fractional portions (digits to the right of the decimal place),
such as ConversionRate in CurrencyType. In the API, all non-integer values (such as Currency Field
Type and Percent Field Type) contain values of type double. Some restrictions may be applied to double
values:
• scale: Maximum number of digits to the right of the decimal place.
• precision: Total number of digits, including those to the left and the right of the decimal place
The maximum number of digits to the left of the decimal place is equal to precision minus scale.
In the online application, precision is defined differently—it is the maximum number of digits allowed to
the left of the decimal place.
Values can be stored in scientific notation if the number is large enough (or, for negative numbers, small
enough), as indicated by the W3C XML Schema Part 2: Datatypes Second Edition specification.
Warning: When the user sets the precision in custom fields in the Salesforce application, it displays
the precision set by the user, even if the user enters a more precise value than defined for those
31
Object Basics
Value
Field Types
Details
fields. However, when you set the precision in custom fields using the API, no rounding occurs when
the user retrieves the number field.
int
Fields of this type contain numbers with no fractional portion (digits to the right of a decimal place), such
as the NumberOfEmployees in an Account. For integer fields, the digits field specifies the maximum
number of digits that an integer can have.
string
Character strings. Fields that are of data type string contain text and some have length restrictions
depending on the data being stored. For example, in the Contact object, the FirstName field is 40
characters, the LastName field is 80 characters, the MailingStreet is 255 characters.
Note: For fields that contain strings, behavior is different beginning with API version 15.0. In API
versions previous to 15.0, if you specify a value for a field, and that value is too large, the value is
truncated. For API version 15.0 and later, if a value is specified that is too large, the operation fails
and the fault code STRING_TOO_LONG is returned. AllowFieldTruncationHeader allows you to
specify that the previous behavior, truncation, be used instead of the new behavior in API versions
15.0 and later. This header has no effect in versions 14.0 and earlier. The affected fields are: anyType,
email, encryptedstring, multipicklist, phone, picklist, string, and textarea.
time
Time values. Fields of this type handle time values, such as FridayEndTime in the BusinessHours object.
Development tools differ in the way that they handle time data. Some development tools report the local
time, while others report only the Coordinated Universal Time (UTC) time zone. To determine how your
development tool handles time values, refer to its documentation.
These data types are used in the SOAP messages that are exchanged between your client application and the API. When writing your
client application, follow the data typing rules defined for your programming language and development environment. Your development
tool handles the mapping of typed data in your programming language with these SOAP data types.
The primitive data types are:
• specified in the World Wide Web Consortium’s publication XML Schema Part 2: Data Types at the following URL:
http://www.w3.org/TR/xmlschema-2/.
• enumerated in the SOAPType field of the Field type, which is described in the fields property of the DescribeSObjectResult.
Primitive types are used as a standardized way to define, send, receive, and interpret basic data types in the SOAP messages exchanged
between client applications and the API. In addition, primitive data types are interpreted in a Salesforce-specific way, which is useful for
display formatting and for numeric conversion (adding values of different currencies).
For example, Salesforce chooses to interpret a double value passed via SOAP as a double in a number of possible ways, depending
on the field definition. If the field type for that data is currency, Salesforce handles the display of the data by prepending it with a currency
symbol and inserting a decimal for precision. Similarly, if the field type is percent, Salesforce handles the display of the data by appending
a percent sign (%). Regardless of the field type, however, the value is sent in the SOAP message as a double.
The API uses data types called field types that are defined in the WSDLs. For more information, see Field Types.
Field Types
In addition to the primitive data types, the API defines the following data types for fields:
32
Object Basics
Field Types
Note: For fields that contain strings, behavior is different beginning with API version 15.0. In API versions previous to 15.0, if you
specify a value for a field, and that value is too large, the value is truncated. For API version 15.0 and later, if a value is specified that
is too large, the operation fails and the fault code STRING_TOO_LONG is returned. AllowFieldTruncationHeader allows you to
specify that the previous behavior, truncation, be used instead of the new behavior in API versions 15.0 and later. This header has
no effect in versions 14.0 and earlier. The affected fields are: anyType, email, encryptedstring, multipicklist, phone, picklist, string,
and textarea.
Field Type
What the Field Contains
address
A compound data type that contains address field data. See Address Compound Fields.
anyType
Polymorphic data type that returns string, picklist, reference, Boolean, currency, int, double, percent,
ID, date, datetime, url, or email data depending on the kind of field involved. See AnyType Field Type.
calculated
Fields that are defined by a formula. See Calculated Field Type.
combobox
A combobox, which includes a set of enumerated values and allows the user to specify a value not in
the list. See ComboBox Field Type.
currency
Currency values. See Currency Field Type.
DataCategoryGroupReference Reference to a data category group or a category unique name. See DataCategoryGroupReference
Field Type.
email
Email addresses. See Email Field Type.
encryptedstring
Encrypted text fields contain any combination of letters, numbers, or symbols that are stored in
encrypted form. You can set a maximum length of up to 175 characters. Available in API versions 11.0
and later.
ID
Primary key field for the object. See ID Field Type.
Note that most Web services tools, including .NET andWSC, map the ID simple type defined in the
API WSDL (Enterprise or Partner) to a string. However, other tools generate a specific ID class to
represent the ID simple type. Please consult your Web services toolkit documentation for more
information.
JunctionIdList
A string array of referenced ID values that represent the many-to-many relationship of an underlying
junction entity. Query and manipulate the string array to query and manipulate the underlying junction
entities in a single API call. See: JunctionIdList Field Type
Warning: Adding a JunctionIdList field name to the fieldsToNull property
deletes all related junction records. This action can’t be undone.
location
A compound data type that contains latitude and longitude values for geolocation fields. See
Geolocation Compound Field.
masterrecord
When records are merged, the ID of the record that is saved (the other records are deleted).
multipicklist
Multi-select picklists, which include a set of enumerated values from which multiple values can be
selected. See Multi-Select Picklist Field Type.
percent
Percentage values. See Percent Field Type.
33
Object Basics
Field Types
Field Type
What the Field Contains
phone
Phone numbers. Values can include alphabetic characters. Client applications are responsible for
phone number formatting. See Phone Field Type.
picklist
Picklists, which include a set of enumerated values from which one value can be selected. See Picklist
Field Type.
reference
Cross-references to a different object. Analogous to a foreign key field in SQL. See Reference Field
Type.
textarea
String that is displayed as a multiline text field. See Textarea Field Type.
url
URL values. Client applications should commonly display these as hyperlinks. See URL Field Type.
These field types extend primitive data types. While many of these field types follow common data typing conventions that are made
explicit in their metadata, certain field types have unique characteristics that you need to understand before using them in your client
application.
These field types apply to both standard and custom fields. They are enumerated in the type field of the Field type, which is described
in the fields property of the DescribeSObjectResult.
Note: Some numeric fields have precision and scale limits. In addition, certain text fields have length restrictions. These restrictions
are enforced when you create() or update() objects. However, the API may return data that does not meet these
restrictions.
AnyType Field Type
The anyType field type is dynamic and returns string, date, number, or boolean data depending on the kind of field
involved. For example, the element in a SOAP message has an xsi:type="xsd:string" attribute if the field is of type string.
This field type is used in history objects for the NewValue and OldValue fields. It is also a valid field type for fieldType and
soapType.
Note: Most SOAP toolkits automatically deserialize this element into the correct native type.
Calculated Field Type
Calculated fields are read-only fields in the API. These are fields defined by a formula, which is an algorithm that derives its value from
other fields, expressions, or values. You can filter on these fields in SOQL, but you should not replicate these fields. The length of text
calculated fields is 3900 characters or less—anything longer will be truncated.
Calculated fields are called formula fields in the Salesforce user interface.
ComboBox Field Type
A combobox is a picklist that also allows users to type a value that is not already specified in the list. A combobox is defined as a string
value.
Currency Field Type
Currency fields contain currency values, such as the ExpectedRevenue field in a Campaign, and are defined as type double.
34
Object Basics
Field Types
For organizations that have the multicurrency option enabled, the CurrencyIsoCode field is defined for any object that can have
currency fields. The CurrencyIsoCode field and currency fields are linked in a special way. On any specific record, the
CurrencyIsoCode field defines the currency of that record, and thus, the values of all currency fields on that record will be expressed
in that currency.
For most cases, clients do not need to consider the linking of the CurrencyIsoCode field and the currency fields on an object.
However, clients may need to consider the following:
• The CurrencyIsoCode field exists only for those organizations that have enabled multicurrency support.
• When displaying the currency values in a user interface, it is preferred to prepend each currency value with its CurrencyIsoCode
value and a space separator.
• The CurrencyIsoCode field is a restricted picklist field. The set of allowable values, defined in the CurrencyType object, can
vary from organization to organization. Attempting to set it to a value that is not defined for an organization causes the operation
to be rejected.
• If you update the CurrencyIsoCode field on an object, it implicitly converts all currency values on that object to the new
currency code, using the conversion rates that are defined for that organization in the Salesforce user interface. If you specify currency
values in that same update() call, the new currency values you specify are interpreted in the new CurrencyIsoCode field
value, without conversion.
• The picklist values in a CurrencyIsoCode field do not exactly match the labels displayed in Salesforce.
To perform currency conversions, client applications can look up the CurrencyIsoCode in the CurrencyType object.
DataCategoryGroupReference Field Type
A data category group has categories that classify articles in Salesforce Knowledge and questions in the Answers feature. Every article
and question object has two fields of type DataCategoryGroupReference which contain the category group and category unique name.
You can use the describeDataCategoryGroups() and describeDataCategoryGroupStructures() calls to
retrieve the category groups and categories associated to these objects.
Email Field Type
Email fields contain email addresses. Client applications are responsible for specifying valid and properly formatted email addresses in
create() and update() calls.
ID Field Type
With rare exceptions, all objects in the API have a field of type ID that is named Id and contains a unique identifier for each record in
the object. It is analogous to a primary key in relational databases. When you create() a new record, the Web service generates an
ID value for the record, ensuring that it is unique within your organization’s data. You cannot use the update() call on ID fields.
Because the ID value stays constant over the lifetime of the record, you can refer to the record by its ID value in subsequent API calls.
Also, the ID value contains a three-character code that identifies the object type, which client applications can retrieve via the
describeSObjects() call.
In addition, certain objects, including custom objects, have one or more fields of type reference that contain the ID value for a
related record. These fields have names that end in the suffix “-Id”, for example, OwnerId in the account object. OwnerId contains
the ID of the user who owns that object. Unlike the field named Id, reference fields are analogous to foreign keys and can be
changed via the update() call. For more information, see Reference Field Type.
35
Object Basics
Field Types
Some API calls, such as retrieve() and delete(), accept an array of IDs as parameters—each array element uniquely identifies
the row to retrieve or delete. Similarly, the update() call accepts an array of sObject records—each sObject contains an Id field
that uniquely identifies the sObject.
ID fields in the Salesforce user interface contain 15-character, base-62, case-sensitive strings. Each of the 15 characters can be a numeric
digit (0-9), a lowercase letter (a-z), or an uppercase letter (A-Z). Two unique IDs may only be different by a change in case.
Because there are applications like Access which do not recognize that 50130000000014c is a different ID from 50130000000014C, an
18-digit, case-safe version of the ID is returned by all API calls. The 18 character IDs have been formed by adding a suffix to each ID in
the Force.com API. 18-character IDs can be safely compared for uniqueness by case-insensitive applications, and can be used in all API
calls when creating, editing, or deleting data.
If you need to convert the 18-character ID to a 15-character version, truncate the last three characters. Salesforce recommends that you
use the 18-character ID.
Note: Most Web services tools, including .NET and WSC, map the ID simple type defined in the API WSDL (Enterprise or Partner)
to a string. However, other tools generate a specific ID class to represent the ID simple type. Please consult your web services
toolkit documentation for more information.
JunctionIdList Field Type
Starting in API version 34.0, the JunctionIdList field type lets you manipulate the many-to-many relationship of an entity directly.
You no longer need to manipulate underlying junction entity records. JunctionIdList fields can be queried and updated like any
other field on the entity. Queries or updates to JunctionIdList fields act as queries or updates to the underlying junction entity
records. Fields of type JunctionIdList appear in the WSDL as an unbounded array of type ID.
Query JunctionIdList fields just like any other field. Here’s an example of a SOQL query that includes the TaskWhoIds JunctionIdList
field.
SELECT Id, Subject, TaskWhoIds
FROM Task
WHERE LastModifiedDate > LAST_WEEK
Multi-Select Picklist Field Type
Multi-select picklist fields contain a list of one or more items from which a user can choose multiple items. One of the items can be
configured as the default item. Selections are maintained as a string containing a series of attributes delimited by semicolons. For example,
a query might return the values of a multivalue picklist as “first value; second value; third value”. For information on querying multi-select
picklists, see Querying Multi-Select Picklists in the Salesforce SOQL and SOSL Reference Guide.
Percent Field Type
Percent fields contain percent values. Percent fields are defined as type double.
Phone Field Type
Phone fields contain phone numbers, which can include alphabetic characters. Client applications are responsible for phone number
formatting.
36
Object Basics
Field Types
Picklist Field Type
Picklist fields contain a list of one or more items from which a user chooses a single item. They display as drop-down lists in the Salesforce
user interface. One of the items can be configured as the default item.
In the Field object associated with the DescribeSObjectResult, the restrictedPicklist field defines whether the field is a
restricted picklist or not. The API does not enforce the list of values for advisory (unrestricted) picklist fields on create() or update().
When inserting an unrestricted picklist field that does not have a PicklistEntry, the system creates an “inactive” picklist value. This value
can be promoted to an “active” picklist value by adding the picklist value in the Salesforce user interface.
When creating new, inactive picklists, the API checks to see if there is a match. This check is case-insensitive.
In theField object associated with the DescribeSObjectResult, the picklistValues field contains an array of items (PicklistEntry
objects). Each PicklistEntry defines the item’s label, value, and whether it is the default item in the picklist (a picklist has no more than
one default value).
Enumerated fields support localization of the labels to the language of the user. For example, for the Industry field on an Account,
the value “Agriculture” may be translated to various languages. The enumerated field values are fixed and do not change with a user’s
language. However, each value may have a specified “label” field that provides the localized label for that value. You must always use
the value when inserting or updating a field. The query() call always returns the value, not the label. The corresponding label for a
value in the describeSObjectResult should be used when displaying the value to the user in any user interface.
The API supports the retrieval of the certain picklists in the following objects: CaseStatus, ContractStatus, LeadStatus, OpportunityStage,
PartnerRole, SolutionStatus, TaskPriority, and TaskStatus. Each object represents a value in the respective picklist. These picklist entries
always specify some other piece of information, such as whether the status is converted, and so on. Your client application can invoke
the query() call on any of these objects (such as CaseStatus) to retrieve the set of values in the picklist, and then use that information
while processing other objects (such as Case objects) to find more information about those objects (such as a given case). These objects
are read-only via the API. To modify items in picklists, you must use the Salesforce user interface.
Reference Field Type
A reference field contains an Id value that points to a unique record (usually the parent record) on another object. This is analogous
to the concept of a foreign key in relational databases. The name of a reference field ends, by convention, with the letters Id (such as
CaseId or OpportunityId). For example, in the OpportunityCompetitor object, the OpportunityId field is a reference field
that points to the Opportunity object. It contains an ID value that uniquely identifies an Opportunity record.
In some cases, an object can refer to another object of its same type. For example, an Account can have a parent link that points to
another Account.
The Event and Task objects both have WhoId and WhatId cross-reference ID fields. Each of these cross-reference fields can point to
one of several other objects. The WhoId field can point to a Contact or Lead, and the WhatId field can point to an Account, Opportunity,
Campaign, or Case. In addition, if the WhoId field refers to a Lead, then the WhatId field must be empty.
You can describe and query each cross-referenced object. When you query a cross-reference ID field, it returns an object ID of the
appropriate type. You can then query that ID to get additional information about the object, using the ID in the id field for that query.
The cross-reference ID field value is either:
• a valid record in your organization, or
• an empty value, which indicates an empty reference
The cross-reference ID field value, if non-null, is guaranteed to be an object in your organization. However, it is not guaranteed that
you can query that object. Users with the “View All Data” permission can always query that object. Other users may be restricted from
viewing or editing the referenced object.
When specifying a value for a cross-reference ID field in a create() or update() call, the value must be a valid value of type ID,
and the user must have appropriate access to that object. The exact requirements vary from field to field.
37
Object Basics
Compound Fields
Textarea Field Type
Textarea fields contain text that can be longer than 4000 bytes. Unlike string fields, textarea fields cannot be specified in the WHERE
clause of a queryString of a query() call. To filter records on this field, you must do so while processing records in the QueryResult.
For fields with this restriction, its filterable field in the Field type (described in the fields property of the DescribeSObjectResult)
is false.
URL Field Type
URL fields contain URLs. Client applications are responsible for specifying valid and properly formatted URLs in create() and
update() calls.
Compound Fields
Compound fields group together multiple elements of primitive data types, such as numbers or strings, to represent complex data types,
such as a location or an address. Compound fields are an abstraction that can simplify application code that handles the values, leading
to more concise, understandable code.
Address compound fields are available in the SOAP and REST APIs in API version 30.0 and later. Geolocation fields are available in the
SOAP and REST APIs in API version 26.0 and later, with some limitations on SOAP for API versions below 30.0.
Compound fields are accessible as a single, structured field, or as individual component fields. The values contained within the compound
field and the values in individual fields both map to the same underlying data stored in Salesforce; they always have identical values.
Code that references individual component fields is unaffected by the new compound fields.
Compound fields are read-only. Changes are performed by writing to the individual component fields. This maintains a single, consistent
method for performing updates, and avoids the possibility of conflicts. For example, if both the BillingAddress compound field
and BillingCity individual component field were updated in the same API call, it would be unclear which value should be saved.
Compound fields are available only through the SOAP and REST APIs. Compound fields are described in both the Enterprise and Partner
WSDLs. Update your WSDL to at least API 30.0 to access the new compound data types.
Address Compound Fields
Standard addresses—addresses built into standard objects in Salesforce—are accessible in the SOAP and REST APIs as an Address,
a structured compound data type, as well as individual address elements.
Using API 30.0 and later, standard addresses are available in the SOAP and REST APIs as a compound field of type Address, a structured
data type that combines the following fields.
• Accuracy
• City
• Country
• CountryCode
• Latitude
• Longitude
• PostalCode
• State
• StateCode
38
Object Basics
Address Compound Fields
• Street
Note: StateCode and CountryCode are always available on compound address fields, whether or not state and country
picklists are enabled in your organization.
The Address type extends the Location type, the data type used for compound geolocation fields.
Address fields are provided on many standard objects, such as Account, Contact, Quote, and User. Some objects provide fields for multiple
addresses. For example, Account provides for four different addresses. In this case, address field names are prefixed with the type of
address, for example, BillingCity, BillingState, and so on.
Note: Standard address compound fields are read-only, and are only accessible using the SOAP and REST APIs. See Compound
Field Considerations and Limitations on page 42 for additional details of the restrictions this imposes.
When an address is geocoded, its latitude and longitude fields are populated with coordinates. A related geolocation field is also
populated. Typically, geocoding service providers geocode addresses, and rate the accuracy of the geocodes.
The accuracy subfield GeocodeAccuracy stores the accuracy data for a geocoded location. External geolocation apps can get the
accuracy level of a geocoded address via the API. When you retrieve an address via the API, any accuracy data is included. You can also
retrieve the accuracy information by itself, if needed.
Like its parent, the compound Address field, the GeocodeAccuracy field is only available for standard address fields on standard
objects.
Retrieving Compound Address Fields
Using compound fields can simplify code that works with addresses, especially for SOQL queries. SOQL SELECT clauses can reference
addresses directly, instead of all of the individual component fields.
SELECT Name, BillingAddress
FROM Account
To write code that’s compatible with API versions before 30.0, as well as API 30.0 and above, use the individual fields:
SELECT Name, BillingStreet, BillingCity, BillingState, BillingPostalCode,
BillingCountry, BillingLatitude, BillingLongitude
FROM Account
Compound address field values are returned as a structured data type, Address. Code that works with compound address fields needs
to reference the individual components of the returned value. See the code sample below.
Example: Retrieve a Standard Address Compound Field with the SOAP API
The following Java method uses the Salesforce SOAP API to retrieve and display the Mailing Address for a list of contacts.
// Modified version of code in the SOAP API QuickStart
private void querySample() {
String soqlQuery = "SELECT FirstName, LastName, MailingAddress FROM Contact";
try {
QueryResult qr = connection.query(soqlQuery);
boolean done = false;
if (qr.getSize() > 0) {
System.out.println("\nLogged-in user can see "
+ qr.getRecords().length + " contact records.");
while (!done) {
System.out.println("");
39
Object Basics
Address Compound Fields
SObject[] records = qr.getRecords();
for (int i = 0; i < records.length; ++i) {
Contact con = (Contact) records[i];
String fName = con.getFirstName();
String lName = con.getLastName();
// Access the compound address field MailingAddress
Address addr = (Address) con.getMailingAddress();
String streetAddr = "";
if (null != addr) streetAddr = addr.getStreet();
if (fName == null) {
System.out.println("Contact " + (i + 1) + ": " + lName +
" -- " + streetAddr);
} else {
System.out.println("Contact " + (i + 1) + ": " + fName +
" " + lName +
" -- " + streetAddr);
}
}
if (qr.isDone()) {
done = true;
} else {
qr = connection.queryMore(qr.getQueryLocator());
}
}
} else {
System.out.println("No records found.");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
Using Compound Address Fields as Locations
Compound address fields include latitude and longitude fields. Address fields can be used as locations in SOQL WHERE and ORDER
BY clauses. For example, here’s a SOQL query that uses the GEOLOCATION function to retrieve the 10 accounts closest to San
Francisco.
SELECT Id, Name, BillingAddress
FROM Account
WHERE DISTANCE(BillingAddress, GEOLOCATION(37.775,-122.418), 'mi') < 20
ORDER BY DISTANCE(BillingAddress, GEOLOCATION(37.775,-122.418), 'mi')
LIMIT 10
Note: In Developer, Professional, Enterprise, Unlimited, and Performance editions, Salesforce can automatically add or update
geolocation fields for Account, Contact, Lead, and WorkOrder records. To use this feature, your administrator must enable the geo
clean rule for each object. For all other objects and editions, set values for latitude and longitude by using SOQL, Workbench, SOAP
or REST API, or a geocoding service. You can then use address fields as locatable values. To find geocoding services, search the
AppExchange.
40
Object Basics
Geolocation Compound Field
Geolocation Compound Field
Geolocation fields are accessible in the SOAP and REST APIs as a Location—a structured compound data type—or as individual
latitude and longitude elements.
In API versions 26.0 and later, geolocation fields are available in the SOAP and REST APIs as a compound field of type Location. This
structured data type contains the following fields.
• latitude
• longitude
Note: SOAP calls that use API versions earlier than 30.0 return geolocation compound values as strings. See “Returned Geolocation
Data Types” later in this topic.
Geolocation fields are provided on many standard objects, such as Account, Contact, Quote, and User, as part of their address field or
fields. Geolocation fields can also be added as custom fields to standard or custom objects.
Note:
• A geolocation compound field is read-only, although its latitude and longitude subfields are editable. You can only
access compound fields using the SOAP or REST API. For more information about working with compound fields and their
subfields, see Compound Field Considerations and Limitations on page 42.
• Although geolocation fields appear as a single field in the user interface, custom geolocation fields count as three custom fields
towards your organization’s limits: one for latitude, one for longitude, and one for internal use.
Retrieving Compound Geolocation Fields
Using compound fields can simplify code that works with geolocations, especially for SOQL queries. SOQL SELECT clauses can reference
geolocations directly, instead of the individual component fields.
SELECT location__c
FROM Warehouse__c
To write code that’s compatible with API versions earlier than 26.0 and with API versions 26.0 and later, use the individual latitude and
longitude fields.
SELECT location__latitude__s, location__longitude__s
FROM Warehouse__c
Returned Geolocation Data Types
A compound geolocation field value is returned as the structured data type Location. Code that works with compound geolocation
fields must reference the individual components of the returned value. See the sample code in Address Compound Fields on page 39.
In API versions earlier than 30.0, SOAP calls return compound geolocation field values as strings, instead of as a structured data type, for
backward compatibility. If you plan to display your latitude and longitude values or pass them to a service that expects strings, use the
values that are returned. If you plan to use the values in mathematical calculations or pass them to a map service that expects numbers,
cast the results to numbers.
The string value format is:
API location: [latitudeValue longitudeValue]
41
Object Basics
Compound Field Considerations and Limitations
An example of a regular expression to parse out the latitude and longitude values is:
API location: \[([-+]?\d{1,2}([.]\d+)?) ([-+]?\d{1,3}([.]\d+)?)]
The first capture is the latitude, and the third is the longitude.
Compound Field Considerations and Limitations
Address and geolocation compound fields are convenient and result in more concise, clear code. Here are some things to consider when
using them in your apps.
Both address and geolocation compound fields have the following limitations.
• Compound fields are read-only. To update field values, modify the individual field components.
• Compound fields are accessible only through the SOAP and REST APIs. The compound versions of fields aren’t accessible anywhere
in the Salesforce user interface.
• Although compound fields can be queried with the Location and Address Apex classes, they’re editable only as components
of the actual field. Read and set geolocation field components by appending “__latitude__s” or “__longitude__s” to the field name,
instead of the usual “__c.” For example:
Double theLatitude = myObject__c.aLocation__latitude__s;
myObject__c.aLocation__longitude__s = theLongitude;
You can’t access or set the compound value.
• You can’t use compound fields in Visualforce—for example, in an . To access or update field values, use
the individual field components.
• If you select compound fields for export in the Data Loader, they cause error messages. To export values, use individual field
components.
• Custom geolocation and location fields on standard addresses aren’t supported with email templates.
• You can’t use compound fields in lookup filters, except to filter distances that are within or not within given ranges. You can use
distance lookup filters only in the Metadata API.
• The only formula functions that you can use with compound fields are ISBLANK, ISCHANGED, and ISNULL. You can’t use
BLANKVALUE, CASE, NULLVALUE, PRIORVALUE, or the equality and comparison operators with compound fields. The
equality and comparison operators include = and == (equal), <> and != (not equal), < (less than), > (greater than), <= (less
than or equal), >= (greater than or equal), && (AND), and || (OR).
Address compound fields have the following limitations.
• Compound address fields are available only for address fields that exist as part of the standard objects included in Salesforce. You
can’t create custom compound address fields.
• In Developer, Professional, Enterprise, Unlimited, and Performance editions, Salesforce can automatically add or update geolocation
fields for Account, Contact, Lead, and WorkOrder records. To use this feature, your administrator must enable the geo clean rule for
each object. For all other objects and editions, set values for latitude and longitude by using SOQL, Workbench, SOAP or REST API,
or a geocoding service. You can then use address fields as locatable values. To find geocoding services, search the AppExchange.
• The accuracy subfield of address fields is populated only when an address is geocoded. Typically, geocoding service providers provide
accuracy data for an address’s latitude and longitude coordinates.
• Address fields can’t be used in WHERE statements in SOQL. Address fields aren’t filterable, but the isFilterable() method
of the DescribeFieldResult Apex class erroneously returns true for address fields.
Geolocation compound fields have the following limitations.
• Geolocation fields aren’t supported in custom settings.
42
Object Basics
API Data Types and Salesforce Field Types
• Geolocation fields aren’t available in dashboards or Schema Builder.
• Geolocation fields are available in Visual Workflow and in formula-based workflow and approvals, but they can’t be used in filter-based
workflow updates and approvals.
• DISTANCE formulas are supported in:
– Entry criteria for workflow rules and approval processes
– Field update actions in workflow rules and approval processes
– Custom validation rules
– Lookup filters (in the Metadata API only)
• Geolocation fields and latitude and longitude on standard addresses aren’t supported in Salesforce to Salesforce.
• In Developer, Professional, Enterprise, Unlimited, and Performance editions, Salesforce can automatically add or update geolocation
fields for Account, Contact, Lead, and WorkOrder records. To use this feature, your administrator must enable the geo clean rule for
each object. For all other objects and editions, set values for latitude and longitude by using SOQL, Workbench, SOAP or REST API,
or a geocoding service. You can then use address fields as locatable values. To find geocoding services, search the AppExchange.
• Geolocation fields are supported in SOQL with the following limitations.
– DISTANCE and GEOLOCATION are supported in WHERE and ORDER BY clauses in SOQL, but not in GROUP BY.
DISTANCE is supported in SELECT clauses.
– DISTANCE supports only the logical operators > and <, returning values within (<) or beyond (>) a specified radius.
– When using the GEOLOCATION function in SOQL queries, the geolocation field must precede the latitude and longitude
coordinates. For example, DISTANCE(warehouse_location__c, GEOLOCATION(37.775,-122.418),
'km') works but DISTANCE(GEOLOCATION(37.775,-122.418), warehouse_location__c, 'km')
doesn’t work.
– Apex bind variables aren’t supported for the units parameter in DISTANCE or GEOLOCATION functions. This query doesn’t
work.
String units = 'mi';
List accountList =
[SELECT ID, Name, BillingLatitude, BillingLongitude
FROM Account
WHERE DISTANCE(My_Location_Field__c, GEOLOCATION(10,10), :units) < 10];
For more information and examples, see the Force.com SOQL and SOSL Reference.
API Data Types and Salesforce Field Types
Generally, API data types and field types in the user interface have the same names. For example, a date field is represented by a date
data type in the API. However, some field types are represented differently depending on whether you are inspecting an object via the
API or the user interface. The following table contains the mapping for field types and data types that are different:
API Data Type
Corresponding Field Types in the User Interface
ID
Lookup relationship, master-detail relationship
string
Auto number, email, phone, picklist, multi-select picklist, text, text area, long text area, rich text area, data
category group reference and URL. Different maximum lengths are specified in the WSDL for text, text area,
and long text area.
boolean
Checkbox
43
Object Basics
Core Data Types Used in API Calls
API Data Type
Corresponding Field Types in the User Interface
double
Currency, formula, number, percent, and roll-up summary
Varies by type
When formula fields are created in the user interface, a type must be specified. This type corresponds to
the API data type of the same name: currency, date, date/time, number, percent, or text.
All other fields that you can create in the user interface fall into one of the following categories:
• The field is not available in both the user interface and the API. For example, the BusinessHours object has fields of API data type
time, but you cannot create a custom field of this type.
• Field types are the same as their corresponding API data type. For example, if you create a date field in the user interface, that field
is the date data type in the API.
For more information about API data types, see Primitive Data Types and Field Types.
Core Data Types Used in API Calls
Many calls in the API use the following data types:
• sObject
• ID (String). See ID Field Type.
The API also uses several error handling objects. If an error occurs during a SOAP request, the API returns a SOAP fault message. The
message contains different content, depending on the type of error:
• If an error affects the entire request, an API Fault Element, is returned, containing an ExceptionCode and the associated error message
text.
• If the error affects some records and not others, an Error is returned, containing a StatusCode. These errors typically occur during
bulk operations, such as creating, updating, or deleting multiple records with a single call.
sObject
An sObject represents an object, such as an Account or Campaign. For a list of standard objects, see Standard Objects.
An sObject has the following properties:
Name
Type
Description
fieldsToNull string[] Array of one or more field names whose value you want to explicitly set to null.
When used with update() or upsert(), you can specify only those fields that you can update and that
have the nillable property. When used with create(), you can specify only those fields that you
can create and that have the nillable or the default on create property.
For example, if specifying an ID field or required field results in a runtime error, you can specify that field
name in fieldsToNull. Similarly, if a picklist field has a default value and you want to set the value to
null instead, specify the field in fieldsToNull.
ID
ID
Unique ID for this individual object. For the create() call, this value is null. For all other API calls, this value
must be specified.
44
Object Basics
API Fault Element
API Fault Element
An ApiFault element contains information about a fault that occurs when processing a service request. The ApiFault element
has the following properties.
Name
Type
Description
exceptionCode
ExceptionCode
A code that characterizes the exception. The full list of exception codes is available
in the WSDL file for your org. See Generating the WSDL File for Your Organization.
exceptionMessage string
Exception message text.
extendedErrorDetails ExtendedErrorDetails
More details about the exception, including an extended error code and extra
error properties, when available. Reserved for future use.
The following table lists the API fault elements that represent all the API faults that can occur.
Fault
Description
ApiQueryFault
The row and column numbers where the problem occurred.
LoginFault
An error occurred during the login() call.
InvalidSObjectFault
An invalid sObject in a describeSObject(), describeSObjects(),
describeLayout(), describeDataCategoryGroups(),
describeDataCategoryGroupStructures(), create(), update(),
retrieve(), or query() call.
InvalidFieldFault
An invalid field in a retrieve() or query() call.
InvalidOrNullForRestrictedPicklist An invalid appMenuType in a describeAppMenu() call.
MalformedQueryFault
A problem in the queryString passed in a query() call.
InvalidQueryLocatorFault A problem in the queryLocator passed in a queryMore() call.
MalformedSearchFault
A problem in the search passed in a search() call.
InvalidIdFault
A specified ID was invalid in a setPassword() or resetPassword() call.
UnexpectedErrorFault
An unexpected error occurred. The error is not associated with any other API fault.
ExceptionCode
The following list of ExceptionCode values is defined in your WSDL file. Some codes don’t appear in your WSDL, depending on
the features you have enabled.
API_CURRENTLY_DISABLED
Because of a system problem, API functionality is temporarily unavailable.
API_DISABLED_FOR_ORG
API access has not been enabled for the org. Contact Salesforce to enable API access.
CANT_ADD_STANDARD_PORTAL_USER_TO_TERRITORY
A user with a standard portal license can't be added to a territory.
45
Object Basics
ExceptionCode
CIRCULAR_OBJECT_GRAPH
The request failed because it contained a circular object reference.
CLIENT_NOT_ACCESSIBLE_FOR_USER
The current user does not have permission to access the specified client.
CLIENT_REQUIRE_UPDATE_FOR_USER
The current user is required to use a newer version of the specified client and doesn’t have access until the client is updated.
DELETE_REQUIRED_ON_CASCADE
The delete operation triggers a cascade delete on a record, but the logged-in user does not have delete permission on that related
object.
DUPLICATE_COMM_NICKNAME
You can't create a user with the same nickname as another user.
DUPLICATE_VALUE
You can’t supply a duplicate value for a field that must be unique. For example, you can’t submit two copies of the same session ID
in a invalidateSessions() call.
EMAIL_BATCH_SIZE_LIMIT_EXCEEDED
A method tried to process more email records than the maximum batch size.
EMAIL_TO_CASE_INVALID_ROUTING
An email to case record has been submitted for processing but the feature is not enabled.
EMAIL_TO_CASE_LIMIT_EXCEEDED
The daily converted email limit for the Email-to-Case feature has been exceeded.
EMAIL_TO_CASE_NOT_ENABLED
The Email-to-Case feature has not been enabled.
EXCEEDED_ID_LIMIT
Too many IDs were specified in a call. For example, more than 2000 IDs were requested in a retrieve() call, or more than 200
session IDs were specified in a logout() call.
EXCEEDED_LEAD_CONVERT_LIMIT
Too many IDs were sent to a convertLead() call.
EXCEEDED_MAX_SIZE_REQUEST
The size of the message sent to the API exceeded 50 MB.
EXCEEDED_MAX_TYPES_LIMIT
The number of object types to describe is too large.
EXCEEDED_QUOTA
The size limit for org data storage was exceeded during a create() call.
FUNCTIONALITY_NOT_ENABLED
Functionality has been temporarily disabled. Other calls continue to work.
INACTIVE_OWNER_OR_USER
The user or record owner is not active.
INACTIVE_PORTAL
The referenced portal is inactive.
INSUFFICIENT_ACCESS
The user does not have sufficient access to perform the operation.
46
Object Basics
ExceptionCode
INVALID_ASSIGNMENT_RULE
An invalid AssignmentRuleHeader value was specified.
INVALID_BATCH_SIZE
The query options have an invalid batch size value.
INVALID_CLIENT
The client is invalid.
INVALID_CROSS_REFERENCE_KEY
An invalid foreign key can’t be set on a field. For example, an object share, such as AccountShare, can’t be deleted because the share
row is a result of a sharing rule.
INVALID_FIELD
The specified field name is invalid.
INVALID_FILTER_LANGUAGE
The specified language can't be used as a filter.
INVALID_FILTER_VALUE
A SOQL query with LIKE specified an invalid character, for example, an incorrectly placed asterisk (*). Correct the query and resubmit.
INVALID_ID_FIELD
The specified ID is correctly formatted but isn’t valid. For example, the ID is of the wrong type, or the object it identifies no longer
exists.
INVALID_GOOGLE_DOCS_URL
An invalid Salesforce record URL was used when trying to associate a Google Doc to that record. Correct the URL before trying the
operation again.
INVALID_LOCATOR
The locator is invalid.
INVALID_LOGIN
The login() credentials are not valid, or the maximum number of logins have been exceeded. Contact your administrator for
more information.
INVALID_NEW_PASSWORD
The new password does not conform with the password policies of the org.
INVALID_OPERATION
The client application tried to modify a record that is locked by an approval process.
INVALID_OPERATION_WITH_EXPIRED_PASSWORD
Due to password expiration, a valid password must be set using setPassword() before the call can be invoked.
INVALID_QUERY_FILTER_OPERATOR
An invalid operator was used in the query() filter clause, at least for that field.
INVALID_QUERY_LOCATOR
An invalid queryLocator parameter was specified in a queryMore() call. It’s also possible that you've exceed the maximum
number of calls, which is 10 per user for the API, and 5 for Apex and Visualforce.
INVALID_QUERY_SCOPE
The specified search scope is invalid.
INVALID_REPLICATION_DATE
The date for replication is out of the allowed range, such as before the org was created.
47
Object Basics
ExceptionCode
INVALID_SETUP_OWNER
The setup owner must be an Organization, Profile, or User.
INVALID_SEARCH
The search() call has invalid syntax or grammar. For more information, see the Salesforce SOQL and SOSL Reference Guide.
INVALID_SEARCH_SCOPE
The specified search scope is invalid.
INVALID_SESSION_ID
The specified sessionId is malformed (incorrect length or format) or has expired. Log in again to start a new session.
INVALID_SOAP_HEADER
There is an error in the SOAP header. If you are migrating from an earlier version of the API, be advised that the SaveOptions header
can't be used with API version 6.0 or later. Use AssignmentRuleHeader instead.
INVALID_SSO_GATEWAY_URL
The URL provided to configure the Single Sign-On gateway was not a valid URL.
INVALID_TYPE
The specified sObject type is invalid.
INVALID_TYPE_FOR_OPERATION
The specified sObject type is invalid for the specified operation.
LIMIT_EXCEEDED
An array is too long. For example, there are too many BCC addresses, targets, or email messages.
LOGIN_DURING_RESTRICTED_DOMAIN
The user is not allowed to log in from this IP address.
LOGIN_DURING_RESTRICTED_TIME
The user is not allowed to log in during this time period.
MALFORMED_ID
An invalid ID string was specified. For information about IDs, see ID Field Type.
MALFORMED_QUERY
An invalid query string was specified. For example, the query string was longer than 20,000 characters.
MALFORMED_SEARCH
An invalid search string was specified. For example, the search string was longer than 20,000 characters.
MISSING_ARGUMENT
A required argument is missing.
MIXED_DML_OPERATION
There are limits on what kinds of DML operations can be performed in the same transaction. For more information, see the Force.com
Apex Code Developer's Guide.
NOT_MODIFIED
The describe call response has not changed since the specified date.
NO_SOFTPHONE_LAYOUT
If an org has the CTI feature enabled, but no softphone layout has been defined, this exception is returned if a describe call is issued.
This exception is most often caused because no call center has been defined. A default softphone layout is created during call center
definition.
If an org doesn’t have the CTI feature enabled, FUNCTIONALITY_NOT_ENABLED is returned instead.
48
Object Basics
ExceptionCode
NUMBER_OUTSIDE_VALID_RANGE
The number specified is outside the valid range for the field.
OPERATION_TOO_LARGE
The query has returned too many results. If certain queries are run by a user without the “View All Data” permission and many records
are returned, the queries require sharing rule checking. For example, consider queries that are run on objects, such as Task, that use
a polymorphic foreign key. These queries return this exception because the operation requires too many resources. To correct, add
filters to the query to narrow the scope, or use filters such as date ranges to break the query up into a series of smaller queries.
ORG_LOCKED
The org has been locked. Contact Salesforce to unlock the org.
ORG_NOT_OWNED_BY_INSTANCE
The user tried to log in to the wrong server instance. Choose another server instance or log in at
https://login.salesforce.com. You can use http instead of https.
PASSWORD_LOCKOUT
The user has exceeded the allowed number of login attempts. The user must contact an administrator to regain login access.
PORTAL_NO_ACCESS
Access to the specified portal is not available.
QUERY_TIMEOUT
The query has timed out. For more information, see the Salesforce SOQL and SOSL Reference Guide.
QUERY_TOO_COMPLICATED
SOQL query is either selecting too many fields or there are too many filter conditions. Try reducing the number of formula fields
referenced in the query.
REQUEST_LIMIT_EXCEEDED
Exceeded either the concurrent request limit or the request rate limit for your org. For details on API request limits, see API Usage
Metering.
REQUEST_RUNNING_TOO_LONG
A request has taken too long to be processed.
SERVER_UNAVAILABLE
A server that is necessary for this call is unavailable. Other types of requests could still work.
SSO_SERVICE_DOWN
The service was unavailable, and an authentication call to the org’s specified Single Sign-On server failed.
TOO_MANY_APEX_REQUESTS
Too many Apex requests have been issued. If this exception persists, contact Salesforce Customer Support.
TRIAL_EXPIRED
The trial period for the org has expired. A representative from the company must contact Salesforce to re-enable the org.
UNSUPPORTED_API_VERSION
A method call was made that doesn’t exist in the accessed API version, for example, trying to use upsert() (new in 8.0) against
version 5.0.
UNSUPPORTED_CLIENT
This version of the client is no longer supported.
49
Object Basics
Error
Error
An Error contains information about an error that occurred during a create(), merge(), process(), update(), upsert(),
delete(), or undelete() call. For more information, see Error Handling. An Error has the following properties:
Name
Type
Description
statusCode
StatusCode
A code that characterizes the error. The full list of status codes is available in the
WSDL file for your org (see Generating the WSDL File for Your Organization).
message
string
Error message text.
fields
string[]
Array of one or more field names. Identifies which fields in the object, if any,
affected the error condition.
extendedErrorDetails ExtendedErrorDetails
More details about the error, including an extended error code and extra error
properties, when available. Reserved for future use.
Note: If your org has active duplicate rules and a duplicate is detected, the SaveResult includes an error with a data type of
DuplicateError.
StatusCode
The following table lists API status codes that are returned with an error. Some codes don’t appear in your WSDL, depending on the
features you have enabled.
ALL_OR_NONE_OPERATION_ROLLED_BACK
The bulk operation was rolled back because one of the records wasn't processed successfully. See AllOrNoneHeader.
ALREADY_IN_PROCESS
You can’t submit a record that is already in an approval process. Wait for the previous approval process to complete before resubmitting
a request with this record.
ASSIGNEE_TYPE_REQUIRED
Designate an assignee for the approval request (ProcessInstanceStep or ProcessInstanceWorkitem).
BAD_CUSTOM_ENTITY_PARENT_DOMAIN
The changes you are trying to make can’t be completed because changes to the associated master-detail relationship can’t be made.
BCC_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED
Your client application blind carbon-copied an email address even though the org’s Compliance BCC Email option is enabled. This
option specifies a particular email address that automatically receives a copy of all outgoing email. When this option is enabled, you
can’t BCC any other email address. To disable the option, log in to the user interface and from Setup, enter Compliance BCC
Email in the Quick Find box, then select Compliance BCC Email.
BCC_SELF_NOT_ALLOWED_IF_BCC_COMPLIANCE_ENABLED
Your client application blind carbon-copied the logged-in user’s email address even though the org’s BCC COMPLIANCE option is
set to true. This option specifies a particular email address that automatically receives a copy of all outgoing email. When this option
is enabled, you can’t BCC any other email address. To disable the option, log in to the user interface and from Setup, enter
Compliance BCC Email in the Quick Find box, then select Compliance BCC Email.
CANNOT_CASCADE_PRODUCT_ACTIVE
An update to a product caused by a cascade can't be done because the associated product is active.
50
Object Basics
StatusCode
CANNOT_CHANGE_FIELD_TYPE_OF_APEX_REFERENCED_FIELD
You can't change the type of a field that is referenced in an Apex script.
CANNOT_CREATE_ANOTHER_MANAGED_PACKAGE
You can create only one managed package in an org.
CANNOT_DEACTIVATE_DIVISION
You can't deactivate Divisions if an assignment rule references divisions or if the DefaultDivision field on a user record isn’t
set to null.
CANNOT_DELETE_LAST_DATED_CONVERSION_RATE
If dated conversions are enabled, you must have at least one DatedConversionRate record.
CANNOT_DELETE_MANAGED_OBJECT
You can't modify components that are included in a managed package.
CANNOT_DISABLE_LAST_ADMIN
You must have at least one active administrator user.
CANNOT_ENABLE_IP_RESTRICT_REQUESTS
If you exceed the limit of five IP ranges specified in a profile, you can't enable restriction of login by IP addresses. Reduce the number
of specified ranges in the profile and try the request again.
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
You do not have permission to create, update, or activate the specified record.
CANNOT_MODIFY_MANAGED_OBJECT
You can't modify components that are included in a managed package.
CANNOT_RENAME_APEX_REFERENCED_FIELD
You can't rename a field that is referenced in an Apex script.
CANNOT_RENAME_APEX_REFERENCED_OBJECT
You can't rename an object that is referenced in an Apex script.
CANNOT_REPARENT_RECORD
You can't define a new parent record for the specified record.
CANNOT_RESOLVE_NAME
A sendEmail() call could not resolve an object name.
CANNOT_UPDATE_CONVERTED_LEAD
A converted lead could not be updated.
CANT_DISABLE_CORP_CURRENCY
You can’t disable the corporate currency for an org. To disable a currency that is set as the corporate currency, first use the user
interface to change the corporate currency to a different currency. Then disable the original currency.
CANT_UNSET_CORP_CURRENCY
You can’t change the corporate currency for an org from the API. Use the user interface to change the corporate currency.
CHILD_SHARE_FAILS_PARENT
If you don’t have appropriate permissions on a parent record, you can’t change the owner of or define sharing rules for a child record.
For example, you can’t change the owner of a contact record if you can’t edit its parent account record.
CIRCULAR_DEPENDENCY
You can't create a circular dependency between metadata objects in your org. For example, public group A can't include public
group B, if public group B already includes public group A.
51
Object Basics
StatusCode
COMMUNITY_NOT_ACCESSIBLE
You do not have permission to access the community that this entity belongs to. You must be given permission to access the
community before you can access this entity.
CUSTOM_CLOB_FIELD_LIMIT_EXCEEDED
You can't exceed the maximum size for a CLOB field.
CUSTOM_ENTITY_OR_FIELD_LIMIT
You have reached the maximum number of custom objects or custom fields for your org.
CUSTOM_FIELD_INDEX_LIMIT_EXCEEDED
You have reached the maximum number of indexes on a field for your org.
CUSTOM_INDEX_EXISTS
You can create only one custom index per field.
CUSTOM_LINK_LIMIT_EXCEEDED
You have reached the maximum number of custom links for your org.
CUSTOM_METADATA_LIMIT_EXCEEDED
Your org has reached its custom metadata maximum limit.
CUSTOM_SETTINGS_LIMIT_EXCEEDED
Your org has reached its custom settings maximum limit.
CUSTOM_TAB_LIMIT_EXCEEDED
You have reached the maximum number of custom tabs for your org.
DELETE_FAILED
You can't delete a record because it is in use by another object.
DEPENDENCY_EXISTS
You can't perform the requested operation because of an existing dependency on the specified object or field.
DUPLICATE_CASE_SOLUTION
You can't create a relationship between the specified case and solution because it already exists.
DUPLICATE_CUSTOM_ENTITY_DEFINITION
Custom object or custom field IDs must be unique.
DUPLICATE_CUSTOM_TAB_MOTIF
You can't create a custom object or custom field with a duplicate master name.
DUPLICATE_DEVELOPER_NAME
You can't create a custom object or custom field with a duplicate developer name.
DUPLICATES_DETECTED
Duplicate records have been detected. Used for an Error object with a data type of DuplicateError.
DUPLICATE_EXTERNAL_ID
A user-specified external ID matches more than one record during an upsert.
DUPLICATE_MASTER_LABEL
You can't create a custom object or custom field with a duplicate master name.
DUPLICATE_SENDER_DISPLAY_NAME
A sendEmail() call could not choose between OrgWideEmailAddress.DisplayName or senderDisplayName. Define
only one of the two fields.
DUPLICATE_USERNAME
A create, update, or upsert failed because of a duplicate user name.
52
Object Basics
StatusCode
DUPLICATE_VALUE
You can’t supply a duplicate value for a field that must be unique. For example, you can’t submit two copies of the same session ID
in a invalidateSessions() call.
EMAIL_ADDRESS_BOUNCED
Emails to one or more recipients have bounced. Check the email addresses to make sure that they are valid.
EMAIL_NOT_PROCESSED_DUE_TO_PRIOR_ERROR
Because of an error earlier in the call, the current email was not processed.
EMAIL_OPTED_OUT
A single email message was sent with the REJECT setting in the optOutPolicy field to recipients that have opted out from
receiving email. To avoid this error, set the optOutPolicy field to another value.
EMAIL_TEMPLATE_FORMULA_ERROR
The email template is invalid and can’t be rendered. Check the template for incorrectly specified merge fields.
EMAIL_TEMPLATE_MERGEFIELD_ACCESS_ERROR
You don’t have access to one or more merge fields in this template. To request access, contact your Salesforce administrator.
EMAIL_TEMPLATE_MERGEFIELD_ERROR
One or more merge fields don’t exist. Check the spelling of field names.
EMAIL_TEMPLATE_MERGEFIELD_VALUE_ERROR
One or more merge fields have no value. To provide values, update the records before sending the email.
EMAIL_TEMPLATE_PROCESSING_ERROR
The merge fields in this email template can’t be processed. Ensure that your template body is valid.
EMPTY_SCONTROL_FILE_NAME
The Scontrol file name was empty, but the binary was not empty.
ENTITY_FAILED_IFLASTMODIFIED_ON_UPDATE
If the value in a record’s LastModifiedDate field is later than the current date, you can’t update the record .
ENTITY_IS_ARCHIVED
If a record has been archived, you can’t access it.
ENTITY_IS_DELETED
You can’t reference an object that has been deleted. This status code occurs only in API version 10.0 and later. Previous releases of
the API use INVALID_ID_FIELD for this error.
ENTITY_IS_LOCKED
You can’t edit a record that is locked by an approval process.
ENVIRONMENT_HUB_MEMBERSHIP_CONFLICT
You can’t add an org to more than one Environment Hub.
ERROR_IN_MAILER
An email address is invalid, or another error occurred during an email-related transaction.
FAILED_ACTIVATION
The activation of a Contract failed.
FIELD_CUSTOM_VALIDATION_EXCEPTION
You can't define a custom validation formula that violates a field integrity rule.
FIELD_FILTER_VALIDATION_EXCEPTION
You can't violate field integrity rules.
53
Object Basics
StatusCode
FILTERED_LOOKUP_LIMIT_EXCEEDED
The creation of the lookup filter failed because it exceeds the maximum number of lookup filters allowed per object.
HTML_FILE_UPLOAD_NOT_ALLOWED
Your attempt to upload an HTML file failed. HTML attachments and documents, including HTML attachments to a Solution, can't be
uploaded if the Disallow HTML documents and attachments checkbox is selected on the HTML Documents and
Attachments Settings page.
IMAGE_TOO_LARGE
The image exceeds the maximum width, height, and file size.
INACTIVE_OWNER_OR_USER
The owner of the specified item is an inactive user. To reference this item, either reactivate the owner or reassign ownership to
another active user.
INSERT_UPDATE_DELETE_NOT_ALLOWED_DURING_MAINTENANCE
Starting with version 32.0, you can’t create, update, or delete data while the instance where your org resides is being upgraded to
the latest release. Try again after the release has completed. For release schedules, see trust.salesforce.com. Before version
32.0, the code is INVALID_READ_ONLY_USER_DML.
INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY
An operation affects an object that is cross-referenced by the specified object, but the logged-in user doesn’t have sufficient
permissions on the cross-referenced object. For example, a logged-in user attempts to modify an account record, and the update
creates a ProcessInstanceWorkitem. If the user doesn’t have permission to approve, reject, or reassign the ProcessInstanceWorkitem,
this exception occurs.
INSUFFICIENT_ACCESS_OR_READONLY
You can’t perform the specified action because you don’t have sufficient permissions.
INVALID_ACCESS_LEVEL
You can’t define a new sharing rule that provides less access than the specified org-wide default.
INVALID_ARGUMENT_TYPE
You supplied an argument that is of the wrong type for the operation being attempted.
INVALID_ASSIGNEE_TYPE
You specified an assignee type that is not a valid integer between one and six.
INVALID_ASSIGNMENT_RULE
You specified an assignment rule that is invalid or that isn’t defined in the org.
INVALID_BATCH_OPERATION
The specified batch operation is invalid.
INVALID_CONTENT_TYPE
The outgoing email has anEmailFileAttachment with an invalidcontentType property. See RFC2045 - Internet Message Format.
INVALID_CREDIT_CARD_INFO
The specified credit card information is not valid.
INVALID_CROSS_REFERENCE_KEY
The specified value in a relationship field is not valid, or data is not of the expected type.
INVALID_CROSS_REFERENCE_TYPE_FOR_FIELD
The specified cross-reference type is not valid for the specified field.
INVALID_CURRENCY_CONV_RATE
Specify a positive, non-zero value for the currency conversion rate.
54
Object Basics
StatusCode
INVALID_CURRENCY_CORP_RATE
You can’t modify the corporate currency conversion rate.
INVALID_CURRENCY_ISO
The specified currency ISO code is not valid.
INVALID_EMAIL_ADDRESS
A specified email address is invalid.
INVALID_EMPTY_KEY_OWNER
You can't set the value for owner to null.
INVALID_EVENT_SUBSCRIPTION
Invalid parameters were specified when subscribing to an event.
INVALID_FIELD
You specified an invalid field name when trying to update or upsert a record.
INVALID_FIELD_FOR_INSERT_UPDATE
You can't combine a person account record type change with any other field update.
INVALID_FIELD_WHEN_USING_TEMPLATE
You can't use an email template with an invalid field name.
INVALID_FILTER_ACTION
The specified filter action can't be used with the specified object. For example, an alert is not a valid filter action for a Task.
INVALID_ID_FIELD
The specified ID field (ID, ownerId), or cross-reference field is invalid.
INVALID_INET_ADDRESS
A specified Inet address is not valid.
INVALID_LINEITEM_CLONE_STATE
You can’t clone a Pricebook2 or PricebookEntry record that isn’t active.
INVALID_MASTER_OR_TRANSLATED_SOLUTION
The solution is invalid. For example, this exception occurs if you try to associate a translated solution with a master solution that’s
associated with another translated solution.
INVALID_MESSAGE_ID_REFERENCE
The outgoing email's References or In-Reply-To fields are invalid. These fields must contain valid Message-IDs. See RFC2822 - Internet
Message Format.
INVALID_OPERATION
There is no applicable approval process for the specified object.
INVALID_OPERATOR
The specified operator is not applicable for the field type when used as a workflow filter.
INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST
You specified an invalid or null value for a restricted picklist.
INVALID_PARTNER_NETWORK_STATUS
The specified partner network status is invalid for the specified template field.
INVALID_PERSON_ACCOUNT_OPERATION
You can't delete a person account.
55
Object Basics
StatusCode
INVALID_READ_ONLY_USER_DML
Version 31.0 and earlier: You can’t create, update, or delete data while the instance where your org resides is being upgraded to the
latest release. Try again after the release has completed. For release schedules, see trust.salesforce.com. After version
31.0, the code is INSERT_UPDATE_DELETE_NOT_ALLOWED_DURING_MAINTENANCE.
INVALID_SAVE_AS_ACTIVITY_FLAG
Specify true or false for the saveAsActivity flag.
INVALID_SESSION_ID
The specified sessionId is malformed (incorrect length or format) or has expired. Log in again to start a new session.
INVALID_STATUS
The specified org status change is not valid.
INVALID_TYPE
The specified type is not valid for the specified object.
INVALID_TYPE_FOR_OPERATION
The specified type is not valid for the specified operation.
INVALID_TYPE_ON_FIELD_IN_RECORD
The specified value is not valid for the specified field's type.
IP_RANGE_LIMIT_EXCEEDED
The specified IP address is outside the IP range specified for the org.
JIGSAW_IMPORT_LIMIT_EXCEEDED
The number of records you attempted to purchase from Data.com exceeds your available record addition limit.
LICENSE_LIMIT_EXCEEDED
You have exceeded the number of licenses assigned to your org.
LIGHT_PORTAL_USER_EXCEPTION
You attempted an action with a high-volume portal user that's not allowed. For example, trying to add the user to a case team.
LIMIT_EXCEEDED
You have exceeded a limit on a field size or value, license, or other component.
LOGIN_CHALLENGE_ISSUED
An email containing a security token was sent to the user’s email address because the user logged in from an untrusted IP address.
The user can’t log in until tthe security token is added to the end of the password.
LOGIN_CHALLENGE_PENDING
The user logged in from an untrusted IP address, but a security token has not yet been issued.
LOGIN_MUST_USE_SECURITY_TOKEN
The user must add a security token to the end of the password to log in.
MALFORMED_ID
An ID must be either 15 characters, or 18 characters with a valid case-insensitive extension. There is also an exception code of the
same name.
MANAGER_NOT_DEFINED
A manager has not been defined for the specified approval process.
MASSMAIL_RETRY_LIMIT_EXCEEDED
A mass mail retry failed because your org has exceeded its mass mail retry limit.
MASS_MAIL_LIMIT_EXCEEDED
The org has exceeded its daily limit for mass email. Mass email messages can't be sent again until the next day.
56
Object Basics
StatusCode
MAXIMUM_CCEMAILS_EXCEEDED
You have exceeded the maximum number of specified CC addresses in a workflow email alert.
MAXIMUM_DASHBOARD_COMPONENTS_EXCEEDED
You have exceeded the document size limit for a dashboard.
MAXIMUM_HIERARCHY_LEVELS_REACHED
You have reached the maximum number of levels in a hierarchy.
MAXIMUM_SIZE_OF_ATTACHMENT
You have exceeded the maximum size of an attachment.
MAXIMUM_SIZE_OF_DOCUMENT
You have exceeded the maximum size of a document.
MAX_ACTIONS_PER_RULE_EXCEEDED
You have exceeded the maximum number of actions per rule.
MAX_ACTIVE_RULES_EXCEEDED
You have exceeded the maximum number of active rules.
MAX_APPROVAL_STEPS_EXCEEDED
You have exceeded the maximum number of approval steps for an approval process.
MAX_FORMULAS_PER_RULE_EXCEEDED
You have exceeded the maximum number of formulas per rule.
MAX_RULES_EXCEEDED
You have exceeded the maximum number of rules for an object.
MAX_RULE_ENTRIES_EXCEEDED
You have exceeded the maximum number of entries for a rule.
MAX_TASK_DESCRIPTION_EXCEEDED
The task description is too long.
MAX_TM_RULES_EXCEEDED
You have exceeded the maximum number of rules per Territory.
MAX_TM_RULE_ITEMS_EXCEEDED
You have exceeded the maximum number of rule criteria per rule for a Territory.
MERGE_FAILED
A merge operation failed.
MISSING_ARGUMENT
You did not specify a required argument.
NONUNIQUE_SHIPPING_ADDRESS
You can't insert a reduction order item if the original order shipping address is different from the shipping address of other items in
the reduction order.
NO_APPLICABLE_PROCESS
A process() request failed because the record submitted does not satisfy the entry criteria of any active approval processes for
which the user has permission.
NO_ATTACHMENT_PERMISSION
Your org does not permit email attachments.
NO_INACTIVE_DIVISION_MEMBERS
You can't add members to an inactive Division.
57
Object Basics
StatusCode
NO_MASS_MAIL_PERMISSION
You don’t have permission to send the email. You must have “Mass Email” to send mass mail or “Send Email” to send individual
email.
NUMBER_OUTSIDE_VALID_RANGE
The number specified is outside the valid range of values.
NUM_HISTORY_FIELDS_BY_SOBJECT_EXCEEDED
The number of history fields specified for the sObject exceeds the allowed limit.
OP_WITH_INVALID_USER_TYPE_EXCEPTION
The operation you attempted can't be performed for one or more users. For example, you can't add high-volume portal users to a
group.
OPTED_OUT_OF_MASS_MAIL
An email can't be sent because the specified User has opted out of mass mail.
PACKAGE_LICENSE_REQUIRED
The logged-in user can’t access an object that is in a licensed package without a license for the package.
PORTAL_USER_ALREADY_EXISTS_FOR_CONTACT
A create User operation failed because you can't create a second portal user under a Contact.
PRIVATE_CONTACT_ON_ASSET
You can’t have a private contact on an asset.
RECORD_IN_USE_BY_WORKFLOW
You can’t access a record that’s in use by a workflow or approval process.
REQUEST_RUNNING_TOO_LONG
A request that has been running too long is canceled.
REQUIRED_FIELD_MISSING
A call requires a field that was not specified.
SELF_REFERENCE_FROM_TRIGGER
You can't recursively update or delete the same object from an Apex trigger. This error often occurs when:
• You try to update or delete an object from within its before trigger.
• You try to delete an object from within its after trigger.
This error occurs with both direct and indirect operations. The following is an example of an indirect operation:
1. A request is submitted to update Object A.
2. A before update trigger on object A creates an object B.
3. Object A is updated.
4. An after insert trigger on object B queries object A and updates it. This update is an indirect update of object A because
of the before trigger of object A, so an error is generated.
SHARE_NEEDED_FOR_CHILD_OWNER
If a parent record has a child record that needs a sharing rule, you can’t delete the sharing rule for the parent record.
SINGLE_EMAIL_LIMIT_EXCEEDED
(API version 18.0 and later) The org has exceeded its daily limit for individual emails. Individual email messages can’t be sent again
until the next day.
STANDARD_PRICE_NOT_DEFINED
Custom prices can't be defined without corresponding standard prices.
58
Object Basics
StatusCode
STORAGE_LIMIT_EXCEEDED
You have exceeded your org’s storage limit.
STRING_TOO_LONG
The specified string exceeds the maximum allowed length.
TABSET_LIMIT_EXCEEDED
You have exceeded the number of tabs allowed for a tabset.
TEMPLATE_NOT_ACTIVE
The template specified is unavailable. Specify another template or make the template available for use.
TERRITORY_REALIGN_IN_PROGRESS
An operation can't be performed because a territory realignment is in progress.
TEXT_DATA_OUTSIDE_SUPPORTED_CHARSET
The specified text uses a character set that is not supported.
TOO_MANY_APEX_REQUESTS
Too many Apex requests have been sent. This error is transient. Resend your request after a short wait.
TOO_MANY_ENUM_VALUE
A request failed because too many values were passed in for a multi-select picklist. You can select a maximum of 100 values for a
multi-select picklist.
TRANSFER_REQUIRES_READ
You can't assign the record to the specified User because the user does not have read permission.
UNABLE_TO_LOCK_ROW
A deadlock or timeout condition has been detected.
• A deadlock involves at least two transactions that are attempting to update overlapping sets of objects. If the transaction involves
a summary field, the parent objects are locked, making these transactions especially prone to deadlocks. To debug, check your
code for deadlocks and correct. Deadlocks are generally not the result of an issue with Salesforce operations.
• A timeout occurs when a transaction takes too long to complete, for example, when replacing a value in a picklist or changing
a custom field definition. The timeout state is temporary. No corrective action is needed.
If an object in a batch can’t be locked, the entire batch fails with this error. Errors with this status code contain the IDs of the records
that couldn’t be locked, when available, in the error message.
UNAVAILABLE_RECORDTYPE_EXCEPTION
The appropriate default record type could not be found.
UNDELETE_FAILED
An object could not be undeleted because it does not exist or has not been deleted.
UNKNOWN_EXCEPTION
The system encountered an internal error. Report this problem to Salesforce.
Note: Do not report this exception code to Salesforce if it results from a sendEmail() call. The sendEmail() call
returns this exception code when it is used to send an email to one or more recipients who have the Email Opt Out option
selected.
UNSPECIFIED_EMAIL_ADDRESS
The specified user does not have an email address.
UNSUPPORTED_APEX_TRIGGER_OPERATION
You can't save recurring events with an Apex trigger.
59
Object Basics
ExtendedErrorDetails
UNVERIFIED_SENDER_ADDRESS
A sendEmail() call attempted to use an unverified email address defined in the OrgWideEmailAddress object.
WEBLINK_SIZE_LIMIT_EXCEEDED
The size of a WebLink URL or JavaScript code exceeds the limit.
WEBLINK_URL_INVALID
The WebLink URL has failed the URL string validation check.
WRONG_CONTROLLER_TYPE
The controller type for your Visualforce email template does not match the object type being used.
If you receive a status code not listed in the previous table, contact Customer Support.
ExtendedErrorDetails
Reserved for future use. An ExtendedErrorDetails element contains extra detailed information about an error. The
ExtendedErrorDetails element has the following properties.
Name
Type
Description
extendedErrorCode ExtendedErrorCode
extended error
property
Varies
A code that characterizes the extended error details.
An extended error property that contains more information about the error. The
property name and value vary based on the extended error code.
Duplicate Management Data Types
DuplicateError
Contains information about an error that occurred when an attempt was made to save a duplicate record. Use if your organization has
set up duplicate rules, which are part of the Duplicate Management feature.
Fields
Field
Details
duplicateResult
Type
DuplicateResult
Description
The details of a duplicate rule and duplicate records found by the duplicate rule.
fields
Type
string[]
Description
Array of one or more field names. Identifies which fields in the object, if any, affected the
error condition.
60
Object Basics
Duplicate Management Data Types
Field
Details
message
Type
string
Description
Error message text.
statusCode
Type
StatusCode
Description
A code that characterizes the error. The full list of status codes is available in the WSDL file
for your organization (see Generating the WSDL File for Your Organization).
Usage
DuplicateError and its constituent objects are available to organizations that use duplicate rules.
DuplicateError is a data type of Error.
To process duplicates, loop through all the Error objects in the errors field on SaveResult. An Error object with a data type of
DuplicateError contains information about an error that occurred when an attempt was made to save a duplicate record. To access
information about the duplicates, use the duplicateResult field.
Java Sample
Here is a sample that shows how to see if there are any errors on the saveResult with a data type of DuplicateError. If so, duplicates were
detected. See DuplicateResult for a full code sample that shows how to block users from entering duplicate leads and display an alert
and a list of duplicates.
if (!saveResult.isSuccess()) {
for (Error e : saveResult.getErrors()) {
if (e instanceof DuplicateError) {
System.out.println("Duplicate(s) Detected for lead with ID: " +
leads[i].getId());
System.out.println("ERROR MESSAGE: " + e.getMessage());
System.out.println("STATUS CODE: " + e.getStatusCode());
DuplicateResult dupeResult = ((DuplicateError)e).getDuplicateResult();
System.out.println("Found the following duplicates...");
for (MatchResult m : dupeResult.getMatchResults()) {
if (m.isSuccess()) {
System.out.println("The match rule that was triggered was " +
m.getRule());
for (MatchRecord mr : m.getMatchRecords()) {
System.out.println("Your record matched " + mr.getRecord().getId()
+ " of type "
+ mr.getRecord().getType());
System.out.println("The match confidence is " +
mr.getMatchConfidence());
}
}
}
61
Object Basics
Duplicate Management Data Types
}
}
}
DuplicateResult
Represents the details of a duplicate rule that detected duplicate records and information about those duplicate records.
Fields
Field
Details
allowSave
Type
boolean
Description
true if duplicates are allowed to be saved. false if duplicates are not allowed to be
saved.
duplicateRule
Type
string
Description
The name of the duplicate rule that detected duplicate records.
duplicateRuleEntityType Type
string
Description
The name of the duplicate rule that detected duplicate records.
errorMessage
Type
string
Description
The error message configured by the administrator to warn users they are potentially creating
duplicate records. This message is associated with a duplicate rule.
matchResults
Type
MatchResult
Description
The duplicate records and related match information.
Usage
DuplicateResult and its constituent objects are available to organizations that use duplicate rules.
62
Object Basics
Duplicate Management Data Types
Java Sample
Here is a sample that shows how to block users from entering duplicate leads and display an alert and a list of duplicates.
package com.doc.example;
import java.io.FileNotFoundException;
import
import
import
import
import
com.sforce.soap.partner.*;
com.sforce.soap.partner.Error;
com.sforce.soap.partner.sobject.SObject;
com.sforce.ws.ConnectionException;
com.sforce.ws.ConnectorConfig;
public class SaveResultsWithDupeHeader {
private PartnerConnection partnerConnection = null;
static SaveResultsWithDupeHeader tester;
public static void main(String[] args) {
tester = new SaveResultsWithDupeHeader();
try {
tester.demoDuplicateRuleHeader();
} catch (Exception e) {
e.printStackTrace();
}
}
/*
* Make sure that you have an active lead duplicate rule linked to an active matching
rule. This method tries to save
* an array of leads and inspects whether any duplicates were detected
*/
public void demoDuplicateRuleHeader() throws FileNotFoundException, ConnectionException
{
// Create the configuration for the partner connection
ConnectorConfig config = new ConnectorConfig();
config.setUsername("user@domain.com");
config.setPassword("secret");
config.setAuthEndpoint("authEndPoint");
config.setTraceFile("traceLogs.txt");
config.setTraceMessage(true);
config.setPrettyPrintXml(true);
// Initialize the connection
partnerConnection = new PartnerConnection(config);
// Get the leads that have to be saved
SObject[] leads = getLeadsForInsertOrUpdate();
/* Set a duplicate rule header to return a result if duplicates are detected
* This sets the allowSave, includeRecordDetails, and runAsCurrentUser flags to
true
*/
partnerConnection.setDuplicateRuleHeader(true, true, true);
63
Object Basics
Duplicate Management Data Types
// Save the leads
SaveResult[] saveResults = partnerConnection.create(leads);
// Check the results to see if duplicates were detected
for (int i = 0; i < leads.length; i++) {
SaveResult saveResult = saveResults[i];
if (!saveResult.isSuccess()) {
for (Error e : saveResult.getErrors()) {
// See if there are any errors on the saveResult with a data type of
DuplicateError
if (e instanceof DuplicateError) {
System.out.println("Duplicate(s) Detected for lead with ID: " +
leads[i].getId());
System.out.println("ERROR MESSAGE: " + e.getMessage());
System.out.println("STATUS CODE: " + e.getStatusCode());
DuplicateResult dupeResult =
((DuplicateError)e).getDuplicateResult();
System.out.println("Found the following duplicates...");
for (MatchResult m : dupeResult.getMatchResults()) {
if (m.isSuccess()) {
System.out.println("The match rule that was triggered was
" + m.getRule());
for (MatchRecord mr : m.getMatchRecords()) {
System.out.println("Your record matched " +
mr.getRecord().getId() + " of type "
+ mr.getRecord().getType());
System.out.println("The match confidence is " +
mr.getMatchConfidence());
for (FieldDiff f : mr.getFieldDiffs()) {
System.out.println("For field " + f.getName() + "
field difference is "
+ f.getDifference().name());
}
}
}
}
}
}
}
}
// Clear the duplicate rule header
partnerConnection.clearDuplicateRuleHeader();
}
/**
* The assumption here is that this method is retrieving leads from either UI, a data
source, etc
*/
private SObject[] getLeadsForInsertOrUpdate() {
return new SObject[0];
}
64
Object Basics
Duplicate Management Data Types
}
MatchResult
Represents the duplicate results for a matching rule.
Fields
Field
Details
errors
Type
Error[]
Description
Errors that occurred during matching for the matching rule.
entityType
Type
string
Description
The entity type of the matching rule.
matchEngine
Type
string
Description
The match engine for the matching rule.
matchRecords
Type
MatchRecord[]
Description
Information about the duplicates detected by the matching rule.
rule
Type
string
Description
The developer name of the matching rule that detected duplicates.
size
Type
int
Description
The number of duplicates detected by the matching rule.
success
Type
boolean
65
Object Basics
Field
Duplicate Management Data Types
Details
Description
true if the matching rule successfully ran. false if there’s an error with the matching
rule.
Usage
MatchResult and its constituent objects are available to organizations that use duplicate rules.
There is 1 MatchResult for each saved record that has duplicates. The MatchResult contains all duplicates for that saved record.
Java Sample
Here is a sample that shows how to display the ID and type of all duplicates detected when leads are saved. See DuplicateResult for a
full code sample that shows how to block users from entering duplicate leads and display an alert and a list of duplicates.
for (MatchResult m : dupeResult.getMatchResults()) {
if (m.isSuccess()) {
System.out.println("The match rule that was triggered was " + m.getRule());
for (MatchRecord mr : m.getMatchRecords()) {
System.out.println("Your record matched " + mr.getRecord().getId() + " of type
"
+ mr.getRecord().getType());
System.out.println("The match confidence is " + mr.getMatchConfidence());
}
}
}
MatchRecord
Represents a duplicate record detected by a matching rule.
Fields
Field
Details
additionalInformation
Type
AdditionalInformationMap
Description
Other information about matched records.
fieldDiffs
Type
FieldDiff[]
Description
Matching rule fields and how each field value compares for the duplicate and its matching
record.
66
Object Basics
Duplicate Management Data Types
Field
Details
matchConfidence
Type
double
Description
The ranking of how similar a matched record’s data is to the data in your request. Must be
equal to or greater than the value of the minMatchConfidence specified in your
request. Returns -1 if unused.
record
Type
sObject
Description
The fields and field values for the duplicate record.
Usage
MatchRecord and its constituent objects are available to organizations that use duplicate rules.
Each MatchRecord represents a duplicate detected when a record is saved. There can be multiple MatchRecord objects for a saved record
if multiple duplicates are detected.
Java Sample
Here is a sample that shows how to display the ID and type of all duplicates detected when a lead is saved. See DuplicateResult for a full
code sample that shows how to block users from entering duplicate leads and display an alert and a list of duplicates.
for (MatchRecord mr : m.getMatchRecords()) {
System.out.println("Your record matched " + mr.getRecord().getId() + " of type "
+ mr.getRecord().getType());
System.out.println("The match confidence is " + mr.getMatchConfidence());
}
FieldDiff
Represents the name of a matching rule field and how the values of the field compare for the duplicate and its matching record.
Fields
Field
Details
difference
Type
differenceType
Description
How the values of the matching rule field compare for the duplicate and its matching record.
Possible values include:
• Same: Indicates the field values match exactly.
67
Object Basics
Field
System Fields
Details
• Different: Indicates that the field values do not match.
• Null: Indicates that the field values are a match because both values are blank.
name
Type
string
Description
The name of a field on a matching rule that detected duplicates.
Java Sample
Here is a sample that shows how to display the matching rule field differences when a duplicate is detected. See DuplicateResult for a
full code sample that shows how to block users from entering duplicate leads and display an alert and a list of duplicates.
for (FieldDiff f : mr.getFieldDiffs()) {
System.out.println("For field " + f.getName() + " field difference is "
+ f.getDifference().name());
}
AdditionalInformationMap
Represents other information, if any, about matched records.
Fields
Field
Details
name
Type
string
Description
The name of the element.
value
Type
string
Description
The value of the element.
System Fields
The following fields are read-only fields found on most objects. These fields are automatically updated during API operations. For example,
the ID field is automatically generated during a create operation and the LastModifiedDate is automatically updated when a user modifies
a record.
68
Object Basics
System Fields
Field
Field Type
Description
Id
ID
Globally unique string that identifies a record. For information on IDs, see ID Field
Type. Because this field exists in every object, it is not listed in the field table for
each object. Id fields have Defaulted on create and Filter access.
IsDeleted
boolean
Indicates whether the record has been moved to the Recycle Bin (true) or not
(false). Because this field does not appear in all objects, it is listed in the field
table for each object.
Audit Fields
CreatedById
reference
ID of the User who created this record. CreatedById fields have Defaulted on
create and Filter access.
CreatedDate
dateTime
Date and time when this record was created. CreatedDate fields have
Defaulted on create and Filter access.
LastModifiedById
reference
ID of the User who last updated this record. LastModifiedById fields have
Defaulted on create and Filter access.
LastModifiedDate
dateTime
Date and time when a user last modified this record. LastModifiedDate
fields have Defaulted on create and Filter access.
SystemModstamp
dateTime
Date and time when a user or automated process (such as a trigger) last modified
this record. SystemModstamp fields have Defaulted on create and Filter access.
If you import data into Salesforce and want to retain the audit field values of the source system, you can set the values for audit fields
on the following objects: Account, ArticleVersion, Attachment, CampaignMember, Case, CaseComment, Contact, ContentVersion,
Contract, Event, Idea, IdeaComment, Lead, Opportunity, Question, Task, Vote, and custom objects. The only audit field you cannot set a
value for is systemModstamp.
1. From Setup, enter User Interface in the Quick Find box, then select User Interface under Customize.
2. Under Setup, select Enable “Set Audit Fields upon Record Creation” and “Update Records with Inactive Owners” User
Permissions.
3. In the permission set or profile that you want to set audit fields with, enable the permission Set Audit Fields upon Record Creation.
4. Using the API, create a record and set its audit fields.
Not all standard objects have all audit fields. Check the Enterprise WSDL to verify which audit fields are available for a given object.
Parent Reference Fields
If an object has a relationship to a parent object, two fields are added.
• Parent_Name contains the object name of the parent. For example, Case has a Contact field that contains a reference to the
contact parent of the case.
• Parent_NameId contains the ID of the parent. For example, Case has a ContactId field that refers to the contact parent of
the case. This field is used in SOQL relationship queries such as the following:
SELECT Case.ContactId, Case.Contact.Name FROM Case
69
Object Basics
Required Fields
Even if the object can parent itself, these fields occur. For example, the Campaign object has a Campaign and CampaignId field
for referencing the parent Campaign.
Required Fields
Required fields must have a non-null value. This rule affects the create and update calls:
• In a create call, the system automatically populates the data for certain required fields (such as system fields and the object ID fields).
Similarly, if a required field has a default value (its defaultedOnCreate attribute is set to true, as described in Field
in a describe result, then the system implicitly assigns a value for this field when the object is created, even if a value for this field is
not explicitly passed in on the create call. For all other required fields, such as ID fields that are analogous to foreign keys in SQL, a
client application must explicitly assign a value when the object is created (it cannot be null).
• In updates, a required field cannot be set to null, and many required fields can’t be changed.
Any field not specified as required in the object description is optional, that is, it can be null when updated or created.
Some required fields for some objects require special handling.
Frequently-Occurring Fields
In addition to system fields, the following fields are found on many objects:
• OwnerId
• RecordTypeId
• CurrencyIsoCode
OwnerId
Objects have an ownerId field that is an reference to the user who owns that object. Ownership is an important concept that affects
the security model and has other implications throughout the system. Any user can query the owner field for any record they can access.
However, setting the ownerId field has the following limitations:
• For most users and most objects, this field can’t be set directly upon insert. It is implicitly set to the current user when inserting an
object.
• When creating or updating a Case or Lead, a client application (that is logged in with sufficient permissions to transfer a record) can
set this field to any valid User in the organization or to any valid queue of the appropriate type in the organization.
• Updating this field via the API changes only the owner of that record. The change of ownership does not cascade to associated
records as it does when you transfer record ownership in the Salesforce user interface.
• Updating this field on an account deletes the existing sharing information and reapplies the organization-wide sharing defaults and
sharing rules.
• To update the ownerId field, the user must have the "Transfer Record" permission and Read access to the new owner.
In API version 12.0 and later, if your organization has set up opportunity teams, OwnerId fields behave the same for Account and
Opportunity objects as for other objects. That is, if you update the OwnerId field in either object, any AccountShare or OpportunityShare
records with RowCause set to Sales Team are kept. In API version 11.0 and earlier, the sharing records are deleted.
70
Object Basics
API Field Properties
RecordTypeId
Record types are used to offer different business processes and subsets of picklist values to different User records based on their Profile
settings. (In addition, person accounts use record types to manage a number of additional elements.
Record types are configured in the user interface or by creating, editing, or deleting the RecordType object in the API. Retrieve the list
of valid record type IDs (String) for an object by querying the RecordType object.
The RecordTypeId field in an object contains the ID of the RecordType record that is associated with a standard or custom object.
You can create or update this field.
Note: You can’t create or update the RecordTypeId field on the CampaignMember records. Set the CampaignMember
record type using the CampaignMemberRecordTypeId field on Campaign.
When specified in a create or update call, the record type ID (String) must refer to a valid record type for that object.
Note: The RecordTypeId field is in your organization’s WSDL only if at least one record type is configured for your organization
in the Salesforce user interface.
CurrencyIsoCode
For organizations that have multicurrency enabled, the CurrencyIsoCode field contains the string representation of the currency
ISO code associated with currency values in the object. Note that the User object also has a DefaultCurrencyIsoCode field,
which is the default currency for that user. For example, a user in France could have a DefaultCurrencyIsoCode set to Euros,
and that would be their default currency in the application. However, the User object could have currency custom fields stored in a
different currency, that will correspond to the organization currency at the time the user record is created.
API Field Properties
Fields on objects represent the details of each object and are analogous to columns in a database table. Each field on each object has
one or more of the following properties:
Property
Description
Autonumber
The API creates an autonumber.
Create
Value for the field can be specified during create using the API.
Defaulted on create
When created, a default value is supplied if no other value is specified.
Delete
Value for the field can be deleted using the API.
Filter
Can be used as filter criteria in a SOQL query FROM or WHERE clause.
Group
Can be included in the GROUP BY clause of a SOQL query (true) or not (false). Available in API
version 18.0 and later.
idLookup
Can be used to specify a record in an upsert call. The Id field of each object has this property and
some Name fields. There are exceptions, so check for the property in any object you wish to upsert.
Nillable
The field can contain a null value.
Query
The field can be queried with SOQL using the API.
71
Object Basics
Relationships Among Objects
Property
Description
Restricted picklist
A picklist whose values are restricted to those values defined by a Salesforce admin. Users can’t load
unapproved values through the API.
Retrieve
Value of the field can be retrieved using the API.
Sort
Indicates whether a query can sort on this field (true) or not (false).
Update
Can be updated using the API.
Relationships Among Objects
Relationships associate objects with other objects. For example, a relationship can link a custom object to standard object in a related
list, such as linking a custom object called Bugs to cases to track product defects associated with customer cases. To view the parent
and child relationships among standard objects, see the ERD diagrams in Data Model.
Note:
• You can use parent-child relationships in SOQL queries. For more information, see Relationship Queries in the Salesforce SOQL
and SOSL Reference Guide.
• Only lookup, external lookup, and indirect lookup relationships are available for external objects. No other relationship types
are supported. See “External Object Relationships” in the Salesforce Help.
You can define different types of relationships by creating custom relationship fields on an object. The differences between relationship
types include how they handle data deletion, record ownership, security, and required fields in page layouts:
• Master-Detail (1:n) — A parent-child relationship in which the master object controls certain behaviors of the detail object:
– When a record of the master object is deleted, its related detail records are also deleted.
– The Owner field on the detail object is not available and is automatically set to the owner of its associated master record.
Custom objects on the detail side of a master-detail relationship cannot have sharing rules, manual sharing, or queues, as these
require the Owner field.
– The detail record inherits the sharing and security settings of its master record.
– The master-detail relationship field is required on the page layout of the detail record.
– By default, records can’t be reparented in master-detail relationships. Administrators can, however, allow child records in
master-detail relationships on custom objects to be reparented to different parent records by selecting the Allow
reparenting option in the master-detail relationship definition.
You can define master-detail relationships between custom objects or between a custom object and a standard object. However,
the standard object cannot be on the detail side of a relationship with a custom object. In addition, you cannot create a master-detail
relationship in which the User or Lead objects are the master.
When you define a master-detail relationship, the custom object on which you are working is the detail side. Its data can appear as
a custom related list on page layouts for the other object.
• Many-to-many — You can use master-detail relationships to model many-to-many relationships between any two objects. A
many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa.
For example, you may have a custom object called “Bug” that relates to the standard case object such that a bug could be related
to multiple cases and a case could also be related to multiple bugs. To create a many-to-many relationship, simply create a custom
junction object with two master-detail relationship fields, each linking to the objects you want to relate. See the Salesforce online
help for details.
72
Object Basics
Relabeling Fields and Tabs and the API
Custom objects with two master-detail relationships are supported in API version 11 and later.
Starting in API version 34.0, the JunctionIdList field type lets you manipulate the many-to-many relationship of an entity
directly. You no longer need to manipulate underlying junction entity records. JunctionIdList fields can be queried and
updated like any other field on the entity. Queries or updates to JunctionIdList fields act as queries or updates to the underlying
junction entity records. Fields of type JunctionIdList appear in the WSDL as an unbounded array of type ID.
JunctionIdList is implemented in the Task and Event objects.
• Lookup (1:n) — This type of relationship links two objects together, but has no effect on deletion or security. Unlike master-detail
fields, lookup fields are not automatically required. When you define a lookup relationship, data from one object can appear as a
custom related list on page layouts for the other object. See the Salesforce online help for details.
To create relationships, use the user interface or Salesforce Metadata API.
Relabeling Fields and Tabs and the API
The user interface allows you to change the labels on some fields and tabs. Although you cannot relabel fields or tabs using the API, you
can retrieve the current values. To do so, issue a describeSObjects() call and inspect the label field of the returned
DescribeSObjectResult.
Tooling API Objects in the Enterprise WSDL
Some objects used by the Tooling API are included in the Enterprise and Partner WSDL. Use the objects from these WSDLs instead of
the Tooling WSDL if you need field-level security.
The following Tooling API objects are exposed in the Enterprise and Partner WSDL.
• DataType
• EntityDefinition
• EntityParticle
• FieldDefinition
• PicklistValueInfo
• Publisher
• SearchLayout
• Service
• ServiceDataType (Reserved for future use.)
• ServiceFieldDataType (Unavailable in version 35.0 and later. Do not use.)
• RelationshipDomain
• RelationshipInfo
• UserEntityAccess
• UserFieldAccess
• WsdlDataType (Reserved for future use.)
• XmlSchema (Reserved for future use.)
For more information, use the Tooling API Developer’s Guide.
73
Object Basics
Force.com AppExchange Object Prefixes and the API
Force.com AppExchange Object Prefixes and the API
If you have an unmanaged package and a managed package version becomes available, the API names of custom fields, custom objects,
and Scontrol objects in the package change. A namespace prefix is added to each component to make it unique: name__c becomes
prefix__name__c. To move from an unmanaged package to a managed package version of the same application, export your
data, uninstall the old package, and install the new package. Then review the name changes and import your data with the relevant
mapping. For details, see the ISVforce Guide.
Custom Objects
In the user interface, you can extend your organization’s data by defining custom objects. Custom objects are custom database tables
that allow you to store information unique to your organization. For custom objects, the custom flag—a Boolean field in the describe
results—is true.
Client applications with sufficient permissions can invoke API calls on existing custom objects. You can create custom objects with the
user interface, or by using the metadata WSDL with a client application or using the Force.com IDE. For more information about using
the metadata WSDL to create custom objects, see the Force.com Metadata API Developer's Guide. For more information about the Force.com
IDE, see Salesforce Developers.
Use the following topics to understand how the API interacts with custom objects and fields:
• Naming Conventions for Custom Objects
• Relationships Among Custom Objects
• Audit Fields for Custom Objects
• Sharing and Custom Objects
• Required Fields in Custom Objects
• Managed Packages and API Names
Naming Conventions for Custom Objects
Your Salesforce administrator defines an associated name field for each custom object during setup. Custom objects must have unique
names within your organization.
In the API, the names of custom objects include a suffix of two underscores followed by a lowercase “c” . For example, a custom object
labeled “Issue” in the Salesforce user interface is Issue__c in that organization’s WSDL.
Relationships change the naming convention. See Relationships Among Custom Objects for more information.
For a custom object record to appear in the Salesforce user interface, its name field must be populated. If you use the API to create a
custom object record that doesn’t have a name, the record’s ID is used as its name.
Relationships Among Custom Objects
Custom objects relate to other objects and behave just like standard objects, as described in Relationships Among Objects. For example,
cascading deletes are supported in custom objects in a Master-Detail relationship.
Custom objects require special treatment so that they can participate in Relationship Queries. For the relationship field name of a custom
object, __r is appended to the name to create the ID. Also, __c is appended to the name to create the parent object pointer. For
example, if the relationship field name is MyRel, the name of the ID becomes MyRelId__r, the parent object pointer becomes
74
Object Basics
Custom Objects
MyRel__c, and the relationship name is MyRel__r. For more information, see Understanding Relationship Names, Custom Objects,
and Custom Fields in the Salesforce SOQL and SOSL Reference Guide.
The following table summarizes whether a standard object can be:
• The master in a master-detail relationship with a custom object. Master-detail relationships involve cascading deletes and sharing
rules that the parent controls.
• The lookup in a lookup relationship on a custom object. In other words, whether a custom object can have a lookup to the standard
object.
• Extended with custom fields.
Standard Object
Master-Detail
Lookup
Custom Fields
Account
Yes
Yes
Yes
Campaign
Yes
Yes
Yes
Case
Yes
Yes
Yes
Contact
Yes
Yes
Yes
Contract
Yes
Yes
Yes
Event
No
No
Yes
Lead
No
No
Yes
Opportunity
Yes
Yes
Yes
Product2
No
Yes
Yes
Solution
Yes
Yes
Yes
Task
No
No
Yes
User
No
Yes
Yes
Custom objects can also have many-to-many relationships with other custom objects or standard objects. A many-to-many relationship
allows each record of one object to be linked to multiple records from another object and vice versa. For more information, see Relationships
Among Objects.
Audit Fields for Custom Objects
Custom objects can have the same audit fields as standard objects. When you create a custom object, the four audit fields, CreatedById,
CreatedDate, LastModifiedById, and LastModifiedDate, are created and populated for the object. These fields are
read only. If you import data into Salesforce custom objects and want to retain the audit field values from the source system, you can
set the values when you create the custom objects. The only audit field you cannot set a value for is systemModstamp. Your
organization must be API enabled, and you must have the “Modify All Data” permission.
1. From Setup, enter User Interface in the Quick Find box, then select User Interface under Customize.
2. Under Setup, select Enable “Set Audit Fields upon Record Creation” and “Update Records with Inactive Owners” User
Permissions.
3. In the permission set or profile that you want to set audit fields with, enable the permission Set Audit Fields upon Record Creation.
4. Using the API, create a record and set its audit fields.
75
Object Basics
External Objects
Note these restrictions:
• CreatedDate can't be greater than the LastModifiedDate.
• You can't set any date field to be greater than the current time.
For more information about audit fields, see System Fields.
Sharing and Custom Objects
A sharing rule object is created for each custom object that does not have a master-detail relationship to another object. They are similar
to standard object sharing rules, for example AccountOwnerSharingRule. If the user creating the custom object has the “Manage Sharing”
permission, a sharing rule object is automatically created for it.
Apex sharing reasons can be retrieved describing the custom object's sharing object, and examining the information in the rowCause
field. The name of a sharing object for each custom object is of the form: MyObjectName__Share, similar to AccountShare and other
standard object sharing objects.
Tags and Custom Objects
When a custom object is created, a Tag object related to it is also created. These object names are of the form: MyObjectName__Tag,
similar to AccountTag and other standard object tag objects.
Required Fields in Custom Objects
In the user interface, you can mark a custom field as required, and this rule is also enforced in the API. Each custom field has a
isRequired field, with a data type boolean. The default value is false. If set to true, each request supplies a value (or leaves
the current value) to this field. Otherwise, the request fails. When the value is set to true, the next time the field is edited or created,
the validation applies. If no value is supplied or default value specified, the request fails.
To edit the isRequired field, you must log in as a user with the “Customize Application” permission.
If you change a custom object field to be required in an existing client application or integration, be sure that a value is supplied for that
field. For example, if the custom picklist field Education Level on the contact object is required, supply a default value for that
custom field. If a required field does not have a specified or default value, an error with the status code REQUIRED_FIELD_MISSING
is returned.
Managed Packages and API Names
If you have an unmanaged package and a managed package version becomes available, the API names of custom fields, custom objects,
and Scontrol objects in the package change. A namespace prefix is added to each component to make it unique: name__c becomes
prefix__name__c. To move from an unmanaged package to a managed package version of the same application, export your
data, uninstall the old package, and install the new package. Then review the name changes and import your data with the relevant
mapping. For details, see the ISVforce Guide.
External Objects
External objects are supported in API version 32.0 and later. External objects are similar to custom objects, but external object record
data is stored outside your Salesforce organization. For example, perhaps you have data that’s stored on premises in an enterprise
resource planning (ERP) system. Instead of copying the data into your org, you can use external objects to access the data in real time
via web service callouts.
76
Object Basics
External Objects
External objects are available with Salesforce Connect and Files Connect. Each external object is associated with an external data source
definition in your Salesforce organization.
An external data source specifies how to access an external system. Salesforce Connect uses external data sources to access data that's
stored outside your Salesforce organization. Files Connect uses external data sources to access third-party content systems. External data
sources have associated external objects, which your users and the Force.com platform use to interact with the external data and content.
By accessing record data on demand, external objects always reflect the current state of the external data. You don't have to manage a
copy of that data in Salesforce, so you're not wasting storage and resources keeping data in sync.
External objects are best used when you have a large amount of data that you can’t or don’t want to store in your Salesforce organization,
and you only need to use a small amount of data at any one time.
See “Define External Objects” in the Salesforce Help for how to create and modify external objects.
Naming Conventions for External Objects
Object names must be unique across all standard, custom, and external objects in the org.
In the API, the names of external objects are identified by a suffix of two underscores immediately followed by a lowercase “x” character.
For example, an external object named “ExtraLogInfo” in the Salesforce user interface is seen as ExtraLogInfo__x in that
organization's WSDL.
We recommend that you make object labels unique across all standard, custom, and external objects in the org.
External Object Relationships
External objects support standard lookup relationships, which use the 18-character Salesforce record IDs to associate related records
with each other. However, data that’s stored outside your Salesforce org often doesn’t contain those record IDs. Therefore, two special
types of lookup relationships are available for external objects: external lookups and indirect lookups. See ”External Object Relationships”
in the Salesforce Help for details.
Feature Support for External Objects
Most of the Salesforce features that support custom objects also support external objects. However, there are exceptions, and some
features have special limitations and considerations for external objects. See the following topics in the Salesforce Help.
• Salesforce Compatibility Considerations for Salesforce Connect—All Adapters
• Considerations for Salesforce Connect—All Adapters
Salesforce Connect Adapters
Salesforce Connect uses a protocol-specific adapter to connect to an external system and access its data. This table describes the available
adapters.
77
Object Basics
External Objects
Salesforce
Connect
Adapter
Description
Where to Find Callout Limits
Cross-org
Uses the Force.com REST API to access data that’s stored No callout limits. However, each callout counts toward
in other Salesforce orgs.
the API usage limits of the provider org.
Salesforce Help: API Usage Considerations for Salesforce
Connect—Cross-Org Adapter
Salesforce Limits Quick Reference Guide: API Requests Limits
OData 2.0
OData 4.0
Uses Open Data Protocol to access data that’s stored
outside Salesforce. The external data must be exposed
via OData producers.
Salesforce Help: General Limits for Salesforce
Connect—OData 2.0 and 4.0 Adapters
Custom adapter You use the Apex Connector Framework to develop your Apex Developer Guide: Callout Limits and Limitations
created via Apex own custom adapter when the other available adapters Apex Developer Guide: Execution Governors and Limits
aren’t suitable for your needs.
A custom adapter can obtain data from anywhere. For
example, some data can be retrieved from anywhere in
the Internet via callouts, while other data can be
manipulated or even generated programmatically.
For more information about Salesforce Connect, see “Salesforce Connect” in the Salesforce Help.
For details on using the Apex Connector Framework, see “Salesforce Connect” and “DataSource Namespace” in the Force.com Apex Code
Developer’s Guide.
78
CHAPTER 3
In this chapter ...
API Call Basics
API calls represent specific operations that your client applications can invoke at runtime to perform
tasks, for example:
•
Characteristics of API
Calls
•
Factors that Affect
Data Access
• Add, update, and delete data.
Package Version
Settings
• Run utilities to perform administration tasks.
•
• Query data in your organization.
• Obtain metadata about your data.
Using your development environment, you can construct Web service client applications that use
standard Web service protocols to programmatically:
• Log in to the login server (login()) and receive authentication information to be used for
subsequent calls
• Query your organization’s information (query(), queryAll(), queryMore(), and
retrieve() calls)
• Perform text searches across your organization’s information (search() call)
• Create, update, and delete data (create(), merge(), update(), upsert(), delete(),
and undelete() calls)
• Perform administrative tasks, such as retrieving user information (getUserInfo() call), changing
passwords (setPassword() and resetPassword() calls), and getting the system time
(getServerTimestamp() call)
• Replicate data locally (getDeleted() and getUpdated() calls)
• Obtain and navigate metadata about your organization’s data (describeGlobal(),
describeSObject(), describeSObjects(), describeLayout(), and
describeTabs() calls)
• Work with approval processes (process())
• Return category groups and categories from your organization
(describeDataCategoryGroups() and
describeDataCategoryGroupStructures()).
See Core Calls, Describe Calls, and Utility Calls for complete details about each call.
79
API Call Basics
Characteristics of API Calls
Characteristics of API Calls
All API calls are:
• Service Requests and Responses—Your client application prepares and submits a service request to the Force.com Web Service
via the API, the Force.com Web Service processes the request and returns a response, and the client application handles the response.
• Synchronous—Once the API call is invoked, your client application waits until it receives a response from the service. Asynchronous
calls are not supported.
• Committed Automatically Versus Rollback on Error—By default, every operation that writes to a Salesforce object is committed
automatically. This is analogous to the AUTOCOMMMIT setting in SQL. For create(), update(), and delete() calls that
attempt to write to multiple records for an object, the write operation for each record is treated as a separate transaction. For example,
if a client application attempts to create two new accounts, they’re created using mutually exclusive insert operations that succeed
or fail individually, not as a group.
For API version 20.0 and later, there is an AllOrNoneHeader header that allows a call to roll back all changes unless all records are
processed successfully. This header is supported by the create(), delete(), undelete(), update(), and upsert()
calls.
Note: The default behavior means that client applications may need to handle some failures: for example, if you create an
opportunity that has shipments (a custom object), and the opportunity line item gets created but the shipment creation fails, if
your business rules required all opportunities be created with shipment, your client application would need to roll back the
opportunity creation. The easiest way to do this is to use AllOrNoneHeader.
Factors that Affect Data Access
When using the API, the following factors affect access to your organization’s data:
Access
Your organization must be enabled for API access.
Objects may not be available until you contact Salesforce and request access. For example Territory is visible only if territory
management has been enabled in the application. Such requirements are in the “Usage” section for each object.
Sometimes a feature must be used once before objects related to it can be accessed with the API. For example, the recordTypeIds
is available only after at least one record type has been created for your organization in the user interface.
To investigate data access issues, you can start by inspecting the WSDL:
• Enterprise WSDL: The generated enterprise WSDL file contains all of the objects that are available to your organization. By using
the API, a client application can access objects that are defined in your enterprise WSDL file.
• Partner WSDL: When using the generated partner WSDL file, a client application can access objects that are returned in the
describeGlobal() call.
Object-Level and Field-Level Security
The API respects object-level and field-level security configured in the user interface. You can access objects and fields only if the
logged-in user's permissions and access settings allow such access. For example, fields that are not visible to a given user are not
returned in a query() or describeSObjects() call. Similarly, read-only fields can't be updated.
User Permissions
A user attempting to access the API must have the permission “API Enabled” selected. It’s selected by default.
Your client application logs in as a user called a logged-in user. The logged-in user's permissions grant or deny access to specific
objects and fields in your organization:
80
API Call Basics
Factors that Affect Data Access
• Read—Users can only view objects of this type.
• Create—Users can read and create objects of this type.
• Edit—Users can read and update objects of this type.
• Delete—Users can read, edit, and delete objects of this type.
User permissions do not affect field-level security. If field-level security specifies that a field is hidden, users with “Read” on that object
can view only those fields that are not hidden on the record. In addition, users with “Read” on an object can view only those records
that sharing settings allow. The one exception is the “Edit Read Only Fields” permission, which gives users the ability to edit fields
marked as read only via field-level security.
Sharing
For most API calls, data that is outside of the logged-in user’s sharing model is not returned. Users are granted the most permissive
access that is available to them, either through organization-wide defaults or manual record sharing, just as in the application.
User Permissions that Override Sharing
• View All—Users can view all records associated with this object, regardless of sharing settings.
• Modify All—Users can read, edit, delete, transfer, and approve all records associated with this object, regardless of sharing
settings.
• Modify All Data—users can read, edit, delete, transfer, and approve all records regardless of sharing settings. This permission
is not an object-level permission, unlike “View All” and “Modify All.”
To protect the security of your data, give the logged-in user only the permissions needed to successfully execute all the calls made
by the application. For large integration applications, “Modify All Data” may speed up call response times. If you are loading a large
number of records, use the Bulk API instead.
Related Objects
Some objects depend on other objects for permission. For example, AccountTeamMember follows sharing on the associated
permission-assigned object such as the Account record. Similarly, a Partner depends on the permissions in the associated .
Ownership changes to a record do not automatically cascade to related records. For example, if ownership changes for a given
Account, ownership does not then automatically change for any Contract associated with that Account—each ownership change
must be made separately and explicitly by the client application.
Object Properties
To create an object with the create() call, the object's createable attribute must be set to true. To determine what
operations are allowed on a given object, your client application can invoke the describeSObjects() call on the object and
inspect the properties in the DescribeSObjectResult.
Note: replicatable allowsgetUpdated() and getDeleted() calls.
Page Layouts and Record Types
Requirements defined in the Salesforce user interface for page layouts and record types are not enforced by the API:
• Page layouts can specify whether a given field is required, but the API does not enforce such layout-specific field restrictions or
validations in create() and update() calls. It’s up to the client application to enforce any such constraints, if applicable.
• Record types can control which picklist values can be chosen in a given record and which page layouts users with different
profiles can see. However, such rules that are configured and enforced in the user interface are not enforced in the API. For
example, the API does not validate whether the value in a picklist field is allowed per any record type restrictions associated with
the profile of the logged-in user. Similarly, the API does not prevent a client application from adding data to a particular field
simply because that field does not appear in a layout associated with the profile of the logged-in user.
Referential Integrity
To ensure referential integrity, the API forces or prevents certain behaviors:
• ID values in reference fields are validated in create() and update() calls.
81
API Call Basics
Package Version Settings
• If a client application deletes a record, then its children are automatically deleted as part of the call if the cascadeDelete
property on ChildRelationship for that child has a value of true. For example, if a client application deletes an Opportunity,
then any associated OpportunityLineItem records are also deleted. However, if an OpportunityLineItem is not deletable or is
currently being used, then deletion of the parent Opportunity fails. For example, if a client application deletes an Invoice_Statement,
then any associated Line_Item records are also deleted. However, if a Line_Item is not deletable or is currently being used, then
deletion of the parent Invoice_Statement fails. Use DescribeSObjectResult to view the ChildRelationship value if you want to be
sure what will be deleted.
There are certain exceptions that prevent the execution of a cascadeDelete. For example, you can't delete an account if
it has associated cases, if it has related opportunities that are owned by other users, or if associated contacts are enabled for the
Customer Portal. In addition, if you attempt to delete an account that has closed/won opportunities owned by you or has active
contracts, then the delete request for that record will fail.
Package Version Settings
When your API client is referencing components in managed packages, you can specify the version of each installed package that you
want to reference for your integration. This allows your API client to continue to function with specific, known behavior even when you
install subsequent versions of a package. You can use the PackageVersionHeader SOAP header to set different package versions for
different calls, if necessary.
A package version is a number that identifies the set of components uploaded in a package. The version number has the format
majorNumber.minorNumber.patchNumber (for example, 2.1.3). The major and minor numbers increase to a chosen value
during every major release. The patchNumber is generated and updated only for a patch release. Publishers can use package versions
to evolve the components in their managed packages gracefully by releasing subsequent package versions without breaking existing
customer integrations using the package.
Default package versions for API calls provide fallback settings if package versions are not provided by an API call. Many API clients do
not include package version information, so the default settings maintain existing behavior for these clients.
You can specify the default package versions for enterprise API and partner API calls. The enterprise WSDL is for customers who want to
build an integration with their Salesforce organization only. It is strongly typed, which means that calls operate on objects and fields
with specific data types, such as int and string. The partner WSDL is for customers, partners, and ISVs who want to build an
integration that can work across multiple Salesforce organizations, regardless of their custom objects or fields. It is loosely typed, which
means that calls operate on name-value pairs of field names and values instead of specific data types.
You must associate the enterprise WSDL with specific package versions to maintain existing behavior for clients. There are options for
setting the package version bindings for an API call from client applications using either the enterprise or partner WSDL. The package
version information for API calls issued from a client application based on the enterprise WSDL is determined by the first match in the
following settings.
1. The PackageVersionHeader SOAP header.
2. The SOAP endpoint contains a URL with a format of serverName/services/Soap/c/api_version/ID where
api_version is the version of the API, such as 39.0, and ID encodes your package version selections when the enterprise WSDL
was generated.
3. The default enterprise package version settings.
The partner WSDL is more flexible as it is used for integration with multiple organizations. If you choose the Not Specified option for a
package version when configuring the default partner package versions, the behavior is defined by the latest installed package version.
This means that behavior of package components, such as an Apex trigger, could change when a package is upgraded and that change
would immediately impact the integration. Subscribers may want to select a specific version for an installed package for all partner API
calls from client applications to ensure that subsequent installations of package versions do not affect their existing integrations.
The package version information for partner API calls is determined by the first match in the following settings.
82
API Call Basics
Package Version Settings
1. The PackageVersionHeader SOAP header.
2. An API call from a Visualforce page uses the package versions set for the Visualforce page.
3. The default partner package version settings.
To configure default package versions for API calls:
1. From Setup, enter API in the Quick Find box, then select API.
2. Click Configure Enterprise Package Version Settings or Configure Partner Package Version Settings. These links are only
available if you have at least one managed package installed in your organization.
3. Select a Package Version for each of your installed managed packages. If you are unsure which package version to select,
you should leave the default selection.
4. Click Save.
Note: Installing a new version of a package in your organization does not affect the current default settings.
83
CHAPTER 4
In this chapter ...
•
Error Handling for
Session Expiration
•
More About Error
Handling
Error Handling
The API calls return error data that your client application can use to identify and resolve runtime errors.
If an error occurs during the invocation of most API calls, then the API provides the following types of
error handling:
• For errors resulting from badly formed messages, failed authentication, or similar problems, the API
returns a SOAP fault message with an associated ExceptionCode.
• For most calls, if the error occurs because of a problem specific to the query, the API returns an Error.
For example, if a create() request contains more than 200 objects.
84
Error Handling
Error Handling for Session Expiration
Error Handling for Session Expiration
When you sign on via the login() call, a new client session begins and a corresponding unique session ID is generated. Sessions
expire automatically after a predetermined length of inactivity, which can be configured in Salesforce from Setup by clicking Security
Controls. The default is 120 minutes (two hours). If you make an API call, the inactivity timer is reset to zero.
When your session expires, the exception code INVALID_SESSION_ID is returned. If this happens, you must invoke the login() call
again.
More About Error Handling
For more information about errors, see the following topics:
• API Fault Element
• ExceptionCode
• Error
85
CHAPTER 5
In this chapter ...
•
User Authentication
•
User Profile and
Permission Sets
Configuration
•
Security Token
•
Sharing
•
Implicit Restrictions
for Objects and Fields
•
API Access in
Force.com
AppExchange
Packages
•
Outbound Port
Restrictions
Security and the API
Client applications that access your organization's Salesforce data are subject to the same security
protections that are used in the Salesforce user interface. Additional protection is available for organizations
that install Force.com AppExchange managed packages if those packages contain components that
access Salesforce via the API.
86
Security and the API
User Authentication
User Authentication
Client applications must log in using valid credentials for an organization. The server authenticates these credentials and, if valid, provides
the client application with:
• a sessionId that must be set into the session header so that all subsequent calls to the Web service are authenticated
• a URL address (serverUrl) for the client application's Web service requests
Salesforce supports only the Transport Layer Security (TLS) protocol and frontdoor.jsp. Ciphers must have a key length of at least 128
bits.
User Profile and Permission Sets Configuration
An organization's Salesforce administrator controls the availability of various features and views by configuring profiles and permission
sets, and assigning users to them. To access the API (to issue calls and receive the call results), a user must be granted the “API Enabled”
permission. Client applications can query or update only those objects and fields to which they have access via the permissions of the
logged-in user.
To create, edit, or delete a profile, from Setup, enter Profiles in the Quick Find box, then select Profiles in the Salesforce user
interface. To create, edit, or delete a permission set, from Setup, enter Permission Sets in the Quick Find box, then select
Permission Sets.
Note: The Web services WSDL files return all available objects and fields for an organization.
Security Token
When users log in to Salesforce via the user interface, the API, or a desktop client such as Salesforce for Outlook, Connect Offline, Connect
for Office, or the Data Loader, Salesforce confirms that the login is authorized as follows.
1. Salesforce checks whether the user’s profile has login hour restrictions. If login hour restrictions are specified for the user’s profile,
any login outside the specified hours is denied.
2. If the user has the “Two-Factor Authentication for User Interface Logins” permission, Salesforce prompts the user for a second form
of authentication upon logging in. If the user’s account isn’t already connected to a mobile authenticator app such as Salesforce
Authenticator, Salesforce first prompts the user to connect the app.
3. If the user has the “Two-Factor Authentication for API Logins” permission and has connected an authenticator app to the account,
Salesforce returns an error if the user uses the standard security token. The user has to enter a verification code (time-based one-time
password) generated by the authenticator app instead.
4. Salesforce then checks whether the user’s profile has IP address restrictions. If IP address restrictions are defined for the user’s profile,
logins from an undesignated IP address are denied, and logins from a specified IP address are allowed. If the Enforce login IP ranges
on every request session setting is enabled, the IP address restrictions are enforced for each page request, including requests from
client applications.
5. If profile-based IP address restrictions are not set, Salesforce checks whether the user is logging in from a device used to access
Salesforce before.
• If the user’s login is from a device and browser that Salesforce recognizes, the login is allowed.
• If the user’s login is from an IP address in your org’s trusted IP address list, the login is allowed.
• If the user’s login is not from a trusted IP address or a device and browser Salesforce recognizes, the login is blocked.
87
Security and the API
Sharing
Whenever a login is blocked or returns an API login fault, Salesforce has to verify the user’s identity:
• For access via the user interface, the user is prompted to verify using Salesforce Authenticator (version 2 or later), or to enter a
verification code.
Note: Users aren’t asked for a verification code the first time they log in to Salesforce.
• For access via the API or a client, users must add their security token to the end of their password to log in. Or, if “Two-Factor
Authentication on API Logins” is set on the user profile, users enter a verification code generated by an authenticator app.
A security token is an automatically generated key from Salesforce. For example, if a user’s password is mypassword, and the
security token is XXXXXXXXXX, the user must enter mypasswordXXXXXXXXXX to log in. Or some client applications have a
separate field for the security token.
Users can obtain their security token by changing their password or resetting their security token via the Salesforce user interface.
When a user changes a password or resets a security token, Salesforce sends a new security token to the email address on the user’s
Salesforce record. The security token is valid until the user resets the security token, changes a password, or has a password reset.
Tip: Before you access Salesforce from a new IP address, we recommend that you get your security token from a trusted
network using Reset My Security Token.
For more information about tokens, see “Reset Your Security Token” in the Salesforce online help.
When a user's password is changed, the user's security token is automatically reset. The user will experience a blocked login until he or
she adds the automatically-generated security token to the end of his or her password or enters the new password after the administrator
adds their IP address to the organization's list of trusted IP addresses.
If Single Sign-On (SSO) is enabled for your organization, users who access the API or a desktop client cannot log in to Salesforce unless
their IP address is included on your organization's list of trusted IP addresses or on their profile, if their profile has IP address restrictions
set. Futhermore, the delegated authentication authority usually handles login lockout policies for users with the “Uses Single Sign-On”
permission. However, if the security token is enabled for your organization, then your organization's login lockout settings determine
the number of times a user can attempt to log in with an invalid security token before being locked out of Salesforce. For more information,
see “Setting Login Restrictions” and “Setting Password Policies” in the online help.
Sharing
In the Salesforce user interface, sharing refers to the act of granting read or write access to a user or group so that they can view or edit
a record owned by other users, if the default organization access levels do not otherwise permit such access. All API calls respect the
sharing model.
The following table describes the types of access levels.
API Value
Salesforce User
Interface Label
API Picklist Label
Description
None
Private
Private
Only the record owner and Users above that role in
the hierarchy can view and edit the record.
Read
Read Only
Read Only
All Users and Groups can view the record but not edit
it. Only the owner and users above that role in the
hierarchy can edit the record.
Edit
Read/Write
Read/Write
All Users and Groups can view and edit the record.
88
Security and the API
API Value
Implicit Restrictions for Objects and Fields
Salesforce User
Interface Label
API Picklist Label
Description
ReadEditTransfer Read/Write/Transfer Read/Write/Transfer All Users and Groups can view, edit, delete, and
transfer the record. (Only available for cases and leads
as an organization-wide default setting.)
All
Full Access
ControlledByParent Controlled by
Parent
Owner
All Users and Groups can view, edit, transfer, delete,
and share the record. (Only available for campaigns
as an organization-wide default setting.)
Controlled By
Parent
(Contacts only.) All Users and Groups can perform an
action (such as view, edit, or delete) on the contact
based on whether he or she can perform that same
action on the record associated with it.
Not all access levels are available for every object. See the Fields table for each object to learn which access levels are available, as well
as other sharing details specific to that object.
For more information about sharing in general, see the Salesforce online help.
Note: In the API, you can create and update objects such as AccountShare and OpportunityShare that define sharing entries for
records.
Implicit Restrictions for Objects and Fields
Certain objects can be created or deleted only in the Salesforce user interface. Other objects are read-only—client applications cannot
create(), delete(), or update() such objects. Similarly, certain fields within some objects can be specified on create()
but not on update(). Other fields are read-only—client applications cannot specify field values in create() or update() calls.
For more information, see the respective object descriptions in Object Basics.
API Access in Force.com AppExchange Packages
The API allows access to objects and calls based on the permissions of the user who logs into the API. To prevent security issues from
arising when installed packages have components that access data via the API, Salesforce provides additional security:
• When a developer creates an AppExchange package with components that access the API, the developer can restrict the API access
for those components.
• When an administrator installs an AppExchange package, the administrator can accept or reject the access. Rejecting the access
cancels the installation.
• After an administrator installs a package, the administrator can restrict the API access of components in the package that access the
API.
Editing API access for a package is done in the Salesforce user interface. For more information, see “Manage API and Dynamic Apex
Access in Packages” in the Salesforce online help.
API access for a package affects the API requests originating from components within the package; it determines the objects that the
API requests can access. If the API access for a package is not defined, then the objects that the API requests have access to are determined
by the user's permissions.
89
Security and the API
API Access in Force.com AppExchange Packages
The API access for a package never allows users to do more than the permissions granted to the user. API access in a package only
reduces what the user's permissions allow.
Choosing Restricted for the API Access setting in a package affects the following:
• API access in a package overrides the following user permissions:
– Author Apex
– Customize Application
– Edit HTML Templates
– Edit Read Only Fields
– Manage Billing
– Manage Call Centers
– Manage Categories
– Manage Custom Report Types
– Manage Dashboards
– Manage Letterheads
– Manage Package Licenses
– Manage Public Documents
– Manage Public List Views
– Manage Public Reports
– Manage Public Templates
– Manage Users
– Transfer Record
– Use Team Reassignment Wizards
– View Setup and Configuration
– Weekly Export Data
• If Read, Create, Edit, and Delete access are not selected in the API access setting for objects, users do not have access to
those objects from the package components, even if the user has the “Modify All Data” and “View All Data” permissions.
• A package with Restricted API access can’t create new users.
• Salesforce denies access to Web service and executeanonymous requests from an AppExchange package that has
Restricted access.
The following considerations also apply to API access in packages:
• Workflow rules and Apex triggers fire regardless of API access in a package.
• If a component is in more than one package in an organization, API access is unrestricted for that component in all packages in the
organization regardless of the access setting.
• If Salesforce introduces a new standard object after you select restricted access for a package, access to the new standard object is
not granted by default. You must modify the restricted access setting to include the new standard object.
• When you upgrade a package, changes to the API access are ignored even if the developer specified them. This ensures that the
administrator installing the upgrade has full control. Installers should carefully examine the changes in package access in each
upgrade during installation and note all acceptable changes. Then, because those changes are ignored, the administrator should
manually apply any acceptable changes after installing an upgrade.
90
Security and the API
Outbound Port Restrictions
• S-controls are served by Salesforce and rendered inline in Salesforce. Because of this tight integration, there are several means by
which an s-control in an installed package could escalate its privileges to the user’s full privileges. In order to protect the security of
organizations that install packages, s-controls have the following limitations:
– For packages you are developing (that is, not installed from AppExchange), you can only add s-controls to packages with the
default Unrestricted API access. Once a package has an s-control, you cannot enable Restricted API access.
– For packages you have installed, you can enable access restrictions even if the package contains s-controls. However, access
restrictions provide only limited protection for s-controls. Salesforce recommends that you understand the JavaScript in an
s-control before relying on access restriction for s-control security.
– If an installed package has Restricted API access, upgrades will be successful only if the upgraded version does not contain
any s-controls. If s-controls are present in the upgraded version, you must change the currently installed package to
Unrestricted API access.
To manage API access to packages, see “Manage API and Dynamic Apex Access in Packages” in the Salesforce online help.
Note: XML-RPC requests that originate from restricted packages will be denied access.
Outbound Port Restrictions
For security reasons, Salesforce restricts the outbound ports you may specify to one of the following:
• 80: This port only accepts HTTP connections.
• 443: This port only accepts HTTPS connections.
• 1024–66535 (inclusive): These ports accept HTTP or HTTPS connections.
The port restriction applies to any feature where a port is specified, for example outbound messages, AJAX proxy, or single-sign on.
91
CHAPTER 6
In this chapter ...
•
Obtaining the Partner
WSDL File
•
Calls and the Partner
WSDL
•
Objects, Fields, and
Field Data and the
Partner WSDL
•
Queries and the
Partner WSDL
•
Namespaces in the
Partner WSDL
•
Package Versions
and the Partner
WSDL
•
User Interface
Themes
•
Examples Using the
Partner WSDL
Using the Partner WSDL
The API provides two WSDLs to choose from:
• Enterprise Web Services WSDL—Used by enterprise developers to build client applications for a
single Salesforce organization. The enterprise WSDL is strongly typed, which means that it contains
objects and fields with specific data types, such as int and string. Customers who use the
enterprise WSDL document must download and re-consume it when changes are made to the
custom objects or fields in their org or when they want to use a different version of the API. To access
the current WSDL for your organization, log in to your Salesforce organization and from Setup, enter
Generate Enterprise WSDL in the Quick Find box, then select Generate Enterprise
WSDL.
• Partner Web Services WSDL—Used for client applications that are metadata-driven and dynamic
in nature. It is particularly—but not exclusively—useful to Salesforce partners who are building
client applications for multiple organizations. As a loosely typed representation of the Salesforce
data model that works with name-value pairs of field names and values instead of specific data types,
it can be used to access data within any organization. This WSDL is most appropriate for developers
of clients that can issue a query call to get information about an object before the client acts on the
object. The partner WSDL document needs to be downloaded and consumed only once per version
of the API. To access the current WSDL for your organization, log in to your Salesforce organization
and from Setup, enter Generate Partner WSDL in the Quick Find box, then select
Generate Partner WSDL.
In general, the enterprise WSDL is more straightforward to use, while the partner WSDL is more flexible
and dynamically adaptable to different organizations, allowing you to write a single application that can
be used for multiple users and multiple organizations.
92
Using the Partner WSDL
Obtaining the Partner WSDL File
Obtaining the Partner WSDL File
To use the partner WSDL, download a copy of the file using either of the following methods:
• Obtain it from your organization’s Salesforce administrator, or
• Generate from Setup in Salesforce (enter API in the Quick Find box, then select API) according to the instructions in Step 2:
Generate or Obtain the Web Service WSDL.
While the enterprise WSDL file needs to be regenerated whenever custom fields or custom objects are added to an organization’s
Salesforce information, the partner WSDL file remains the same regardless of underlying changes in the organization’s Salesforce data.
Calls and the Partner WSDL
The partner WSDL file defines exactly the same API calls found in the enterprise WSDL file. A client application using the partner WSDL
will likely use the following API calls to determine an organization’s metadata:
Task / Call
Description
describeGlobal()
Retrieves a list of available objects for your organization’s data.
describeLayout()
Retrieves metadata about page layouts for the specified object type.
describeSObject()
describeSObject() has been superseded by describeSObjects().
describeSObjects()
Use to obtain metadata for a given object. You can first call to retrieve a list of all objects for your
organization, then iterate through the list and use to obtain metadata about individual objects.
describeTabs()
In the user interface, users have access to standard apps (and may also have access to custom apps)
as listed in the Force.com app menu at the top of the page. Selecting a standard app or custom app
in the user interface allows the user to switch between the listed apps at any time.
To explore an organization’s metadata, a client application can:
1. Call describeGlobal() to obtain a list of available objects.
2. In the returned DescribeGlobalResult object, retrieve an array of DescribeGlobalSObjectResult objects by calling sobjects.
3. Get the sObject type name for each returned sObject by calling name on the DescribeGlobalSObjectResult objects.
4. The DescribeGlobalSObjectResult object provides some metadata about the sObject, such as whether the sObject is createable or
updateable. If you want to get more information about particular sObjects, like their fields and child relationships, call
describeSObjects() by passing it an array of the sObject type names that you’re interested in obtaining more information
about.
sObject Reference Reuse
An sObject reference can't be reused within a single operation.
Use a different reference. For example, the following code snippet creates an account and contact with a custom field and an event
using two different references:
SObject account = new com.sforce.soap.partner.sobject.wsc.SObject();
account.setType("Account");
93
Using the Partner WSDL
Objects, Fields, and Field Data and the Partner WSDL
account.setField("Name","myAccount");
account.setField("XID1__c", "1");
SObject refAcc1 = new com.sforce.soap.partner.sobject.wsc.SObject();
refAcc1.setType("Account");
refAcc1.setField("XID1__c", "1");
SObject refAcc2 = new com.sforce.soap.partner.sobject.wsc.SObject();
refAcc2.setType("Account");
refAcc2.setField("XID1__c", "1");
SObject contact = new com.sforce.soap.partner.sobject.wsc.SObject();
contact.setType("Contact");
contact.setField("LastName", "LName");
contact.setField( "XID2__c", "2");
contact.setField( "Account", refAcc1);
SObject refCon = new com.sforce.soap.partner.sobject.wsc.SObject();
contact.setType("Contact");
contact.setField( "XID2__c", "2");
SObject event = new com.sforce.soap.partner.sobject.wsc.SObject();
contact.setType("Event");
contact.setField("Subject", "myEvent");
contact.setField( "ActivityDateTime", Calendar.getInstance());
contact.setField("DurationInMinutes", 60);
contact.setField("Who", refCon);
contact.setField("What", refAcc2);
client.create(new SObject[] { account, contact, event}); // exception thrown here
Any call that takes a parameter of the form sObject[] sObjects is subject to this limitation.
Objects, Fields, and Field Data and the Partner WSDL
The enterprise WSDL file defines all the specific objects (such as Account and Contact) in a Salesforce org. In contrast, the partner WSDL
file defines a single, generic object (sObject) that represents all the objects. For a particular object, its type is defined in the name field
in the returned DescribeSObjectResult.
With the partner WSDL, your client application code handles fields as arrays of name-value pairs that represent the field data. When
referring to the name of an individual field, use the value in its name field of the Field type in the DescribeSObjectResult.
Languages vary in the way they handle name-value pairs and map typed values to the primitive XML data types defined in SOAP
messages. With the enterprise WSDL, the mapping is handled implicitly. With the partner WSDL, however, you manually manage values
and data types when building client applications. Specify the object type before you assign field values. When specifying the value of a
particular field, use a value that is valid for the field (range, format, and data type). Make sure that you understand the mapping between
data types in your programming language and XML primitive data types. See SOAPType for more information.
Queries and the Partner WSDL
When using the query() call with the partner WSDL, consider the following guidelines:
• The queryString parameter is case-insensitive. The API will accept field names in the fieldList using any combination of uppercase
and lowercase letters. However, in the QueryResult, the case of field names (both predefined and custom fields) will match exactly
94
Using the Partner WSDL
Namespaces in the Partner WSDL
the value in the name field of the Field type in the DescribeSObjectResult. It is recommended that you use the proper case when
specifying fields in the fieldList.
• For the partner WSDL, the ordering of fields in the QueryResult is determined by the field order in the fieldList, not the field order in
the WSDL file.
• The fieldList cannot contain duplicate field names. For example:
– Invalid (returns an error): "SELECT Firstname, Lastname, Firstname FROM User"
– Valid: "SELECT Firstname, Lastname FROM User"
• The QueryResult always contains all of the fields specified in the fieldList, even if some of the fields contain no data (null). Although
SOAP allows you to omit fields that contain no values in the result set, the API always returns an array containing all fields.
• If you use the partner WSDL, a query that includes ID will return the ID field twice in the SOAP XML response data. Similarly, a query
that does not include ID will return a single null ID field in the SOAP XML response data. For example, a query for SELECT ID,
FirstName, LastName FROM Contact might return a SOAP XML response with records like:
Contact 
0038000000FrjoBQRW 
0038000000FrjoBQRW 
John 
Smith 
 
This is expected behavior and something to be aware of if you are accessing the full SOAP XML response data and not using WSC
to access the web service response.
Namespaces in the Partner WSDL
In XML, every tag has a defined namespace. In the enterprise.wsdl, namespaces are handled implicitly. When using API calls
with the partner WSDL, however, you need to explicitly specify the correct namespaces for API calls, objects, and fields, and faults. This
rule applies to predefined and custom objects and fields.
For
Namespace
API Calls
urn:partner.soap.sforce.com
sObjects
urn:sobject.partner.soap.sforce.com
Fields
urn:sobject.partner.soap.sforce.com
Faults
urn:fault.partner.soap.sforce.com
Package Versions and the Partner WSDL
The partner WSDL is loosely typed. This makes it more flexible for partners who want to integrate with multiple organizations. Default
package versions for API calls provide fallback settings if package versions are not provided by an API call.
The behavior of a package in partner API calls is defined by the latest installed package version if the default value (Not Specified)
is selected for the installed package. This means that behavior of package components, such as an Apex trigger, could change when a
package is upgraded and that change would immediately impact the integration. Subscribers may want to select a specific version for
95
Using the Partner WSDL
User Interface Themes
an installed package for all partner API calls from client applications to ensure that subsequent installations of package versions do not
affect their existing integrations.
An API client developer should communicate with the administrator of the default partner package version settings if these are two
different roles in your organization and the developer recommends changing the settings. Alternatively, an API client developer can set
the package versions in the PackageVersionHeader SOAP header for the client.
A partner that is developing a package that references another package should always supply version information for the base package
in their partner API calls. This ensures that the extension package is not affected by a component being deprecated in the base package.
The package version information for partner API calls is determined by the first match in the following settings.
1. The PackageVersionHeader SOAP header.
2. An API call from a Visualforce page uses the package versions set for the Visualforce page.
3. The default partner package version settings.
To configure default package versions for API calls with the partner WSDL, see Package Version Settings.
User Interface Themes
Back in the Winter ’06 release, Salesforce started supporting multiple user interface themes, allowing
you to use different sets of icons and colors for the user interface. But these user interface themes
do not apply when your org is using Lightning Experience.
Two user interface themes match the earlier iterations of Salesforce.
EDITIONS
Available in: Salesforce
Classic and earlier
• Theme3—The “Salesforce Classic 2010 user interface theme.” This interface was previously
referred to as “Salesforce” or “new user interface theme.” You might also be familiar with it as
the Salesforce Aloha interface.
• Theme2—The “Salesforce Classic 2005 user interface theme.” This interface was previously referred to as “Salesforce Classic” or the
“classic user interface theme.”
The getUserInfo() call returns a getUserInfoResult object, which includes the userUiSkin property. This property
informs you of the user’s current user interface theme.
Use the describeQuickActions(), describeTabs(), and describeTheme() calls and their return types to get
information on theme icons and colors.
Style sheets are available to mimic the look and feel of the older user interfaces. For more information, see Styling Visualforce Pages in
the Visualforce Developer's Guide. But if you’re planning to switch to Lightning Experience, consider the Lightning Component framework,
our new UI framework. See the “Lightning Components” module in the Developer Trail - Lightning Experience Trailhead trail to learn
more.
Examples Using the Partner WSDL
This section includes examples in Java and C# for making API calls using the partner WSDL. Before running these samples, perform the
following steps in the quick start tutorial to get the partner WSDL file and generate the proxy client code for your development environment.
• Step 2: Generate or Obtain the Web Service WSDL
• Step 3: Import the WSDL File Into Your Development Platform
After you generate the proxy client code and set up your development environment, you can start writing your client application. First,
your application needs to log into the Salesforce service using the partner authentication endpoint. After a successful login, you can
execute the sample methods.
96
Using the Partner WSDL
Examples Using the Partner WSDL
For your convenience, template classes are provided, one in Java and one in C#, that make a login call. You can use them to execute the
sample methods provided later in this section.
Sample template class for Java: This sample prompts the user to enter the username, password, and authentication endpoint. Next,
it logs the user in. For the authentication endpoint URL, pass in the endpoint found in the partner WSDL file.
import
import
import
import
import
import
import
import
import
import
import
com.sforce.soap.partner.PartnerConnection;
com.sforce.soap.partner.sobject.*;
com.sforce.soap.partner.*;
com.sforce.ws.ConnectorConfig;
com.sforce.ws.ConnectionException;
com.sforce.soap.partner.Error;
java.io.FileNotFoundException;
java.io.IOException;
java.io.InputStreamReader;
java.io.BufferedReader;
java.util.*;
public class PartnerSamples {
PartnerConnection partnerConnection = null;
private static BufferedReader reader =
new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) {
PartnerSamples samples = new PartnerSamples();
if (samples.login()) {
// Add calls to the methods in this class.
// For example:
// samples.querySample();
}
}
private String getUserInput(String prompt) {
String result = "";
try {
System.out.print(prompt);
result = reader.readLine();
} catch (IOException ioe) {
ioe.printStackTrace();
}
return result;
}
private boolean login() {
boolean success = false;
String username = getUserInput("Enter username: ");
String password = getUserInput("Enter password: ");
String authEndPoint = getUserInput("Enter auth end point: ");
try {
ConnectorConfig config = new ConnectorConfig();
config.setUsername(username);
config.setPassword(password);
config.setAuthEndpoint(authEndPoint);
97
Using the Partner WSDL
Examples Using the Partner WSDL
config.setTraceFile("traceLogs.txt");
config.setTraceMessage(true);
config.setPrettyPrintXml(true);
partnerConnection = new PartnerConnection(config);
success = true;
} catch (ConnectionException ce) {
ce.printStackTrace();
} catch (FileNotFoundException fnfe) {
fnfe.printStackTrace();
}
return success;
}
//
// Add your methods here.
//
}
Sample template class for C#: This sample prompts the user to enter the username and password. Next, it logs the user in. The project
name for this sample is assumed to be TemplatePartner and the Web reference name sforce. If these values are different for
your project, make sure to change the using directive to appropriate values for your project: using
your_project_name.web_reference_name;.
using
using
using
using
using
using
using
System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Web.Services.Protocols;
System.Collections;
TemplatePartner.sforce;
namespace TemplatePartner
{
class PartnerSamples
{
private SforceService binding;
static void Main(string[] args)
{
PartnerSamples samples = new PartnerSamples();
if (samples.login())
{
// Add calls to the methods in this class.
// For example:
// samples.querySample();
}
}
private bool login()
{
Console.Write("Enter username: ");
98
Using the Partner WSDL
Examples Using the Partner WSDL
string username = Console.ReadLine();
Console.Write("Enter password: ");
string password = Console.ReadLine();
// Create a service object
binding = new SforceService();
// Timeout after a minute
binding.Timeout = 60000;
// Try logging in
LoginResult lr;
try
{
Console.WriteLine("\nLogging in...\n");
lr = binding.login(username, password);
}
// ApiFault is a proxy stub generated from the WSDL contract when
// the web service was imported
catch (SoapException e)
{
// Write the fault code to the console
Console.WriteLine(e.Code);
// Write the fault message to the console
Console.WriteLine("An unexpected error has occurred: " + e.Message);
// Write the stack trace to the console
Console.WriteLine(e.StackTrace);
// Return False to indicate that the login was not successful
return false;
}
// Check if the password has expired
if (lr.passwordExpired)
{
Console.WriteLine("An error has occurred. Your password has expired.");
return false;
}
// Set the returned service endpoint URL
binding.Url = lr.serverUrl;
// Set the SOAP header with the session ID returned by
// the login result. This will be included in all
// API calls.
binding.SessionHeaderValue = new SessionHeader();
binding.SessionHeaderValue.sessionId = lr.sessionId;
// Return true to indicate that we are logged in, pointed
// at the right URL and have our security token in place.
99
Using the Partner WSDL
Sample query and queryMore Calls
return true;
}
//
// Add your methods here.
//
}
This partner WSDL samples are:
• Sample query and queryMore Calls
• Sample search Call
• Sample create Call
• Sample update Call
Sample query and queryMore Calls
The following Java and C# examples show usage of the query() and queryMore() calls for the partner WSDL. Each example sets
the batch size of the query to 250 items returned. It then performs a query call to get the first name and last name of all contacts and
iterates through the contact records returned. For each contact, it writes the contact’s first name and last name to the output, or only
the last name if the first name is null. Finally, if there are more items to be returned by the query, as indicated by a QueryResult.done
property value of false, it calls queryMore() to get the next batch of items, and repeats the process until no more records are
returned.
To execute the sample method, you can use the corresponding Java or C# template class provided in Examples Using the Partner WSDL.
Java Example
public void querySample() {
try {
// Set query batch size
partnerConnection.setQueryOptions(250);
// SOQL query to use
String soqlQuery = "SELECT FirstName, LastName FROM Contact";
// Make the query call and get the query results
QueryResult qr = partnerConnection.query(soqlQuery);
boolean done = false;
int loopCount = 0;
// Loop through the batches of returned results
while (!done) {
System.out.println("Records in results set " + loopCount++
+ " - ");
SObject[] records = qr.getRecords();
// Process the query results
for (int i = 0; i < records.length; i++) {
SObject contact = records[i];
Object firstName = contact.getField("FirstName");
Object lastName = contact.getField("LastName");
if (firstName == null) {
System.out.println("Contact " + (i + 1) +
100
Using the Partner WSDL
Sample query and queryMore Calls
": " + lastName
);
} else {
System.out.println("Contact " + (i + 1) + ": " +
firstName + " " + lastName);
}
}
if (qr.isDone()) {
done = true;
} else {
qr = partnerConnection.queryMore(qr.getQueryLocator());
}
}
} catch(ConnectionException ce) {
ce.printStackTrace();
}
System.out.println("\nQuery execution completed.");
}
C# Example
public void querySample()
{
try
{
QueryResult qr = null;
binding.QueryOptionsValue = new sforce.QueryOptions();
binding.QueryOptionsValue.batchSize = 250;
binding.QueryOptionsValue.batchSizeSpecified = true;
qr = binding.query("SELECT FirstName, LastName FROM Contact");
bool done = false;
int loopCount = 0;
while (!done)
{
Console.WriteLine("\nRecords in results set " +
Convert.ToString(loopCount++)
+ " - ");
// Process the query results
for (int i = 0; i < qr.records.Length; i++)
{
sforce.sObject con = qr.records[i];
string fName = con.Any[0].InnerText;
string lName = con.Any[1].InnerText;
if (fName == null)
Console.WriteLine("Contact " + (i + 1) + ": " + lName);
else
Console.WriteLine("Contact " + (i + 1) + ": " + fName
+ " " + lName);
}
if (qr.done)
101
Using the Partner WSDL
Sample search Call
done = true;
else
qr = binding.queryMore(qr.queryLocator);
}
}
catch (SoapException e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
}
Console.WriteLine("\nQuery execution completed.");
}
Sample search Call
The following Java and C# examples show how to use the search() call for the partner WSDL. Each example accepts a phone number
string value that is used in the SOQL query. The search call looks for phone fields that match the passed in phone value in all contacts,
leads, and accounts. Next, the example iterates through the returned search results that contain the matching records, adds them to
arrays, and writes their field values to the console. The record fields returned correspond to the fields specified in the SOQL query for
each record type.
To execute the sample method, you can use the corresponding Java or C# template class provided in Examples Using the Partner WSDL.
Java Example
public void searchSample(String phoneNumber) {
try {
// Example of phoneNumber format: 4155551212
String soslQuery =
"FIND {" + phoneNumber + "} IN Phone FIELDS " +
"RETURNING " +
"Contact(Id, Phone, FirstName, LastName), " +
"Lead(Id, Phone, FirstName, LastName)," +
"Account(Id, Phone, Name)";
// Perform SOSL query
SearchResult sResult = partnerConnection.search(soslQuery);
// Get the records returned by the search result
SearchRecord[] records = sResult.getSearchRecords();
// Create lists of objects to hold search result records
List contacts = new ArrayList();
List leads = new ArrayList();
List accounts = new ArrayList();
// Iterate through the search result records
// and store the records in their corresponding lists
// based on record type.
if (records != null && records.length > 0) {
for (int i = 0; i < records.length; i++){
SObject record = records[i].getRecord();
if (record.getType().toLowerCase().equals("contact")) {
contacts.add(record);
} else if (record.getType().toLowerCase().equals("lead")){
102
Using the Partner WSDL
Sample search Call
leads.add(record);
} else if (record.getType().toLowerCase().equals("account")) {
accounts.add(record);
}
}
// Display the contacts that the search returned
if (contacts.size() > 0) {
System.out.println("Found " + contacts.size() +
" contact(s):");
for (SObject contact : contacts) {
System.out.println(contact.getId() + " - " +
contact.getField("FirstName") + " " +
contact.getField("LastName") + " - " +
contact.getField("Phone")
);
}
}
// Display the leads that the search returned
if (leads.size() > 0) {
System.out.println("Found " + leads.size() +
" lead(s):");
for (SObject lead : leads) {
System.out.println(lead.getId() + " - " +
lead.getField("FirstName") + " " +
lead.getField("LastName") + " - " +
lead.getField("Phone")
);
}
}
// Display the accounts that the search returned
if (accounts.size() > 0) {
System.out.println("Found " +
accounts.size() + " account(s):");
for (SObject account : accounts) {
System.out.println(account.getId() + " - " +
account.getField("Name") + " - " +
account.getField("Phone")
);
}
}
} else {
// The search returned no records
System.out.println("No records were found for the search.");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
C# Example
public void searchSample(String phoneNumber)
{
103
Using the Partner WSDL
Sample search Call
try
{
// Example of phoneNumber format: 4155551212
String soslQuery =
"FIND {" + phoneNumber + "} IN Phone FIELDS " +
"RETURNING " +
"Contact(Id, Phone, FirstName, LastName), " +
"Lead(Id, Phone, FirstName, LastName)," +
"Account(Id, Phone, Name)";
// Perform SOSL query
SearchResult sResult = binding.search(soslQuery);
// Get the records returned by the search result
SearchRecord[] records = sResult.searchRecords;
// Create lists of objects to hold search result records
ArrayList contacts = new System.Collections.ArrayList();
ArrayList leads = new System.Collections.ArrayList();
ArrayList accounts = new System.Collections.ArrayList();
//
//
//
if
{
Iterate through the search result records
and store the records in their corresponding lists
based on record type.
((records != null) && (records.Length > 0))
for (int i = 0; i < records.Length; i++)
{
sObject record = records[i].record;
if (record.type.ToLower().Equals("contact"))
{
contacts.Add(record);
}
else if (record.type.ToLower().Equals("lead"))
{
leads.Add(record);
}
else if (record.type.ToLower().Equals("account"))
{
accounts.Add(record);
}
}
// Display the contacts that the search returned
if (contacts.Count > 0)
{
Console.WriteLine("Found " + contacts.Count + " contact(s):");
for (int i = 0; i < contacts.Count; i++)
{
sObject c = (sObject)contacts[i];
Console.WriteLine(c.Any[0].InnerText + " - " +
c.Any[2].InnerText + " " +
c.Any[3].InnerText + " - " + c.Any[1].InnerText);
}
}
// Display the leads that the search returned
if (leads.Count > 0)
104
Using the Partner WSDL
Sample create Call
{
Console.WriteLine("Found " + leads.Count
for (int i = 0; i < leads.Count; i++)
{
sObject l = (sObject)leads[i];
Console.WriteLine(l.Any[0].InnerText
l.Any[2].InnerText + " "
l.Any[3].InnerText + " }
+ " lead(s):");
+ " - " +
+
" + l.Any[1].InnerText);
}
// Display the accounts that the search returned
if (accounts.Count > 0)
{
Console.WriteLine("Found " + accounts.Count + " account(s):");
for (int i = 0; i < accounts.Count; i++)
{
sObject a = (sObject)accounts[i];
Console.WriteLine(a.Any[0].InnerText + " - " +
a.Any[2].InnerText + " - " +
a.Any[1].InnerText);
}
}
}
else
{
// The search returned no records
Console.WriteLine("No records were found for the search.");
}
}
catch (SoapException e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
}
}
Sample create Call
The following Java and C# examples show how to use the create() call for the partner WSDL. Each example creates a contact record
with several fields. It iterates through the results of the create call and checks whether the operation was successful or not. If the create
operation was successful, it writes the ID of the contact created to the console. Otherwise, it iterates through the errors and writes details
of each error to the console. In this case, the output of the example is the ID of the new contact.
To execute the sample method, you can use the corresponding Java or C# template class provided in Examples Using the Partner WSDL.
Java Example
public String createSample() {
String result = null;
try {
// Create a new sObject of type Contact
// and fill out its fields.
SObject contact = new SObject();
105
Using the Partner WSDL
Sample create Call
contact.setType("Contact");
contact.setField("FirstName", "Otto");
contact.setField("LastName", "Jespersen");
contact.setField("Salutation", "Professor");
contact.setField("Phone", "(999) 555-1234");
contact.setField("Title", "Philologist");
// Add this sObject to an array
SObject[] contacts = new SObject[1];
contacts[0] = contact;
// Make a create call and pass it the array of sObjects
SaveResult[] results = partnerConnection.create(contacts);
// Iterate through the results list
// and write the ID of the new sObject
// or the errors if the object creation failed.
// In this case, we only have one result
// since we created one contact.
for (int j = 0; j < results.length; j++) {
if (results[j].isSuccess()) {
result = results[j].getId();
System.out.println(
"\nA contact was created with an ID of: " + result
);
} else {
// There were errors during the create call,
// go through the errors array and write
// them to the console
for (int i = 0; i < results[j].getErrors().length; i++) {
Error err = results[j].getErrors()[i];
System.out.println("Errors were found on item " + j);
System.out.println("Error code: " +
err.getStatusCode().toString());
System.out.println("Error message: " + err.getMessage());
}
}
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
return result;
}
C# Example
public void createSample()
{
try
{
// Create a new sObject of type Contact
// and fill out its fields.
sObject contact = new sforce.sObject();
System.Xml.XmlElement[] contactFields = new System.Xml.XmlElement[6];
106
Using the Partner WSDL
Sample create Call
// Create the contact's fields
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
contactFields[0] = doc.CreateElement("FirstName");
contactFields[0].InnerText = "Otto";
contactFields[1] = doc.CreateElement("LastName");
contactFields[1].InnerText = "Jespersen";
contactFields[2] = doc.CreateElement("Salutation");
contactFields[2].InnerText = "Professor";
contactFields[3] = doc.CreateElement("Phone");
contactFields[3].InnerText = "(999) 555-1234";
contactFields[4] = doc.CreateElement("Title");
contactFields[4].InnerText = "Philologist";
contact.type = "Contact";
contact.Any = contactFields;
// Add this sObject to an array
sObject[] contactList = new sObject[1];
contactList[0] = contact;
// Make a create call and pass it the array of sObjects
SaveResult[] results = binding.create(contactList);
// Iterate through the results list
// and write the ID of the new sObject
// or the errors if the object creation failed.
// In this case, we only have one result
// since we created one contact.
for (int j = 0; j < results.Length; j++)
{
if (results[j].success)
{
Console.Write("\nA contact was created with an ID of: "
+ results[j].id);
}
else
{
// There were errors during the create call,
// go through the errors array and write
// them to the console
for (int i = 0; i < results[j].errors.Length; i++)
{
Error err = results[j].errors[i];
Console.WriteLine("Errors were found on item " + j.ToString());
Console.WriteLine("Error code is: " + err.statusCode.ToString());
Console.WriteLine("Error message: " + err.message);
}
}
}
}
catch (SoapException e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
107
Using the Partner WSDL
Sample update Call
}
}
Sample update Call
The following Java and C# examples show how to use the update() call for the Partner WSDL. Each example takes the ID of the
contact to update as an argument. It creates two sObject records of type Contact—one to hold the valid passed in ID and the other has
an invalid ID. Next, it sets a new phone number for the valid contact and null for the last name of the invalid contact. It then makes
the update call and iterates through the results. For a successful update operation, it writes the ID of the contact that got updated. For
a failed update operation, it writes the details of all returned errors to the console. In this case, the output is the ID of the contact that
was successfully updated and an error for the invalid contact update.
To execute the sample method, you can use the corresponding Java or C# template class provided in Examples Using the Partner WSDL.
Java Example
public void updateSample(String id) {
try {
// Create an sObject of type contact
SObject updateContact = new SObject();
updateContact.setType("Contact");
// Set the ID of the contact to update
updateContact.setId(id);
// Set the Phone field with a new value
updateContact.setField("Phone", "(415) 555-1212");
// Create another contact that will cause an error
// because it has an invalid ID.
SObject errorContact = new SObject();
errorContact.setType("Contact");
// Set an invalid ID on purpose
errorContact.setId("SLFKJLFKJ");
// Set the value of LastName to null
errorContact.setFieldsToNull(new String[] {"LastName"});
// Make the update call by passing an array containing
// the two objects.
SaveResult[] saveResults = partnerConnection.update(
new SObject[] {updateContact, errorContact}
);
// Iterate through the results and write the ID of
// the updated contacts to the console, in this case one contact.
// If the result is not successful, write the errors
// to the console. In this case, one item failed to update.
for (int j = 0; j < saveResults.length; j++) {
System.out.println("\nItem: " + j);
if (saveResults[j].isSuccess()) {
System.out.println("Contact with an ID of " +
saveResults[j].getId() + " was updated.");
}
else {
108
Using the Partner WSDL
Sample update Call
// There were errors during the update call,
// go through the errors array and write
// them to the console.
for (int i = 0; i < saveResults[j].getErrors().length; i++) {
Error err = saveResults[j].getErrors()[i];
System.out.println("Errors were found on item " + j);
System.out.println("Error code: " +
err.getStatusCode().toString());
System.out.println("Error message: " + err.getMessage());
}
}
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
For more information about setFieldsToNull (or its equivalent in client tools other than WSC), see fieldsToNull and
Resetting Values to null.
C# Example
public void updateSample(String id) {
try
{
// Create an sObject of type contact
sObject updateContact = new sObject();
updateContact.type = "Contact";
// Set the ID of the contact to update
updateContact.Id = id;
// Set the Phone field to a new value.
// The Phone field needs to be created as an XML element.
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
System.Xml.XmlElement phoneField = doc.CreateElement("Phone");
phoneField.InnerText = "(415) 555-1212";
// Add the Phone field to the contact
updateContact.Any = new System.Xml.XmlElement[] {phoneField};
// Create another contact that will cause an error
// because it has an invalid ID.
sObject errorContact = new sObject();
errorContact.type = "Contact";
// Set an invalid ID on purpose
errorContact.Id = "SLFKJLFKJ";
// Set the value of LastName to null
errorContact.fieldsToNull = new String[] { "LastName" };
// Make the update call by passing an array containing
// the two objects.
SaveResult[] saveResults = binding.update(
new sObject[] {updateContact, errorContact});
// Iterate through the results and write the ID of
109
Using the Partner WSDL
Sample update Call
// the updated contacts to the console, in this case one contact.
// If the result is not successful, write the errors
// to the console. In this case, one item failed to update.
for (int j = 0; j < saveResults.Length; j++) {
Console.WriteLine("\nItem: " + j);
if (saveResults[j].success)
{
Console.WriteLine("Contact with an ID of " +
saveResults[j].id + " was updated.");
}
else
{
// There were errors during the update call,
// go through the errors array and write
// them to the console.
for (int i = 0; i < saveResults[j].errors.Length; i++) {
Error err = saveResults[j].errors[i];
Console.WriteLine("Errors were found on item " + j.ToString());
Console.WriteLine("Error code: " +
err.statusCode.ToString());
Console.WriteLine("Error message: " + err.message);
}
}
}
}
catch (SoapException e)
{
Console.WriteLine("An unexpected error has occurred: " + e.Message +
" Stack trace: " + e.StackTrace);
}
}
110
REFERENCE
CHAPTER 7
Data Model
The entity relationship diagrams (ERDs) for standard Salesforce objects in this section illustrate important relationships between objects.
Salesforce ERDs use crow’s foot notation. The following ERDs are available.
• Sales Objects—includes accounts, contacts, opportunities, leads, campaigns, and other related objects
• Task and Event Objects—includes tasks and events and their related objects
• Support Objects—includes cases and solutions and their related objects
• Salesforce Knowledge Objects—includes view and vote statistics, article versions, and other related objects
• Document, Note, and Attachment Objects—includes documents, notes, and attachments and their related objects
• User, Sharing, and Permission Objects—includes users, profiles, and roles
• Profile and Permission Objects—includes users, profiles, permission sets, and related permission objects
• Record Type Objects—includes record types and business processes and their related objects
• Product and Schedule Objects—includes opportunities, products, and schedules
• Sharing and Team Selling Objects—includes account teams, opportunity teams, and sharing objects
• Customizable Forecasting Objects—includes forecasts and related objects
• Forecasts Objects—includes objects for Collaborative Forecasts.
• Territory Management 2.0 Objects—includes territories and related objects associated with Territory Management 2.0
• Territory Management—includes territories and related objects
• Process Objects—includes approval processes and related objects
• Content Objects—includes content and libraries and their related objects
• Chatter Feed Objects—includes objects related to feeds
• Work.com Badge and Reward Objects—includes badge and reward objects
• Work.com Feedback and Performance Cycle Objects—includes feedback and performance cycle objects
Each ERD includes links to the topics that describe the fields in objects related to the diagram. The data model for your custom objects
depends on what you create.
111
Data Model
Sales Objects
Sales Objects
SEE ALSO:
Standard Objects
Data Model
112
Data Model
Task and Event Objects
Task and Event Objects
SEE ALSO:
Standard Objects
Data Model
113
Data Model
Support Objects
Support Objects
SEE ALSO:
Standard Objects
Data Model
114
Data Model
Document, Note, and Attachment Objects
Document, Note, and Attachment Objects
SEE ALSO:
Standard Objects
Data Model
115
Data Model
User, Sharing, and Permission Objects
User, Sharing, and Permission Objects
SEE ALSO:
Standard Objects
Data Model
Profile and Permission Objects
116
Data Model
Profile and Permission Objects
Profile and Permission Objects
SEE ALSO:
Standard Objects
Data Model
117
Data Model
Record Type Objects
Record Type Objects
SEE ALSO:
Standard Objects
Data Model
118
Data Model
Product and Schedule Objects
Product and Schedule Objects
Create a separate PricebookEntry for each currency and price combination.
SEE ALSO:
Standard Objects
Data Model
119
Data Model
Sharing and Team Selling Objects
Sharing and Team Selling Objects
SEE ALSO:
Standard Objects
Data Model
Customizable Forecasting Objects
SEE ALSO:
Standard Objects
Data Model
120
Data Model
Forecasts Objects
Forecasts Objects
Note: This information only applies to Collaborative Forecasts.
SEE ALSO:
Standard Objects
Data Model
Territory Management 2.0 Objects
Note: This information applies to Territory Management 2.0 only, not to previous versions of Territory Management.
121
Data Model
Territory Management 2.0 Objects
SEE ALSO:
Standard Objects
Data Model
122
Data Model
Territory Management
Territory Management
SEE ALSO:
Standard Objects
Data Model
123
Data Model
Process Objects
Process Objects
SEE ALSO:
Standard Objects
Data Model
Core Data Types Used in API Calls
124
Data Model
Content Objects
Content Objects
SEE ALSO:
Standard Objects
Data Model
ContentNote Objects
The ContentNote object represents notes created with the enhanced version of the Salesforce note-taking tool.
125
Data Model
Chatter Objects
SEE ALSO:
ContentNote
Chatter Objects
Diagram showing the relationships between the Chatter objects
The following diagram shows the relationships between the major Chatter objects.
• A feed item is an entry in the feed, such as a change to a record that's being followed, an updated post, or a user status change.
• All feed items have a ParentId, which is either:
– a record
– a user
– a group
126
Data Model
Chatter Objects
SEE ALSO:
Standard Objects
Data Model
127
Data Model
Chatter Feed Objects
Chatter Feed Objects
Standard Objects with Feeds
The following standard objects can have Chatter feeds: Account, Asset, Case, CollaborationGroup, Contact, ContentDocument, Contract,
Dashboard, DashboardComponent, Entitlement, Event, KnowledgeArticle, Lead, Opportunity, Product2, Quote, Report, ServiceContract,
Site, Solution, Task, Topic, User, WorkOrder, and WorkOrderLineItem.
SEE ALSO:
Standard Objects
Data Model
128
Data Model
Salesforce Knowledge Objects
Salesforce Knowledge Objects
SEE ALSO:
Standard Objects
Data Model
129
Data Model
Work.com Badge and Reward Objects
Work.com Badge and Reward Objects
130
Data Model
Work.com Feedback and Performance Cycle Objects
SEE ALSO:
Standard Objects
Data Model
Work.com Feedback and Performance Cycle Objects
SEE ALSO:
Standard Objects
Data Model
131
CHAPTER 8
Standard Objects
This section provides a list of standard objects and their standard fields. Some fields may not be listed for some objects.
To see the system fields for each object, see System Fields.
To verify the complete list of fields for an object, you can use a describe call from the API, or inspect with an appropriate tool, for example,
inspecting the WSDL or using a schema viewer.
AcceptedEventRelation
Represents invitees with the status Accepted for a given event.
Account
Represents an individual account, which is an organization or person involved with your business (such as customers, competitors,
and partners).
AccountContactRelation
Represents a relationship between a contact and one or more accounts.
AccountCleanInfo
Stores the metadata Data.com Clean uses to determine an account record’s clean status. AccountCleanInfo helps you automate the
cleaning or related processing of account records.
AccountContactRole
Represents the role that a Contact plays on an Account.
AccountFeed
Represents a single feed item on an account record detail page. This object is available in API version 18.0 and later.
AccountHistory
Represents the history of changes to the values in the fields of an account. This object is available in versions 11.0 and later.
AccountOwnerSharingRule
Represents the rules for sharing an account with a User other than the owner.
AccountPartner
This read-only object represents a partner relationship between two Account objects. It is automatically created when a Partner
object is created for a partner relationship between two accounts.
AccountShare
Represents a sharing entry on an Account.
AccountTag
Associates a word or short phrase with an Account.
AccountTeamMember
Represents a User who is a member of an Account team.
132
Standard Objects
AccountTerritoryAssignmentRule
An account assignment rule that assigns accounts to territories based on account fields. Only available if territory management has
been enabled for your organization.
AccountTerritoryAssignmentRuleItem
A row of selection criteria for an AccountTerritoryAssignmentRule object. Only available if territory management has been enabled
for your organization.
AccountTerritorySharingRule
Represents the rules for sharing an Account within a Territory.
ActionLinkGroupTemplate
Action link templates let you reuse action link definitions and package and distribute action links. An action link is a button on a feed
element. Clicking on an action link can take a user to another Web page, initiate a file download, or invoke an API call to an external
server or Salesforce. Use action links to integrate Salesforce and third-party services into the feed. Every action link belongs to an
action link group and action links within the group are mutually exclusive. This object is available in API version 33.0 and later.
ActionLinkTemplate
Action link templates let you reuse action link definitions and package and distribute action links. An action link is a button on a feed
element. Clicking an action link can take a user to another Web page, initiate a file download, or invoke an API call to an external
server or Salesforce. Use action links to integrate Salesforce and third-party services into the feed. This object is available in API version
33.0 and later.
ActivityHistory
This read-only object is displayed in a related list of closed activities—past events and closed tasks—related to an object. It includes
activities for all contacts related to the object. ActivityHistory fields for phone calls are only available if your organization uses Salesforce
CRM Call Center.
AdditionalNumber
Represents an optional additional number for a call center. This additional number is visible in the call center's phone directory.
AgentWork
Represents a work assignment that’s been routed to an agent. This object is available in API version 32.0 and later.
AllowedEmailDomain
Represents an allowed email domain for users in your organization. You can define a whitelist to restrict the email domains allowed
in a user’s Email field. This object is available in API version 29.0 and later.
Announcement
Represents a Chatter group announcement. This object is available in API version 30.0 and later.
ApexClass
Represents an Apex class.
ApexComponent
Represents a definition for a custom component that can be used in a Visualforce page alongside standard components such as
 and .
ApexLog
Represents a debug log, containing information about a transaction, including information about Apex, Visualforce, workflow and
validation rules. This object is available in API version 19.0 and later.
ApexPage
Represents a single Visualforce page.
ApexTestQueueItem
Represents a single Apex class in the Apex job queue. This object is available in API version 23.0 and later.
133
Standard Objects
ApexTestResult
Represents the result of an Apex test method execution. This object is available in API version 23.0 and later.
ApexTestResultLimits
Captures the Apex test limits used for a particular test method execution. An instance of this object is associated with each
ApexTestResult record. This object is available in API version 37.0 and later.
ApexTestRunResult
Contains summary information about all the test methods that were run in a particular Apex job. This object is available in API version
37.0 and later.
ApexTestSuite
Represents a suite of Apex classes to include in a test run. A TestSuiteMembership object associates each class with the suite. This
object is available in API version 36.0 and later.
ApexTrigger
Represents an Apex trigger.
AppMenuItem
Represents the organization’s default settings for items in the Force.com app menu or App Launcher.
Approval
Represents an approval request for a Contract.
Article Type__DataCategorySelection
A data category selection represents a data category that classifies an article. This object is available in API version 19.0 and later.
Article Type__Feed
Represents a single feed item in the feed displayed on the detail page for an article. This object is available in API version 20.0 and
later.
Asset
Represents an item of commercial value, such as a product sold by your company or a competitor, that a customer has purchased
and installed.
AssetFeed
Represents a single feed item in the feed displayed on the detail page for an asset record. This object is available in API version 18.0
and later.
AssetOwnerSharingRule
Represents the rules for sharing an Asset with users other than the owner. This object is available in API version 33.0 and later.
AssetShare
Represents a sharing entry on an Asset. This object is available in API version 33.0 and later.
AssetTag
Associates a word or short phrase with an Asset.
AssetTokenEvent
Represents an event associated with an asset token, such as token issuance and registration of a connected device as an Asset. This
object is available in API version 39.0 and later.
AssignedResource
Represents a service resource who is assigned to a service appointment. Assigned resources appear in the Assigned Resources related
list on service appointments. This object is available in API version 38.0 and later.
AssignmentRule
Represents an assignment rule associated with a Case or Lead.
134
Standard Objects
AsyncApexJob
Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation, or a job that
implements Queueable.
AttachedContentDocument
This read-only object contains all ContentDocument objects associated with an object.
AttachedContentNote
This read-only object contains all ContentNote objects associated with an object. This object is available in API version 35.0 and later.
Attachment
Represents a file that a User has uploaded and attached to a parent object.
AuraDefinition
Represents a Lightning definition, such as component markup, a client-side controller, or an event. This object is available in API
version 32.0 and later.
AuraDefinitionBundle
Represents a Lightning definition bundle, such as a component or application bundle. A bundle contains a Lightning definition and
all its related resources. This object is available in API version 32.0 and later.
AuthConfig
Represents authentication options for a communityor custom domain that was created by using My Domain. This object is available
in API version 32.0 and later.
AuthConfigProviders
Represents an authentication provider that’s configured in an organization. This object is a child of the AuthConfig object. This object
is available in API version 32.0 and later.
AuthProvider
Represents an authentication provider in your org.
AuthSession
The AuthSession object represents an individual user session in your organization. This object is available in versions 29.0 and later.
BackgroundOperation
Represents a background operation in an asynchronous job queue. This object is available in API version 35.0 and later.
BackgroundOperationResult
Stores error messages generated when running Async SOQL queries or importing data into BigObjects using Bulk API. This is a
BigObject, available in API version 37.0 and later.
Bookmark
Represents a link between opportunities that share common information.
BrandTemplate
Letterhead for HTML EmailTemplate.
BusinessHours
Specifies the business hours of your support organization. Escalation rules are run only during these hours.
BusinessProcess
Represents a business process.
CallCenter
Represents a call center, which is a logical representation of a single computer-telephony integration (CTI) system instance in an
organization.
135
Standard Objects
Campaign
Represents and tracks a marketing campaign, such as a direct mail promotion, webinar, or trade show.
CampaignFeed
Represents a single feed item in the feed on a campaign record detail page. This object is available in API version 18.0 and later.
CampaignInfluence
Represents the association between a campaign and an opportunity in Customizable Campaign Influence. This object is available
in API version 37.0 and later.
CampaignInfluenceModel
This read-only object represents a campaign influence model in Customizable Campaign Influence. Use campaign influence models
to group CampaignInfluence records created by a specific set of triggers and workflows that you define. The Salesforce
influence model is the default model. This object is available in API version 37.0 and later.
CampaignMember
Represents the association between a campaign and either a lead or a contact.
CampaignMemberStatus
One or more member status values defined for a campaign.
CampaignOwnerSharingRule
Represents the rules for sharing a campaign with User records other than the owner or anyone above the owner in the role hierarchy.
CampaignShare
Represents a sharing entry on a Campaign.
CampaignTag
Associates a word or short phrase with a Campaign.
Case
Represents a case, which is a customer issue or problem.
CaseArticle
Represents the association between a Case and a KnowledgeArticle. This object is available in API version 20.0 and later.
CaseComment
Represents a comment that provides additional information about the associated Case.
CaseContactRole
Represents the role that a given Contact plays on a Case.
CaseFeed
Represents a single feed item in the feed displayed on the detail page for a case record. A case feed shows recent changes to a case
record for any fields that are tracked in feeds, and comments and posts about the record. It is a useful way to stay up-to-date with
changes to cases. This object is available in API version 18.0 and later.
CaseHistory
Represents historical information about changes that have been made to the associated Case.
CaseMilestone
Represents a milestone (required step in a customer support process) on a Case. This object is available in API version 18.0 and later.
CaseOwnerSharingRule
Represents the rules for sharing a case with users other than the owner.
CaseShare
Represents a sharing entry on a Case.
136
Standard Objects
CaseSolution
Represents the association between a Case and a Solution.
CaseStatus
Represents the status of a Case, such as New, On Hold, or In Process.
CaseTag
Associates a word or short phrase with a Case
CaseTeamMember
Represents a case team member, who works with a team of other users to help resolve a case.
CaseTeamRole
Represents a case team role. Every case team member has a role on a case, such as “Customer Contact” or “Case Manager.”
CaseTeamTemplate
Represents a predefined case team, which is a group of users that helps resolve a case.
CaseTeamTemplateMember
Represents a member on a predefined case team, which is a group of users that helps resolve cases.
CaseTeamTemplateRecord
The CaseTeamTemplateRecord object is a linking object between the Case and CaseTeamTemplate objects. To assign a predefined
case team to a case (customer inquiry), create a CaseTeamTemplateRecord record and point the ParentId to the case and the
TeamTemplateId to the predefined case team.
CategoryData
Represents a logical grouping of Solution records.
CategoryNode
Represents a tree of Solution categories.
CategoryNodeLocalization
When the Translation Workbench is enabled for your organization, the CategoryNodeLocalization object provides the translation of
the label of a solution category.
ChatterActivity
ChatterActivity represents the number of posts and comments made by a user and the number of comments and likes on posts
and comments received by the same user. This object is available in API version 23.0 and later.
ChatterAnswersActivity
Represents the reputation of a User in Chatter Answers communities. This object is available in API version 25.0 and later.
ChatterAnswersReputationLevel
Represents a reputation level within a Chatter Answers zone. This object is available in API version 26.0 and later.
ChatterConversation
Represents a private conversation in Chatter, consisting of messages that conversation members have sent or received. This object
is available in API version 23.0 and later.
ChatterConversationMember
Represents a member of a private conversation in Chatter. A member has either sent messages to or received messages from other
conversation participants. This object is available in API version 23.0 and later.
ChatterMessage
Represents a message sent as part of a private conversation in Chatter. This object is available in API version 23.0 and later.
137
Standard Objects
ClientBrowser
Represents a cookie added to the browser upon login, and also includes information about the browser application where the cookie
was inserted. This object is available in version 28.0 and later.
CollaborationGroup
Represents a Chatter group. This object is available in API version 19.0 and later.
CollaborationGroupFeed
Represents a single feed item on a Chatter group feed. A group feed shows posts and comments about the group. This object is
available in API version 19.0 and later.
CollaborationGroupMember
Represents a member of a Chatter group. This object is available in API version 19.0 and later.
CollaborationGroupMemberRequest
Represents a request to join a private Chatter group. This object is available in API version 21.0 and later.
CollaborationGroupRecord
Represents the records associated with Chatter groups.
CollaborationInvitation
Represents an invitation to join Chatter, either directly or through a group. This object is available in API version 21.0 and later.
CombinedAttachment
This read-only object contains all notes, attachments, Google Docs, documents uploaded to libraries in Salesforce CRM Content, and
files added to Chatter that are associated with a record.
Community (Zone)
Represents a zone that contains Idea or Question objects.
ConnectedApplication
Represents a connected app and its details; all fields are read-only.
Contact
Represents a contact, which is an individual associated with an account.
ContactCleanInfo
Stores the metadata Data.com Clean uses to determine a contact record’s clean status. Helps you automate the cleaning or related
processing of contact records. ContactCleanInfo includes a number of bit vector fields.
ContactFeed
Represents a single feed item in the feed on a contact record detail page. This object is available in API version 18.0 and later.
ContactHistory
Represents the history of changes to the values in the fields of a contact. This object is available in versions 11.0 and later.
ContactOwnerSharingRule
Represents the rules for sharing a contact with a User other than the owner.
ContactShare
Represents a list of access levels to a Contact along with an explanation of the access level. For example, if you have access to a
record because you own it, the ContactAccessLevel is All and RowCause is Owner.
ContactTag
Associates a word or short phrase with a Contact.
138
Standard Objects
ContentAsset
Represents a Salesforce file that has been converted to an asset file in a custom app inLightning Experience. Enables a Salesforce file
to be used for org setup and configuration purposes. Asset files can be packaged and referenced by other components. This object
is available in API version 38.0 and later.
ContentDistribution
Represents information about sharing a document externally. This object is available in API version 32.0 and later.
ContentDistributionView
Represents information about views of a shared document. This read-only object is available in API version 32.0 and later.
ContentDocument
Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.This object is available in
API versions 17.0 and later for Salesforce CRM Content. This object is available in API version 21.0 and later for Salesforce Files.
ContentDocumentFeed
Represents a single feed item associated with ContentDocument. A content document feed shows these content document changes:
creating a ContentDocument file and uploading a new ContentDocument. This object is available in versions 20.0 and later.
ContentDocumentHistory
Represents the history of a document. This object is available in versions 17.0 and later.
ContentDocumentLink
Represents the link between a Salesforce CRM Content document or Salesforce file and where it's shared. A file can be shared with
other users, groups, records, and Salesforce CRM Content libraries. This object is available in versions 21.0 and later for Salesforce
CRM Content documents and Salesforce Files.
ContentFolder
Represents a folder in a content library for adding files. This object is available in API version 34.0 and later.
ContentFolderItem
Represents a file (ContentDocument) or folder (ContentFolder) that resides in a ContentFolder in a ContentWorkspace. This object
is available in API version 35.0 and later.
ContentFolderLink
Defines the association between a library and its root folder. This object is available in API version 34.0 and later.
ContentFolderMember
Defines the association between a file and a folder. This object is available in API version 34.0 and later.
ContentHubItem
Represents a file or folder in a Files Connect external data source, such as Microsoft SharePoint or OneDrive for Business. This object
is available in API version 33.0 and later.
ContentHubRepository
Represents a Files Connect external data source such as Microsoft SharePoint or OneDrive for Business. This object is available in API
version 33.0 and later.
ContentNote
Represents a note in Salesforce. This object is available in API version 32.0 and later.
ContentVersion
Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. This object is available in versions 17.0
and later for Salesforce CRM Content documents. This object is available in versions 20.0 and later for Salesforce Files.
ContentVersionHistory
Represents the history of a specific version of a document. This object is available in version 17.0 and later.
139
Standard Objects
ContentWorkspace
Represents a public library in Salesforce CRM Content. This object is available in versions 17.0 and later.
ContentWorkspaceDoc
Represents a link between a document and a public library in Salesforce CRM Content. This object is available in versions 17.0 and
later.
Contract
Represents a contract (a business agreement) associated with an Account.
ContractContactRole
Represents the role that a given Contact plays on a Contract.
ContractFeed
Represents a single feed item in the feed on the contract record detail page. This object is available in API version 18.0 and later.
ContractHistory
Represents the history of changes to the values in the fields of a contract.
ContractLineItem
Represents a Product2 in a ServiceContract (customer support agreement). This object is available in API version 18.0 and later.
ContractLineItemHistory
Represents the history of changes to the values in the fields on a ContractLineItem (items in a customer support agreement). This
object is available in API version 18.0 and later.
ContractStatus
Represents the status of a Contract, such as Draft, InApproval, Activated, Terminated, or Expired.
ContractTag
Associates a word or short phrase with a Contract.
CorsWhitelistEntry
Apex REST, Bulk API, Chatter REST API, Lightning API, Lightning Out, REST API, and Wave REST API support CORS (cross-origin resource
sharing). To access these APIs from JavaScript in a web browser, add the origin serving the script to the CORS whitelist.
CronJobDetail
Contains details about the associated scheduled job, such as the job’s name and type. This object is available in API version 29.0 and
later.
CronTrigger
Contains schedule information for a scheduled job. CronTrigger is similar to a cron job on UNIX systems. This object is available in
API version 17.0 and later.
CurrencyType
Represents the currencies used by an organization for which the multicurrency feature is enabled.
CustomBrand
Represents a custom branding and color scheme. This object is available in API version 28.0 and later.
CustomBrandAsset
Represents a branding element in a custom branding scheme. For example, a color, logo image, header image, or footer text. A
CustomBrandAsset can apply to a community or to an organization using Salesforce1. This object is available in API version 28.0 and
later.
Custom Metadata Type__mdt
Represents a custom metadata record. This object is available in API version 34.0 and later.
140
Standard Objects
Custom Object__Feed
Represents a single feed item on a custom object detail page. This object is available in API version 18.0 and later.
CustomPermission
Represents a permission created to control access to a custom process or app, such as sending email. This object is available in API
version 31.0 and later.
CustomPermissionDependency
Represents the dependency between two custom permissions when one custom permission requires that you enable another
custom permission. This object is available in API version 32.0 and later.
DandBCompany
Represents a Dun & Bradstreet® company record, which is associated with an account added from Data.com. This object is available
in API version 25.0 and later.
Dashboard
Represents a dashboard, which shows data from custom reports as visual components. Access is read-only. This object is available
in API version 20.0 and later.
DashboardComponent
Represents a dashboard component, which can be a chart, metric, table, or gauge on a dashboard. Access is read-only. This object
is available in API version 21.0 and later.
DashboardComponentFeed
Represents a single feed item in the feed displayed on a dashboard component. This object is available in API version 21.0 and later.
DashboardFeed
Represents a single feed item in the feed displayed on a dashboard. This object is available in API version 20.0 and later.
DashboardTag
Associates a word or short phrase with a Dashboard. This object is available in API version 20.0 and later.
DataAssessmentFieldMetric
Represents summary statistics for matched, blank, and differing fields in account records of an org compared to records in Data.com.This
object is available in API version 37.0 and later.
DataAssessmentMetric
Represents a summary of statistics for fields matched and unmatched in your account records with Data.com account records.This
object is available in API version 37.0 and later.
DataAssessmentValueMetric
Summarizes the number of fields matched for your account records with Data.com account records.This object is available in API
version 37.0 and later.
DatacloudCompany
Represents the fields for Data.com company records. This object is available in API version 30.0 or later.
DatacloudContact
The fields and properties for Data.com contact records. This object is available in API version 30.0 or later.
DatacloudDandBCompany
Represents a set of read-only fields that are used to return D&B company data from Data.com API calls. This object is available in API
version 30.0 or later.
DatacloudOwnedEntity
Represents fields in the DatacloudOwnedEntity object. The DatacloudOwnedEntity object tracks user-purchased records. This object
is available in API version 30.0 or later.
141
Standard Objects
DatacloudPurchaseUsage
Represents an object used to identify and track Data.com record purchases. This object is available in API version 30.0 or later.
DatacloudSocialHandle
Returns normalized URLs with userids for different social media used by Data.com contacts. The DatacloudSocialHandle object is a
child object of the DatacloudContact object.This object is available in API version 30.0 or later.
DatedConversionRate
Represents the dated exchange rates used by an organization for which the multicurrency and the effective dated currency features
are enabled.
DcSocialProfile
The DcSocialProfile object is a read-only object accessible only through the Data.com Social Key API. This object is available
in API version 32.0 or later.
DcSocialProfileHandle
The DcSocialProfileHandle object. a child object to DcSocialProfile, is a read-only object accessible only through
the Data.com Social Key API. The DcSocialProfileHandle object is a child object of the DcSocialProfile object.This
object is available in API version 32.0 or later.
DeclinedEventRelation
Represents invitees with the status Declined for a given event. This object is available in API versions 29.0 and later.
Division
A logical segment of your organization's data. For example, if your company is organized into different business units, you could
create a division for each business unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the organization has
the Division permission enabled.
DivisionLocalization
When the Translation Workbench is enabled for your organization, the DivisionLocalization object provides the translation of the
label for a division.
Document
Represents a file that a user has uploaded. Unlike Attachment records, documents are not attached to a parent object.
DocumentAttachmentMap
Maps the relationship between an EmailTemplate and its attachment, which is stored as a Document.
DocumentTag
Associates a word or short phrase with a Document.
Domain
Read-only object that represents a custom Web address assigned to a site in your organization. This object is available in API version
26.0 and later.
DomainSite
Read-only junction object that joins together the Site and Domain objects. This object is available in API version 26.0 and later.
DuplicateRecordItem
Represents an individual record that’s part of a duplicate record set. Use this object to create custom report types.
DuplicateRecordSet
Represents a group of records that have been identified as duplicates. Each duplicate record set contains one or more duplicate
record items. Use this object to create custom report types.
DuplicateRule
Represents a duplicate rule for detecting duplicate records.
142
Standard Objects
EmailDomainKey
Represents a domain key for an organization’s domain, used to authenticate outbound email that Salesforce sends on the organization’s
behalf. This object is available in API version 28.0 and later.
EmailMessage
Represents an email in Salesforce.
EmailMessageRelation
Represents the relationship between an email and contacts, leads, and users. This object is available in API version 37.0 and later
EmailServicesAddress
An email service address.
EmailServicesFunction
An email service.
EmailStatus
Represents the status of email sent.
EmailTemplate
Represents a template for mass email, or email sent when the activity history related list of a record is modified.
EmbeddedServiceDetail
Represents a metadata catalog object that exposes fields from the underlying Embedded Service setup objects defined in each
EmbeddedServiceConfig deployment for guest users. Guest users don’t have direct access to the Embedded Service setup objects.
Available in API version 39.0 and later.
Entitlement
Represents the customer support an Account or Contact is eligible to receive. This object is available in API version 18.0 and later.
Entitlements may be based on an Asset, Product2, or ServiceContract.
EntitlementContact
Represents a Contact eligible to receive customer support via an Entitlement. This object is available in API version 18.0 and later.
EntitlementFeed
Represents a single feed item in the feed displayed on the detail page for an entitlement. An entitlement feed shows recent changes
to an entitlement record for any fields that are tracked in feeds, and comments and posts about the record. It's a useful way to stay
up-to-date with changes to entitlements. This object is available in API version 23.0 and later.
EntitlementHistory
Represents the changes to field values on an Entitlement. This object is available in API version 18.0 and later.
EntitlementTemplate
Represents predefined terms of customer support for a product (Product2). This object is available in API version 18.0 and later.
EntityHistory
Represents historical information about an object’s changed field values. This object is only available to users with the “View All Data”
permission. This object is unavailable beginning with API version 8.0. Use the object-specific History objects instead: CaseHistory,
ContractHistory, LeadHistory, OpportunityFieldHistory, OpportunityHistory ProcessInstanceHistory, QuantityForecastHistory,
RevenueForecastHistory, or SolutionHistory.
EntityMilestone
Represents a required step in a customer support process on a record. The Salesforce user interface uses the term “object milestone.”
This object is available in API version 37.0 and later.
EntitySubscription
Represents a subscription for a user following a record or another user. This object is available in API version 34.0 and later.
143
Standard Objects
EnvironmentHubMember
Represents a member organization in the Environment Hub. This object is available in API version 29.0 and later.
Event
Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.
EventFeed
Represents a single feed item in the feed on an Event. This object is available in API version 20.0 and later.
EventLogFile
Represents event log files for event monitoring. This object is available in API version 32.0 and later.
Lightning Error Event Type
Lightning Error events represent errors that occurred during user interactions with Lightning Experience. This event type is available
in the EventLogFile object in API version 39.0 and later.
Lightning Interaction Event Type
Lightning Interaction events track user interactions with Lightning Experience. This event type is available in the EventLogFile object
in API version 39.0 and later.
Lightning Page View Event Type
Lightning Page View events represent information about the page on which the event occurred in Lightning Experience. This event
type is available in the EventLogFile object in API version 39.0 and later.
Lightning Performance Event Type
Lightning Performance events track trends in your Lightning Experience performance. This event type is available in the EventLogFile
object in API version 39.0 and later.
Login Event Type — LOGIN_STATUS Values
When users attempt to log in to your org, the success or failure of their login attempts is tracked in event log file data. Specifically,
the LOGIN_STATUS field in the Login event type contains the result of these login attempts. The data in LOGIN_STATUS can help
you determine whether your users’ login attempts were successful. This field is available in the Login event type in the EventLogFile
object in API version 39.0 and later.
EventRelation
Represents a person (a user, lead, or contact) or a resource (such as a conference room) invited to an event. This object lets you add
or remove invitees from an event and use the API to manage invitees’ responses to invitations. If Shared Activities is enabled,
EventRelation can also represent other objects that are related to an event. EventRelation does not support triggers, workflow, or
data validation rules.
EventTag
Associates a word or short phrase with an Event.
EventWhoRelation
Represents the relationship between an event and a lead or contacts. This derived object is a filtered version of the EventRelation
on page 993 object; that is, IsParent is true and IsWhat is false. It doesn’t represent relationships to invitees or to accounts,
opportunities, or other objects. This object is available in API versions 29.0 and later.
ExternalDataSource
Represents an external data source, which defines connection details for integration with data and content that are stored outside
the Salesforce org. This object is available in API version 27.0 and later.
ExternalDataUserAuth
Stores authentication settings for a Salesforce user to access an external system. The external system must be defined in an external
data source or a named credential that’s configured to use per-user authentication. This object is available in API version 27.0 and
later.
144
Standard Objects
FeedAttachment
Represents an attachment to a feed item, such as a file attachment or a link. Use FeedAttachment to add various attachments to
one feed item. This object is available in API version 36.0 and later.
FeedComment
Represents a comment added to a feed by a user. This object is available in API version 18.0 and later.
FeedItem
FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This
object is available in API version 21.0 and later. This object replaces FeedPost.
FeedLike
Indicates that a user has liked a feed item. This object is available in API version 21.0 and later.
FeedPollChoice
Shows the choices for a poll posted in the feed. This object is available in API version 29.0 and later.
FeedPollVote
Shows how users voted on a poll posted in the feed. This object is available in API version 29.0 and later.
FeedPost
FeedPost represents the following types of changes in a record feed, such as AccountFeed: text posts, link posts, and content posts.
This object is available in API version 18.0 through 21.0. FeedPost is no longer available in later versions. Starting with API version
21.0, use FeedItem to represent text posts, link posts, and content posts in feeds.
FeedRevision
Holds the revision history of a specific feed item or comment, including a list of attributes that changed for each revision. This object
is available in API version 34.0 and later.
FeedTrackedChange
Represents an individual field change or set of field changes. A FeedTrackedChange is a child object of a record feed, such as
AccountFeed This object is available in API version 18.0 and later..
FieldHistoryArchive
Represents field history values for all objects that retain field history. FieldHistoryArchive is a BigObject, available only to
users with the “Retain Field History” permission. This object is available in API version 29.0 and later.
FieldPermissions
Represents the enabled field permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
FiscalYearSettings
Settings to define a custom or standard fiscal year for your organization. This object has a parent-child relationship with the Period
object.
FlexQueueItem
Represents an asynchronous Apex job in the Apex flex queue. Provides information about the job type and flex queue position of
the AsyncApexJob. This object is available in API version 36.0 and later.
FlowInterview
Represents a flow interview. A flow interview is a running instance of a flow.
FlowInterviewOwnerSharingRule
Represents the rules for sharing a FlowInterview with users other than the owner. This object is available in API version 33.0 and
later.
FlowInterviewShare
Represents a sharing entry on a FlowInterview. This object is available in API version 33.0 and later.
145
Standard Objects
Folder
Represents a repository for a Document, EmailTemplate, Report, or Dashboard. Only one type of item can be contained in a folder.
FolderedContentDocument
Represents the relationship between a parent and child ContentFolderItem in a ContentWorkspace.
ForecastingAdjustment
This object represents an individual sales manager’s adjustment for a subordinate’s forecast via a ForecastingItem. Available in API
versions 26 and greater. This object is separate from the ForecastingOwnerAdjustment object, which represents forecast users’
adjustments of their own forecasts.
ForecastingFact
This is a read-only object linking a ForecastingItem with its opportunities, such as opportunities that share the same owner or forecast
category and have a closing date within the period of the forecasting item. Available in API versions 26 and greater.
ForecastingItem
This is a read-only object used for individual forecast amounts. Users see amounts based on their perspectives and forecast roles.
The amounts users see include one of the following when forecasting in revenue: AmountWithoutAdjustments,
AmountWithoutManagerAdjustment, ForecastAmount, OwnerOnlyAmount. The amounts users see include
one of the following when forecasting in quantity: QuantityWithoutAdjustments,
QuantityWithoutManagerAdjustment, ForecastQuantity, OwnerOnlyQuantity. Available in API versions
26 and greater.
ForecastingOwnerAdjustment
This object represents an individual forecast user’s adjustment of their own forecast via a ForecastingItem. Available in API versions
33 and greater. This object is separate from the ForecastingAdjustment object, which represents managers’ adjustments of subordinates’
forecasts.
ForecastingQuota
This object represents an individual user’s quota for a specified time period. The “Manage Quotas” user permission is required for
creating, updating, or deleting quotas. (Users can only edit their subordinates’ quotas, not their own.) The “View All Forecasts”
permission is required to View any user's forecast, regardless of the forecast role hierarchy. Available in API versions 25 and greater.
Forecast managers can view the forecasts of subordinates who report to them in the forecast hierarchy.
ForecastingType
This object is used to identify the forecast type associated with ForecastingAdjustment,
ForecastingOwnerAdjustment, ForecastingQuota, ForecastingFact, and ForecastingItem objects.
Available in API versions 30.0 and greater.
ForecastingUserPreference
Represents the forecasting selections that a user has made, such as display options, date range, forecasting type, and currency.
ForecastShare
Represents the sharing of a customizable forecast at a given role and territory.
Goal
The Goal object represents the components of a goal such as its name, description, and status.
GoalFeed
Represents a single feed item in the feed displayed for a Goal record. The goal feed shows changes to a goal for fields that are tracked
in feeds, posts, and comments about the goal.
GoalHistory
This read-only object contains historical information about changes that have been made to the Goal object.
146
Standard Objects
GoalLink
Represents the relationship between two goals. This is a many-to-many relationship, meaning that each goal can link to many other
goals.
GoalShare
Represents a sharing entry on a Goal object.
GoogleDoc
Represents a link to a Google Document. This object is available in API version 14.0 and later.
Group
A set of User records.
GroupMember
Represents a User or Group that is a member of a public group.
HashtagDefinition
HashtagDefinition represents hashtag (#) topics in public Chatter posts and comments. Public posts and comments include those
on profiles and in public groups, but not those on records or in private groups. This object is available in API version 26.0 and later.
Holiday
Represents a period of time during which your customer support team is unavailable. Business hours and escalation rules associated
with business hours are suspended during any holidays with which they are affiliated.
Idea
Represents an idea on which users are allowed to comment and vote, for example, a suggestion for an enhancement to an existing
product or process. This object is available in API version 12 and later.
IdeaComment
Represents a comment that a user has submitted in response to an idea.
IdeaReputation
Represents a collection of statistics and scores derived from a user’s activity within an Ideas zone or internal organization. This object
is available in API version 28.0 and later.
IdeaReputationLevel
Represents a reputation level within an Ideas zone or internal organization and is used by the system to calculate reputation. You
can create up to 25 levels per zone or internal organization. This object is available in API version 28.0 and later.
IdeaTheme
Represents an invitation to community members to submit ideas that are focused on a specific topic. This object is available in API
version 26 and later.
KnowledgeableUser
Represents a user identified as knowledgeable about a specific topic, and ranks them relative to other knowledgeable users. This
object is available in API version 31.0 and later.
KnowledgeArticle
Provides read-only access to an article and the ability to delete the master article. This object is available in API version 19.0 and later.
KnowledgeArticleVersion
Provides a global view of standard article fields across all article types depending on their version. This object is available in API
version 18.0 and later.
KnowledgeArticleVersionHistory
Enables read-only access to the full history of an article. This object is available in API version 25.0 and later.
147
Standard Objects
KnowledgeArticleViewStat
Provides statistics on the number of views for the specified article across all article types. This object is read-only and available in API
version 20 and later.
KnowledgeArticleVoteStat
Provides the weighted rating for the specified article on a scale of 1 to 5 across all article types. This object is read-only and available
in API version 20 and later.
Lead
Represents a prospect or potential Opportunity.
LeadCleanInfo
Stores the metadata Data.com Clean uses to determine a lead record’s clean status. Helps you automate the cleaning or related
processing of lead records.
LeadFeed
Represents a single feed item in the feed displayed on the detail page for a lead record. This object is available in API version 18.0
and later.
LeadHistory
Represents the history of changes to the values in the fields of a lead.
LeadOwnerSharingRule
Represents the rules for sharing a lead with users other than the owner.
LeadShare
Represents a sharing entry on a Lead.
LeadStatus
Represents the status of a Lead, such as Open, Qualified, or Converted.
LeadTag
Associates a word or short phrase with a Lead.
LimitAllocationPerApp
Represents a connected app quota for an API limit. This object is available in API version 30.0 and later.
LineitemOverride
A forecast override of a line item on an Opportunity. This read-only object for customizable forecasting has a child-parent relationship
with OpportunityOverride.
LinkedArticle
Represents a Knowledge article that is attached to a record. This object is available in API version 37.0 and later.
LinkedArticleFeed
Represents a single feed item on a linked Knowledge article attached to a record. This object is available in API version 37.0 and later.
LinkedArticleHistory
Represents the history of changes made to tracked fields on a linked article. This object is available in API version 37.0 and later.
ListView
Represents a list view. A list view specifies a set of records for an object, based on specific criteria. This object is available in API version
32.0 and later.
ListViewChart
Represents a graphical chart that’s displayed on Salesforce1 list views. The chart aggregates data that is filtered based on the list
view that’s currently displayed. This object is available in API version 33.0 and later.
148
Standard Objects
ListViewChartInstance
Retrieves metadata for all standard and custom charts for a given entity in context of a given list view. This object is available in API
versions 34.0 and later.
LiveAgentSession
This object is automatically created for each Live Agent session and stores information about the session. This object is available in
API versions 28.0 and later.
LiveAgentSessionHistory
This object is automatically created for each Live Agent session and stores information about changes made to the session. This
object is available in API versions 28.0 and later.
LiveAgentSessionOwnerSharingRule
Represents the rules for sharing a Live Agent session record with users other than the record owner. This object is available in API
version 28.0 and later.
LiveAgentSessionShare
This object is automatically created for each Live Agent session and stores information about the session. This object is available in
API versions 28.0 and later.
LiveChatBlockingRule
Represents a rule for blocking chat visitors’ IP addresses from starting new chats with agents. This object is available in API version
34.0 and later.
LiveChatButton
Represents a button that allows visitors to request chats with Live Agent users. This object is available in API version 24.0 and later.
LiveChatButtonDeployment
Associates a Live Agent automated chat invitation with a specific deployment. This object is available in API versions 28.0 and later.
LiveChatButtonSkill
Represents all the skills available to a LiveChatButton except the one currently assigned. To retrieve the skill currently assigned, query
LiveChatButton. This object is available in API version 25.0 and later.
LiveChatDeployment
Represents the general settings for deploying Live Agent on a website. This object is available in API version 24.0 and later.
LiveChatSensitiveDataRule
Represents a rule for masking or deleting data of a specified pattern. Written as a regular expression (regex). This object is available
in API version 35.0 and later.
LiveChatTranscript
This object is automatically created for each Live Agent chat session and stores information about the session. This object is available
in API version 24.0 and later.
LiveChatTranscriptEvent
Captures specific events that occur over the lifetime of a chat. This object is available in API version 24.0 and later.
LiveChatTranscriptHistory
Represents changes to field values on a LiveChatTranscript object. This object is available in API version 24.0 and later.
LiveChatTranscriptOwnerSharingRule
Represents the rules for sharing a Live Agent chat transcript record with users other than the record owner. This object is available
in API version 29.0 and later.
LiveChatTranscriptShare
Represents a sharing entry on a LiveChatTranscript object. This object is available in API version 24.0 and later.
149
Standard Objects
LiveChatTranscriptSkill
Represents a join between LiveChatTranscript and Skill. This object is available in API version 25.0 and later.
LiveChatUserConfig
Represents a setting that controls the console settings for Live Agent users. This object is available in API version 24.0 and later.
LiveChatUserConfigProfile
Represents a join between LiveChatUserConfig and Profile. This object is available in API version 24.0 and later.
LiveChatUserConfigUser
Represents a join between LiveChatUserConfig and User. This object is available in API version 24.0 and later.
LiveChatVisitor
Represents a website visitor who has started or tried to start a chat session. This object is available in API version 24.0 and later.
LoginEvent
Represents a trackable user login event in your org. This object is available in API version 36.0 and later.
LoginGeo
Represents the geographic location of the user’s IP address for a login event. Due to the nature of geolocation technology, the
accuracy of geolocation fields (for example, country, city, postal code) may vary. This object is available in API version 34.0 and later.
LoginHistory
Represents the login history for all successful and failed login attempts for organizations and enabled portals. This object is available
in API version 21.0 and later.
LoginIp
Represents a validated IP address. This object is available in version 28.0 and later.
LookedUpFromActivity
This read-only object is displayed as a related list on an activity record (an event or a task); the list contains records that have custom
lookup relationships from the activity to another object. This object is not queryable.
Macro
Represents a macro, which is a set of instructions that tells the system to perform one or more tasks. This object is available in API
version 32.0 and later.
MacroInstruction
Represents an instruction in a macro. An instruction can specify the object that the macro interacts with, the context or publisher
that the macro works within, the operation or action that the macro performs, and the target of the macro’s actions. It is a useful
way to programmatically define instructions, instead of using the macro widget in the console.
MailmergeTemplate
Represents a mail merge template (a Microsoft Word document) used for performing mail merges for your organization.
MatchingRule
Represents a matching rule that is used to identify duplicate records. This object is available in API version 33.0 and later.
MatchingRuleItem
Represents criteria used by a matching rule to identify duplicate records. This object is available in API version 33.0 and later.
MetadataPackage
Represents a managed or unmanaged package that has been developed in the org you’re logged in to.
MetadataPackageVersion
Represents a package version (managed or unmanaged) that has been uploaded from the org you’re logged in to.
150
Standard Objects
Metric
The Metric object represents the components of a goal metric such as its name, metric type, and current value.
MetricDataLink
The link between the metric and the data source, such as a report.
MetricDataLinkHistory
This read-only object contains historical information about changes that have been made to the MetricDataLink object.
MetricFeed
Represents a single feed item in the feed displayed on a Metric record.
MetricHistory
This read-only object contains historical information about changes that have been made to the Metric object.
MetricsDataFile
Represents a data file containing usage metrics on all installations of a managed package in a Salesforce instance. This object is
available in API version 30.0 and later.
MetricShare
Represents a sharing entry on a Metric object.
MilestoneType
Represents a milestone (required step in a customer support process). This object is available in API version 18.0 and later.
Name
Non-queryable object that provides information about foreign key traversals when the foreign key has more than one parent.
NamedCredential
Represents a named credential, which specifies the URL of a callout endpoint and its required authentication parameters in one
definition. A named credential can be specified as an endpoint to simplify the setup of authenticated callouts. This object is available
in API version 33.0 and later.
NavigationLinkSet
Represents the navigation menu in a community. A navigation menu consists of items that users can click to go to other parts of
the community. This object is available in API version 36.0 and later.
NavigationMenuItem
Represents a single menu item in a NavigationLinkSet. Use this object to create, delete, or update menu items in your community’s
navigation menu. This object is available in API version 36.0 and later.
NavigationMenuItemLocalization
Represents the translated value of a navigation menu item in a community. This object is available in API version 36.0 and later.
Network
Represents a community, which is a customizable public or private space where employees, end-customers, and partners can
collaborate on best practices and business processes. Communities give you the opportunity to share information, records, and files
with coworkers and related external stakeholders all in one place. This object is available in API version 26.0 and later.
NetworkActivityAudit
Represents an audit trail of moderation actions in Communities. This object is available in API version 30.0 and later.
NetworkMember
Represents a member of a community. Members can be either users in your company or external users with portal profiles. This
object is available in API version 26.0 and later.
151
Standard Objects
NetworkMemberGroup
Represents a group of members in a community. Members can be either users in your internal organization or external users assigned
portal profiles. An administrator adds members to a community by adding a profile or a permission set, and any user with the profile
or permission set becomes a member of the community. This object is available in API version 26.0 and later.
NetworkModeration
Represents a flag on an item in a community. This object is available in API version 30.0 and later.
NetworkPageOverride
Represents information about custom pages used to override the default pages in communities. You can create Community Builder
(Site.com Studio) or Visualforce pages and override the default pages in a community. Using custom pages allows you to create a
more personalized experience for your users. This object is available in API version 34.0 and later.
NetworkSelfRegistration
Represents the account that self-registering community members are associated with by default. Self-registering users in a community
are required to be associated with an account, which the administrator must specify while setting up self-registration for the
community. If an account isn’t specified, Salesforce creates person accounts (when enabled) for self-registering users. This object is
available in API version 34.0 and later.
NewsFeed
Represents a single feed item on a user's home tab. A Chatter feed shows recent changes to records that the user is following.
Note
Represents a note, which is text associated with a custom object or a standard object, such as a Contact, Contract, or Opportunity.
OauthToken
Represents an OAuth access token for connected app authentication and can be used to create a user interface for token management.
This object is available in API version 32.0 and later.
NoteAndAttachment
This read-only object contains all notes and attachments associated with an object.
NoteTag
Associates a word or short phrase with a Note.
ObjectPermissions
Represents the enabled object permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
ObjectTerritory2AssignmentRule
Represents a territory assignment rule that’s associated with an object, such as Account. ObjectTerritory2AssignmentRuleItem can
only be created or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule is null. Available only
if Enterprise Territory Management has been enabled for your organization.
ObjectTerritory2AssignmentRuleItem
A single row of selection criteria for an ObjectTerritory2AssignmentRule object. ObjectTerritory2AssignmentRuleItem can only be
created or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule object is a null value.
Available only if Enterprise Territory Management has been enabled for your organization.
ObjectTerritory2Association
Represents an association (by assignment) between a territory and an object record, such as an account. Available only if Enterprise
Territory Management has been enabled for your Salesforce org.
OpenActivity
This read-only object is displayed in a related list of open activities—future events and open tasks—related to an object. It includes
activities for all contacts related to the object. OpenActivity fields for phone calls are only available if your organization uses Salesforce
CRM Call Center.
152
Standard Objects
OperatingHours
Represents the hours in which a service territory, service resource, or account is available for field service work. This object is available
in API version 38.0 and later.
OperatingHoursFeed
Represents a single feed item on an operating hours record detail page. This object is available in API version 38.0 and later.
OperatingHoursHistory
Represents the history of changes made to tracked fields on an operating hours record. This object is available in API version 38.0
and later.
Opportunity
Represents an opportunity, which is a sale or pending deal.
OpportunityCompetitor
Represents a competitor on an Opportunity.
OpportunityContactRole
Represents the role that a Contact plays on an Opportunity.
OpportunityFeed
Represents a single feed item in the feed displayed on the detail page for an opportunity record. This object is available in API version
18.0 and later.
OpportunityFieldHistory
Represents the history of changes to the values in the fields of an opportunity. This object is available in versions 13.0 and later.
OpportunityHistory
Represents the stage history of an Opportunity.
OpportunityLineItem
Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.
OpportunityLineItemSchedule
Represents information about the quantity, revenue distribution, and delivery dates for a particular OpportunityLineItem.
OpportunityOverride
Represents a forecast override of an Opportunity. This read-only object is specific to customizable forecasting. It has a parent-child
relationship with LineitemOverride.
OpportunityOwnerSharingRule
Represents a rule for sharing an opportunity with users other than the owner.
OpportunityPartner
This read-only object represents a partner relationship between an Account and an Opportunity. This object is automatically created
when a Partner object is created for a partner relationship between an account and an opportunity.
OpportunityShare
Represents a sharing entry on an Opportunity.
OpportunitySplit
OpportunitySplit credits one or more opportunity team members with a portion of the opportunity amount. This object is available
in API version 16.0 and later for pilot customers, and version 28.0 and later for others.
OpportunitySplitType
OpportunitySplitType provides unique labels and behavior for each split type. This object is available in API version 28.0 and later.
153
Standard Objects
OpportunityStage
Represents the stage of an Opportunity in the sales pipeline, such as New Lead, Negotiating, Pending, Closed, and so on.
OpportunityTag
Associates a word or short phrase with an Opportunity.
OpportunityTeamMember
Represents a User on the opportunity team of an Opportunity.
Order
Represents an order associated with a contract or an account.
OrderFeed
Represents a single feed item in the feed displayed on an order.
OrderHistory
Represents historical information about changes that have been made to the standard fields of the associated order, or to any custom
fields with history tracking enabled.
OrderItem
Represents an order product that your organization sells.
OrderItemFeed
Represents a single feed item in the feed displayed on the detail page for an order product record.
OrderItemHistory
Represents the history of changes to the values in the fields of an order product.
OrderOwnerSharingRule
Represents a rule which determines order sharing access for the order’s owners.
Organization
Represents key configuration information for an organization.
OrgWideEmailAddress
Represents an organization-wide email address for user profiles.
OwnedContentDocument
Represents a file owned by a user. This object is available in version 30.0 and later.
PackageLicense
Represents a license for an installed managed package. This object is available in API version 31.0 and later.
PackagePushError
Represents an error encountered during a push request. The number of PackagePushError records created depends on the number
of push jobs in the request that result in an error.
PackagePushJob
Represents an individual push job for upgrading a package in an org from one version to another version. There can be multiple
push jobs created for one push request. For example, if you want to upgrade five orgs as part of one push, you have one
PackagePushRequest record and five PackagePushJob records.
PackagePushRequest
Represents the push request for upgrading a package in one or many orgs from one version to another version.
PackageSubscriber
Represents an installation of a package in an org. This object contains installation information for managed packages developed in
the org you’re logged in to.
154
Standard Objects
Partner
Represents a partner relationship between two Account records or between an Opportunity and an Account.
PartnerNetworkConnection
Represents a Salesforce to Salesforce connection between Salesforce organizations.
PartnerNetworkRecordConnection
Represents a record shared between Salesforce organizations using Salesforce to Salesforce.
PartnerNetworkSyncLog
Represents the Org Sync Log tab in Salesforce, where Salesforce administrators can track the replication of record inserts and updates
being performed in Organization Sync. The Connection Detail page for the replication connection also displays the Org Sync Log’s
twenty most recent entries, and provides a link to the log.
PartnerRole
Represents a role for an account Partner, such as consultant, supplier, and so on.
Period
Represents a fiscal period defined in FiscalYearSettings.
PermissionSet
Represents a set of permissions that’s used to grant additional access to one or more users without changing their profile or reassigning
profiles. This object is available in API version 22.0 and later.
PermissionSetAssignment
Represents the association between a User and a PermissionSet. This object is available in API version 22.0 and later.
PermissionSetLicense
Represents a license that’s used to enable one or more users to receive a specified permission without changing their profile or
reassigning profiles. You can use permission set licenses to grant access, but not to deny access. This object is available in API version
29.0 and later.
PermissionSetLicenseAssign
Represents the association between a User and a PermissionSetLicense. This object is available in API version 29.0 and later.
PlatformAction
PlatformAction is a virtual read-only object. It enables you to query for actions displayed in the UI, given a user, a context, device
format, and a record ID. Examples include standard and custom buttons, quick actions, and productivity actions.
PresenceUserConfig
Represents a configuration that determines a presence user’s settings. This object is available in API version 32.0 and later.
PresenceUserConfigProfile
Represents a configuration that determines the settings that are assigned to presence users who are assigned to a specific profile.
User-level configurations override profile-level configurations. This object is available in API version 32.0 and later.
PresenceUserConfigUser
Represents a configuration that determines the settings that are assigned to a presence user. These user-level configurations override
profile-level configurations. This object is available in API version 32.0 and later.
Pricebook2
Represents a price book that contains the list of products that your org sells.
Pricebook2History
Represents historical information about changes that have been made to the standard fields of the associated Pricebook2, or to any
custom fields with history tracking enabled. This object is available in API version 39.0 and later.
155
Standard Objects
PricebookEntry
Represents a product entry (an association between a Pricebook2 and Product2) in a price book.
ProcessDefinition
Represents the definition of a single approval process.
ProcessInstance
Represents an instance of a single, end-to-end approval process. Use this and the node, step, and workitem process instance objects
to create approval history reports.
ProcessInstanceHistory
This read-only object shows all steps and pending approval requests associated with an approval process (ProcessInstance).
ProcessInstanceStep
Represents one work item in an approval process (ProcessInstance).
ProcessInstanceNode
Represents a step in an instance of an approval process. Compare to ProcessNode, which describes the step in a process definition.
Use this object to retrieve approval history.
ProcessInstanceWorkitem
Represents a user’s pending approval request.
ProcessNode
Describes a step in a process definition. Compare to ProcessInstanceNode, which describes the step in a running process.
Product2
Represents a product that your org sells.
Product2Feed
Represents a single feed item in the feed displayed on the detail page for a product record. This object is available in API version
18.0 and later.
ProductEntitlementTemplate
Represents predefined terms of customer support (Entitlement) that users can add to products (Product2).
Profile
Represents a profile, which defines a set of permissions to perform different operations, such as querying, adding, updating, or
deleting information.
ProfileSkill
Represents a profile skill, which describes a user’s professional knowledge. This is a global record for the organization, and users are
associated through the ProfileSkillUser object.
ProfileSkillEndorsement
Represents a detail relationship of ProfileSkillUser. An endorsement of a profile skill shows approval and support of another user’s
publicly declared skill.
ProfileSkillEndorsementFeed
Represents a single feed item in the feed displayed on the detail page for a ProfileSkillEndorsement record. This object is available
in API version 34.0 and later.
ProfileSkillEndorsementHistory
Represents the history of changes to the fields of a ProfileSkillEndorsement.
ProfileSkillFeed
Represents a single feed item in the feed displayed on the detail page for a profile skill.
156
Standard Objects
ProfileSkillHistory
Represents the history of changes to the fields of a ProfileSkill.
ProfileSkillShare
Represents a sharing entry on a ProfileSkill.
ProfileSkillUser
Represents a detail relationship of User. The object connects profile skills with users.
ProfileSkillUserFeed
Represents a single feed item in the feed displayed on the detail page for a ProfileSkillUser record. This object is available in API
version 34.0 and later.
ProfileSkillUserHistory
Represents the history of changes to the fields of a ProfileSkillUser.
PushTopic
QuantityForecast
Represents a quantity-based forecast.
QuantityForecastHistory
Represents historical information about quantity-based forecasts that have been submitted (saved) in the user interface.
QueueRoutingConfig
Represents the settings that determine how work items are routed to agents. This object is available in API version 32.0 and later.
Question
Represents a question in a community that users can view and reply to.
QuestionDataCategorySelection
A data category selection represents a data category that classifies a question.
QuestionReportAbuse
Represents a user-reported abuse on a Question in a Chatter Answers community. This object is available in API version 24.0 and
later.
QuestionSubscription
Represents a subscription for a user following a Question. This object is available in API version 24.0 and later.
QueueSobject
Represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
QuickText
This object stores a snippet of text that allows an agent to send a quick response to a customer in the Live Agent console. This object
is available in API version 24.0 and later.
QuickTextHistory
Represents changes to field values on a QuickText object. This object is available in API version 24.0 and later.
QuickTextOwnerSharingRule
Represents a rule for sharing a QuickText object with users other than the owner.
QuickTextShare
Represents a sharing entry on a QuickText object. This object is available in API version 24.0 and later.
Quote
The Quote object represents a quote, which is a record showing proposed prices for products and services. Available in API version
18.0 and later.
157
Standard Objects
QuoteDocument
Represents a quote in document format. Available in API version 18.0 and later.
QuoteFeed
Represents a single feed item on the quote record detail page. This object is available in API version 39.0 and later.
QuoteLineItem
The QuoteLineItem object represents a quote line item, which is a member of the list of Product2 products associated with a Quote,
along with other information about those line items on that quote. Available in API version 18.0 and later.
RecentlyViewed
Represents records that the current user has recently viewed or referenced (by viewing a related record).
RecordType
Represents a record type.
RecordTypeLocalization
Represents the translated value of a label for a record type when the Translation Workbench is enabled for your organization.
Reply
Represents a reply that a user has submitted to a question in an answers community.
ReplyReportAbuse
Represents a user-reported abuse on a Reply in a Chatter Answers community. This object is available in API version 24.0 and later.
Report
Represents a report, a set of data that meets certain criteria, displayed in an organized way. Access is read-only. This object is available
in API version 20.0 and later.
ReportFeed
Represents a single feed item in the feed displayed on a report. This object is available in API version 20.0 and later.
ReportTag
Associates a word or short phrase with a Report. This object is available in API version 20.0 and later.
ReputationLevel
Represents a reputation level defined for a community. This object is available in API version 32.0 and later.
ReputationLevelLocalization
Represents the translated value of a reputation level. Reputation level localization only applies for reputation levels in communities.
This object is available in API version 35.0 and later.
ReputationPointsRule
Represents the reputation point rules for a community. Each rule specifies an action that community members can earn points from
and the points associated with those actions in a particular community. This object is available in API version 32.0 and later.
ResourceAbsence
Represents a time period in which a service resource is unavailable to work. This object is available in API version 38.0 and later.
ResourceAbsenceFeed
Represents a single feed item on a resource absence record detail page. This object is available in API version 38.0 and later.
ResourceAbsenceHistory
Represents the history of changes made to tracked fields on a resource absence. This object is available in API version 38.0 and later.
RevenueForecast
Represents a revenue-based forecast.
158
Standard Objects
RevenueForecastHistory
Represents historical information about revenue-based forecasts that have been submitted (saved) in the user interface.
RuleTerritory2Association
Represents a record-assignment rule and its association to an object, such as Account. Available only if Enterprise Territory Management
has been enabled for your organization.
SamlSsoConfig
Represents a SAML Single Sign-On configuration. This object is available in API version 32.0 and later.
Scontrol
A custom s-control, which is custom content that is hosted by the system but executed by the client application.
ScontrolLocalization
The translated value of the field label for an s-control.
SearchPromotionRule
Represents a promoted search term, which is one or more keywords that you associate with a Salesforce Knowledge article. When
a user’s search query includes these keywords, the associated article is returned first in search results. This object is available in API
version 31.0 and later.
SecureAgent
Represents a Secure Agent that connects Salesforce to on-premises external data sources like SharePoint 2010 and 2013. This object
is available in API version 32.0 and later.
SecureAgentsCluster
Represents a cluster consisting of several Secure Agents on different servers. Clusters provide failover protection if an agent on a
particular server becomes inaccessible. This object is available in API version 35.0 and later.
SecurityCustomBaseline (Beta)
Provides the ability to read, create, and delete user-defined custom security baselines, which define an org’s security standards. This
object is available in API version 39.0 and later.
SelfServiceUser
Represents a Contact who has been enabled to use your organization’s Self-Service portal, where he or she can obtain online support.
ServiceAppointment
Represents an appointment to complete field service work for a customer. This object is available in API version 38.0 and later.
ServiceAppointmentFeed
Represents a single feed item on a service appointment record detail page. This object is available in API version 38.0 and later.
ServiceAppointmentHistory
Represents the history of changes made to tracked fields on a service appointment. This object is available in API version 38.0 and
later.
ServiceAppointmentOwnerSharingRule
Represents the rules for sharing a service appointment with user records other than the owner or anyone above the owner in the
role hierarchy. This object is available in API version 38.0 and later.
ServiceAppointmentShare
Represents a sharing entry on a service appointment. This object is available in API version 38.0 and later.
ServiceChannel
Represents a channel of work items that are received from your organization—for example, cases, chats, or leads. This object is
available in API version 32.0 and later.
159
Standard Objects
ServiceChannelStatus
Represents the status that’s associated with a specific service channel. This object is available in API version 32.0 and later.
ServiceContract
Represents a customer support contract (business agreement). This object is available in API version 18.0 and later.
ServiceContractFeed
Represents a single feed item in the feed displayed on the detail page for a service contract record. This object is available in API
version 23.0 and later.
ServiceContractHistory
Represents the history of changes to the values in the fields on a ServiceContract (customer support agreement). This object is
available in API version 18.0 and later.
ServiceContractOwnerSharingRule
Represents the rules for sharing a ServiceContract (customer service agreement) with users other than the owner. This object is
available in API version 18.0 and later.
ServiceContractShare
Represents a sharing entry on a ServiceContract (customer support agreement). This object is available in API version 18.0 and later.
ServicePresenceStatus
Represents a presence status that can be assigned to a service channel. This object is available in API version 32.0 and later.
ServiceResource
Represents a service technician or dispatcher in field service. This object is available in API version 38.0 and later.
ServiceResourceCapacity
Represents the maximum number of scheduled hours or number of service appointments that a capacity-based service resource
can complete within a specific time period. This object is available in API version 38.0 and later.
ServiceResourceCapacityFeed
Represents a single feed item on a service resource capacity record detail page. This object is available in API version 38.0 and later.
ServiceResourceCapacityHistory
Represents the history of changes made to tracked fields on a service resource capacity record. This object is available in API version
38.0 and later.
ServiceResourceFeed
Represents a single feed item on a service resource record detail page. This object is available in API version 38.0 and later.
ServiceResourceHistory
Represents the history of changes made to tracked fields on a service resource. This object is available in API version 38.0 and later.
ServiceResourceOwnerSharingRule
Represents the rules for sharing a service resource with user records other than the owner or anyone above the owner in the role
hierarchy. This object is available in API version 38.0 and later.
ServiceResourceShare
Represents a sharing entry on a service resource. This object is available in API version 38.0 and later.
ServiceResourceSkill
Represents a skill that a service resource possesses. This object is available in API version 38.0 and later.
ServiceResourceSkillFeed
Represents a single feed item on a service resource skill record detail page. This object is available in API version 38.0 and later.
160
Standard Objects
ServiceResourceSkillHistory
Represents the history of changes made to tracked fields on a service resource skill. This object is available in API version 38.0 and
later.
ServiceTerritory
Represents a region in which field service work can be performed. This object is available in API version 38.0 and later.
ServiceTerritoryFeed
Represents a single feed item on a service territory record detail page. This object is available in API version 38.0 and later.
ServiceTerritoryHistory
Represents the history of changes made to tracked fields on a service territory. This object is available in API version 38.0 and later.
ServiceTerritoryMember
Represents a service resource who is able to be assigned to service appointments in the service territory. This object is available in
API version 38.0 and later.
ServiceTerritoryMemberFeed
Represents a single feed item on a service territory member record detail page. This object is available in API version 38.0 and later.
ServiceTerritoryMemberHistory
Represents the history of changes made to tracked fields on a service territory member. This object is available in API version 38.0
and later.
SessionPermSetActivation
The SessionPermSetActivation object represents a permission set assignment activated during an individual user session. When a
SessionPermSetActivation object is inserted into a permission set, an activation event fires, allowing the permission settings to apply
to the user’s specific session. This object is available in API versions 37.0 and later as part of the Session-Based Permission Sets
Developer Preview.
SetupAuditTrail
Represents changes you or other admins made in your org’s Setup area for at least the last 180 days. This object is available in API
version 15.0 and later.
SetupEntityAccess
Represents the enabled setup entity access settings (such as for Apex classes) for the parent PermissionSet. This object is available
in API version 25.0 and later.
SignupRequest
Represents a request for a new Trialforce sign-up. This object is available in API version 27.0 and later.
Site
Represents a public website that is integrated with an Organization. This object is generally available in API version 16.0 and later.
SiteDomain
SiteDomain is a read-only object, and a one-to-many replacement for the Site.TopLevelDomain field. This object is available in API
version 21.0, and has been deprecated as of API version 26.0. In API version 26.0 and later, use the Domain and DomainSite objects
instead.
SiteHistory
Represents the history of changes to the values in the fields of a site. This object is generally available in API version 18.0 and later.
Skill
Represents a category or group that Live Agent users or field service resources can be assigned to. This object is available in API
version 24.0 and later.
161
Standard Objects
SkillProfile
Represents a join between Skill and Profile. This object is available in API version 24.0 and later.
SkillRequirement
Represents a skill that is required to complete a particular task. Skill requirements can be added to work types, work orders, and work
order line items. This object is available in API version 38.0 and later.
SkillRequirementFeed
Represents a single feed item on a skill requirement record detail page. This object is available in API version 38.0 and later.
SkillRequirementHistory
Represents the history of changes made to tracked fields on a skill requirement. This object is available in API version 38.0 and later.
SkillUser
Represents a join between Skill and User. This object is available in API version 24.0 and later.
SlaProcess
Represents an entitlement process associated with an Entitlement. This object is available in API version 19.0 and later.
Solution
Represents a detailed description of a customer issue and the resolution of that issue.
SolutionFeed
Represents a single feed item in the feed displayed on the detail page for a solution record. This object is available in API version
18.0 and later.
SolutionHistory
Represents the history of changes to the values in the fields of a solution.
SolutionStatus
Represents the status of a Solution, such as Draft, Reviewed, and so on.
SolutionTag
Associates a word or short phrase with a Solution.
SOSDeployment
Represents the general settings for deploying SOS video call capability in a native mobile application. This object is available in API
version 34.0 and later.
SOSSession
This object is automatically created for each SOS session and stores information about the session. This object is available in API
versions 34.0 and later.
SOSSessionActivity
Captures information about specific events that occur during an SOS video call, such as when an SOS call begins or ends. This object
is available in API version 34.0 and later.
SOSSessionHistory
This object is automatically created for each SOS session and stores information about changes made to the session. This object is
available in API versions 34.0 and later.
SOSSessionOwnerSharingRule
Represents the rules for sharing an SOS session record with users other than the record owner. This object is available in API version
34.0 and later.
SOSSessionShare
Represents a sharing entry on an SOS session. This object is available in API version 34.0 and later.
162
Standard Objects
Stamp
Represents a User Specialty. This object is available in API version 39.0 and later.
StampAssignment
Represents assignment of a User Specialty to a user. This object is available in API version 39.0 and later.
StaticResource
Represents a static resource that can be used in Visualforce markup.
StreamingChannel
TagDefinition
Defines the attributes of child Tag objects.
Task
Represents a business activity such as making a phone call or other to-do items. In the user interface, Task and Event records are
collectively referred to as activities.
TaskFeed
Represents a single feed item in the feed on a Task. This object is available in API version 20.0 and later.
TaskPriority
Represents the importance or urgency of a Task, such as High, Normal, or Low.
TaskRelation
Represents the relationship between a task and a lead, contacts, and other objects related to the task. If Shared Activities is enabled,
this object doesn’t support triggers, workflow, or data validation rules. This object is available in API version 24.0 and later.
TaskStatus
Represents the status of a Task, such as Not Started, Completed, or Closed.
TaskTag
Associates a word or short phrase with a Task.
TaskWhoRelation
Represents the relationship between a task and a lead or contacts. This object is available in API version 29.0 and later.
TenantSecret
This object stores an encrypted organization-specific key fragment that is used with the master secret to produce organization-specific
data encryption keys. This object is available in API version 34.0 and later.
Territory
Represents a flexible collection of accounts and users where the users have at least read access to the accounts, regardless of who
owns the accounts. Only available if territory management has been enabled for your organization.
Territory2
Represents a sales territory. Available only if Enterprise Territory Management has been enabled for your organization.
Territory2Model
Represents a territory model. Available only if Enterprise Territory Management has been enabled for your organization.
Territory2ModelHistory
Represents the history of changes to the values in the fields on a territory model. Available only if Enterprise Territory Management
has been enabled for your organization.
Territory2Type
Represents a category for territories (Territory2). Every Territory2 must have a Territory2Type. Available only if Enterprise Territory
Management has been enabled for your organization.
163
Standard Objects
TestSuiteMembership
Associates an Apex class with an ApexTestSuite. This object is available in API version 36.0 and later.
ThirdPartyAccountLink
Represents the list of external users who authenticated using an Auth. Provider. This object is available in API version 32.0 and later.
TimeSlot
Represents a period of time on a specified day of the week during which field service work can be performed. Operating hours consist
of one or more time slots. This object is available in API version 38.0 and later.
TimeSlotHistory
Represents the history of changes made to tracked fields on a time slot. This object is available in API version 38.0 and later.
Topic
Represents a topic on a Chatter post or record. This object is available in API version 28.0 and later.
TopicAssignment
Represents the assignment of a topic to a specific feed item, record, or file. This object is available in API version 28.0 and later.
TopicFeed
Represents a single feed item on a topic page. This object is available in API version 29.0 and later.
TopicLocalization—Beta
Represents the translated version of a topic name. Topic localization applies only to navigational and featured topics in communities.
This object is available in API version 33.0 and later.
TwoFactorInfo
Stores a user’s secret for two-factor operations. Use this object when customizing two-factor authentication in your organization.
This object is available in API version 32.0 and later.
TwoFactorMethodsInfo
Stores information about which identity verification methods a user has registered. This object is available in API version 37.0 and
later.
TwoFactorTempCode
Stores information about a user’s temporary identity verification code. This object is available in API version 37.0 and later.
UndecidedEventRelation
Represents invitees with the status Not Responded for a given event. This object is available in API versions 29.0 and later.
User
Represents a user in your organization.
UserAccountTeamMember
Represents a User on the default account team of another User.
UserAppInfo
Stores the last Lightning app logged in to. This object is available in API version 38.0 and later.
UserAppMenuCustomization
Represents an individual user’s settings for items in the Force.com app menu or App Launcher. This object is available in API version
35.0 and later.
UserAppMenuCustomizationShare
Represents a sharing entry on a UserAppMenuCustomization record. This object is available in API version 35.0 and later.
164
Standard Objects
UserAppMenuItem
Represents the organization-wide settings for items in the Force.com app menu or App Launcher that the requesting user has access
to in Setup. This object is available in API version 35.0 and later.
UserConfigTransferButton
Represents the association between a Live Agent configuration and a live chat button. This association allows users associated with
a specific configuration to transfer chats to a button queue.
UserConfigTransferSkill
Represents the association between a Live Agent configuration and a skill. This association allows users associated with a specific
configuration to transfer chats to agents who have that skill.
UserCustomBadge
Represents a custom badge for a user. This object is available in API version 38.0 and later.
UserCustomBadgeLocalization
Represents the translated version of a custom badge for a user. This object is available in API version 38.0 and later.
UserFeed
Represents a single feed item in the feed displayed on a Chatter user profile feed. A user profile feed shows changes to a user record
for fields that are tracked in feeds, and posts and comments about the record. This object is available in API version 18.0 and later.
UserLicense
Represents a user license in your organization. A user license entitles a user to specific functionality and determines the profiles and
permission sets available to the user.
UserLogin
Represents the settings that affect a user’s ability to log into an organization. To access this object, you need the
UserPermissions.ManageUsers permission. This object is available in API version 29.0 and later.
UserMembershipSharingRule
Represents the rules for sharing user records from a source group to a target group. A user record contains details about a user. Users
who are members of the source group can be shared with members of the target group. The source and target groups can be based
on roles, portal roles, public groups, or territories. This object is available in API version 26.0 and later.
UserPackageLicense
Represents a license for an installed managed package, assigned to a specific user. This object is available in API version 31.0 and
later.
UserPreference
Represents a functional preference for a specific user in your organization.
UserProfile
Represents a Chatter user profile.
UserProfileFeed
Represents a user profile feed, which tracks all actions by a user on records that can be tracked in a feed. This feed is displayed on
the user profile page.
UserProvAccount
Represents information that links a Salesforce user account with an account in a third-party (target) system, such as Google, for users
of connected apps with Salesforce user provisioning enabled. This object is available in API version 33.0 and later.
UserProvAccountStaging
Temporarily stores user account information while a user completes the User Provisioning Wizard. This information that is stored in
the UserProvAccount object when you click the button to collect and analyze accounts on the target system.
165
Standard Objects
UserProvMockTarget
Represents an entity for testing user data before committing the data to a third-party system for user provisioning.
UserProvisioningConfig
Represents information for a flow to use during a user provisioning request process, such as the attributes for an update. This object
is available in API version 34.0 and later.
UserProvisioningLog
Represents messages generated during the process of provisioning users for third-party applications. This object is available in API
version 33.0 and later.
UserProvisioningRequest
Represents an individual provisioning request to create, update, or delete a single user account in a third-party service system (or
another Salesforce organization). This object is available in API version 33.0 and later.
UserProvisioningRequestOwnerSharingRule
Represents a rule for sharing a UserProvisioningRequest object with users other than the owner. This object is available in API version
34.0 and later.
UserProvisioningRequestShare
Represents a sharing entry on a UserProvisioningRequest record. This object is available in API version 34.0 and later.
UserRecordAccess
Represents a user’s access to a set of records. This object is read only and is available in API version 24.0 and later.
UserRole
Represents a user role in your organization.
UserServicePresence
Represents a presence user’s real-time presence status. This object is available in API version 32.0 and later.
UserShare
Represents a sharing entry on a user record. This object is available in API version 26.0 and later.
UserTeamMember
Represents a single User on the default opportunity team of another User.
UserTerritory
Represents a User who has been assigned to a Territory.
UserTerritory2Association
Represents an association (by assignment) between a territory and a user record. Available only if Enterprise Territory Management
has been enabled for your organization.
VerificationHistory
Represents the past six months of your org users’ attempts to verify their identity. This object is available in API version 36.0 and later.
VoiceCall
Represents a Voice phone call.
VoiceCallList
Represents a prioritized list of numbers to call.
VoiceCallListItem
Represents a single phone number in a prioritized call list.
VoiceCallListShare
Represents a sharing entry on a VoiceCallList.
166
Standard Objects
VoiceCallShare
Represents a sharing entry on a VoiceCall object.
VoiceMailContent
Represents a voicemail message.
VoiceMailContentShare
Represents a sharing entry on a VoiceMailContent.
VoiceUserLine
Represents a user’s forwarding phone number.
VoiceUserLineShare
Represents a sharing entry on a user’s phone number.
VoiceVendorInfo
Represents information about the voice provider’s vendor.
VoiceVendorLine
Represents a user’s phone number reserved with the vendor.
VoiceVendorLineShare
Represents a sharing entry on a vendor’s phone number.
Vote
Represents a vote that a user has made on an Idea or a Reply.
WebLink
Represents a custom link to a URL or Scontrol.
WebLinkLocalization
Represents the translated value of the field label for a custom link to a URL or s-control when the Translation Workbench is enabled
for your organization.
WorkAccess
Used to grant or restrict user access to give badge definitions. Each badge definition record must have one WorkAccess record.
WorkAccessShare
Used to control Givers of WorkBadgeDefinition records.
WorkBadge
Represents information about who the badge was given to and which badge was given. A WorkBadge record is created for each
recipient of a WorkBadgeDefinition.
WorkBadgeDefinition
Represents the attributes of a badge including the badge name, description, and image. Each WorkBadge record must have a lookup
to a WorkBadgeDefinition since badge attributes (like badge name) are derived from the WorkBadgeDefinition object.
WorkBadgeDefinitionHistory
Represents the history of changes to the values in the fields of a WorkBadgeDefinition object.
WorkBadgeDefinitionShare
Represents a sharing entry on a WorkBadgeDefinition object.
WorkCoaching
Represents a single coaching relationship between two users. One of the users is defined as the coach and the other is defined as a
coachee. WorkCoaching is feed-enabled so there is a private feed available to the coach and coachee.
167
Standard Objects
WorkCoachingFeed
Represents a single feed item in the feed on the detail page for a coaching record.
WorkCoachingHistory
Represents the history of changes to the values in the fields of a WorkCoaching object.
WorkCoachingShare
Represents a sharing entry on a WorkCoaching object.
WorkFeedback
Represents the answer to a question that a person was asked via a feedback request. Also used to store offered feedback without
linking it to a particular question.
WorkFeedbackHistory
Represents the history of changes to the values in the fields of a WorkFeedback object. Access is read-only.
WorkFeedbackQuestion
Represents a free-form text type or multiple choice question within a set of questions.
WorkFeedbackQuestionHistory
Represents the history of changes to the values in the fields of a WorkFeedbackQuestion.
WorkFeedbackQuestionSet
Represents a set of questions being asked. The question set is used to link all the individual requests where different recipients were
asked the same set of questions on the same subject.
WorkFeedbackQuestionSetHistory
Represents the history of changes to the values in the fields of a WorkFeedbackQuestionSet object. Access is read-only.
WorkFeedbackQuestionSetShare
Represents a sharing entry on a WorkFeedbackQuestionSet.
WorkFeedbackQuestionShare
Represents a sharing entry on a WorkFeedbackQuestion.
WorkFeedbackRequest
Represents a single feedback request on a subject or topic (question) to a single recipient in the feedback application. In the case of
offered feedback, WorkFeedbackRequest represents feedback that is offered about a subject. In the performance application,
WorkFeedbackRequest represents a request for feedback on a set of questions from a question set, on a subject—for the recipient
to complete and submit.
WorkFeedbackRequestFeed
Represents a single feed item in the feed displayed on the feedback request detail page.
WorkFeedbackRequestHistory
Represents the history of changes to the values in the fields of a WorkFeedbackRequest.
WorkFeedbackRequestShare
Represents a sharing entry on a WorkFeedbackRequest.
WorkFeedbackShare
Represents a sharing entry on a WorkFeedback object.
WorkGoal
Represents the components of a goal, such as its description and associated metrics. This object has been deprecated as of API
version 35.0. Use the Goal object to query information about Work.com goals.
168
Standard Objects
WorkGoalCollaborator
Represents collaborators on a WorkGoal object. This doesn’t include WorkGoal followers, which is handled by Chatter Feed Follow
functionality. This object has been deprecated as of API version 35.0. Use the Goal object to query information about Work.com
goals.
WorkGoalCollaboratorHistory
Represents the history of changes to the values in the fields in a WorkGoalCollaborator object. Access is read-only.
WorkGoalFeed
Represents a single feed item in the feed displayed on the goal page for a Goal record. The goal feed shows changes to a goal for
fields that are tracked in feeds, posts, and comments about the goal, and updates on metrics. This object has been deprecated as
of API version 35.0. Use the GoalFeed object to query information about feed items for Work.com goals.
WorkGoalHistory
Represents the history of changes to the values in the fields of a WorkGoal. Access is read-only. This object has been deprecated as
of API version 35.0. Use the GoalHistory object to query historical information for Work.com goals.
WorkGoalLink
Represents the relationship between two goals (many to many relationship). This object has been deprecated as of API version 35.0.
Use the GoalLink object to query information about the relationship between two Work.com goals.
WorkGoalShare
Represents a sharing entry on a WorkGoal object. This object has been deprecated as of API version 35.0. Use the GoalShare object
to query information about sharing for Work.com goals.
WorkOrder
Represents a task or series of tasks to be performed, typically in field service. This object is available in API version 36.0 and later.
WorkOrderFeed
Represents a single feed item on a work order record detail page. This object is available in API version 36.0 and later.
WorkOrderHistory
Represents the history of changes made to tracked fields on a work order. This object is available in API version 36.0 and later.
WorkOrderLineItem
Represents a subtask on a work order, typically in field service. This object is available in API version 36.0 and later.
WorkOrderLineItemFeed
Represents a single feed item on a work order line item record detail page. This object is available in API version 36.0 and later.
WorkOrderLineItemHistory
Represents the history of changes made to tracked fields on a work order line item. This object is available in API version 36.0 and
later.
WorkOrderShare
Represents a sharing entry on a work order. This object is available in API version 36.0 and later.
WorkPerformanceCycle
Represents feedback that is gathered to assess the performance of a specific set of employees.
WorkPerformanceCycleFeed
Represents a single feed item in the feed that is displayed on a Work.com Performance detail page.
WorkPerformanceCycleHistory
Represents the history of changes to the values in the fields of a WorkPerformanceCycle object.
WorkPerformanceCycleShare
Represents a sharing entry on a WorkPerformanceCycle object.
169
Standard Objects
AcceptedEventRelation
WorkReward
Used to store reward codes tied to a Reward Fund. Reward Funds must have at least one WorkReward record.
WorkRewardFund
Represents a Reward Fund and describes the Reward Fund attributes.
WorkRewardFundHistory
Represents the history of changes to the values in the fields of a WorkRewardFund object.
WorkRewardFundShare
Share records for WorkRewardFund.
WorkRewardFundType
Represents the type of WorkRewardFund object.
WorkRewardFundTypeHistory
Represents the history of changes to the values in the fields of a WorkRewardFundType object.
WorkRewardFundTypeShare
Represents a sharing entry on a WorkRewardFundType.
WorkRewardHistory
Represents the history of changes to the fields of a WorkReward.
WorkRewardShare
Share records for WorkReward object.
WorkThanks
Represents the source and message of a thanks post.
WorkThanksShare
Share records for WorkThanks object.
WorkType
Represents a type of work to be performed. Work types are templates that can be applied to work order or work order line items.
This object is available in API version 38.0 and later.
WorkTypeFeed
Represents a single feed item on a work type record detail page. This object is available in API version 38.0 and later.
WorkTypeHistory
Represents the history of changes made to tracked fields on a work type. This object is available in API version 38.0 and later.
Reusable Terms for API Objects
AcceptedEventRelation
Represents invitees with the status Accepted for a given event.
This object is available in API versions 29.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
170
Standard Objects
AcceptedEventRelation
Fields
Field Name
Details
EventId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the event.
RelationId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the invitee.
RespondedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the most recent date and time when the invitee accepted an invitation
to the event.
Response
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates the content of the response field. Label is Comment.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the invitee is a user, lead or contact, or resource.
171
Standard Objects
Account
Usage
Query invitees who have accepted an invitation to an event
SELECT eventId, type, response FROM AcceptedEventRelation WHERE eventid='00UTD000000ZH5LA'
SEE ALSO:
DeclinedEventRelation
UndecidedEventRelation
Account
Represents an individual account, which is an organization or person involved with your business (such as customers, competitors, and
partners).
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), merge(),
query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Customer Portal users can access their own accounts and any account shared with them.
Fields
Field Name
Details
AccountNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Account number assigned to this account (not the unique, system-generated ID assigned
during creation). Maximum size is 40 characters.
AccountSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The source of the account record. For example, Advertisement, Data.com, or Trade
Show. The source is selected from a picklist of available values, which are set by an
administrator. Each picklist value can have up to 40 characters.
172
Standard Objects
Account
Field Name
Details
AnnualRevenue
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Estimated annual revenue of the account.
BillingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the billing address. Read-only. See Address Compound Fields for
details on compound address fields.
BillingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 40 characters.
BillingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 80 characters.
BillingCountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the account’s billing address.
BillingGeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
173
Standard Objects
Field Name
Account
Details
Description
Accuracy level of the geocode for the billing address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
BillingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLongitude to specify the precise geolocation of a billing address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
BillingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLatitude to specify the precise geolocation of a billing address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
BillingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 20 characters.
BillingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 80 characters.
BillingStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the account’s billing address.
174
Standard Objects
Account
Field Name
Details
BillingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address for the billing address of this account.
CleanStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the record’s clean status as compared with Data.com. Values are: Matched,
Different, Acknowledged, NotFound, Inactive, Pending, SelectMatch,
or Skipped.
Several values for CleanStatus display with different labels on the account record detail
page.
• Matched displays as In Sync
• Acknowledged displays as Reviewed
• Pending displays as Not Compared
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
Description
Type
textarea
175
Standard Objects
Field Name
Account
Details
Properties
Create, Nillable, Update
Description
Text description of the account. Limited to 32,000 KB.
DunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit number
assigned to every business location in the Dun & Bradstreet database that has a unique,
separate, and distinct operation. D-U-N-S numbers are used by industries and organizations
around the world as a global standard for business identification and tracking. Maximum
size is 9 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Fax number for the account.
Industry
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An industry associated with this account. Maximum size is 40 characters.
IsCustomerPortal
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether the account has at least one contact enabled to use the organization's
Customer Portal (true) or not (false). This field is available if Customer Portal is enabled
OR Communities is enabled and you have Customer Portal licenses.
176
Standard Objects
Field Name
Account
Details
If you change this field's value from true to false, you can disable up to 100 Customer
Portal users associated with the account and permanently delete all of the account's Customer
Portal roles and groups. You can't restore deleted Customer Portal roles and groups.
This field can be updated in API version 16.0 and later.
Tip: We recommend that you only update up to 50 contacts simultaneously when
changing the accounts on contacts enabled for a Customer Portal or partner portal.
We also recommend that you make this update during times outside of your
organization's business hours.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPartner
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether the account has at least one contact enabled to use the organization's
partner portal (true) or not (false). This field is available if partner relationship
management (partner portal) is enabled OR Communities is enabled and you have partner
portal licenses.
If you change this field's value from true to false, you can disable up to 15 partner
portal users associated with the account and permanently delete all of the account's partner
portal roles and groups. You can't restore deleted partner portal roles and groups.
Disabling a partner portal user in the Salesforce user interface or the API does not change
this field's value from true to false.
Even if this field's value is false, you can enable a contact on an account as a partner
portal user via the API.
This field can be updated in API version 16.0 and later.
Tip: We recommend that you only update up to 50 contacts simultaneously when
changing the accounts on contacts enabled for a Customer Portal or partner portal.
We also recommend that you make this update during times outside of your
organization's business hours.
IsPersonAccount
Type
boolean
177
Standard Objects
Field Name
Account
Details
Properties
Defaulted on create, Filter
Description
Read only. Label is Is Person Account. Indicates whether this account has a record type of
Person Account (true) or not (false).
Jigsaw
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
References the ID of a company in Data.com. If an account has a value in this field, it means
that the account was imported from Data.com. If the field value is null, the account was
not imported from Data.com. Maximum size is 20 characters. Available in API version 22.0
and later. Label is Data.com Key.
Important: The Jigsaw field is exposed in the API to support troubleshooting for
import errors and reimporting of corrected data. Do not modify the value in the
Jigsaw field.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
178
Standard Objects
Account
Field Name
Details
MasterRecordId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
If this object was deleted as the result of a merge, this field contains the ID of the record that
was kept. If this object was deleted for any other reason, or has not been deleted, the value
is null.
NaicsCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The six-digit North American Industry Classification System (NAICS) code is the standard
used by business and government to classify business establishments into industries,
according to their economic activity for the purpose of collecting, analyzing, and publishing
statistical data related to the U.S. business economy. Maximum size is 8 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
NaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its NAICS code. Maximum
size is 120 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Label is Account Name. Name of the account. Maximum size is 255 characters.
If the account has a record type of Person Account:
• This value is the concatenation of the FirstName, MiddleName, LastName, and
Suffix of the associated person contact.
• You can't modify this value.
179
Standard Objects
Account
Field Name
Details
NumberOfEmployees
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Label is Employees. Number of employees working at the company represented by this
account. Maximum size is eight digits.
OperatingHoursId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The operating hours associated with the account. Available only if Field Service Lightning is
enabled.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the user who currently owns this account. Default value is the user logged in to
the API to perform the create.
If you have set up account teams in your organization, updating this field has different
consequences depending on your version of the API:
• For API version 12.0 and later, sharing records are kept, as they are for all objects.
• For API version before 12.0, sharing records are deleted.
• For API version 16.0 and later, users must have the “Transfer Record” permission in order
to update (transfer) account ownership using this field.
Ownership
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Ownership type for the account, for example Private, Public, or Subsidiary.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
180
Standard Objects
Field Name
Account
Details
Description
ID of the parent object, if any.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Phone number for this account. Maximum size is 40 characters.
PhotoUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
Path to be combined with the URL of a Salesforce instance (for example,
https://yourInstance.salesforce.com/) to generate a URL to request the social network
profile image associated with the account. Generated URL returns an HTTP redirect (code
302) to the social network profile image for the account.
Blank if Social Accounts and Contacts isn't enabled for the organization or if Social Accounts
and Contacts is disabled for the requesting user.
Rating
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The account’s prospect rating, for example Hot, Warm, or Cold.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
Salutation
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
181
Standard Objects
Field Name
Account
Details
Description
Honorific added to the name for use in letters, etc.
ShippingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the shipping address. Read-only. See Address Compound Fields for
details on compound address fields.
ShippingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details of the shipping address for this account. City maximum size is 40 characters
ShippingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details of the shipping address for this account. Country maximum size is 80 characters.
ShippingCountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the account’s shipping address.
ShippingGeocodeAccuracy Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the shipping address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
ShippingLatitude
Type
double
182
Standard Objects
Field Name
Account
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLongitude to specify the precise geolocation of a shipping address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
ShippingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLatitude to specify the precise geolocation of an address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
ShippingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details of the shipping address for this account. Postal code maximum size is 20 characters.
ShippingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details of the shipping address for this account. State maximum size is 80 characters.
ShippingStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the account’s shipping address.
ShippingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
183
Standard Objects
Field Name
Account
Details
Description
The street address of the shipping address for this account. Maximum of 255 characters.
Sic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Standard Industrial Classification code of the company’s main business categorization, for
example, 57340 for Electronics. Maximum of 20 characters.
SicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its SIC code. Maximum
length is 80 characters.
Site
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the account’s location, for example Headquarters or London. Label is
Account Site. Maximum of 80 characters.
TickerSymbol
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The stock market symbol for this account. Maximum of 20 characters.
Tradestyle
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A name, different from its legal name, that an organization may use for conducting business.
Similar to “Doing business as” or “DBA”. Maximum length is 255 characters.
184
Standard Objects
Field Name
Account
Details
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of account, for example, Customer, Competitor, or Partner.
Website
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The website of this account. Maximum of 255 characters.
YearStarted
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date when an organization was legally established. Maximum length is 4 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
IsPersonAccount Fields
These fields are the subset of person account fields that are contained in the child person contact record of each person account. If the
IsPersonAccount field has the value false, the following fields have a null value and can't be modified. If true, the fields
contain the value indicated in the Description column in the following table and can be modified.
Person accounts are not enabled by default.
Field Name
Details
FirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
First name of the person for a person account. Maximum size is 40 characters.
185
Standard Objects
Account
Field Name
Details
LastName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Last name of the person for a person account. Required if the record type is a person account
record type. Maximum size is 80 characters.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Middle name of the person for a person account. Maximum size is 40 characters. Contact
Salesforce Customer Support to enable this field.
PersonAssistantName
Type
string
Properties
Create, Filter, Nillable, Update
Description
The person account’s assistant name. Label is Assistant. Maximum size is 40 characters.
PersonAssistantPhone
Type
phone
Properties
Create, Filter, Nillable, Update
Description
The person account’s assistant phone. Label is Asst. Phone. Maximum size is 40 characters.
PersonBirthDate
Type
date
Properties
Create, Filter, Nillable, Update
Description
The assistant name. Label is Birthdate.
186
Standard Objects
Field Name
Account
Details
Note: The year portion of the PersonBirthDate field is ignored in filter criteria,
including report filters, list view filters, and SOQL queries. For example, the following
SOQL query returns person accounts with birthdays later in the year than today:
SELECT FirstName, LastName, PersonBirthDate
FROM Account
WHERE Birthdate > TODAY
PersonContactId
Type
reference
Properties
Filter, Nillable, Update
Description
The ID for the contact associated with this person account. Label is Contact ID.
PersonDepartment
Type
string
Properties
Create, Filter, Nillable, Update
Description
The department. Label is Department. Maximum size is 80 characters.
PersonEmail
Type
email
Properties
Create, Filter, Nillable, Update
Description
Email address for thisperson account. Label is Email.
PersonEmailBouncedDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
If bounce management is activated and an email sent to the person account bounces, the
date and time the bounce occurred.
PersonEmailBouncedReason Type
string
Properties
Create, Filter, Nillable, Update
187
Standard Objects
Field Name
Account
Details
Description
If bounce management is activated and an email sent to the person account bounces, the
reason the bounce occurred
PersonHasOptedOutOfEmail Type
boolean
Properties
Create, Filter, Nillable, Update
Description
Indicates whether the person account has opted out of email (true) or not (false). Label
is Email Opt Out.
PersonHomePhone
Type
phone
Properties
Create, Filter, Nillable, Update
Description
The home phone number for this person account. Label is Home Phone.
PersonLastCURequestDate Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
The last date that this person account was requested. Label is Last Stay-in-Touch Request
Date.
PersonLastCUUpdateDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
The last date a person account was updated. Label is Last Stay-in-Touch Save Date.
PersonLeadSource
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
The person account’s lead source. Label is Lead Source.
188
Standard Objects
Account
Field Name
Details
PersonMailingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the person account mailing address. Read-only. See Address
Compound Fields for details on compound address fields.
PersonMailingCity
Type
string
Properties
Create, Filter, Nillable, Update
Description
Details about the person account’s mailing city. Labels are Mailing City, Mailing Country,
Postal Code, and State. Maximum size for city and country is 40 characters. Maximum size
for postal code and state is 20 characters.
PersonMailingGeocodeAccuracy Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the person’s mailing address. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
PersonMailingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with PersonMailingLongitude to specify the precise geolocation of a person
account’s mailing address. Acceptable values are numbers between –90 and 90 with up to
15 decimal places. See Compound Field Considerations and Limitations for details on
geolocation compound fields.
PersonMailingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with PersonMailingLatitude to specify the precise geolocation of a person
account’s mailing address. Acceptable values are numbers between –180 and 180 with up
189
Standard Objects
Field Name
Account
Details
to 15 decimal places. See Compound Field Considerations and Limitations on page 42 for
details on geolocation compound fields.
PersonMailingStreet
Type
textarea
Properties
Create, Filter, Nillable, Update
Description
The mailing street address for this person account. Label is Mailing Street. Maximum size
is 255 characters.
PersonMobilePhone
Type
phone
Properties
Create, Filter, Nillable, Update
Description
The mobile phone number for this person account. Label is Mobile.
•
PersonOtherCity
Type
string
•
PersonOtherCountry
•
PersonOtherPostalCode Properties
•
PersonOtherState
Create, Filter, Nillable, Update
Description
Details about the alternate address for this person account. Labels are Other City, Other
Country, Other Zip/Postal Code, and Other State.
• PersonOtherCountryCode Type
picklist
• PersonOtherStateCode
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country or state code for the alternate address of the person account.
PersonOtherLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with PersonOtherLongitude to specify the precise geolocation of a person
account’s alternate address. Acceptable values are numbers between –90 and 90 with up
to 15 decimal places. See Compound Field Considerations and Limitations for details on
geolocation compound fields.
190
Standard Objects
Account
Field Name
Details
PersonOtherLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with PersonOtherLatitude to specify the precise geolocation of a person
account’s alternate address. Acceptable values are numbers between –180 and 180 with up
to 15 decimal places. See Compound Field Considerations and Limitations for details on
geolocation compound fields.
PersonOtherPhone
Type
phone
Properties
Create, Filter, Nillable, Update
Description
The alternate phone number for this person account. Label is Other Phone.
PersonOtherStreet
Type
textarea
Properties
Create, Filter, Nillable, Update
Description
The person account’s alternate street address. Label is Other Street.
PersonTitle
Type
string
Properties
Create, Filter, Nillable, Update
Description
The person account’s title. Label is Title. Maximum size is 80 characters.
Suffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name suffix of the person for a person account. Maximum size is 40 characters. Contact
Salesforce Customer Support to enable this field.
Note: If you are importing Account data into Salesforce and need to set the value for an audit field, such as CreatedDate,
contact Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself.
191
Standard Objects
AccountContactRelation
Usage
Use this object to query and manage accounts in your organization. Client applications can create, update, delete, or query Attachment
records associated with an account via the API.
Client applications can also create or update account objects by converting a Lead via the convertLead() call.
If the values in the IsPersonAccount Fields are not null, you can't change IsPersonAccount to false, or an error occurs.
SEE ALSO:
AccountShare
AccountTeamMember
Person Account Record Types
AccountHistory
AccountContactRelation
Represents a relationship between a contact and one or more accounts.
This object is available in API version 37.0. The AccountContactRelation object supports person accounts. That means that a person
account can be either a related contact on a business account or a related account on a contact. A person account can also be related
to another person account as either a related contact or related account.
Supported Calls
create(),delete(),describeLayout(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),update(),upsert()
Special Access Rules
Fields
Field Name
Details
AccountContactRelationshipCurrency Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains
the ISO code for any currency allowed by the organization.
AccountId
Type
reference
Properties
Create, Filter, Group, Sort
192
Standard Objects
Field Name
AccountContactRelation
Details
Description
ID of the account that is related to the contact. Field can't be modified when
updating existing account-contact relationship records.
ContactId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the contact that is related to the account. Field can't be modified when
updating existing account-contact relationship records.
EndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date a relationship between a contact and account began. Use with the
Start Date to keep a history of the relationship.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether relationship is active (true) or not (false).
IsDirect
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the account associated with the contact is the contact's primary
account (true) or not (false).
Roles
Type
multipicklist
Properties
Create, Filter, Nillable, Update
Description
The contact’s participating role in the account. Values are Business User,
Decision Maker, Economic Buyer, Economic Decision
193
Standard Objects
Field Name
AccountCleanInfo
Details
Maker, Evaluator, Executive Sponsor, Influencer,
Technical Buyer, and Other.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date a relationship between a contact and account ended. Use with the End
Date to keep a history of the relationship.
Usage
Use this object to associate a single contact record to multiple account records so you can easily track the relationships between the
people and businesses they work with.
AccountCleanInfo
Stores the metadata Data.com Clean uses to determine an account record’s clean status. AccountCleanInfo helps you automate the
cleaning or related processing of account records.
Account Clean Info provides a snapshot of the data in your Salesforce account record and its matched Data.com record at the time the
Salesforce record was cleaned.
Account Clean Info includes a number of bit vector fields, whose component fields each correspond to individual object fields and
provide related data or status information about those fields. For example, the bit vector field IsDifferent has an
IsDifferentState field. If the IsDifferentState field’s value is False, that means the State field value is the same
on the Salesforce account record and its matched Data.com record.
AccountCleanInfo bit vector fields include:
• CleanedBy indicates who (a user) or what (a Clean job) cleaned the account record.
• IsDifferent indicates whether or not a field on the account record has a value that differs from the corresponding field on the
matched Data.com record.
• IsFlaggedWrong indicates whether or not a field on the account record has a value that is flagged as wrong to Data.com.
• IsReviewed indicates whether or not a field on the account record is in a Reviewed state, which means that the value was
reviewed but not accepted.
Their individual bits are defined here.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()
194
Standard Objects
AccountCleanInfo
Fields
Field Name
Details
AccountId
Type
reference
Properties
Filter, Group, Sort
Description
The unique, system-generated ID assigned when the account record was created.
AccountSite
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Information about the account’s location, such as single location, headquarters,
or branch.
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields
for details on compound address fields.
AnnualRevenue
Type
currency
Properties
Filter, Nillable, Sort
Description
Estimated annual revenue of the account.
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the account.
CleanedByJob
Type
boolean
195
Standard Objects
Field Name
AccountCleanInfo
Details
Properties
Filter
Description
Indicates whether the account record was cleaned by a Data.com Clean job
(true) or not (false).
CleanedByUser
Type
boolean
Properties
Filter
Description
Indicates whether the account record was cleaned by a Salesforce user (true)
or not (false).
CompanyName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the company.
CompanyStatusDataDotCom
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The status of the company per Data.com. Values are: Company is In
Business per Data.com or Company is Out of Business
per Data.com.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the account.
DandBCompanyDunsNumber
Type
string
Properties
Filter, Group, Nillable, Sort
196
Standard Objects
Field Name
AccountCleanInfo
Details
Description
The D-U-N-S Number on the D&B Company record (if any) that is linked to the
account.
DataDotComId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ID Data.com maintains for the company.
Description
Type
textarea
Properties
Nillable
Description
A description of the account.
DunsNumber
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit
number assigned to every business location in the Dun & Bradstreet database
that has a unique, separate, and distinct operation. D-U-N-S numbers are used
by industries and organizations around the world as a global standard for business
identification and tracking.
DunsRightMatchConfidence
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The account’s DUNSRight confidence code.
DunsRightMatchGrade
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The account’s DUNSRight match grade.
197
Standard Objects
AccountCleanInfo
Field Name
Details
Fax
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The account’s fax number.
Industry
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The industry the account belongs to.
IsDifferentAccountSite
Type
boolean
Properties
Filter
Description
Indicates whether the account’s AccountSite field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentAnnualRevenue
Type
boolean
Properties
Filter
Description
Indicates whether the account’s AnnualRevenue field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCity
Type
boolean
Properties
Filter
Description
Indicates whether the account’s City field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCompanyName
Type
boolean
Properties
Filter
198
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s AccountName field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountry
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Country field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountryCode
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Country Code field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentDandBCompanyDunsNumber Type
boolean
Properties
Filter
Description
Indicates whether the account’s DandBCompanyID field value is different
from the corresponding value on its matched Data.com record (true) or not
(false).
IsDifferentDescription
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Description field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentDunsNumber
Type
boolean
Properties
Filter
199
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s DunsNumber field value is different from the
D-U-N-S Number on its matched Data.com record (true) or not (false).
IsDifferentFax
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Fax field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentIndustry
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Industry field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentNaicsCode
Type
boolean
Properties
Filter
Description
Indicates whether the account’s NaicsCode field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentNaicsDescription
Type
boolean
Properties
Filter
Description
Indicates whether the account’s NaicsDescription field value is different
from the corresponding value on its matched Data.com record (true) or not
(false).
IsDifferentNumberOfEmployees
Type
boolean
Properties
Filter
200
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s NumberOf Employees field value is
different from the corresponding value on its matched Data.com record (true)
or not (false).
IsDifferentOwnership
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Ownership field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPhone
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Phone field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPostalCode
Type
boolean
Properties
Filter
Description
Indicates whether the account’s PostalCode field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentSic
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Sic field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentSicDescription
Type
boolean
Properties
Filter
201
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s SicDescription field value is different
from the corresponding value on its matched Data.com record (true) or not
(false).
IsDifferentState
Type
boolean
Properties
Filter
Description
Indicates whether the account’s State field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStateCode
Type
boolean
Properties
Filter
Description
Indicates whether the account’s State Code field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStreet
Type
boolean
Properties
Filter
Description
Indicates whether the account’s State field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentTickerSymbol
Type
boolean
Properties
Filter
Description
Indicates whether the account’s TickerSymbol field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentTradestyle
Type
boolean
Properties
Filter
202
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Tradestyle field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentWebsite
Type
boolean
Properties
Filter
Description
Indicates whether the account’s Website field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentYearStarted
Type
boolean
Properties
Filter
Description
Indicates whether the account’s YearStarted field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsFlaggedWrongAccountSite
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s AccountSite field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongAddress
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Address field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongAnnualRevenue
Type
boolean
Properties
Filter, Update
203
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s AnnualRevenue field value is flagged as
wrong to Data.com (true) or not (false).
IsFlaggedWrongCompanyName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s CompanyName field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongDescription
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Description field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongDunsNumber
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s DunsNumber field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongFax
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Fax field value is flagged as wrong to Data.com
(true) or not (false).
IsFlaggedWrongIndustry
Type
boolean
Properties
Filter, Update
204
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Industry field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongNaicsCode
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NaicsCode field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongNaicsDescription Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NaicsDescription field value is flagged
as wrong to Data.com (true) or not (false).
IsFlaggedWrongNumberOfEmployees Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NumberOfEmployees field value is flagged
as wrong to Data.com (true) or not (false).
IsFlaggedWrongOwnership
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Ownership field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongPhone
Type
boolean
Properties
Filter, Update
205
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Phone field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongSic
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Sic field value is flagged as wrong to Data.com
(true) or not (false).
IsFlaggedWrongSicDescription
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s SicDescription field value is flagged as
wrong to Data.com (true) or not (false).
IsFlaggedWrongTickerSymbol
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s TickerSymbol field value is flagged as
wrong to Data.com (true) or not (false).
IsFlaggedWrongTradestyle
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Tradestyle field value is flagged as wrong
to Data.com (true) or not (false).
IsFlaggedWrongWebsite
Type
boolean
Properties
Filter, Update
206
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Website field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongYearStarted
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s YearStarted field value is flagged as wrong
to Data.com (true) or not (false).
IsInactive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the account has been reported to Data.com as Inactive
(true) or not (false).
IsReviewedAccountSite
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s AccountSite field value is in a Reviewed
state (true) or not (false).
IsReviewedAddress
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Address field value is in a Reviewed state
(true) or not (false).
IsReviewedAnnualRevenue
Type
boolean
Properties
Filter, Update
207
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s AnnualRevenue field value is in a
Reviewed state (true) or not (false).
IsReviewedCompanyName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s CompanyName field value is in a Reviewed
state (true) or not (false).
IsReviewedDandBCompanyDunsNumber Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s DandBCompanyID field value is in a
Reviewed state (true) or not (false).
IsReviewedDescription
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Description field value is in a Reviewed
state (true) or not (false).
IsReviewedDunsNumber
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s DunsNumber field value is in a Reviewed
state (true) or not (false).
IsReviewedFax
Type
boolean
Properties
Filter, Update
208
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Fax field value is in a Reviewed state (true)
or not (false).
IsReviewedIndustry
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Industry field value is in a Reviewed
state (true) or not (false).
IsReviewedNaicsCode
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NaicsCode field value is in a Reviewed
state (true) or not (false).
IsReviewedNaicsDescription
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NaicsDescription field value is in a
Reviewed state (true) or not (false).
IsReviewedNumberOfEmployees
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s NumberOfEmployees field value is in a
Reviewed state (true) or not (false).
IsReviewedOwnership
Type
boolean
Properties
Filter, Update
209
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Ownership field value is in a Reviewed
state (true) or not (false).
IsReviewedPhone
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Phone field value is in a Reviewed state
(true) or not (false).
IsReviewedSic
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Sic field value is in a Reviewed state (true)
or not (false).
IsReviewedSicDescription
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s SicDescription field value is in a
Reviewed state (true) or not (false).
IsReviewedTickerSymbol
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s TickerSymbol field value is in a Reviewed
state (true) or not (false).
IsReviewedTradestyle
Type
boolean
Properties
Filter, Update
210
Standard Objects
Field Name
AccountCleanInfo
Details
Description
Indicates whether the account’s Tradestyle field value is in a Reviewed
state (true) or not (false).
IsReviewedWebsite
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s Website field value is in a Reviewed state
(true) or not (false).
IsReviewedYearStarted
Type
boolean
Properties
Filter, Update
Description
Indicates whether the account’s YearStarted field value is in a Reviewed
state (true) or not (false).
LastMatchedDate
Type
dateTime
Properties
Filter, Sort
Description
The date the account record was last matched and linked to a Data.com record.
LastStatusChangedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of who or what last changed the record’s Clean Status field value:
a Salesforce user or a Clean job.
LastStatusChangedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date on which the record’s Clean Status field value was last changed.
211
Standard Objects
AccountCleanInfo
Field Name
Details
Latitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Longitude to specify the precise geolocation of a billing address.
Data not currently provided.
Longitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Latitude to specify the precise geolocation of a billing address.
Data not currently provided.
NaicsCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The six-digit North American Industry Classification System (NAICS) code is the
standard used by business and government to classify business establishments
into industries, according to their economic activity for the purpose of collecting,
analyzing, and publishing statistical data related to the U.S. business economy.
NaicsDescription
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A brief description of an organization’s line of business, based on its NAICS code.
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
Field label is Account Clean Info Name. The name of the account. Maximum
size is 255 characters.
212
Standard Objects
AccountCleanInfo
Field Name
Details
NumberOfEmployees
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of employees working at the account.
Ownership
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Ownership type for the account, for example Private, Public, or Subsidiary.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number for the account.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the account.
Sic
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Standard Industrial Classification code of the company’s main business
categorization, for example, 57340 for Electronics.
SicDescription
Type
string
Properties
Filter, Group, Nillable, Sort
213
Standard Objects
Field Name
AccountCleanInfo
Details
Description
A brief description of an organization’s line of business, based on its SIC code.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the account.
Street
Type
textarea
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the account.
TickerSymbol
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The stock market symbol for the account.
Tradestyle
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A name, different from its legal name, that an organization can use for conducting
business. Similar to “Doing business as” (DBA).
Website
Type
url
Properties
Filter, Group, Nillable, Sort
Description
The website of the account.
YearStarted
Type
string
214
Standard Objects
Field Name
AccountCleanInfo
Details
Properties
Filter, Group, Nillable, Sort
Description
The year the company was established or the year when current ownership or
management assumed control of the company.
Usage
Administrators can modify a limited set of AccountCleanInfo fields from the Account Clean Info page.
Developers can create triggers that read the Account Clean Info fields to help automate the cleaning or related processing of account
records. For example, you might create a trigger that reads the Clean Status field on the Account object. If an account record’s
Clean Status field value is Different but the record has no Billing Street value, the trigger could update the record’s
status to Not Compared.
Create triggers that read AccountCleanInfo fields to help automate the cleaning or related processing of account records. For example:
• Keep account records’ status InSync if the only difference from matched records is the Phone format (for example, (415)
353-8000 on the account record versus 415 353 8000 on the matched Data.com record).
trigger AccountPhoneTrigger on Account (before update) {
for (Account account: Trigger.new) {
Account oldAccount = Trigger.oldMap.get(account.ID);
if (account.CleanStatus == 'Different') {
List  cleanInfo = [Select Id, IsDifferentPhone,
IsReviewedPhone, Phone from AccountCleanInfo where AccountId = :account.Id];
if (cleanInfo.size() > 0 && cleanInfo[0].IsDifferentPhone &&
cleanInfo[0].Phone.StartsWith('+')) {
// if Data.com phone number is marked Different but starts with ‘+’,
ignore this
// and set the status to “Reviewed”
AccountCleanInfo cleanInfoToUpdate = new AccountCleanInfo();
cleanInfoToUpdate.Id = cleanInfo[0].Id;
cleanInfoToUpdate.IsReviewedPhone = true;
update cleanInfoToUpdate;
account.CleanStatus = 'Reviewed';
}
}
}
}
• Create a customized set of Industry field values for accounts. Use triggers to map values from fields on imported or cleaned
records onto a standard set of values.
• Read the CleanStatus field value on the Account object. If that value is Different, but a Salesforce record has no street
address value, update the record’s status to Not Compared.
215
Standard Objects
AccountContactRole
AccountContactRole
Represents the role that a Contact plays on an Account.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Account.
ContactId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
Required. ID of the Contact associated with this account.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
216
Standard Objects
Field
AccountFeed
Details
Description
Specifies whether the Contact plays the primary role on the Account (true) or not (false).
Note that each account has only one primary contact role. Label is Primary. Default value
is false.
Role
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the role played by the Contact on this Account, such as Decision Maker, Approver,
Buyer, and so on. Must be unique—there can't be multiple records in which the
AccountId, ContactId, and Role values are identical. Different contacts can play
the same role on the same account. A contact can play different roles on the same account.
Usage
Use this object to define the role that a Contact plays on a given Account within the context of a specific Opportunity.
SEE ALSO:
Account
Contact
AccountFeed
Represents a single feed item on an account record detail page. This object is available in API version 18.0 and later.
An account feed shows changes to an account record for fields that are tracked in feeds, and posts and comments about the record. It
is a useful way to stay up-to-date with changes made to accounts in Salesforce.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Account object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
217
Standard Objects
AccountFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of AccountFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
218
Standard Objects
Field
AccountFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost.The name of the file uploaded to the feed. Setting ContentFileName
automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
219
Standard Objects
Field
AccountFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
isRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• 
220
Standard Objects
Field
AccountFeed
Details
Tip: Though the 
 tag isn’t supported, you can use 
 
to create lines.
• 
• 
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
221
Standard Objects
Field
AccountFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the account record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
222
Standard Objects
AccountFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
223
Standard Objects
Field
AccountFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
224
Standard Objects
AccountHistory
Usage
Use this object to track changes for an account record.
SEE ALSO:
Account
EntitySubscription
NewsFeed
UserProfileFeed
AccountHistory
Represents the history of changes to the values in the fields of an account. This object is available in versions 11.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
AccountId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Account. Label is Account ID.
225
Standard Objects
AccountOwnerSharingRule
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to an account.
This object respects field level security on the parent object.
SEE ALSO:
Account
AccountOwnerSharingRule
Represents the rules for sharing an account with a User other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
226
Standard Objects
AccountOwnerSharingRule
Fields
Field
Details
AccountAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
• All (This value isn’t valid for creating or updating.)
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for all child cases. The
possible values are:
• None
• Read
• Edit
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A value that represents the type of access granted to the target Group, UserRole, or User for
any associated contacts. The possible values are:
• None
• Read
• Edit
Note: When DefaultContactAccess is set to Controlled by Parent,
you can’t create or update this field.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
227
Standard Objects
Field
AccountOwnerSharingRule
Details
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. An Account owned by a User in the source Group
triggers the rule to give access.
OpportunityAccessLevel Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for any associated
Opportunity. The possible values are:
• None
• Read
• Edit
Name
Type
string
228
Standard Objects
Field
AccountPartner
Details
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for accounts. General sharing and territory management-related sharing use this object. For
example, the following code creates an account owner sharing rule between two public groups, which can also contain portal users.
AccountOwnerSharingRule rule = new AccountOwnerSharingRule();
rule.setName("RuleName"); // Set the sharing rule name
rule.setDeveloperName("RuleDeveloperName"); // Set the sharing rule developer name
rule.setGroupId("00Gx00000000000"); // Set the group of users to share records from
rule.setUserOrGroupId("00Gx00000000001"); // Set the group of users to share records to
rule.setAccountAccessLevel("Edit");
rule.setOpportunityAccessLevel("Read");
rule.setCaseAccessLevel("None");
connection.create(rule);
SEE ALSO:
Account
AccountShare
Metadata API Developer Guide: SharingRules
AccountPartner
This read-only object represents a partner relationship between two Account objects. It is automatically created when a Partner object
is created for a partner relationship between two accounts.
Note: This object is completely distinct and independent of Account records that have been enabled for the partner portal.
Supported Calls
describeSObjects(), query(), retrieve()
229
Standard Objects
AccountPartner
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
AccountFromId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the main Account in the partner relationship.
AccountToId
Type
reference
Properties
Filter, Group, Nillable, Sort,
Description
ID of the partner Account in the partner relationship.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the AccountPartner is the main account’s primary partner (true) or not
(false).
OpportunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the opportunity in a partner relationship with the related account.
230
Standard Objects
AccountShare
Field
Details
Role
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The UserRole that the partner Account has on the main Account. For example, Consultant
or Distributor.
Creating an Account-Account Partner Relationship
When you create a partner relationship between two accounts (when you create a Partner object and specify the AccountFromId),
the API automatically creates two AccountPartner objects, one for the forward relationship and one for the reverse. For example, if you
create a Partner object with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId, the API automatically
creates two AccountPartner objects:
• The forward relationship AccountPartner with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId.
• The reverse relationship AccountPartner with “Acme Consulting” as the AccountFromId and “Acme, Inc.” as the AccountToId.
• The value of the Role field in the reverse relationship AccountPartner is set to the PartnerRole object ReverseRole value
associated with the value of the Role field in the forward relationship AccountPartner.
This mapping allows the API to manage the objects and their relationship efficiently.
SEE ALSO:
Partner
OpportunityPartner
AccountShare
Represents a sharing entry on an Account.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
231
Standard Objects
AccountShare
Field
Details
AccountAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Account. The possible values are:
• Read
• Edit
• All (This value isn't valid for create or update calls.)
This field must be set to an access level that is at least equal to the organization’s default
Account access level. In addition, either this field, the OpportunityAccessLevel
field, or the CaseAccessLevel field must be set higher than the organization’s default
access level.
AccountId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Account associated with this sharing entry. This field can't be updated.
CaseAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to cases associated with the account. The possible
values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
CaseAccessLevel. This field can't be updated via the API if the
AccountAccessLevel field is set to All. You can't update this field for the associated
account owner via the API. You must update the account owner’s CaseAccessLevel
via the Salesforce user interface.
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
232
Standard Objects
Field
AccountShare
Details
Description
Level of access that the User or Group has to contacts associated with the account. The
possible values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
ContactAccessLevel. This field can't be updated via the API if the
ContactAccessLevel field is set to “Controlled by Parent.” You can't update this field
for the associated account owner using the API. You must update the account owner’s
ContactAccessLevel via the Salesforce user interface.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to opportunities associated with the Account. The
possible values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
opportunity access level. This field can’t be updated via the API if the
AccountAccessLevel field is set to All. You can't use the API to update this field
for the associated Account owner. You must update the Account owner’s
opportunityAccessLevel via the Salesforce user interface.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
233
Standard Objects
Field
AccountShare
Details
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a User with “All” access manually
shared the Account with the user or group.
• ImplicitParent—The User or Group has access because they’re the owner of or
have sharing access to records related to the account, such as opportunities, cases,
contacts, contracts, or orders.
• Owner—The User is the owner of the Account
• Team—The User or Group has team access (is an AccountTeamMember).
• Rule—The User or Group has access via an Account sharing rule.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Account. This field can't be updated.
Usage
This object allows you to determine which users and groups can view or edit Account records owned by other users.
If you attempt to create an AccountShare record that matches an existing record, the request updates any modified fields and returns
the existing record.
For example, the following code finds all accounts owned by a user and manually shares them to a portal user.
QueryResult result = conn.query("SELECT Id FROM Account WHERE OwnerId = '005D0000001LPFB'");
// Create a new AccountShare object
List Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
221
Standard Objects
Field
AccountFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the account record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
222
Standard Objects
AccountFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
223
Standard Objects
Field
AccountFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
224
Standard Objects
AccountHistory
Usage
Use this object to track changes for an account record.
SEE ALSO:
Account
EntitySubscription
NewsFeed
UserProfileFeed
AccountHistory
Represents the history of changes to the values in the fields of an account. This object is available in versions 11.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
AccountId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Account. Label is Account ID.
225
Standard Objects
AccountOwnerSharingRule
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to an account.
This object respects field level security on the parent object.
SEE ALSO:
Account
AccountOwnerSharingRule
Represents the rules for sharing an account with a User other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
226
Standard Objects
AccountOwnerSharingRule
Fields
Field
Details
AccountAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
• All (This value isn’t valid for creating or updating.)
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for all child cases. The
possible values are:
• None
• Read
• Edit
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A value that represents the type of access granted to the target Group, UserRole, or User for
any associated contacts. The possible values are:
• None
• Read
• Edit
Note: When DefaultContactAccess is set to Controlled by Parent,
you can’t create or update this field.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
227
Standard Objects
Field
AccountOwnerSharingRule
Details
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. An Account owned by a User in the source Group
triggers the rule to give access.
OpportunityAccessLevel Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for any associated
Opportunity. The possible values are:
• None
• Read
• Edit
Name
Type
string
228
Standard Objects
Field
AccountPartner
Details
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for accounts. General sharing and territory management-related sharing use this object. For
example, the following code creates an account owner sharing rule between two public groups, which can also contain portal users.
AccountOwnerSharingRule rule = new AccountOwnerSharingRule();
rule.setName("RuleName"); // Set the sharing rule name
rule.setDeveloperName("RuleDeveloperName"); // Set the sharing rule developer name
rule.setGroupId("00Gx00000000000"); // Set the group of users to share records from
rule.setUserOrGroupId("00Gx00000000001"); // Set the group of users to share records to
rule.setAccountAccessLevel("Edit");
rule.setOpportunityAccessLevel("Read");
rule.setCaseAccessLevel("None");
connection.create(rule);
SEE ALSO:
Account
AccountShare
Metadata API Developer Guide: SharingRules
AccountPartner
This read-only object represents a partner relationship between two Account objects. It is automatically created when a Partner object
is created for a partner relationship between two accounts.
Note: This object is completely distinct and independent of Account records that have been enabled for the partner portal.
Supported Calls
describeSObjects(), query(), retrieve()
229
Standard Objects
AccountPartner
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
AccountFromId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the main Account in the partner relationship.
AccountToId
Type
reference
Properties
Filter, Group, Nillable, Sort,
Description
ID of the partner Account in the partner relationship.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the AccountPartner is the main account’s primary partner (true) or not
(false).
OpportunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the opportunity in a partner relationship with the related account.
230
Standard Objects
AccountShare
Field
Details
Role
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The UserRole that the partner Account has on the main Account. For example, Consultant
or Distributor.
Creating an Account-Account Partner Relationship
When you create a partner relationship between two accounts (when you create a Partner object and specify the AccountFromId),
the API automatically creates two AccountPartner objects, one for the forward relationship and one for the reverse. For example, if you
create a Partner object with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId, the API automatically
creates two AccountPartner objects:
• The forward relationship AccountPartner with “Acme, Inc.” as the AccountFromId and “Acme Consulting” as the AccountToId.
• The reverse relationship AccountPartner with “Acme Consulting” as the AccountFromId and “Acme, Inc.” as the AccountToId.
• The value of the Role field in the reverse relationship AccountPartner is set to the PartnerRole object ReverseRole value
associated with the value of the Role field in the forward relationship AccountPartner.
This mapping allows the API to manage the objects and their relationship efficiently.
SEE ALSO:
Partner
OpportunityPartner
AccountShare
Represents a sharing entry on an Account.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
231
Standard Objects
AccountShare
Field
Details
AccountAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Account. The possible values are:
• Read
• Edit
• All (This value isn't valid for create or update calls.)
This field must be set to an access level that is at least equal to the organization’s default
Account access level. In addition, either this field, the OpportunityAccessLevel
field, or the CaseAccessLevel field must be set higher than the organization’s default
access level.
AccountId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Account associated with this sharing entry. This field can't be updated.
CaseAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to cases associated with the account. The possible
values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
CaseAccessLevel. This field can't be updated via the API if the
AccountAccessLevel field is set to All. You can't update this field for the associated
account owner via the API. You must update the account owner’s CaseAccessLevel
via the Salesforce user interface.
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
232
Standard Objects
Field
AccountShare
Details
Description
Level of access that the User or Group has to contacts associated with the account. The
possible values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
ContactAccessLevel. This field can't be updated via the API if the
ContactAccessLevel field is set to “Controlled by Parent.” You can't update this field
for the associated account owner using the API. You must update the account owner’s
ContactAccessLevel via the Salesforce user interface.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to opportunities associated with the Account. The
possible values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
opportunity access level. This field can’t be updated via the API if the
AccountAccessLevel field is set to All. You can't use the API to update this field
for the associated Account owner. You must update the Account owner’s
opportunityAccessLevel via the Salesforce user interface.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
233
Standard Objects
Field
AccountShare
Details
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a User with “All” access manually
shared the Account with the user or group.
• ImplicitParent—The User or Group has access because they’re the owner of or
have sharing access to records related to the account, such as opportunities, cases,
contacts, contracts, or orders.
• Owner—The User is the owner of the Account
• Team—The User or Group has team access (is an AccountTeamMember).
• Rule—The User or Group has access via an Account sharing rule.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Account. This field can't be updated.
Usage
This object allows you to determine which users and groups can view or edit Account records owned by other users.
If you attempt to create an AccountShare record that matches an existing record, the request updates any modified fields and returns
the existing record.
For example, the following code finds all accounts owned by a user and manually shares them to a portal user.
QueryResult result = conn.query("SELECT Id FROM Account WHERE OwnerId = '005D0000001LPFB'");
// Create a new AccountShare object
List shares = new ArrayList();
for (SObject rec : result.getRecords()) {
AccountShare share = new AccountShare();
share.setAccountId(rec.getId());
//Set the portal user Id to share the accounts with
share.setUserOrGroupId("003D000000QA8Tl");
share.setAccountAccessLevel("Edit");
share.setOpportunityAccessLevel("Read");
share.setCaseAccessLevel("Edit");
shares.add(share);
}
conn.create(shares.toArray(new AccountShare[shares.size()]));
This code shares the accounts that the user owns at the time, but not those accounts that are owned later. For these types of shares,
use an owner-based sharing rule, such as AccountOwnerSharingRule.
234
Standard Objects
AccountTag
If an account is shared in multiple ways with a user, you don’t always see multiple sharing records. If a user has access to an account for
one or more of the following RowCause values, the records in the AccountShare object are compressed into one record with the highest
level of access.
• ImplicitParent
• Manual
• Owner
SEE ALSO:
Account
CaseShare
LeadShare
OpportunityShare
AccountTag
Associates a word or short phrase with an Account.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
235
Standard Objects
Field Name
AccountTeamMember
Details
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
AccountTag stores the relationship between its parent TagDefinition and the Account being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
AccountTeamMember
Represents a User who is a member of an Account team.
See also UserAccountTeamMember, which represents a User who is on the default account team of another user.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Special Access Rules
• This object is available only for Enterprise, Unlimited, and Performance Edition users who have enabled the account team functionality.
• Customer Portal users can't access this object.
236
Standard Objects
AccountTeamMember
Fields
Field Name
Details
AccountAccessLevel
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Level of access that the User has to the Account. The possible values are:
• Read
• Edit
• All
This field must be set to an access level that is at least equal to the organization’s default
Account access level. In addition, the users’s AccountAccessLevel,
ContactAccessLevel, OpportunityAccessLevel, or CaseAccessLevel
field must be set higher than the organization’s default access level.
AccountId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Account to which this user is a team member. Must be a valid account
ID.
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Level of access that the User has to cases associated with the account. The possible values
are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
case access level. In addition, the users’s AccountAccessLevel,
ContactAccessLevel, OpportunityAccessLevel, or CaseAccessLevel
field must be set higher than the organization’s default access level. This field is available in
API version 37.0 and later.
237
Standard Objects
AccountTeamMember
Field Name
Details
ContactAccessLevel
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Level of access that the User has to contacts associated with the account. The possible values
are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
contact access level. In addition, the users’s AccountAccessLevel,
ContactAccessLevel, OpportunityAccessLevel, or CaseAccessLevel
field must be set higher than the organization’s default access level. This field is available in
API version 37.0 and later.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Note: An AccountTeamMember record that is deleted is not moved to the Recycle Bin.
A deleted AccountTeamMember record can’t be undeleted unless the record was
cascade-deleted when deleting a related Account. For directly deleted
AccountTeamMember records, don’t use the isDeleted field to detect deleted records in
SOQL queries or queryAll() calls. Instead, use getDeleted().
OpportunityAccessLevel
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Level of access that the User has to opportunities associated with the account. The possible
values are:
• None
• Read
• Edit
This field must be set to an access level that is at least equal to the organization’s default
opportunity access level. In addition, the users’s AccountAccessLevel,
238
Standard Objects
Field Name
AccountTeamMember
Details
ContactAccessLevel, OpportunityAccessLevel, or CaseAccessLevel
field must be set higher than the organization’s default access level. This field is available in
API version 37.0 and later.
PhotoURL
Type
URL
Properties
Filter, Nillable, Sort, Group
Description
Read only. Retrieves the users Chatter photo URL. This field is available in API version 37.0
and later.
TeamMemberRole
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Role associated with this team member. One of the valid team member roles defined for
your organization. Label is Team Role.
Title
Type
string
Properties
Filter, Nillable, Sort, Group
Description
Read only. Retrieves the user’s title. This field is available in API version 37.0 and later.
UserId
Type
reference
Properties
Create, Filter
Description
Required. ID of the User who is a member of this account team. Must be a valid User ID.
Usage
Use this object to manage the team members of a particular Account and to specify team member roles for those users on that account.
SEE ALSO:
Account
239
Standard Objects
AccountTerritoryAssignmentRule
AccountTerritoryAssignmentRule
An account assignment rule that assigns accounts to territories based on account fields. Only available if territory management has been
enabled for your organization.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
BooleanFilter
Type
string
Properties
Create, Filter, Nillable, Update
Description
Advanced filter conditions that were specified for the rule in the online application. For
example, “(1 AND 2) OR 3.”
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the rule is active (true) or inactive (false). Via the API, active rules run
automatically when new accounts are created and existing accounts are edited. The exception
is when the IsExcludedFromRealign field on an account is true, which prevents
account assignment rules from evaluating that account.
IsInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the rule is an inherited rule (true) or a local rule (false). An inherited
rule also acts upon territories below it in the territory hierarchy. A local rule is created at the
immediate territory and only impacts the immediate territory.
240
Standard Objects
AccountTerritoryAssignmentRuleItem
Field
Details
Name
Type
string
Properties
Create, Filter, Update
Description
A name for the rule. Limit is 80 characters.
TerritoryId
Type
reference
Properties
Create, Filter, Update
Description
ID of the territory where accounts that satisfy this rule are assigned.
Usage
A territory will not have any accounts (with the exception of manually assigned accounts) unless at least one account assignment rule
is active for the territory.
SEE ALSO:
AccountTerritoryAssignmentRuleItem
Territory
UserTerritory
AccountTerritoryAssignmentRuleItem
A row of selection criteria for an AccountTerritoryAssignmentRule object. Only available if territory management has been enabled for
your organization.
AccountTerritoryAssignmentRuleItem can be created or deleted if the BooleanFilter field on its corresponding
AccountTerritoryAssignmentRule object is a null value.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
241
Standard Objects
AccountTerritoryAssignmentRuleItem
Fields
Field
Details
Field
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The standard or custom account field to use as a criteria.
Operation
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The criteria to apply, such as “equals” or “starts with.”
RuleID
Type
reference
Properties
Create, Filter, Update
Description
ID of the associated AccountTerritoryAssignmentRule.
SortOrder
Type
int
Properties
Create, Filter, Update
Description
The order in which this row is evaluated compared to other
AccountTerritoryAssignmentRuleItem objects for the given AccountTerritoryAssignmentRule.
Value
Type
string
Properties
Create, Filter, Nillable, Update
Description
The field value(s) to evaluate, such as 94105 if the Field is Billing Zip/Postal
Code.
242
Standard Objects
AccountTerritorySharingRule
Usage
• Both standard and custom account fields can be used as criteria for account assignment rules.
• A territory will not have any accounts (with the exception of manually assigned accounts) unless at least one account assignment
rule is active for the territory.
SEE ALSO:
AccountTerritoryAssignmentRule
Territory
UserTerritory
AccountTerritorySharingRule
Represents the rules for sharing an Account within a Territory.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
AccountAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
• All
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
243
Standard Objects
Field
AccountTerritorySharingRule
Details
Description
A value that represents the type of access granted to the target group for all child cases of
the account. The possible values are:
• None
• Read
• Edit
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A value that represents the type of access granted to the target group for all related contacts
on the account. The possible values are:
• None
• Read
• Edit
Note: This field is read only.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
244
Standard Objects
Field
AccountTerritorySharingRule
Details
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Accounts owned by users in the source territory trigger
the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
OpportunityAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target group for all opportunities
associated with the account. The possible values are:
• None
• Read
• Edit
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the user or group being given access, or, if a territory ID, the users assigned
to that territory.
245
Standard Objects
ActionLinkGroupTemplate
Usage
Use this object to manage the sharing rules for a particular object. General sharing and Territory-related sharing use this object.
SEE ALSO:
Account
AccountShare
ActionLinkGroupTemplate
Action link templates let you reuse action link definitions and package and distribute action links. An action link is a button on a feed
element. Clicking on an action link can take a user to another Web page, initiate a file download, or invoke an API call to an external
server or Salesforce. Use action links to integrate Salesforce and third-party services into the feed. Every action link belongs to an action
link group and action links within the group are mutually exclusive. This object is available in API version 33.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Only users with the “Customize Application” permission can modify or delete this object.
Fields
Field Name
Details
Category
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The location of the action link group within the feed element. Values are:
• Primary—The action link group is displayed in the body of the feed
element.
• Overflow—The action link group is displayed in the overflow menu of
the feed element.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the action link group template to use in code.
246
Standard Objects
ActionLinkGroupTemplate
Field Name
Details
ExecutionsAllowed
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The number of times an action link can be executed. Values are:
• Once—An action link can be executed only once across all users.
• OncePerUser—An action link can be executed only once for each user.
• Unlimited—An action link can be executed an unlimited number of
times by each user. If the action link’s actionType is Api or ApiAsync,
you can’t use this value.
HoursUntilExpiration
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of hours from when the action link group is created until it's removed
from associated feed elements and can no longer be executed. The maximum
value is 8,760.
IsPublished
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, the action link group template is published. Action link group templates
shouldn’t be published until at least one ActionLinkTemplate is associated with
it. Once set to true, this can’t be set back to false.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
247
Standard Objects
Field Name
ActionLinkTemplate
Details
Description
The name of the action link group template.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Usage
Define action link templates in Setup and use ConnectApi in Apex or Chatter REST API to instantiate action links from the templates
and to post feed elements with the action links.
If you delete a published action link group template, you delete all related action link information which includes deleting all action links
that were instantiated using the template from feed items.
ActionLinkTemplate
Action link templates let you reuse action link definitions and package and distribute action links. An action link is a button on a feed
element. Clicking an action link can take a user to another Web page, initiate a file download, or invoke an API call to an external server
or Salesforce. Use action links to integrate Salesforce and third-party services into the feed. This object is available in API version 33.0
and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()
248
Standard Objects
ActionLinkTemplate
Special Access Rules
Only users with the “Customize Application” permission can modify or delete this object.
Fields
Field Name
Details
ActionLinkGroupTemplateId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the ActionLinkGroupTemplate with which this action link template is
associated.
ActionUrl
Type
textarea
Properties
Create, Update
Description
The action link URL. For example, a Ui action link URL is a Web page. A
Download action link URL is a link to the file to download. Ui and Download
action link URLs are provided to clients. An Api or ApiAsync action link URL
is a REST resource. Api and ApiAsync action link URLs aren’t provided to
clients. Links to Salesforce can be relative. All other links must be absolute and
start with https://.
Links to resources hosted on Salesforce servers can be relative, starting with a
/. All other links must be absolute and start with https://. This field can
contain context variables and binding variables in the form
{!Bindings.key}, for example,
https://www.example.com/{!Bindings.itemId}. Set the binding
variable’s value when you instantiate the action link group from the template.
Headers
Type
textarea
Properties
Create, Nillable, Update
Description
Template for the HTTP headers sent when corresponding action links are invoked.
This field can be used only for Api and ApiAsync action links. This field can
contain context variables and binding variables in the form
{!Bindings.key}.
249
Standard Objects
ActionLinkTemplate
Field Name
Details
IsConfirmationRequired
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, a confirmation dialog appears before the action is executed.
IsGroupDefault
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, action links derived from this template are the default or primary action
in their action groups. There can be only one default action per action group.
Label
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A custom label to display on the action link button. If none of the LabelKey
values make sense for an action link, use a custom label. Set the LabelKey
field to None and enter a label name in the Label field.
Action links have four states: new, pending, success, and failed. These strings are
appended to the label for each state:
• Label
• Label Pending
• Label Success
• Label Failed
For example, if the value of Label is “Call Home,” the values of the four action
link states are: Call Home, Call Home Pending, Call Home Success, and Call Home
Failed.
If LabelKey has any value other than None, the Label field is empty.
LabelKey
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Key for the set of labels to display for these action link states: new, pending,
success, failed. For example, the Approve set contains these labels: Approve,
250
Standard Objects
Field Name
ActionLinkTemplate
Details
Pending, Approved, Failed. For a complete list of keys and labels, see Action Links
Labels in the Chatter REST API Developer Guide or the Apex Developer Guide.
If none of the label key values make sense for an action link, set this field to None
and enter a custom label name in the Label field.
LinkType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of action link. One of these values:
• Api—The action link calls a synchronous API at the action URL. Salesforce
sets the status to SuccessfulStatus or FailedStatus based on
the HTTP status code returned by your server.
• ApiAsync—The action link calls an asynchronous API at the action URL.
The action remains in a PendingStatus state until a third party makes
a request to /connect/action-links/actionLinkId to set the
status to SuccessfulStatus or FailedStatus when the
asynchronous operation is complete.
• Download—The action link downloads a file from the action URL.
• Ui—The action link takes the user to a Web page at the action URL.
Method
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
HTTP method for the action URL. One of these values:
• HttpDelete—Returns HTTP 204 on success. Response body or output
class is empty.
• HttpGet—Returns HTTP 200 on success.
• HttpHead—Returns HTTP 200 on success. Response body or output class
is empty.
• HttpPatch—Returns HTTP 200 on success or HTTP 204 if the response
body or output class is empty.
• HttpPost—Returns HTTP 201 on success or HTTP 204 if the response
body or output class is empty. Exceptions are the batch posting resources
and methods, which return HTTP 200 on success.
• HttpPut—Return HTTP 200 on success or HTTP 204 if the response body
or output class is empty.
Ui and Download action links must use HttpGet.
251
Standard Objects
ActionLinkTemplate
Field Name
Details
Position
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
An integer specifying the position of the action link template relative to other
action links in the group. 0 is the first position.
RequestBody
Type
textarea
Properties
Create, Nillable, Update
Description
Template for the HTTP request body sent when corresponding action links are
invoked. This field can be used only for Api and ApiAsync action links. This
field can contain context variables and binding variables in the form
{!Bindings.key}.
UserAlias
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If you selected CustomUser or CustomExcludedUser for
UserVisibility, this field is the alias for the custom user. Use the alias in
a template binding to specify the custom user when an action link group is
created using the template.
UserVisibility
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Who can see the action link. This value is set per action link, not per action link
group. One of these values:
• Creator—Only the creator of the action link can see the action link.
• Everyone—Everyone can see the action link.
• EveryoneButCreator—Everyone but the creator of the action link
can see the action link.
• Manager—Only the manager of the creator of the action link can see the
action link.
• CustomUser—Only the custom user can see the action link.
252
Standard Objects
ActivityHistory
Field Name
Details
• CustomExcludedUser—Everyone but the custom user can see the
action link.
Usage
Create action link templates in Setup. Use Apex classes in the ConnectApi namespace or Chatter REST API to instantiate action links
from templates and to post feed elements with the action links.
For information about action links, see “Working with Action Links” in the Apex Developer Guide or the Chatter REST API Developer Guide.
ActivityHistory
This read-only object is displayed in a related list of closed activities—past events and closed tasks—related to an object. It includes
activities for all contacts related to the object. ActivityHistory fields for phone calls are only available if your organization uses Salesforce
CRM Call Center.
Supported Calls
describeSObjects()
Fields
Field
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the related account, which is determined as follows:
• The account associated with the WhatId, if it exists; or
• The account associated with the WhoId, if it exists; otherwise
• null
For information on IDs, see ID Field Type.
ActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates one of the following:
253
Standard Objects
Field
ActivityHistory
Details
• The due date of a task
• The due date of an event if IsAllDayEvent is set to true
This field has a time stamp that is always set to midnight in the Universal Time Coordinated
(UTC) time zone. The time stamp doesn’t represent the time of the activity; don’t attempt
to alter it to accommodate time zone differences. Label is Date.
ActivitySubtype
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Provides standard subtypes to facilitate creating and searching for specific activity subtypes.
This field isn’t updateable.
ActivitySubtype values:
• Task
• Email
• Call
• Event
ActivityType
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Represents one of the following values: Call, Meeting, or Other. Label is Type.
AlternateDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of a record the activity is related to which contains more details about the activity.
For example, an activity can be related to an EmailMessage record.
CallDisposition
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit
is 255 characters.
254
Standard Objects
ActivityHistory
Field
Details
CallDurationInSeconds
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Duration of the call in seconds.
CallObject
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of a call center. Limit is 255 characters.
CallType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of call being answered: Inbound, Internal, or Outbound.
ConnectionReceivedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that shared this record with your
organization. This field is available only if your organization has enabled Salesforce to
Salesforce and only in API versions 28.0 and later.
ConnectionSentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that your organization shared this record
with. This field is available only if your organization has enabled Salesforce to Salesforce, and
only in API versions 28.0 and later. The value is always null. You can use the
PartnerNetworkRecordConnection object to forward records to connections.
255
Standard Objects
ActivityHistory
Field
Details
Description
Type
textarea
Properties
Nillable
Description
Contains a description of the event or task. Limit is 32 KB.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
DurationInMinutes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Indicates the duration of the event or task.
EndDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the end date and time of the event or task. Available in versions 27.0 and later. This
field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
IsAllDayEvent
Type
boolean
256
Standard Objects
Field
ActivityHistory
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
If the value of this field is set to true, then the activity is an event spanning a full day, and
the ActivityDate defines the date of the event. If the value of this field is set to false,
then the activity may be an event spanning less than a full day, or it may be a task. Label is
All-Day Event.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a task is closed; value is always true. This field is set indirectly by setting
the Status field on the task—each picklist value has a corresponding IsClosed value.
Label is Closed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the activity has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsHighPriority
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates a high-priority task. This field is derived from the Priority field.
IsOnlineMeeting
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the activity represents an online meeting (true) or not (false).
Note: This field is not available in API version 16.0 or later.
257
Standard Objects
ActivityHistory
Field
Details
IsReminderSet
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a reminder is set for an activity (true) or not (false).
IsTask
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If the value of this field is set to true, then the activity is a task. If the value is set to false,
then the activity is an event. Label is Task.
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter
Description
If the value of this field is set to true, then the activity can be viewed in the self-service
portal. Label is Visible in Self-Service.
Location
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If the activity is an event, then this field contains the location of the event. If the activity is a
task, then the value is null.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the user who owns the activity.
PrimaryAccountId
Type
reference
258
Standard Objects
Field
ActivityHistory
Details
Properties
Filter, Group, Nillable, Sort
Description
Contains the AccountId value from the activity record. Available in API versions 30.0 and
later to organizations that use Shared Activities.
PrimaryWhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the WhoId value from the activity record. Available in API versions 30.0 and later
to organizations that have enabled Shared Activities.
Priority
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the priority of a task, such as high, normal, or low.
ReminderDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to
true. If IsReminderSet is set to false, then the user may have deselected the
reminder checkbox in the Salesforce user interface, or the reminder has already fired at the
time indicated by the value.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the current status of a task, such as in progress or complete. Each predefined status
field sets a value for IsClosed. To obtain picklist values, query TaskStatus.
Subject
Type
combobox
259
Standard Objects
Field
ActivityHistory
Details
Properties
Filter, Nillable, Sort
Description
Contains the subject of the task or event.
WhatId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhatId represents nonhuman objects such as accounts, opportunities, campaigns,
cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is
equivalent to the ID of a related object. The label is Related To ID.
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
If Shared Activities is enabled, the value of this field is the ID of the related lead or primary
contact. If you add, update, or remove the WhoId field, you might encounter problems with
triggers, workflows, and data validation rules that are associated with the record. The label
is Name ID.
If your organization uses Shared Activities, when you query activities in API version 30.0 or
later, the returned value of the WhoId field matches the value in the queried object, not
necessarily in the activity record itself.
Usage
Query activities that are related to an object
1. Optionally, issue a describe call against the object whose activities you wish to query, to get a suggestion of the correct SOQL
to use.
2. Issue a SOQL relationship query with a main clause that references the object, and an inner clause that references the activity
history; for example:
SELECT
(SELECT ActivityDate, Description
FROM ActivityHistories)
260
Standard Objects
AdditionalNumber
FROM Account
WHERE Name Like 'XYZ%'
The user interface enforces sharing rules, filtering out related-list items that a user doesn’t have permission to see.
The following constraints on users who don’t have the “View All Data” permission help prevent performance issues.
• In the main clause of the relationship query, you can reference only one record. For example, you can’t filter on all records where
the account name starts with “A.” Instead, you must reference a single account record.
SELECT
(SELECT ActivityDate, Description
FROM ActivityHistory
ORDER BY ActivityDate DESC NULLS LAST, LastModifiedDate DESC
LIMIT 500)
FROM Account
WHERE Name = 'Acme'
LIMIT 1
• In the inner clause of the query, you can’t use WHERE.
• In the inner clause of the query, you must specify a limit of 500 or fewer on the number of rows that are returned in the list.
• In the inner clause of the query, you must sort on ActivityDate in descending order and LastModifiedDate in
descending order. You can optionally display nulls last. For example: ORDER BY ActivityDate DESC NULLS LAST,
LastModifiedDate DESC.
SEE ALSO:
Task
AdditionalNumber
Represents an optional additional number for a call center. This additional number is visible in the call center's phone directory.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
CallCenterId
Type
reference
261
Standard Objects
Field
AgentWork
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
System field that contains the ID of the user who created the call center associated with this
additional number. If value is null, this additional number is displayed in every call center's
phone directory.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Description of the additional number, such as Conference Room B.
Limit: 255 characters.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the additional number.
Limit: 80 characters.
Phone
Type
phone
Properties
Create, Filter, Nillable, Group, Sort, Update
Description
The phone number that corresponds to this additional number.
Usage
Create an additional number for a call center directory. Use this object if the number is not easily categorized as a User, Contact, Lead,
Account, or the other object. Examples include phone queues or conference rooms.
AgentWork
Represents a work assignment that’s been routed to an agent. This object is available in API version 32.0 and later.
262
Standard Objects
AgentWork
Supported Calls
create(), delete(), query(), getDeleted(), getUpdated(), retrieve(), undelete()
Fields
Field
Details
AcceptDatetime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates when the work item was accepted.
ActiveTime
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The amount of time an agent actively worked on the work item. Tracks when the item is
open and in focus in the agent’s console.
AgentCapacityWhenDeclined Type
double
Properties
Filter, Nillable, Sort
Description
The agent’s capacity when declining work, either explicitly or through push timeout.
AssignedDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates when the work item was assigned to an agent,
CancelDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates when the work item was canceled.
263
Standard Objects
AgentWork
Field
Details
CapacityPercentage
Type
percent
Properties
Filter, Nillable, Sort
Description
The percentage of an agent’s capacity for work items that’s consumed by a specific type of
work item from this service channel.
When combined work items reach 100% for an agent, the agent won’t receive new work
items until there is enough open capacity for more work. For example, if you give phone
calls a capacity percentage of 100. an agent on a call doesn’t receive new work items until
the call ends.
CapacityWeight
Type
double
Properties
Filter, Nillable, Sort
Description
The amount of an agent’s capacity for work items that’s consumed by a work item from this
service channel.
For example, if cases are assigned a capacity weight of 2, an agent with a capacity of 6 can
accept up to 3 cases before the agent is at capacity and can’t receive new work items.
CloseDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates when the work item was closed.
CreatedById
Type
reference
Properties
Defaulted on create, Filter, Group, Sort
Description
ID of the User who created this record.
CreatedDate
Type
dateTime
Properties
Defaulted on createFilter, Sort
Description
Date and time when this record was created.
264
Standard Objects
AgentWork
Field
Details
DeclineDatetime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when this record was declined by an agent.
DeclineReason
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The provided reason for why an agent declined the work request.
HandleTime
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The amount of time an agent had the work item open. Calculated by Close Time –
Accepted Time.
Id
Type
ID
Properties
Defaulted on create, Filter, Group, idLookup, Sort
Description
The ID of the AgentWork object.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not (false).
LastModifiedById
Type
reference
Properties
Defaulted on create, Filter, Group, Sort
265
Standard Objects
Field
AgentWork
Details
Description
The ID of the user who last modified this record.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
An automatically generated ID number that identifies the record.
OriginalQueueId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the queue that the work assignment was originally routed to.
PushTimeout
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of seconds set for push timeout. 0 is returned when push timeout isn’t enabled.
Available in API version 36.0 and later.
PushTimeoutDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates when the push timeout event occurred. Available in API version 36.0 and later.
RequestDateTime
Type
dateTime
266
Standard Objects
Field
AgentWork
Details
Properties
Filter, Nillable, Sort
Description
Indicates when the work was requested.
ServiceChannelId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the service channel that’s associated with the work assignment.
SpeedToAnswer
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The amount of time between when the work was requested and when an agent accepted
it.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The working status of the work item. Valid values are:
• Assigned – The item is assigned to the agent but hasn’t been opened.
• Opened – The item was opened by the agent.
• Unavailable – The item was assigned to the agent but the agent became unavailable
(went offline or lost connection).
• Declined – The item was assigned to the agent but the agent explicitly declined it.
• DeclinedOnPushTimeout – The item was declined because push time-out is enabled
and the item request timed out with the agent.
• Closed – The item is closed.
• Canceled – The item no longer needs to be routed. For example: a chat visitor cancels
their Omni-Channel routed chat request before it reaches an agent.
SystemModstamp
Type
dateTime
Properties
Defaulted on create, Filter, Sort
267
Standard Objects
Field
AllowedEmailDomain
Details
Description
Date and time when a user or automated process (such as a trigger) last modified this record.
UserId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user that the work item was assigned to.
WorkItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the object that’s routed to the agent through Omni-Channel.
Usage
AgentWork records can only be deleted if they have the status Closed, Declined, or Unavailable. They can’t be deleted if their status
is Assigned or Opened because they’re active in Omni-Channel.
AgentWork records have the status Assigned when they’re created. Once created, the record is automatically pushed to the assigned
agent.
While the metadata for AgentWork indicates support for upsert() and update(), these calls aren’t used with AgentWork
because none of its fields can be updated.
AllowedEmailDomain
Represents an allowed email domain for users in your organization. You can define a whitelist to restrict the email domains allowed in
a user’s Email field. This object is available in API version 29.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
You must have the “Manage Internal Users” user permission to use this object.
Note: If you don't see this object, contact your Salesforce representative to enable it.
268
Standard Objects
Announcement
Fields
Field
Details
Domain
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
An allowed email domain for users.
Announcement
Represents a Chatter group announcement. This object is available in API version 30.0 and later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Fields
Field Name
Details
ExpirationDate
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
Required. The date on which the announcement expires. Announcements display
on the group UI until 11:59 p.m. local time on the selected date.
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. The ID of the FeedItem that contains the content of the announcement.
Announcements are stored as text posts.
ParentId
Type
reference
269
Standard Objects
Field Name
Announcement
Details
Properties
Filter, Group, Nillable, Sort
Description
The ID of the parent CollaborationGroup that the announcement belongs to. An
announcement can belong only to a single Chatter group.
SendEmails
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Set to true to email all group members when an announcement is posted to
the group. The default is false. This requires the user to have the “Send
announcement on email” permission.
This field is available in API version 36.0 and later.
Note: This field is currently available to select customers through a pilot
program. To be nominated to join this pilot program, contact Salesforce.
Additional terms and conditions may apply to participate in the pilot
program. Please note that pilot programs are subject to change, and as
such, we cannot guarantee acceptance into this pilot program or a
particular time frame in which this feature can be enabled. Any unreleased
services or features referenced in this document, press releases, or public
statements are not currently available and may not be delivered on time
or at all. Customers who purchase our services should make their purchase
decisions based upon features that are currently available.
Usage
Group owners, managers, and users with the “Modify All Data” permission can use the Announcement object to create, edit, and delete
group announcements. Creating a group announcement is a three-step process.
1. Use the FeedItem object to create a text post with the announcement’s content. Use the CollaborationGroup record you want to
post the announcement to as the parent of this feed item.
2. Next, use the feed item ID and an expiration date to create the announcement record.
3. Finally, update the AnnouncementId field in the CollaborationGroup record with the ID of the announcement you created.
To delete the group announcement, simply delete the AnnouncementId value in the CollaborationGroup record. To restore a group
announcement, update the AnnouncementId field for a group with the announcement’s ID. The expiration date for the announcement
should be in the future and the feed item used to create the announcement should be parented by the same group.
270
Standard Objects
ApexClass
ApexClass
Represents an Apex class.
Note: Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to
create or update them using the API. Instead, use the Force.com Migration Tool, the Salesforce user interface, or the Force.com
IDE to create or update Apex classes or triggers.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ApiVersion
Type
double
Properties
Create, Filter, Sort, Update
Description
The API version for this class. Every class has an API version specified at creation.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
The Apex class definition.
Limit: 1 million characters.
bodyCrc
Type
double
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The CRC (cyclic redundancy check) of the class or trigger file.
IsValid
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
271
Standard Objects
Field
ApexClass
Details
Description
Indicates whether any dependent metadata has changed since the class was last compiled
(true) or not (false).
LengthWithoutComments
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Length of the class without comments.
Name
Type
string
Properties
Group, Sort, Create, Filter, Update
Description
Name of the class.
Limit: 255 characters
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
Status
Type
picklist
272
Standard Objects
Field
ApexComponent
Details
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The current status of the Apex class. The following string values are valid:
• Active—The class is active.
• Deleted—The class is marked for deletion. This is useful for managed packages,
because it allows a class to be deleted when a managed package is updated.
Note: The ApexTrigger Status field includes an Inactive option, but it is only
supported for ApexTrigger. For more information, see the Metadata API Developer
Guide.
SEE ALSO:
ApexTrigger
Developer Guide: Apex Developer Guide
ApexComponent
Represents a definition for a custom component that can be used in a Visualforce page alongside standard components such as
 and .
Represents a definition for a custom component that can be used in a Visualforce page alongside standard components such as
 and . For information, see the Visualforce Developers Guide.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ApiVersion
Type
double
Properties
Create, Filter, Sort, Update
Description
The API version for this custom component. Every custom component has an API version
specified at creation. If the API version is less than 15.0 and ApiVersion is not specified,
ApiVersion defaults to 15.0.
273
Standard Objects
ApexComponent
Field
Details
ControllerKey
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identifier for the controller associated with this custom component:
• If the ControllerType parameter is set to Standard or StandardSet, this
value is the name of the sObject that defines the controller.
• If the ControllerType parameter is set to Custom, this value is the name of the
Apex class that defines the controller.
ControllerType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of controller associated with this Visualforce custom component. Possible values
include:
• Not Specified, for custom components defined without a value for the
controller attribute on the  tag
• Standard, a value that can't be used with custom components or errors may occur
• StandardSet, a value that can't be used with custom components or errors may
occur
• Custom, for components that have a value for the controller attribute on the
 tag
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the Visualforce custom component.
Markup
Type
textarea
Properties
Create, Update
Description
The Visualforce markup, HTML, Javascript, and any other Web-enabled code that defines the
content of the custom component.
274
Standard Objects
ApexComponent
Field
Details
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The text used to identify the Visualforce custom component in the Setup area of Salesforce.
The Label for this field is Label.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of this Visualforce custom component.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
275
Standard Objects
ApexLog
Usage
Use custom components to encapsulate a common design pattern and then reuse that pattern several times in one or more Visualforce
pages. All users who can view Visualforce pages can view custom components, but the “Customize Application” permission is required
to create or update custom components.
SEE ALSO:
ApexPage
StaticResource
Developer Guide: Visualforce Developer Guide
ApexLog
Represents a debug log, containing information about a transaction, including information about Apex, Visualforce, workflow and
validation rules. This object is available in API version 19.0 and later.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Fields
Field
Details
Application
Type
string
Properties
Filter, Group, Sort
Description
This value depends on the client type that triggered the log.
• For API clients, this value is the client ID
• For browser clients, this value is Browser
DurationMilliseconds
Type
int
Properties
Filter, Group, Sort
Description
Duration of the transaction in milliseconds.
Location
Type
picklist
276
Standard Objects
Field
ApexLog
Details
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies the location of the origin of the log. Values are:
• Monitoring—log is generated as part of debug log monitoring. These types of logs
are maintained until the user or the system overwrites them.
• SystemLog—log is generated from the Developer Console. These types of logs are
only maintained for 60 minutes or until the user clears them.
LogLength
Type
int
Properties
Filter, Group, Sort
Description
Length of the log in bytes.
LogUserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user whose actions triggered the debug log.
Operation
Type
string
Properties
Filter, Group, Sort
Description
Name of the operation that triggered the debug log, such as APEXSOAP, Apex Sharing
Recalculation, and so on.
Request
Type
string
Properties
Filter, Group, Sort
Description
Request type. Values are:
• API—request came from the API
• Application—request came from the Salesforce user interface
277
Standard Objects
ApexPage
Field
Details
StartTime
Type
dateTime
Properties
Filter, Sort
Description
Start time of the transaction.
Status
Type
string
Properties
Filter, Group, Sort
Description
Status of the transaction. This value is either Success, or the text of an unhandled Apex
exception.
Usage
You can read information about this object, as well as delete it, but you can't update or insert it.
SEE ALSO:
ApexClass
ApexTrigger
Developer Guide: Apex Developer Guide
ApexPage
Represents a single Visualforce page.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ApiVersion
Type
double
278
Standard Objects
Field
ApexPage
Details
Properties
Create, Filter, Sort, Update
Description
The API version for this page. Every page has an API version specified at creation. If the API
version is less than 15.0 and ApiVersion is not specified, ApiVersion defaults to
15.0.
ControllerKey
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identifier for the controller associated with this page:
• If the ControllerType parameter is set to Standard or StandardSet, this
value is the name of the sObject that defines the controller.
• If the ControllerType parameter is set to Custom, this value is the name of the
Apex class that defines the controller.
ControllerType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of controller associated with this Visualforce page. Possible values include:
• Not Specified, for pages defined with neither a standardController nor
a controller attribute on the  tag
• Standard, for pages defined with the standardController attribute on the
 tag
• StandardSet, for pages defined using the standardController and
recordSetVar attribute on the  tag
• Custom, for pages defined with the controller attribute on the 
tag
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the Visualforce page.
isAvailableInTouch
Type
boolean
279
Standard Objects
Field
ApexPage
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if Visualforce tabs associated with the Visualforce page can be used in the Salesforce1
app (true) or not (false). (Use of this field for Salesforce Touch is deprecated.) This field
is available in API version 27.0 and later.
Standard object tabs that are overridden with a Visualforce page aren’t supported in
Salesforce1, even if you set this field for the page. The default Salesforce1 page for the object
is displayed instead of the Visualforce page.
IsConfirmationTokenRequired Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether GET requests for the page require a CSRF confirmation token (true) or
not (false). This field is available in API version 28.0 and later.
If you change this field’s value from false to true, links to the page require a CSRF token
to be added to them, or the page will be inaccessible.
Markup
Type
textarea
Properties
Create, Update
Description
The Visualforce markup, HTML, Javascript, and any other Web-enabled code that defines the
content of the page.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The text used to identify the Visualforce page in the Setup area of Salesforce. The Label is
Label.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of this Visualforce page.
280
Standard Objects
ApexTestQueueItem
Field
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
Usage
Use Visualforce pages to add custom content that extends the base Salesforce application functionality. All users in Visualforce-enabled
organizations can view Visualforce pages, but the “Customize Application” permission is required to create or update them.
SEE ALSO:
ApexComponent
StaticResource
Developer Guide: Visualforce Developer Guide
ApexTestQueueItem
Represents a single Apex class in the Apex job queue. This object is available in API version 23.0 and later.
This object is available in API version 23.0 and later.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update(), upsert()
281
Standard Objects
ApexTestQueueItem
Fields
Field Name
Description
ApexClassId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The Apex class whose tests are to be executed.
ExtendedStatus
Type
string
Properties
Filter, Nillable, Sort
Description
The pass rate of the test run.
For example: “(4/6)”. This means that four out of a total of six tests passed.
If the class fails to execute, this field contains the cause of the failure.
ParentJobId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Points to the AsyncApexJob that represents the entire test run.
If you insert multiple Apex test queue items in a single bulk operation, the queue
items will share the same parent job. This means that a test run can consist of
the execution of the tests of several classes if all the test queue items are inserted
in the same bulk operation.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort, Update
Description
The status of the job. Valid values are:
1
• Holding
• Queued
• Preparing
• Processing
• Aborted
282
Standard Objects
Field Name
ApexTestResult
Description
• Completed
• Failed
1
TestRunResultID
This status applies to batch jobs in the Apex flex queue.
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the associated ApexTestRunResult object.
Usage
Insert an ApexTestQueueItem object to place its corresponding Apex class in the Apex job queue for execution. The Apex job
executes the test methods in the class.
To abort a class that is in the Apex job queue, perform an update operation on the ApexTestQueueItem object and set its Status
field to Aborted.
If you insert multiple Apex test queue items in a single bulk operation, the queue items will share the same parent job. This means that
a test run can consist of the execution of the tests of several classes if all the test queue items are inserted in the same bulk operation.
ApexTestResult
Represents the result of an Apex test method execution. This object is available in API version 23.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Fields
Field Name
Details
ApexClassId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The Apex class whose test methods were executed.
283
Standard Objects
ApexTestResult
Field Name
Details
ApexLogId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Points to the ApexLog for this test method execution if debug logging is enabled;
otherwise, null.
ApexTestRunResultId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the ApexTestRunResult that represents the entire test run.
AsyncApexJobId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Points to the AsyncApexJob that represents the entire test run.
This field points to the same object as
ApexTestQueueItem.ParentJobId.
Message
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The exception error message if a test failure occurs; otherwise, null.
MethodName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The test method name.
Outcome
Type
picklist
284
Standard Objects
Field Name
ApexTestResult
Details
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The result of the test method execution. Can be one of these values:
• Pass
• Fail
• CompileFail
• Skip
QueueItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Points to the ApexTestQueueItem which is the class that this test method is part
of.
RunTime
Type
int
Properties
Create, Filter, Nillable, Sort, Update
Description
The time it took the test method to run, in seconds.
StackTrace
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The Apex stack trace if the test failed; otherwise, null.
TestTimestamp
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The start time of the test method.
285
Standard Objects
ApexTestResultLimits
Usage
You can query the fields of the ApexTestResult record that corresponds to a test method executed as part of an Apex class
execution.
Each test method execution is represented by a single ApexTestResult record. For example, if an Apex test class contains six test
methods, six ApexTestResult records are created. These records are in addition to the ApexTestQueueItem record that
represents the Apex class.
Each ApexTestResult record has an associated ApexTestResultLimits on page 286 record, which captures the Apex limits used during
execution of the test method.
ApexTestResultLimits
Captures the Apex test limits used for a particular test method execution. An instance of this object is associated with each ApexTestResult
record. This object is available in API version 37.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Fields
Field Name
Details
ApexTestResultId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated ApexTestResult object.
AsyncCalls
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of asynchronous calls made during the test run.
Callouts
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of callouts made during the test run.
286
Standard Objects
ApexTestResultLimits
Field Name
Details
Cpu
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The amount of CPU used during the test run, in milliseconds.
Dml
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of DML statements made during the test run.
DmlRows
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of rows accessed by DML statements during the test run.
Email
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of email invocations made during the test run.
LimitContext
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates whether the test run was synchronous or asynchronous.
LimitExceptions
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
287
Standard Objects
Field Name
ApexTestResultLimits
Details
Description
Indicates whether your org has any limits that differ from the default limits.
MobilePush
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of mobile push calls made during the test run.
QueryRows
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of rows queried during the test run.
Soql
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of SOQL queries made during the test run.
Sosl
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The number of SOSL queries made during the test run.
Usage
The ApexTestResultLimits object is populated for each test method execution, and it captures the limits used between the Test.startTest()
and Test.stopTest() methods. If startTest() and stopTest() aren’t called, limits usage is not captured. Note the following:
• The associated test method must be run asynchronously.
• Limits for asynchronous Apex operations (batch, scheduled, future, and queueable) that are called within test methods are not
captured.
• Limits are captured only for the default namespace.
288
Standard Objects
ApexTestRunResult
ApexTestRunResult
Contains summary information about all the test methods that were run in a particular Apex job. This object is available in API version
37.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Fields
Field Name
Details
AsyncApexJobId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The parent Apex job ID for the result.
ClassesCompleted
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of classes executed during the test run.
ClassesEnqueued
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The total number of classes enqueued during the test run.
EndTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The time at which the test run ended.
289
Standard Objects
ApexTestRunResult
Field Name
Details
IsAllTests
Type
boolean
Properties
Create, Filter, Group, Sort, Update
Description
Indicates whether all Apex test classes were run.
JobName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Reserved for future use.
MethodsCompleted
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of methods completed during the test run. This value is updated
after each class is run.
MethodsEnqueued
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of methods enqueued for the test run. This value is initialized
before the test runs.
MethodsFailed
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of methods that failed during this test run. This value is updated
after each class is run.
Source
Type
string
290
Standard Objects
Field Name
ApexTestRunResult
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The source of the test run, such as the Developer Console.
StartTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The time at which the test run started.
Status
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The status of the test run. Values include:
• Queued
• Processing
• Aborted
• Completed
• Failed
TestTime
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The time it took the test to run, in seconds.
UserId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The user who ran the test run.
291
Standard Objects
ApexTestSuite
ApexTestSuite
Represents a suite of Apex classes to include in a test run. A TestSuiteMembership object associates each class with the suite. This object
is available in API version 36.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Description
TestSuiteName
Type
string
Properties
Create, Filter, Group, Sort, Unique, Update
Description
The name of the Apex test suite. This label appears in the user interface.
This value is case-sensitive and must be unique.
Usage
Insert a TestSuiteMembership object using an API call to associate an Apex class with an ApexTestSuite object. (ApexTestSuite and
TestSuiteMembership aren’t editable through Apex DML.) To remove the class from the test suite, delete the TestSuiteMembership
object. If you delete an Apex test class or test suite, all TestSuiteMembership objects that contain that class or suite are deleted.
The following SOQL query returns the membership object that relates this Apex class to this test suite.
SELECT Id FROM TestSuiteMembership WHERE ApexClassId = '01pD0000000Fhy9IAC'
AND ApexTestSuiteId = '05FD00000004CDBMA2'
SEE ALSO:
TestSuiteMembership
ApexTrigger
Represents an Apex trigger.
Note: Although Apex classes and triggers have the Create and Update field properties, a runtime exception occurs if you try to
create or update them using the API. Instead, use the Force.com Migration Tool, the Salesforce user interface, or the Force.com
IDE to create or update Apex classes or triggers.
292
Standard Objects
ApexTrigger
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ApiVersion
Type
double
Properties
Create, Filter, Sort, Update
Description
The API version for this trigger. Every trigger has an API version specified at creation.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
The Apex trigger definition.
Limit: 1 million characters.
bodyCrc
Type
double
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The CRC (cyclic redundancy check) of the class or trigger file.
IsValid
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether any dependent metadata has changed since the trigger was last compiled
(true) or not (false).
LengthWithoutComments
Type
int
Properties
Create, Filter, Group, Sort, Update
293
Standard Objects
Field
ApexTrigger
Details
Description
Length of the trigger without comments
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the trigger.
Limit: 255 characters
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
Status
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The current status of the Apex trigger. The following string values are valid:
• Active—The trigger is active.
• Inactive—The trigger is inactive, but not deleted.
• Deleted—The trigger is marked for deletion. This is useful for managed packages,
because it allows a class to be deleted when a managed package is updated.
294
Standard Objects
Field
ApexTrigger
Details
Note: Inactive is not valid for ApexClass. For more information, see the Metadata
API Developer Guide.
TableEnumOrId
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the object associated with the trigger, such as Account or Contact.
UsageAfterDelete
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is an after delete trigger (true) or not (false).
UsageAfterInsert
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is an after insert trigger (true) or not (false).
UsageAfterUndelete
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is an after undelete trigger (true) or not (false).
UsageAfterUpdate
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is an after update trigger (true) or not (false).
UsageBeforeDelete
Type
boolean
Properties
Create, Filter, Update
295
Standard Objects
Field
AppMenuItem
Details
Description
Specifies whether the trigger is a before delete trigger (true) or not (false).
UsageBeforeInsert
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is a before insert trigger (true) or not (false).
UsageBeforeUpdate
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is a before update trigger (true) or not (false).
UsageIsBulk
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether the trigger is defined as a bulk trigger (true) or not (false).
Note: This field is not used for Apex triggers saved using Salesforce API version 10.0
or higher: all triggers starting with that version are automatically considered bulk, and
this field will always return true.
SEE ALSO:
ApexClass
Developer Guide: Apex Developer Guide
AppMenuItem
Represents the organization’s default settings for items in the Force.com app menu or App Launcher.
Supported Calls
describeSObjects(), query(), retrieve()
296
Standard Objects
AppMenuItem
Fields
Field
Details
ApplicationId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The 15-character ID for the menu item.
CanvasAccessMethod
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The access method for the canvas app. Values can be:
• OAuth Webflow (GET)
• Signed Request (POST)
CanvasEnabled
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if the app menu item is a canvas app (true) or not (false).
CanvasOptions
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Represents the options enabled for a canvas connected app. The options are:
• PersonalEnabled—The app is enabled as a canvas personal app.
• HideHeader—The publisher header, which contains the “What are you working on?”
text, is hidden.
• HideShare—The publisher Share button is hidden.
This field is available in API version 34.0 and later.
CanvasReferenceId
Type
string
297
Standard Objects
Field
AppMenuItem
Details
Properties
Filter, Group, Nillable, Sort
Description
The canvas app unique identifier.
CanvasSelectedLocations Type
string
Properties
Filter, Group, Nillable, Sort
Description
The selected locations for the canvas app which define where the canvas app can appear in
the user interface. For example:
Chatter,ChatterFeed,Publisher,ServiceDesk
CanvasUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
The URL of the canvas app.
Description
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A description of this menu item.
IconUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The icon for the menu item’s application.
InfoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The URL for more information about the application.
298
Standard Objects
AppMenuItem
Field
Details
IsAccessible
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the current user is authorized to use the app.
IsUsingAdminAuthorization Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the app is pre-authorized for certain users by the administrator.
IsVisible
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the app is visible to users of the organization, by default.
Label
Type
string
Properties
Group, Nillable
Description
The app’s name.
LogoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The logo for the menu item’s application. The default is the initials of the Label value.
MobileStartUrl
Type
string
Properties
Filter, Group, Nillable, Sort
299
Standard Objects
Field
AppMenuItem
Details
Description
The location mobile users are directed to after they’ve authenticated. This field is only used
with connected apps.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The API name of the item.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field can’t be accessed unless the logged-in user has the “Customize Application”
permission.
SortOrder
Type
int
Properties
Filter, Group, idLookup, Sort
Description
The index value that controls where this item appears in the menu. For example, a menu
item with a sort order of 5 appears between items with sort order values of 3 and 9.
StartUrl
Type
string
300
Standard Objects
Field
AppMenuItem
Details
Properties
Filter, Group, Nillable, Sort
Description
For a connected app, the location users are directed to after they’ve authenticated. Otherwise,
the application’s default start page.
Type
Type
string
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of application represented by this item. The types are:
• ConnectedApplication
• ServiceProvider
• TabSet
UserSortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The index value that represents where the user set this item in the menu (or App Launcher).
For example, an item with a sort order value of 5 appears between items with sort order
values of 3 and 9.
This value is separate from SortOrder so you can create logic incorporating both values. For
example, if you want the user-sorted items to appear first, followed by the organization order
for the rest, use:
SELECT ApplicationId,SortOrder,UserSortOrder FROM AppMenuItem
order by userSortOrder NULLS LAST, sortOrder NULLS LAST
Usage
Use this read-only object to view an entry in the Force.com app menu or the App Launcher. You can create a SOQL query to retrieve all
items, even items the user does not see from the user interface.
There are many ways you can use AppMenuItem. Here are some examples:
• Build your own App Launcher or app menu in Salesforce. Create a custom page showing all the apps you have access to and that
lets you run them using single sign-on.
• Build your own App Launcher or app menu on a tablet or mobile app. You can have your own app for launching applications on
various mobile devices.
301
Standard Objects
Approval
• Build an app launcher into your company’s intranet. There’s no need to have it run on Salesforce because there’s a Web service API
to let you build an app launcher.
Tip: To get metadata information about apps and their tabs, use the Apex Schema.describeTabs() method, the REST
API /vXX.X/tabs/ resource, or the SOAP API describeTabs() call.
Approval
Represents an approval request for a Contract.
Note: This object is read-only and is specific to approvals on the Contract object. It isn't equal to or involved in the approval
processes represented by the ProcessInstance, which is more powerful.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
ApproveComment
Type
string
Properties
Filter, Nillable, Sort
Description
Text entered by the user when they approved or rejected this approval request. Required.
Limit: 4,000 characters.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OwnerId
Type
reference
Properties
Filter, Group, Sort
302
Standard Objects
Field
Approval
Details
Description
Required. ID of the User being asked to approve or reject the approval request. Must be a
valid User ID. Required.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
Required. ID of the Contract associated with this approval request. Must be a valid contract
ID.
RequestComment
Type
string
Properties
Filter, Nillable, Sort
Description
Text entered by the User who created the approval request. Optional. This field can't be
updated after the Approval has been created. Limit: 4,000 characters.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Required. Status of this approval request. One of the following picklist values:
•
Pending—Specified only when the Approval request is created (create() call)
•
Approved—Specified only when the Approval request is approved (update() call)
•
Rejected—Specified when the Approval request is rejected (update() call) or
when it is created (create() call) and immediately rejected for archival/historical
purposes.
Usage
This object allows client applications to programmatically handle approval requests for a Contract. Initially, to request a Contract approval,
a client application might create a new Approval request record, specifying the ParentId, OwnerId (user approving or rejecting
the request), Status (Pending), and (optionally) RequestComment fields. Note that when a client application creates the first
approval request, if the value of the Contract Status field is Draft, then the Approval Status for this record is automatically changed
to In Approval Process (see ContractStatus for more information).
A client application might subsequently update an existing Approval request, specifying the Status (Approved or Rejected) and
an ApproveComment (required); the RequestComment field can't be updated. Updating an Approval record (either to approve
or reject) requires the client application to be logged in with “Approve Contract” permission. To update an Approval request, its Status
303
Standard Objects
Article Type__DataCategorySelection
must be Pending—a client application can't update an Approval that has already been Approved or Rejected. To re-submit an approval
request for a given Contract, a client application must create a new, separate Approval record and repeat the approval process.
Once a Contract has been approved (not rejected), the Contract LastApprovedDate field is automatically updated, however the
Contract Status field isn't updated, it keeps the value InApproval.
An approved Contract must be activated explicitly. Client applications can activate a Contract by setting the value in its Status field
to Activated, or a User can activate a Contract via the Salesforce user interface.
A Contract can have multiple approval requests in various states (Pending, Approved, and Rejected). In addition, one User can have
multiple approval requests associated with the same Contract.
Client applications can't explicitly deleteApproval records. Approval records are deleted automatically if the parent Contract is deleted.
SEE ALSO:
Object Basics
Article Type__DataCategorySelection
A data category selection represents a data category that classifies an article. This object is available in API version 19.0 and later.
This object can be used to associate an article with data categories from a data category group or to query the category selections for
an article.
The object name is variable and has a syntax of Article Type__DataCategorySelection, where Article Type is the Object
Name for the article type associated with the article. For example, Offer__DataCategorySelection represents the association
between the Offer article type and its data categories. Every article is associated with an article type.
Supported Calls
create(), delete(), describeSObjects(), query(), getDeleted(), retrieve()
Special Access Rules
Users can only access, create or delete data category selection visible to their role, permission set, or profile. If a user has partial visibility
on an article's categorization, only the visible categories are returned.
Fields
Field Name
Details
DataCategoryGroupName
Type
DataCategoryGroupReference
Properties
Create
Description
Unique name of the data category group which has categories associated with the article.
304
Standard Objects
Article Type__DataCategorySelection
Field Name
Details
DataCategoryName
Type
DataCategoryGroupReference
Properties
Create
Description
Unique name of the data category associated with the article.
ParentId
Type
reference
Properties
Create, Filter
Description
ID of the article associated with the data category selection.
Usage
Every article in Salesforce Knowledge can be categorized. A data category selection represents a category that has been selected to
classify an article. You can use the Article Type__DataCategorySelection object to query and manage article categorization in
your organization. Client applications can create a categorization for an article with a Draft status. They can also delete and query article
categorizations.
Note: When using Article Type__DataCategorySelection to classify an article, you can't select both a category (for example
USA) and one of its descendants (California) or ascendant categories (North America). In this case, only the first category is selected.
Answer communities use QuestionDataCategorySelection to classify questions.
SOQL Sample
The following SOQL query returns the data category selections used to classify the article whose ID is ka0D000000005ApIAI.
SELECT Id,DataCategoryName, ParentId
FROM Offer__DataCategorySelection WHERE ParentId='ka0D000000005ApIAI'
This clause only returns category unique names. To retrieve category labels use the following clause:
SELECT Id,toLabel(DataCategoryName), ParentId
FROM Offer__DataCategorySelection WHERE ParentId='ka0D000000005ApIAI'
Tip: You can also use relationship queries to retrieve categorizations from an article type.
SEE ALSO:
QuestionDataCategorySelection
Data Categories
Articles
305
Standard Objects
Article Type__Feed
Article Type__Feed
Represents a single feed item in the feed displayed on the detail page for an article. This object is available in API version 20.0 and later.
An article feed shows recent changes to an article record for any fields that are tracked in feeds, and posts and comments about the
article. It is a useful way to stay up-to-date with changes made to articles in Salesforce Knowledge. This object is available in API version
20.0 and later. The object name is variable and uses a Article Type__Feed syntax, where Article Type is the Object
Name for the article type associated with the article. For example, Offer__Feed represents a feed item on an article based on the
Offer article type.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of Article Type__Feed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ContentData
Type
base64
306
Standard Objects
Field
Article Type__Feed
Details
Properties
Nillable
Description
Required if Type is ContentPost. Encoded file data in any format, and can’t be 0 bytes.
Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
This field is required if Type is ContentPost.The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
307
Standard Objects
Field
Article Type__Feed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• 
308
Standard Objects
Field
Article Type__Feed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
309
Standard Objects
Field
Article Type__Feed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the article that is tracked in the feed. The feed is displayed on the detail page for this
record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
310
Standard Objects
Field
Article Type__Feed
Details
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
311
Standard Objects
Asset
Usage
Use this object to track changes for an article. You can only delete a feed that you created, or if you have the “Modify All Data” permission
or “Modify All” permission on the KnowledgeArticle object.
SEE ALSO:
KnowledgeArticle
EntitySubscription
NewsFeed
UserProfileFeed
Asset
Represents an item of commercial value, such as a product sold by your company or a competitor, that a customer has purchased and
installed.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Required) ID of the Account associated with this asset. Must be a valid account ID. Required
if ContactId is not specified.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Required if AccountId is not specified. ID of the Contact associated with this asset. Must
be a valid contact ID that has an account parent (but does not need to match the asset’s
AccountId).
Description
Type
textarea
312
Standard Objects
Field
Asset
Details
Properties
Create, Nillable, Update
Description
Description of the asset.
InstallDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when the asset was installed.
IsCompetitorProduct
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this Asset represents a product sold by a competitor (true) or not
(false). Default value is false. Its UI label is Competitor Asset.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the asset was last modified. Its UI label is Last Modified Date.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the asset was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
(Required) Name of the asset. Label is Asset Name.
313
Standard Objects
Asset
Field
Details
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The asset’s owner. By default, the asset owner is the user who created the asset record. As
of Spring ’15, the OwnerId field is used for access control when the Asset object’s sharing
setting is Private, Public Read-Only, or Public Read/Write. If the Asset object’s sharing setting
is Controlled by Parent, the OwnerId field has no effect on access control, because the
parent account’s settings control access to the asset. Its UI label is Asset Owner.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The asset’s parent asset. Its UI label is Parent Asset.
Price
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Price paid for this asset.
Product2Id
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Optional) ID of the Product2 associated with this asset. Must be a valid Product2 ID. Its UI
label is Product.
PurchaseDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date on which this asset was purchased.
Quantity
Type
double
314
Standard Objects
Field
Asset
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Quantity purchased or installed.
RootAssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The top-level asset in an asset hierarchy. Depending on where an asset lies in
the hierarchy, its root could be the same as its parent. Its UI label is Root Asset.
SerialNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Serial number for this asset.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values. The default picklist includes the following values:
• Purchased
• Shipped
• Installed
• Registered
• Obsolete
UsageEndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when usage for this asset ends or expires.
315
Standard Objects
AssetFeed
Usage
Use this object to track assets previously sold into customer accounts. With asset tracking, a client application can quickly determine
which products were previously sold or are currently installed at a specific account. You can also create hierarchies of assets using the
Parent Asset field. An asset hierarchy can contain up to 10,000 assets.
For example, your organization might want to renew and up-sell opportunities on products sold in the past. Similarly, your organization
might want to track competitive products that exist in a customer environment that could potentially be replaced or swapped out.
Asset tracking is also useful for product support, providing detailed information to assist with product-specific support issues. For example,
the PurchaseDate or SerialNumber could indicate whether a given product has certain maintenance requirements, including
product recalls. Similarly, the UsageEndDate might indicate when the asset was removed from service or when a license or warranty
expires.
If an application creates a new Asset record, it must at least specify a Name and either an AccountId, ContactId, or both.
SEE ALSO:
Object Basics
AssetFeed
Represents a single feed item in the feed displayed on the detail page for an asset record. This object is available in API version 18.0 and
later.
An asset feed shows recent changes to an asset record for any fields that are tracked in feeds, and comments and posts about the record.
It is a useful way to stay up-to-date with changes to assets.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Asset object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field Name
Details
Body
Type
textarea
316
Standard Objects
Field Name
AssetFeed
Details
Properties
Nillable, Sort
Description
The content of the AssetFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
317
Standard Objects
AssetFeed
Field Name
Details
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
AssetFeed automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded
to the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded
to the feed. This field is read-only and is automatically determined during insert.
FeedPostId
Type
reference
Properties
Filter. Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for
backward compatibility only. Use FeedItem instead.
318
Standard Objects
Field Name
AssetFeed
Details
The ID of the associated FeedPost. A FeedPost represents the following types of
changes in an AssetFeed: status updates, changes to tracked fields, text posts,
link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the
Recycle Bin (true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
309
Standard Objects
Field
Article Type__Feed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the article that is tracked in the feed. The feed is displayed on the detail page for this
record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
310
Standard Objects
Field
Article Type__Feed
Details
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
311
Standard Objects
Asset
Usage
Use this object to track changes for an article. You can only delete a feed that you created, or if you have the “Modify All Data” permission
or “Modify All” permission on the KnowledgeArticle object.
SEE ALSO:
KnowledgeArticle
EntitySubscription
NewsFeed
UserProfileFeed
Asset
Represents an item of commercial value, such as a product sold by your company or a competitor, that a customer has purchased and
installed.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Required) ID of the Account associated with this asset. Must be a valid account ID. Required
if ContactId is not specified.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Required if AccountId is not specified. ID of the Contact associated with this asset. Must
be a valid contact ID that has an account parent (but does not need to match the asset’s
AccountId).
Description
Type
textarea
312
Standard Objects
Field
Asset
Details
Properties
Create, Nillable, Update
Description
Description of the asset.
InstallDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when the asset was installed.
IsCompetitorProduct
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this Asset represents a product sold by a competitor (true) or not
(false). Default value is false. Its UI label is Competitor Asset.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the asset was last modified. Its UI label is Last Modified Date.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the asset was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
(Required) Name of the asset. Label is Asset Name.
313
Standard Objects
Asset
Field
Details
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The asset’s owner. By default, the asset owner is the user who created the asset record. As
of Spring ’15, the OwnerId field is used for access control when the Asset object’s sharing
setting is Private, Public Read-Only, or Public Read/Write. If the Asset object’s sharing setting
is Controlled by Parent, the OwnerId field has no effect on access control, because the
parent account’s settings control access to the asset. Its UI label is Asset Owner.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The asset’s parent asset. Its UI label is Parent Asset.
Price
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Price paid for this asset.
Product2Id
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Optional) ID of the Product2 associated with this asset. Must be a valid Product2 ID. Its UI
label is Product.
PurchaseDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date on which this asset was purchased.
Quantity
Type
double
314
Standard Objects
Field
Asset
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Quantity purchased or installed.
RootAssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The top-level asset in an asset hierarchy. Depending on where an asset lies in
the hierarchy, its root could be the same as its parent. Its UI label is Root Asset.
SerialNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Serial number for this asset.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values. The default picklist includes the following values:
• Purchased
• Shipped
• Installed
• Registered
• Obsolete
UsageEndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when usage for this asset ends or expires.
315
Standard Objects
AssetFeed
Usage
Use this object to track assets previously sold into customer accounts. With asset tracking, a client application can quickly determine
which products were previously sold or are currently installed at a specific account. You can also create hierarchies of assets using the
Parent Asset field. An asset hierarchy can contain up to 10,000 assets.
For example, your organization might want to renew and up-sell opportunities on products sold in the past. Similarly, your organization
might want to track competitive products that exist in a customer environment that could potentially be replaced or swapped out.
Asset tracking is also useful for product support, providing detailed information to assist with product-specific support issues. For example,
the PurchaseDate or SerialNumber could indicate whether a given product has certain maintenance requirements, including
product recalls. Similarly, the UsageEndDate might indicate when the asset was removed from service or when a license or warranty
expires.
If an application creates a new Asset record, it must at least specify a Name and either an AccountId, ContactId, or both.
SEE ALSO:
Object Basics
AssetFeed
Represents a single feed item in the feed displayed on the detail page for an asset record. This object is available in API version 18.0 and
later.
An asset feed shows recent changes to an asset record for any fields that are tracked in feeds, and comments and posts about the record.
It is a useful way to stay up-to-date with changes to assets.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Asset object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field Name
Details
Body
Type
textarea
316
Standard Objects
Field Name
AssetFeed
Details
Properties
Nillable, Sort
Description
The content of the AssetFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
317
Standard Objects
AssetFeed
Field Name
Details
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
AssetFeed automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded
to the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded
to the feed. This field is read-only and is automatically determined during insert.
FeedPostId
Type
reference
Properties
Filter. Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for
backward compatibility only. Use FeedItem instead.
318
Standard Objects
Field Name
AssetFeed
Details
The ID of the associated FeedPost. A FeedPost represents the following types of
changes in an AssetFeed: status updates, changes to tracked fields, text posts,
link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the
Recycle Bin (true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
319
Standard Objects
Field Name
AssetFeed
Details
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as
CreatedDate. If a FeedComment is inserted on the feed item, then
LastModifiedDate becomes the CreatedDate for the FeedComment.
Deleting the FeedComment does not change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most
recent feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
320
Standard Objects
Field Name
AssetFeed
Details
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the asset record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion article associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as an AssetFeed object of Type
ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the AssetFeed. When the Type is LinkPost, the LinkUrl is
the URL, and this field is the link name.
321
Standard Objects
AssetFeed
Field Name
Details
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of AssetFeed item:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
322
Standard Objects
Field Name
AssetFeed
Details
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
323
Standard Objects
AssetOwnerSharingRule
Usage
Use this object to track changes for an asset record.
SEE ALSO:
Asset
Product2
FeedItem
AssetOwnerSharingRule
Represents the rules for sharing an Asset with users other than the owner. This object is available in API version 33.0 and later.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
AssetAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters.
324
Standard Objects
AssetOwnerSharingRule
Field
Details
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Cases owned by users in the source group
trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. Target users or groups are given access.
325
Standard Objects
AssetShare
Usage
Use this object to manage the sharing rules for assets. General sharing uses this object.
SEE ALSO:
Metadata API Developer Guide: SharingRules
AssetShare
Represents a sharing entry on an Asset. This object is available in API version 33.0 and later.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AssetAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Asset. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
This field must be set to an access level that is higher than the organization’s default access
level for cases.
AssetId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Asset associated with this sharing entry. This field can't be updated.
326
Standard Objects
AssetTag
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Asset with them.
• Owner—The User is the owner of the Asset.
• Rule—The User or Group has access via an Asset sharing rule.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Asset. This field can't be updated.
Usage
This object allows you to determine which users and groups can view and edit Asset records owned by other users.
If you attempt to create a new record that matches an existing record, request updates any modified fields and returns the existing
record.
AssetTag
Associates a word or short phrase with an Asset.
327
Standard Objects
AssetTag
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
328
Standard Objects
AssetTokenEvent
Usage
AssetTag stores the relationship between its parent TagDefinition and the Asset being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
AssetTokenEvent
Represents an event associated with an asset token, such as token issuance and registration of a connected device as an Asset. This
object is available in API version 39.0 and later.
An asset token event records successful completion of an OAuth 2.0 asset token flow for a connected device. An event is published
whenever an access token and actor token (optional) are successfully exchanged for an asset token. This object is designed to support
custom business processes, such as automatic logging of a case when an event occurs. Create Apex triggers that subscribe to an event
and execute after asset token issuance. This object is read only and can’t be retrieved using a SOQL query. Asset token events are not
displayed in the Setup user interface for Platform Events.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ActorTokenPayload
Type
textarea
Properties
Nillable
Description
If the asset token request included an actor token, the payload portion containing
claims about the connected device, asset token, and if applicable, the registered
Asset.
AssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Asset record if the Asset was newly created or an existing Asset was
linked to in the asset token request.
AssetName
Type
string
329
Standard Objects
Field Name
AssetTokenEvent
Details
Properties
Filter, Group, Nillable, Sort
Description
If specified in the actor token, the display name of the existing Asset. This value
is otherwise null.
AssetSerialNumber
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If specified in the actor token, the serial number of the existing Asset. This value
is otherwise null.
ConnectedAppId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the connected app associated with the access token for the device.
DeviceId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID of the connected device. Value is the did (device ID) claim specified in the
actor token.
DeviceKey
Type
textarea
Properties
Nillable
Description
If specified in the actor token, the device-specific RSA public key as a JSON Web
Key (JWK). Value is the jwk claim within the confirmation claim from the actor
token.
Expiration
Type
dateTime
Properties
Filter, Nillable, Sort
330
Standard Objects
Field Name
AssetTokenEvent
Details
Description
The expiration time on or after which the asset token JWT must not be accepted
for processing. A numeric value representing the number of seconds from
1970-01-01T00:00:00Z UTC until the specified UTC date/time, ignoring leap
seconds.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Display name of the asset token.
ReplayId
Type
string
Properties
Filter, Nillable, Sort
Description
Numeric ID that identifies the asset token event. Each ID is incremented
automatically and guaranteed to be higher than the ID of the previous event,
but not necessarily contiguous for consecutive events.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user associated with the access token.
Usage
The following example shows how to trigger an action after an asset token event.
trigger AssetTokenEventTrigger on AssetTokenEvent (after insert) {
System.assertEquals(1,Trigger.new.size(),'One record expected');
AssetTokenEvent event = Trigger.new[0];
AssetTokenRecord__c record = new AssetTokenRecord__c();
record.ConnectedAppId__c = event.ConnectedAppId;
record.UserId__c = event.UserId;
record.AssetId__c = event.AssetId;
record.AssetTokenName__c = event.AssetTokenName;
record.DeviceId__c = event.DeviceId;
record.DeviceKey__c = event.DeviceKey;
record.Expiration__c = event.Expiration;
331
Standard Objects
AssignedResource
record.AssetSerialNumber__c = event.AssetSerialNumber;
record.AssetName__c = event.AssetName;
record.ActorTokenPayload__c = event.ActorTokenPayload;
insert(record);
}
AssignedResource
Represents a service resource who is assigned to a service appointment. Assigned resources appear in the Assigned Resources related
list on service appointments. This object is available in API version 38.0 and later.
Supported Calls
create(),delete(),describeLayout(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete()
Special Access Rules
Field Service Lightning must be enabled.
Fields
Field Name
Details
ActualTravelTime
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of minutes that the service resource needed to travel to the service
appointment they’re assigned to. You can enter a value with up to two decimal
places.
AssignedResourceNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An auto-generated number identifying the resource assignment.
EstimatedTravelTime
Type
double
Properties
Create, Filter, Nillable, Sort, Update
332
Standard Objects
Field Name
AssignmentRule
Details
Description
The estimated number of minutes needed for the service resource to travel to
the service appointment they’re assigned to. You can enter a value with up to
two decimal places.
ServiceAppointmentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The service appointment that the resource is assigned to.
ServiceResourceId
Type
reference
Properties
Create, Update, Filter, Group, Sort
Description
The resource who is assigned to the service appointment.
Usage
You can assign multiple service resources to a service appointment. Service resources who are assigned to service appointments cannot
be deactivated until they are removed from the appointments.
AssignmentRule
Represents an assignment rule associated with a Case or Lead.
Supported Calls
describeSObjects(), query(), retrieve(), search()
Special Access Rules
• This object is read only. Assignment rules are created, configured, and deleted in the user interface.
• Customer Portal users can’t access this object.
333
Standard Objects
AsyncApexJob
Fields
Field
Details
Active
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this assignment rule is active (true) or not (false).
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of this assignment rule.
SobjectType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of assignment rule—Case or Lead.
Usage
Before creating or updating a new Case or Lead, a client application can query (by name) the AssignmentRule to obtain the ID of the
assignment rule to use, and then assign that ID to the assignmentRuleId field of the AssignmentRuleHeader. The
AssignmentRuleHeader can be set using either SOAP API or REST API.
SEE ALSO:
Object Basics
AsyncApexJob
Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation, or a job that
implements Queueable.
Supported Calls
describeSObjects(), query(), retrieve()
334
Standard Objects
AsyncApexJob
Fields
Field Name
Details
ApexClassID
Type
reference,
Properties
Filter, Group, Sort
Description
The ID of the Apex class executing the job. Label is Class ID.
CompletedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the job was completed.
ExtendedStatus
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If one or more errors occurred during the batch processing, this contains a short description
of the first error. A more detailed description of that error, along with any subsequent errors,
is emailed to the user who started the running batch class. This field is available in API version
19.0 and later.
JobItemsProcessed
Type
int
Properties
Filter, Group, Sort
Description
Number of job items processed. Label is Batches Processed.
JobType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of job being processed. Valid values are:
• Future
• SharingRecalculation
335
Standard Objects
Field Name
AsyncApexJob
Details
• ScheduledApex
• BatchApex
• BatchApexWorker
• TestRequest
• TestWorker
• ApexToken
• Queueable
MethodName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the Apex method being executed. Label is Apex Method.
NumberOfErrors
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Total number of batches with a failure. A batch is considered transactional, so any unhandled
exceptions constitute an entire failure of the batch. Label is Failures.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The status of the job. Valid values are:
1
• Holding
• Queued
• Preparing
• Processing
• Aborted
• Completed
• Failed
1
TotalJobItems
This status applies to batch jobs in the Apex flex queue.
Type
int
336
Standard Objects
Field Name
AttachedContentDocument
Details
Properties
Filter, Group, Nillable, Sort
Description
Total number of batches processed. Each batch contains a set of records. Label is Total
Batches.
Usage
Use this object to query Apex batch jobs in your organization.
AttachedContentDocument
This read-only object contains all ContentDocument objects associated with an object.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the attached ContentDocument.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the document in bytes.
ContentUrl
Type
url
Properties
Filter, Group, Nillable, Sort
337
Standard Objects
Field Name
AttachedContentDocument
Details
Description
URL for links and Google Docs. This field is set only for links and Google Docs,
and is one of the fields that determine the FileType.
This field is available in API version 31.0 and later.
ExternalDataSourceName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the external data source in which the document is stored. This field is
set only for external documents that are connected to Salesforce.
This field is available in API version 32.0 and later.
ExternalDataSourceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of external data source in which the document is stored. This field is set
only for external documents that are connected to Salesforce.
This field is available in API version 35.0 and later.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the attached ContentDocument.
This field is available in API version 31.0 and later.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
LinkedEntityId
Type
reference
338
Standard Objects
Field Name
AttachedContentNote
Details
Properties
Filter, Group, Sort
Description
ID of the record the ContentDocument is attached to.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file
owners with Collaborator access to the file can modify this field. Default is
Allowed, which means that new shares are allowed. When set to
Restricted, new shares are prevented without affecting existing shares.
This field is available in API versions 35.0 and later.
Title
Type
string
Properties
Filter, Group, Sort
Description
Title of the attached ContentDocument.
Usage
Use this object to list all ContentDocument objects attached to an object via a feed post.
To retrieve ContentDocument objects, issue a describe call on an object, which returns a query result for each activity since the
record was created. You can’t directly query this object.
AttachedContentNote
This read-only object contains all ContentNote objects associated with an object. This object is available in API version 35.0 and later.
Supported Calls
describeSObjects()
Special Access Rules
• Notes must be enabled.
339
Standard Objects
AttachedContentNote
• Chatter must be enabled.
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the attached ContentNote
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the note in bytes.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the attached ContentNote.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of file for the note. All notes have a file type of SNOTE.
LinkedEntityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the record the ContentNote is attached to.
340
Standard Objects
Attachment
Field Name
Details
TextPreview
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A preview of the note, up to 255 characters.
Title
Type
string
Properties
Filter, Group, Sort
Description
Title of the note.
Usage
Use this object to list all ContentNote objects attached to an object.
To retrieve ContentNote objects, issue a describe call on an object, which returns a query result for each note created or attached.
You can’t directly query this object.
Attachment
Represents a file that a User has uploaded and attached to a parent object.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
Body
Type
base64
Properties
Create, Update
Description
Required. Encoded file data.
341
Standard Objects
Attachment
Field
Details
BodyLength
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the file (in bytes).
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ContentType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The content type of the attachment.
If the Don't allow HTML uploads as attachments or document
records security setting is enabled for your organization, you cannot upload files with
the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm,
.shtml, .acgi, .svg.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
342
Standard Objects
Field
Attachment
Details
Description
Description of the attachment. This field is available in API version 18.0 and later.
IsEncrypted
Note: This information is about Shield Platform Encryption and not Classic Encryption.
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the attachment is encrypted using Shield Platform Encryption (true) or
not (false). This field is available in API version 34.0 and later.
IsPartnerShared
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether this record is shared with a connection using Salesforce to Salesforce.
Label is Is Shared With Partner.
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this record is viewable only by the owner and administrators (true) or
viewable by all otherwise-allowed users (false). During a create or update call, it is possible
to mark an Attachment record as private even if you are not the owner. This can result in a
situation in which you can no longer access the record that you just inserted or updated.
Label is Private.
Attachments on tasks or events can't be marked private.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the attached file. Label is File Name.
OwnerId
Type
reference
343
Standard Objects
Field
Attachment
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who owns the attachment. This field was required previous to release 9.0.
Beginning with release 9.0, it can be null on create.
The owner of an attachment on a task or event must be the same as the owner of the task
or event.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the parent object of the attachment. The following objects are supported as
parents of attachments:
• Account
• Asset
• Campaign
• Case
• Contact
• Contract
• Custom objects
• EmailMessage
• EmailTemplate
• Event
• Lead
• Opportunity
• Product2
• Solution
• Task
Note: If you are importing Attachment data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. For example, for compliance reasons, you may prefer to set the CreatedDate to the date the record was originally
created in your system, rather than the date it was imported into Salesforce. Audit fields are automatically updated during API
operations unless you request to set these fields yourself.
344
Standard Objects
AuraDefinition
Usage
The API sends and receives the binary file attachment data encoded as a base64Binary data type. Prior to creating a record, client
applications must encode the binary attachment data as base64. Upon receiving a response, client applications must decode the base64
data to binary (this conversion is usually handled for you by the SOAP client).
The create call restricts these files to a maximum size of 25 MB. For a file attached to a Solution, the limit is 1.5 MB. The maximum email
attachment size is 3 MB.
The API supports attachments on email in create, delete, or update calls. The query call does not return attachments parented by email,
unless the user performing the query has the “Modify All Data” permission.
Note:
• Attachment records are not searched during text searches.
• When issued by an administrator, the query results include Attachment records from the Recycle Bin.
• When issued by a non-administrator, the queryAll() call results do not include Attachment records from the Recycle Bin.
Access to fields depends on the method being used:
• All of the fields are accessible using the describeSObjects() and query() calls. With the create() call, you can insert
the Name, ParentId, Body, IsPrivate, and OwnerId fields.
• To modify existing records, the update() call gives you access to change the Name, Body, IsPrivate, and OwnerId
fields.
• You can access all of the fields using a query() call. However, you can't receive the Body field for multiple records in a single
query() call. If your query returns the Body field, your client application must ensure that only one row with one Attachment
is returned; otherwise, an error occurs. A more effective approach is to return IDs (but not Attachment records in the Body field)
from a query() call and then pass them into retrieve() calls that return the Body field.
• For information about accessing the attachments of archived activities, see Archived Activities.
SEE ALSO:
Note
AuraDefinition
Represents a Lightning definition, such as component markup, a client-side controller, or an event. This object is available in API version
32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
AuraDefinitionBundleId
Type
reference
345
Standard Objects
Field Name
AuraDefinition
Details
Properties
Create, Filter, Group, Sort
Description
The ID of the bundle containing the definition. A bundle contains a Lightning
definition and all its related resources.
DefType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The definition type. Valid values are:
• APPLICATION — Lightning Components app
• CONTROLLER — client-side controller
• COMPONENT — component markup
• EVENT — event definition
• HELPER — client-side helper
• INTERFACE — interface definition
• RENDERER — client-side renderer
• STYLE — style (CSS) resource
• PROVIDER — reserved for future use
• MODEL — deprecated, do not use
• TESTSUITE — reserved for future use
• DOCUMENTATION — documentation markup
• TOKENS — tokens collection
• DESIGN — design definition
• SVG — SVG graphic resource
Format
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The format of the definition. Valid values are:
• XML for component markup
• JS for JavaScript code
• CSS for styles
346
Standard Objects
AuraDefinitionBundle
Field Name
Details
Source
Type
textarea
Properties
Create, Update
Description
The contents of the Lightning definition. This is all the markup or code for the
definition.
Usage
For more information, see the Lightning Components Developer Guide.
AuraDefinitionBundle
Represents a Lightning definition bundle, such as a component or application bundle. A bundle contains a Lightning definition and all
its related resources. This object is available in API version 32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ApiVersion
Type
double
Properties
Create, Filter, Sort, Update
Description
The API version for this bundle. Every bundle has an API version specified at
creation.
Description
Type
textarea
Properties
Create, Filter, Group, Sort, Update
Description
The text description of the bundle. Maximum size of 255 characters.
347
Standard Objects
AuraDefinitionBundle
Field Name
Details
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. This field is automatically generated but you can supply
your own value if you create the record using the API.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the Lightning bundle. This internal label doesn’t get translated.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
348
Standard Objects
Field Name
AuthConfig
Details
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Usage
For more information, see the Lightning Components Developer Guide.
AuthConfig
Represents authentication options for a communityor custom domain that was created by using My Domain. This object is available in
API version 32.0 and later.
The fields for this object control the login options that show up on the login page for users of a community or custom domain.
• Logging in with a username and password
• Using SAML for single sign-on
• Authentication provider logins from a third-party service, such as Facebook or Twitter
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
You must have “View Setup and Configuration” permission to view the settings.
Fields
Field Name
Details
AuthOptionsAuthProvider
Type
boolean
Properties
Filter
Description
If true, at least one Auth. Provider is selected to show up on the login page,
and this object has child AuthConfigProvider objects for each provider.
AuthOptionsSaml
Type
boolean
349
Standard Objects
Field Name
AuthConfig
Details
Properties
Filter
Description
If true, at least one SAML configuration is selected to show up on the login
page. If the organization has only one SAML configuration, this value indicates
whether that configuration is selected to show up on the login page. If the
organization has multiple SAML configurations, see the child AuthConfigProvider
objects for each configuration.
AuthOptionsUsernamePassword
Type
boolean
Properties
Filter
Description
If true, the login option for a username and password appears on the login
page.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The name of the domain created using My Domain or, for communities, a
concatenated string of community name_community prefix.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Whether this configuration is in use.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language for the organization.
MasterLabel
Type
string
350
Standard Objects
Field Name
AuthConfig
Details
Properties
Filter, Group, Sort
Description
The text that’s used to identify the Visualforce page in Setup.
NamespacePrefix
Type
string
Properties
Filter, Group, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package
by using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There
is an exception if an object is in an installed managed package. In that
case, the object has the namespace prefix of the installed managed
package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Type
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The organization type for this object.
• Org (includes custom domains)
• Community
• Site
• Portal
Url
Type
string
Properties
Filter, Group, idLookup, Sort
351
Standard Objects
Field Name
AuthConfigProviders
Details
Description
The login URL of the organization for this AuthConfig object. Each URL has only
one associated AuthConfig object.
AuthConfigProviders
Represents an authentication provider that’s configured in an organization. This object is a child of the AuthConfig object. This object
is available in API version 32.0 and later.
This object links the authentication configuration for an organization to the Auth. Provider through the AuthOptionsAuthProvider
field of the AuthConfig object. The login page of a Community or custom domain that was created by using My Domain can allow
multiple SAML configurations and multiple authentication providers. These configurations can be set to show up as buttons on the login
page. Each configuration has an AuthConfigProvider object.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
You must have “View Setup and Configuration” permission to view the settings.
Fields
Field Name
Details
AuthConfigId
Type
reference
Properties
Filter, Group, Sort
Description
The ID for this configuration.
AuthProviderId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the Auth. Provider or SAML configuration.
352
Standard Objects
AuthProvider
AuthProvider
Represents an authentication provider in your org.
An authentication provider enables users to log in to your Salesforce org using their login credentials from an external service provider,
such as Facebook© or Janrain©.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Only users with the “Customize Application” and “Manage AuthProviders” permissions can access this object.
Fields
Field Name
Details
AuthorizeUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
Description
Required, but only if ProviderType is OpenIdConnect. The OAuth
authorization endpoint URL. Used only with OpenID Connect authentication
providers. Available in API version 29.0 and later.
ConsumerKey
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Required. The app’s key that is registered at the third-party Single Sign-On
provider.
ConsumerSecret
Type
string
Properties
Create, Nillable
Description
Required. The consumer secret of the app that is registered at the third-party
Single Sign-On provider. This field cannot be updated. When using create()
this field must be encrypted. To create an encrypted form of the consumer secret
from plain text:
353
Standard Objects
Field Name
AuthProvider
Details
1. Create an authentication provider with the ConsumerSecret plain text value.
2. Save the authentication provider.
3. Create an outbound change set that includes the authentication provider
component.
The new change set .xml file has an entry in the form Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as
CreatedDate. If a FeedComment is inserted on the feed item, then
LastModifiedDate becomes the CreatedDate for the FeedComment.
Deleting the FeedComment does not change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most
recent feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
320
Standard Objects
Field Name
AssetFeed
Details
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the asset record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion article associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as an AssetFeed object of Type
ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the AssetFeed. When the Type is LinkPost, the LinkUrl is
the URL, and this field is the link name.
321
Standard Objects
AssetFeed
Field Name
Details
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of AssetFeed item:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
322
Standard Objects
Field Name
AssetFeed
Details
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
323
Standard Objects
AssetOwnerSharingRule
Usage
Use this object to track changes for an asset record.
SEE ALSO:
Asset
Product2
FeedItem
AssetOwnerSharingRule
Represents the rules for sharing an Asset with users other than the owner. This object is available in API version 33.0 and later.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
AssetAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters.
324
Standard Objects
AssetOwnerSharingRule
Field
Details
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Cases owned by users in the source group
trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. Target users or groups are given access.
325
Standard Objects
AssetShare
Usage
Use this object to manage the sharing rules for assets. General sharing uses this object.
SEE ALSO:
Metadata API Developer Guide: SharingRules
AssetShare
Represents a sharing entry on an Asset. This object is available in API version 33.0 and later.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AssetAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Asset. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
This field must be set to an access level that is higher than the organization’s default access
level for cases.
AssetId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Asset associated with this sharing entry. This field can't be updated.
326
Standard Objects
AssetTag
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Asset with them.
• Owner—The User is the owner of the Asset.
• Rule—The User or Group has access via an Asset sharing rule.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Asset. This field can't be updated.
Usage
This object allows you to determine which users and groups can view and edit Asset records owned by other users.
If you attempt to create a new record that matches an existing record, request updates any modified fields and returns the existing
record.
AssetTag
Associates a word or short phrase with an Asset.
327
Standard Objects
AssetTag
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
328
Standard Objects
AssetTokenEvent
Usage
AssetTag stores the relationship between its parent TagDefinition and the Asset being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
AssetTokenEvent
Represents an event associated with an asset token, such as token issuance and registration of a connected device as an Asset. This
object is available in API version 39.0 and later.
An asset token event records successful completion of an OAuth 2.0 asset token flow for a connected device. An event is published
whenever an access token and actor token (optional) are successfully exchanged for an asset token. This object is designed to support
custom business processes, such as automatic logging of a case when an event occurs. Create Apex triggers that subscribe to an event
and execute after asset token issuance. This object is read only and can’t be retrieved using a SOQL query. Asset token events are not
displayed in the Setup user interface for Platform Events.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ActorTokenPayload
Type
textarea
Properties
Nillable
Description
If the asset token request included an actor token, the payload portion containing
claims about the connected device, asset token, and if applicable, the registered
Asset.
AssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Asset record if the Asset was newly created or an existing Asset was
linked to in the asset token request.
AssetName
Type
string
329
Standard Objects
Field Name
AssetTokenEvent
Details
Properties
Filter, Group, Nillable, Sort
Description
If specified in the actor token, the display name of the existing Asset. This value
is otherwise null.
AssetSerialNumber
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If specified in the actor token, the serial number of the existing Asset. This value
is otherwise null.
ConnectedAppId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the connected app associated with the access token for the device.
DeviceId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID of the connected device. Value is the did (device ID) claim specified in the
actor token.
DeviceKey
Type
textarea
Properties
Nillable
Description
If specified in the actor token, the device-specific RSA public key as a JSON Web
Key (JWK). Value is the jwk claim within the confirmation claim from the actor
token.
Expiration
Type
dateTime
Properties
Filter, Nillable, Sort
330
Standard Objects
Field Name
AssetTokenEvent
Details
Description
The expiration time on or after which the asset token JWT must not be accepted
for processing. A numeric value representing the number of seconds from
1970-01-01T00:00:00Z UTC until the specified UTC date/time, ignoring leap
seconds.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Display name of the asset token.
ReplayId
Type
string
Properties
Filter, Nillable, Sort
Description
Numeric ID that identifies the asset token event. Each ID is incremented
automatically and guaranteed to be higher than the ID of the previous event,
but not necessarily contiguous for consecutive events.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user associated with the access token.
Usage
The following example shows how to trigger an action after an asset token event.
trigger AssetTokenEventTrigger on AssetTokenEvent (after insert) {
System.assertEquals(1,Trigger.new.size(),'One record expected');
AssetTokenEvent event = Trigger.new[0];
AssetTokenRecord__c record = new AssetTokenRecord__c();
record.ConnectedAppId__c = event.ConnectedAppId;
record.UserId__c = event.UserId;
record.AssetId__c = event.AssetId;
record.AssetTokenName__c = event.AssetTokenName;
record.DeviceId__c = event.DeviceId;
record.DeviceKey__c = event.DeviceKey;
record.Expiration__c = event.Expiration;
331
Standard Objects
AssignedResource
record.AssetSerialNumber__c = event.AssetSerialNumber;
record.AssetName__c = event.AssetName;
record.ActorTokenPayload__c = event.ActorTokenPayload;
insert(record);
}
AssignedResource
Represents a service resource who is assigned to a service appointment. Assigned resources appear in the Assigned Resources related
list on service appointments. This object is available in API version 38.0 and later.
Supported Calls
create(),delete(),describeLayout(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete()
Special Access Rules
Field Service Lightning must be enabled.
Fields
Field Name
Details
ActualTravelTime
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of minutes that the service resource needed to travel to the service
appointment they’re assigned to. You can enter a value with up to two decimal
places.
AssignedResourceNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An auto-generated number identifying the resource assignment.
EstimatedTravelTime
Type
double
Properties
Create, Filter, Nillable, Sort, Update
332
Standard Objects
Field Name
AssignmentRule
Details
Description
The estimated number of minutes needed for the service resource to travel to
the service appointment they’re assigned to. You can enter a value with up to
two decimal places.
ServiceAppointmentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The service appointment that the resource is assigned to.
ServiceResourceId
Type
reference
Properties
Create, Update, Filter, Group, Sort
Description
The resource who is assigned to the service appointment.
Usage
You can assign multiple service resources to a service appointment. Service resources who are assigned to service appointments cannot
be deactivated until they are removed from the appointments.
AssignmentRule
Represents an assignment rule associated with a Case or Lead.
Supported Calls
describeSObjects(), query(), retrieve(), search()
Special Access Rules
• This object is read only. Assignment rules are created, configured, and deleted in the user interface.
• Customer Portal users can’t access this object.
333
Standard Objects
AsyncApexJob
Fields
Field
Details
Active
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this assignment rule is active (true) or not (false).
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of this assignment rule.
SobjectType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of assignment rule—Case or Lead.
Usage
Before creating or updating a new Case or Lead, a client application can query (by name) the AssignmentRule to obtain the ID of the
assignment rule to use, and then assign that ID to the assignmentRuleId field of the AssignmentRuleHeader. The
AssignmentRuleHeader can be set using either SOAP API or REST API.
SEE ALSO:
Object Basics
AsyncApexJob
Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation, or a job that
implements Queueable.
Supported Calls
describeSObjects(), query(), retrieve()
334
Standard Objects
AsyncApexJob
Fields
Field Name
Details
ApexClassID
Type
reference,
Properties
Filter, Group, Sort
Description
The ID of the Apex class executing the job. Label is Class ID.
CompletedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the job was completed.
ExtendedStatus
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If one or more errors occurred during the batch processing, this contains a short description
of the first error. A more detailed description of that error, along with any subsequent errors,
is emailed to the user who started the running batch class. This field is available in API version
19.0 and later.
JobItemsProcessed
Type
int
Properties
Filter, Group, Sort
Description
Number of job items processed. Label is Batches Processed.
JobType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of job being processed. Valid values are:
• Future
• SharingRecalculation
335
Standard Objects
Field Name
AsyncApexJob
Details
• ScheduledApex
• BatchApex
• BatchApexWorker
• TestRequest
• TestWorker
• ApexToken
• Queueable
MethodName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the Apex method being executed. Label is Apex Method.
NumberOfErrors
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Total number of batches with a failure. A batch is considered transactional, so any unhandled
exceptions constitute an entire failure of the batch. Label is Failures.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The status of the job. Valid values are:
1
• Holding
• Queued
• Preparing
• Processing
• Aborted
• Completed
• Failed
1
TotalJobItems
This status applies to batch jobs in the Apex flex queue.
Type
int
336
Standard Objects
Field Name
AttachedContentDocument
Details
Properties
Filter, Group, Nillable, Sort
Description
Total number of batches processed. Each batch contains a set of records. Label is Total
Batches.
Usage
Use this object to query Apex batch jobs in your organization.
AttachedContentDocument
This read-only object contains all ContentDocument objects associated with an object.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the attached ContentDocument.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the document in bytes.
ContentUrl
Type
url
Properties
Filter, Group, Nillable, Sort
337
Standard Objects
Field Name
AttachedContentDocument
Details
Description
URL for links and Google Docs. This field is set only for links and Google Docs,
and is one of the fields that determine the FileType.
This field is available in API version 31.0 and later.
ExternalDataSourceName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the external data source in which the document is stored. This field is
set only for external documents that are connected to Salesforce.
This field is available in API version 32.0 and later.
ExternalDataSourceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of external data source in which the document is stored. This field is set
only for external documents that are connected to Salesforce.
This field is available in API version 35.0 and later.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the attached ContentDocument.
This field is available in API version 31.0 and later.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
LinkedEntityId
Type
reference
338
Standard Objects
Field Name
AttachedContentNote
Details
Properties
Filter, Group, Sort
Description
ID of the record the ContentDocument is attached to.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file
owners with Collaborator access to the file can modify this field. Default is
Allowed, which means that new shares are allowed. When set to
Restricted, new shares are prevented without affecting existing shares.
This field is available in API versions 35.0 and later.
Title
Type
string
Properties
Filter, Group, Sort
Description
Title of the attached ContentDocument.
Usage
Use this object to list all ContentDocument objects attached to an object via a feed post.
To retrieve ContentDocument objects, issue a describe call on an object, which returns a query result for each activity since the
record was created. You can’t directly query this object.
AttachedContentNote
This read-only object contains all ContentNote objects associated with an object. This object is available in API version 35.0 and later.
Supported Calls
describeSObjects()
Special Access Rules
• Notes must be enabled.
339
Standard Objects
AttachedContentNote
• Chatter must be enabled.
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the attached ContentNote
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the note in bytes.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the attached ContentNote.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of file for the note. All notes have a file type of SNOTE.
LinkedEntityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the record the ContentNote is attached to.
340
Standard Objects
Attachment
Field Name
Details
TextPreview
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A preview of the note, up to 255 characters.
Title
Type
string
Properties
Filter, Group, Sort
Description
Title of the note.
Usage
Use this object to list all ContentNote objects attached to an object.
To retrieve ContentNote objects, issue a describe call on an object, which returns a query result for each note created or attached.
You can’t directly query this object.
Attachment
Represents a file that a User has uploaded and attached to a parent object.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
Body
Type
base64
Properties
Create, Update
Description
Required. Encoded file data.
341
Standard Objects
Attachment
Field
Details
BodyLength
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the file (in bytes).
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ContentType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The content type of the attachment.
If the Don't allow HTML uploads as attachments or document
records security setting is enabled for your organization, you cannot upload files with
the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm,
.shtml, .acgi, .svg.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
342
Standard Objects
Field
Attachment
Details
Description
Description of the attachment. This field is available in API version 18.0 and later.
IsEncrypted
Note: This information is about Shield Platform Encryption and not Classic Encryption.
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the attachment is encrypted using Shield Platform Encryption (true) or
not (false). This field is available in API version 34.0 and later.
IsPartnerShared
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether this record is shared with a connection using Salesforce to Salesforce.
Label is Is Shared With Partner.
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this record is viewable only by the owner and administrators (true) or
viewable by all otherwise-allowed users (false). During a create or update call, it is possible
to mark an Attachment record as private even if you are not the owner. This can result in a
situation in which you can no longer access the record that you just inserted or updated.
Label is Private.
Attachments on tasks or events can't be marked private.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the attached file. Label is File Name.
OwnerId
Type
reference
343
Standard Objects
Field
Attachment
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who owns the attachment. This field was required previous to release 9.0.
Beginning with release 9.0, it can be null on create.
The owner of an attachment on a task or event must be the same as the owner of the task
or event.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the parent object of the attachment. The following objects are supported as
parents of attachments:
• Account
• Asset
• Campaign
• Case
• Contact
• Contract
• Custom objects
• EmailMessage
• EmailTemplate
• Event
• Lead
• Opportunity
• Product2
• Solution
• Task
Note: If you are importing Attachment data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. For example, for compliance reasons, you may prefer to set the CreatedDate to the date the record was originally
created in your system, rather than the date it was imported into Salesforce. Audit fields are automatically updated during API
operations unless you request to set these fields yourself.
344
Standard Objects
AuraDefinition
Usage
The API sends and receives the binary file attachment data encoded as a base64Binary data type. Prior to creating a record, client
applications must encode the binary attachment data as base64. Upon receiving a response, client applications must decode the base64
data to binary (this conversion is usually handled for you by the SOAP client).
The create call restricts these files to a maximum size of 25 MB. For a file attached to a Solution, the limit is 1.5 MB. The maximum email
attachment size is 3 MB.
The API supports attachments on email in create, delete, or update calls. The query call does not return attachments parented by email,
unless the user performing the query has the “Modify All Data” permission.
Note:
• Attachment records are not searched during text searches.
• When issued by an administrator, the query results include Attachment records from the Recycle Bin.
• When issued by a non-administrator, the queryAll() call results do not include Attachment records from the Recycle Bin.
Access to fields depends on the method being used:
• All of the fields are accessible using the describeSObjects() and query() calls. With the create() call, you can insert
the Name, ParentId, Body, IsPrivate, and OwnerId fields.
• To modify existing records, the update() call gives you access to change the Name, Body, IsPrivate, and OwnerId
fields.
• You can access all of the fields using a query() call. However, you can't receive the Body field for multiple records in a single
query() call. If your query returns the Body field, your client application must ensure that only one row with one Attachment
is returned; otherwise, an error occurs. A more effective approach is to return IDs (but not Attachment records in the Body field)
from a query() call and then pass them into retrieve() calls that return the Body field.
• For information about accessing the attachments of archived activities, see Archived Activities.
SEE ALSO:
Note
AuraDefinition
Represents a Lightning definition, such as component markup, a client-side controller, or an event. This object is available in API version
32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
AuraDefinitionBundleId
Type
reference
345
Standard Objects
Field Name
AuraDefinition
Details
Properties
Create, Filter, Group, Sort
Description
The ID of the bundle containing the definition. A bundle contains a Lightning
definition and all its related resources.
DefType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The definition type. Valid values are:
• APPLICATION — Lightning Components app
• CONTROLLER — client-side controller
• COMPONENT — component markup
• EVENT — event definition
• HELPER — client-side helper
• INTERFACE — interface definition
• RENDERER — client-side renderer
• STYLE — style (CSS) resource
• PROVIDER — reserved for future use
• MODEL — deprecated, do not use
• TESTSUITE — reserved for future use
• DOCUMENTATION — documentation markup
• TOKENS — tokens collection
• DESIGN — design definition
• SVG — SVG graphic resource
Format
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The format of the definition. Valid values are:
• XML for component markup
• JS for JavaScript code
• CSS for styles
346
Standard Objects
AuraDefinitionBundle
Field Name
Details
Source
Type
textarea
Properties
Create, Update
Description
The contents of the Lightning definition. This is all the markup or code for the
definition.
Usage
For more information, see the Lightning Components Developer Guide.
AuraDefinitionBundle
Represents a Lightning definition bundle, such as a component or application bundle. A bundle contains a Lightning definition and all
its related resources. This object is available in API version 32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ApiVersion
Type
double
Properties
Create, Filter, Sort, Update
Description
The API version for this bundle. Every bundle has an API version specified at
creation.
Description
Type
textarea
Properties
Create, Filter, Group, Sort, Update
Description
The text description of the bundle. Maximum size of 255 characters.
347
Standard Objects
AuraDefinitionBundle
Field Name
Details
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. This field is automatically generated but you can supply
your own value if you create the record using the API.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the Lightning bundle. This internal label doesn’t get translated.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
348
Standard Objects
Field Name
AuthConfig
Details
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Usage
For more information, see the Lightning Components Developer Guide.
AuthConfig
Represents authentication options for a communityor custom domain that was created by using My Domain. This object is available in
API version 32.0 and later.
The fields for this object control the login options that show up on the login page for users of a community or custom domain.
• Logging in with a username and password
• Using SAML for single sign-on
• Authentication provider logins from a third-party service, such as Facebook or Twitter
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
You must have “View Setup and Configuration” permission to view the settings.
Fields
Field Name
Details
AuthOptionsAuthProvider
Type
boolean
Properties
Filter
Description
If true, at least one Auth. Provider is selected to show up on the login page,
and this object has child AuthConfigProvider objects for each provider.
AuthOptionsSaml
Type
boolean
349
Standard Objects
Field Name
AuthConfig
Details
Properties
Filter
Description
If true, at least one SAML configuration is selected to show up on the login
page. If the organization has only one SAML configuration, this value indicates
whether that configuration is selected to show up on the login page. If the
organization has multiple SAML configurations, see the child AuthConfigProvider
objects for each configuration.
AuthOptionsUsernamePassword
Type
boolean
Properties
Filter
Description
If true, the login option for a username and password appears on the login
page.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The name of the domain created using My Domain or, for communities, a
concatenated string of community name_community prefix.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Whether this configuration is in use.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language for the organization.
MasterLabel
Type
string
350
Standard Objects
Field Name
AuthConfig
Details
Properties
Filter, Group, Sort
Description
The text that’s used to identify the Visualforce page in Setup.
NamespacePrefix
Type
string
Properties
Filter, Group, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package
by using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There
is an exception if an object is in an installed managed package. In that
case, the object has the namespace prefix of the installed managed
package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Type
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The organization type for this object.
• Org (includes custom domains)
• Community
• Site
• Portal
Url
Type
string
Properties
Filter, Group, idLookup, Sort
351
Standard Objects
Field Name
AuthConfigProviders
Details
Description
The login URL of the organization for this AuthConfig object. Each URL has only
one associated AuthConfig object.
AuthConfigProviders
Represents an authentication provider that’s configured in an organization. This object is a child of the AuthConfig object. This object
is available in API version 32.0 and later.
This object links the authentication configuration for an organization to the Auth. Provider through the AuthOptionsAuthProvider
field of the AuthConfig object. The login page of a Community or custom domain that was created by using My Domain can allow
multiple SAML configurations and multiple authentication providers. These configurations can be set to show up as buttons on the login
page. Each configuration has an AuthConfigProvider object.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
You must have “View Setup and Configuration” permission to view the settings.
Fields
Field Name
Details
AuthConfigId
Type
reference
Properties
Filter, Group, Sort
Description
The ID for this configuration.
AuthProviderId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the Auth. Provider or SAML configuration.
352
Standard Objects
AuthProvider
AuthProvider
Represents an authentication provider in your org.
An authentication provider enables users to log in to your Salesforce org using their login credentials from an external service provider,
such as Facebook© or Janrain©.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Only users with the “Customize Application” and “Manage AuthProviders” permissions can access this object.
Fields
Field Name
Details
AuthorizeUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
Description
Required, but only if ProviderType is OpenIdConnect. The OAuth
authorization endpoint URL. Used only with OpenID Connect authentication
providers. Available in API version 29.0 and later.
ConsumerKey
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Required. The app’s key that is registered at the third-party Single Sign-On
provider.
ConsumerSecret
Type
string
Properties
Create, Nillable
Description
Required. The consumer secret of the app that is registered at the third-party
Single Sign-On provider. This field cannot be updated. When using create()
this field must be encrypted. To create an encrypted form of the consumer secret
from plain text:
353
Standard Objects
Field Name
AuthProvider
Details
1. Create an authentication provider with the ConsumerSecret plain text value.
2. Save the authentication provider.
3. Create an outbound change set that includes the authentication provider
component.
The new change set .xml file has an entry in the form++XYZ++ where ++XYZ++
is the encrypted secret.
CustomMetadataTypeRecord
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Required, but only with custom authentication provider plug-ins, when
ProviderType is Custom. The API name of the authentication provider.
Available in API version 36.0 and later.
DefaultScopes
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Required, but only if ProviderType is OpenIdConnect The scopes to
be sent with the authorization request, if not specified when a flow is started.
Used only with OpenID Connect authentication providers. Available in API version
29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Used when referring to the authentication provider from a program.
ErrorUrl
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
A custom error URL for the authentication provider to use to report any errors.
354
Standard Objects
AuthProvider
Field Name
Details
ExecutionUserId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The user that runs the Apex handler class. The user must have the “Manage Users”
permission. A user is required when you specify a registration handler class.
FriendlyName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. A user-friendly name for the provider.
IconUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
Description
The path to an icon to use as a button on the login page. Users click the button
to log in with the associated authentication provider.
IdTokenIssuer
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Only available if ProviderType is OpenIdConnect. This value identifies
the source of the authentication token in the form https: URI. Used only
with OpenID Connect authentication providers. If provided, Salesforce validates
the returned id_token value. The OpenID Connect specification requires an
id_token value to be returned with the access_token value. Available
in API version 30.0 and later.
LogoutUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
355
Standard Objects
Field Name
AuthProvider
Details
Description
Provides a specific destination for users after they log out if they authenticated
using social sign-on. The URL must be fully qualified with an http or https
prefix, such as https://acme.my.salesforce.com. Available in API
version 33.0 and later.
OptionsIncludeOrgIdInId
Type
boolean
Properties
Create, Filter, Update
Description
Includes the organization ID to differentiate between users with the same user
ID from two sources (such as two sandboxes). Only available for Salesforce
authentication providers. Once set to true, it can’t be set to false. Available
in API version 32.0 and later.
OptionsSendAccessTokenInHeader Type
boolean
Properties
Create, Filter, Update
Description
Required only if ProviderType is OpenIdConnect. When true, the
access token is sent to the UserInfoUrl in a header instead of a query string.
Used only with OpenID Connect authentication providers. Available in API version
30.0 and later.
OptionsSendClientCredentialsInHeader Type
boolean
Properties
Create, Filter, Update
Description
Required only if ProviderType is OpenIdConnect. When true, the
client credentials are sent in a header, instead of a query string, to the tokenUrl.
The credentials are in the standard OpenID Connect Basic Credentials header
form, which is Basic, where  is the base64-encoded
string "clientkey:clientsecret". Used only with OpenID Connect
authentication providers. Available in API version 30.0 and later.
ProviderType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
356
Standard Objects
Field Name
AuthProvider
Details
Description
Required. The third-party Single Sign-On provider to use. Valid values are:
• Facebook
• Salesforce
• Janrain
• LinkedIn (Available in API version 32.0 and later.)
• Twitter (Available in API version 32.0 and later.)
• OpenIdConnect (Available in API version 29.0 and later.)
Note: This type requires values for the following fields:
– AuthorizeUrl
– DefaultScopes
– TokenUrl
– UserInfoUrl
• MicrosoftACS Microsoft Access Control Service typically provides
authentication for a Microsoft Office 365 service like SharePoint® Online.
(Available in API version 31.0 and later.)
• GitHub—Use the GitHub provider to log in users of your Force.com app
to GitHub using OAuth. When logged in to GitHub, your app can make calls
to GitHub APIs. The GitHub provider isn’t available as a single sign-on
provider, so users can’t log in to your Salesforce org using their GitHub login
credentials. (Available in API version 35.0 and later.)
• Custom (Available in API version 36.0 and later.)
PluginId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An existing Apex class that extends the
Auth.AuthProviderPluginClass abstract class. Available in API version
39.0 and later.
RegistrationHandlerId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An existing Apex class that implements the Auth.RegistrationHandler
interface.
357
Standard Objects
AuthSession
Field Name
Details
TokenUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
Description
Required, but only if ProviderType is OpenIdConnect. The OAuth token
endpoint URL. Used only with OpenID Connect authentication providers. Available
in API version 29.0 and later.
UserInfoUrl
Type
url
Properties
Create, Filter, Nillable, Sort, Update
Description
Required, but only if Provider-type is OpenIdConnect. The OpenID
Connect endpoint URL. Used only with OpenID Connect authentication providers.
Available in API version 29.0 and later.
AuthSession
The AuthSession object represents an individual user session in your organization. This object is available in versions 29.0 and later.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
The date and time this session was created. This field is a standard system field.
IsCurrent
Type
boolean
358
Standard Objects
Field Name
AuthSession
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the session is a member of the user’s current session family. This field
is available in API version 37.0 and later.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
The date and time this session was last updated. A session expires when the
current date and time equals LastModifiedDate + NumSecondsValid.
This field is a standard system field.
LoginGeoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The 18-character ID for the record of the geographic location of the user for a
login event. Due to the nature of geolocation technology, the accuracy of
geolocation fields (for example, country, city, postal code) can vary. This field is
available in API version 34.0 and later.
LoginHistoryId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The 18-character ID for a successful login event. When a session is reused,
Salesforce updates the LoginHistoryId with the value from the most
recent login. This field is available in API version 33.0 and later.
LoginType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of login, for example, Application.
359
Standard Objects
AuthSession
Field Name
Details
LogoutUrl
Type
string
Properties
Filter, Nillable, Sort
Description
The page or view to display after users log out of a community, or an organization
if they authenticated using SAML. This field is available in API version 32.0 and
later.
NumSecondsValid
Type
int
Properties
Filter, Group, Sort
Description
The number of seconds before the session expires, starting from the last update
time.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
The 18-character ID for the parent session, if one exists (for example, if the current
session is for a canvas app). If the current session doesn’t have a parent, this value
is the current session’s own ID.
SessionSecurityLevel
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Standard or High, depending upon the authentication method used.
SessionType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of session. Common ones are UI, Content, API, and Visualforce.
SourceIp
Type
string
360
Standard Objects
Field Name
BackgroundOperation
Details
Properties
Filter, Group, Sort
Description
IP address of the end user’s device from which the session started. This address
can be an IPv4 or IPv6 address.
UserType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The kind of user for this session. Types include Standard, Partner, Customer Portal
Manager, High Volume Portal, and CSN Only.
UsersId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The user’s Salesforce user ID.
Usage
The AuthSession object exposes session data and enables read and delete operations on that data. For example, use this object to create
a report showing who is signed in to your organization, or to create a tool to delete a session, ending that user’s session. For a user, only
their own sessions are available, while administrators can see all sessions.
You can’t change user sessions with this object. You can only read and delete them.
BackgroundOperation
Represents a background operation in an asynchronous job queue. This object is available in API version 35.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
361
Standard Objects
BackgroundOperation
Fields
Field Name
Details
Error
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The error message for the operation. Applies only if the operation has an error
status.
ExecutionGroup
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Applies only if the operation is merged with other operations into an execution
group to be processed in bulk. Identifies the execution group.
ExpiresAt
Type
dateTime
Properties
Filter, Nillable, Sort
Description
After this time, the operation is removed from the asynchronous job queue.
Applies only if the operation has a status of complete, canceled, error, or merged.
FinishedAt
Type
dateTime
Properties
Filter, Nillable, Sort
Description
When the operation reached the status of completed or error.
GroupLeaderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Applies only if the operation is merged with other operations into an execution
group to be processed in bulk. Identifies the operation that’s selected as the
leader of the execution group.
362
Standard Objects
BackgroundOperation
Field Name
Details
Name
Type
string
Properties
Filter, Group, idLookup, Sort
Description
Identifies the background operation.
NumFollowers
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Applies only if the operation is merged with other operations into an execution
group to be processed in bulk. Number of other operations that are in the
execution group.
ParentKey
Type
string
Properties
Filter, Group, idLookup, Nillable, Sort
Description
Tag that identifies related sets of operations, if any.
ProcessAfter
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The operation is scheduled to be processed after this time.
RetryBackoff
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Applies only if the operation has an error status. The first retry is attempted
immediately. Each subsequent retry is increasingly delayed according to an
exponential expression that’s multiplied by the RetryBackoff, in milliseconds.
Specifically, the delay time is (2n-1)×R, where n is the RetryCount, and
R is the RetryBackoff.
The default value for RetryBackoff depends on the type of operation. For
example, the RetryBackoff default for write operations on external objects
363
Standard Objects
Field Name
BackgroundOperation
Details
is 1,000 milliseconds. For write operations, retries are attempted immediately,
after 3 seconds, after 7 seconds, after 15 seconds, and so on.
RetryCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number of attempted retries. Applies only if the operation has an error status.
RetryLimit
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Maximum number of retries to attempt. Applies only if the operation has an error
status.
SequenceGroup
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Identifies the sequence group. Applies only if the operation is merged with other
operations into an execution group to be processed in bulk. Within an execution
group, operations can be placed into a sequence group to be executed in a
specific order.
SequenceNumber
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Order position within the sequence group. Applies only if the operation is merged
with other operations into an execution group to be processed in bulk. Within
an execution group, operations can be placed into a sequence group to be
executed in a specific order.
StartedAt
Type
dateTime
Properties
Filter, Nillable, Sort
364
Standard Objects
Field Name
BackgroundOperation
Details
Description
When the operation started running.
Status
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Status of the background operation. The options are:
• New
• Scheduled
• Canceled
• Merged
• Waiting
• Running
• Error
• Complete
SubmittedAt
Type
dateTime
Properties
Filter, Nillable, Sort
Description
When the operation was added to the job queue.
Timeout
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Maximum time in milliseconds to wait for results after the operation started
running.
WorkerUri
Type
string
Properties
Filter, Group, idLookup, Nillable, Sort
Description
URI of the worker that performed the operation.
365
Standard Objects
Field Name
BackgroundOperationResult
Details
Example for a Salesforce Connect OData operation:
services/data/v35.0/xds/upsert
Usage
The BackgroundOperation object lets you:
• Monitor the job status of asynchronous operations.
• View errors that are related to the asynchronous operations.
• Extract statistics for the asynchronous job queue.
BackgroundOperationResult
Stores error messages generated when running Async SOQL queries or importing data into BigObjects using Bulk API. This is a BigObject,
available in API version 37.0 and later.
Each instance of BackgroundOperationResult represents one error. The Message field stores the text of the error message.
The ParentID field stores the:
• job ID of the query, in case of Async SOQL
• batch ID for the data import, in case of Bulk API
Bulk API validates data at the time of import, and generates an error message for the first occurrence of invalid data in any row of the
data file. The validation performed depends on the type of data being imported.
• Text—The length of the input string must be less than or equal to the length of the corresponding text field in the target object.
• Number—The input data must be a number, whose scale and precision are compatible with the corresponding number field in
the target object.
• ID—The input data must be a valid 15- or 18-character ID.
• DateTime—The input data must be a valid dateTime value, in the approved format.
• Lookup—The lookup value must be a valid 15- or 18-character ID.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
CreatedById
Type
ID
Properties
Nillable
366
Standard Objects
Field Name
BackgroundOperationResult
Details
Description
The user ID of the user initiating the Bulk API or Async SOQL request.
CreatedDate
Type
dateTime
Properties
Defaulted on create
Description
The date and time at which the Bulk API or Async SOQL request was made.
Data
Type
string
Properties
Nillable
Description
The data that generated the error message. The total length is limited to 2,000
characters, and each column can occupy a maximum of 50 characters. Any data
exceeding those limits is truncated.
Id
Type
ID
Properties
Defaulted on create, idLookup
Description
The ID of the error message.
Message
Type
string
Properties
Nillable
Description
The text of the error message.
MessageType
Type
picklist
Properties
Nillable, Restricted picklist
Description
The type of error message. The possible values are: ERROR, WARNING, or INFO.
ParentId
Type
reference
367
Standard Objects
Bookmark
Field Name
Details
Properties
Filter, Sort
Description
The batch ID, in case of Bulk API, or the job ID, in case of Async SOQL.
Usage
You can check for errors by querying the BackgroundOperationResult object. For example, this query returns details of all
errors in a data file imported using Bulk API, whose batch ID is 751xx000000006OAAQ.
SELECT CreatedbyId, CreatedDate, Id, Message, MessageType, ParentId FROM
BackgroundOperationResult WHERE ParentId = “751xx000000006OAAQ”
Note: You can only view errors resulting from Async SOQL or Bulk API requests that you initiated, unless you have the global
permission to view all data.
Bookmark
Represents a link between opportunities that share common information.
This object is available to organizations with the Similar Opportunities feature enabled.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
ID
Type
ID
Properties
Defaulted on create, Filter
Description
ID of the bookmark. Label is Bookmark ID.
FromId
Type
ID
Properties
Filter
Description
The originating opportunity. Label is Bookmarked From ID
368
Standard Objects
BrandTemplate
Field
Details
ToId
Type
ID
Properties
Filter
Description
The opportunity to which the originating opportunity is linked. Label is Bookmarked To
ID.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Usage
The Bookmark object works with the Opportunity object only.
Use this read-only object to query the bookmarks between opportunities in your organization. In the online application, users can search
for opportunities that share attributes with their opportunity. The user can then bookmark the appropriate opportunities for future
reference.
BrandTemplate
Letterhead for HTML EmailTemplate.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
369
Standard Objects
BrandTemplate
Fields
Field
Details
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the letterhead. Limited to 1000 characters.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Letterhead Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the letterhead is available for use (true) or not (false). Label is Active.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the template as it appears in the user interface. Limited to 255 characters. Label is
Brand Template Name.
NamespacePrefix
Type
string
370
Standard Objects
Field
BusinessHours
Details
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field can't be accessed unless the logged-in user has the “Customize Application”
permission.
Value
Type
textarea
Properties
Create, Update
Description
The contents of the letterhead, in HTML, including any logos.
Usage
Use this object to brand EmailTemplate records with your letterhead. You can also set a brand template to active or inactive. For example,
if you have five different marketing brands, you can maintain each different brand in one template, and assign to the appropriate
EmailTemplate.
SEE ALSO:
EmailTemplate
BusinessHours
Specifies the business hours of your support organization. Escalation rules are run only during these hours.
If business hours are associated with any Holiday records, then business hours and escalation rules associated with business hours are
suspended during the dates and times specified as holidays.
371
Standard Objects
BusinessHours
Supported Calls
create(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
All users, even those without the “View Setup and Configuration” user permission, can view business hours via the API.
Fields
Field
Details
BusinessHoursId
Type
reference
Properties
Filter, Group, Nillable,Sort
Description
ID of the BusinessHours associated with the SlaProcess.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the business hours is active (true) or not active (false).
Name
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the business hours.
IsDefault
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the business hours are set as the default business hours (true) or not
(false).
FridayEndTime
Type
time
372
Standard Objects
Field
BusinessHours
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
FridayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
MondayEndTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
MondayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
SaturdayEndTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
SaturdayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
SundayEndTime
Type
time
373
Standard Objects
Field
BusinessHours
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
SundayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
ThursdayEndTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
ThursdayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
TimeZoneSidKey
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The time zone of the business hours.
TuesdayEndTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
TuesdayStartTime
Type
time
374
Standard Objects
Field
BusinessProcess
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
WednesdayEndTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business closes.
WednesdayStartTime
Type
time
Properties
Create, Filter, Nillable, Sort, Update
Description
Time that business opens.
Usage
Use this object to specify the business hours at which your support team operates. Escalation rules only run during the business hours
with which they are associated. To set business hours to 24-hours a day, set the times from midnight to midnight (00:00:00 ~ 00:00:00)
on each day.
By default, business hours are set from 12:00 AM to 12:00 AM in the default time zone specified in your organization's profile.
SEE ALSO:
Object Basics
BusinessProcess
Represents a business process.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users cannot access this object.
375
Standard Objects
BusinessProcess
Fields
Field
Details
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Description of this business process. Limit: 255 characters.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this business process can be presented to users in the Salesforce user
interface (true) or not (false) when creating a new record type or changing the business
process of an existing record type.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of this business process. Limit: 80 characters.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
376
Standard Objects
Field
CallCenter
Details
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
TableEnumOrId
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Required. One of the following values: Case, Opportunity, or Solution. Label is Entity
Enumeration Or ID.
Usage
Use the BusinessProcess object to offer different subsets of picklist values to different users for the LeadStatus, CaseStatus, and
OpportunityStage fields. Similar to a RecordType, a BusinessProcess identifies the type of a row in a Case, Lead, or Opportunity and
implies a subset of picklist values for these three fields. The values for the remaining picklist fields are driven off of RecordType.
SEE ALSO:
Object Basics
CallCenter
Represents a call center, which is a logical representation of a single computer-telephony integration (CTI) system instance in an
organization.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
AdapterURL
Type
string
Properties
Create, Filter, Group, Nillable, Sort
377
Standard Objects
Field
CallCenter
Details
Description
An optional field that specifies the location of where the CTI adapter is hosted. For example,
http://localhost:11000.
This field is available for call centers using CTI Toolkit version 4.0 and API version 23.0 or later.
CustomSettings
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
Specifies settings in the call center definition file, such as whether the call center uses the
Open CTI, and SoftPhone properties, such as height in pixels.
This field is available for Open CTI and in API version 25.0 or later.
Id
Type
ID
Properties
Defaulted on create, Filter
Description
System field that uniquely identifies this call center. Label is Call Center ID. This ID is created
automatically when the call center is created.
InternalName
Type
string
Properties
Create, Filter, Group, Sort
Description
The internal name of the call center.
Limit is 80 characters.
Name
Type
string
Properties
Create, Filter, Group, Sort
Description
The name of the call center.
Limit is 80 characters.
Version
Type
double
378
Standard Objects
Field
Campaign
Details
Properties
Create, Filter, Nillable, Sort
Description
The version of the CTI Developer's Toolkit used to create the call center (for versions 2.0 and
later).
This field is available in API version 18.0 and later.
Usage
Create a call center or query an existing call center.
Campaign
Represents and tracks a marketing campaign, such as a direct mail promotion, webinar, or trade show.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
ActualCost
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Amount of money spent to run the campaign.
AmountAllOpportunities Type
currency
Properties
Filter, Sort
379
Standard Objects
Field
Campaign
Details
Description
Amount of money in all opportunities associated with the campaign, including closed/won
opportunities. Label is Value Opportunities in Campaign.
AmountWonOpportunities Type
currency
Properties
Filter, Sort
Description
Amount of money in closed or won opportunities associated with the campaign. Label is
Value Won Opportunities in Campaign.
BudgetedCost
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Amount of money budgeted for the campaign.
CampaignMemberRecordTypeId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record type ID for CampaignMember records associated with the campaign.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the campaign. Limit: 32 KB. Only the first 255 characters display in reports.
380
Standard Objects
Campaign
Field
Details
EndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Ending date for the campaign. Responses received after this date are still counted.
ExpectedResponse
Type
percent
Properties
Create, Filter, Nillable, Sort, Update
Description
Percentage of responses you expect to receive for the campaign.
ExpectedRevenue
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Amount of money you expect to generate from the campaign.
HierarchyActualCost
Type
currency
Properties
Filter, Nillable, Sort
Description
Calculated field for the total amount of money spent to run the campaigns in a campaign
hierarchy. Label is Total Actual Cost in Hierarchy.
HierarchyBudgetedCost
Type
currency
Properties
Filter, Nillable, Sort
Description
Calculated field for the total amount of money budgeted for the campaigns in a campaign
hierarchy. Label isTotal Budgeted Cost in Hierarchy.
HierarchyExpectedRevenue Type
currency
Properties
Filter, Nillable, Sort
381
Standard Objects
Field
Campaign
Details
Description
Calculated field for the total amount of money you expect to generate from the campaigns
in a campaign hierarchy. Label is Total Expected Revenue in Hierarchy.
HierarchyNumberSent
Type
int
Properties
Filter
Description
Calculated field for the total number of individuals targeted by the campaigns in a campaign
hierarchy. For example, the number of email messagess sent. Label is Total Num Sent in
Hierarchy.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this campaign is active (true) or not (false). Default value is false.
Label is Active.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
382
Standard Objects
Field
Campaign
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the campaign. Limit: is 80 characters.
NumberOfContacts
Type
int
Properties
Filter, Group, Sort
Description
Number of contacts associated with the campaign. Label is Total Contacts.
NumberOfConvertedLeads Type
int
Properties
Filter, Group, Sort
Description
Number of leads that were converted to an account and contact due to the marketing efforts
in the campaign. Label is Converted Leads.
NumberOfLeads
Type
int
Properties
Filter, Group, Sort
Description
Number of leads associated with the campaign. Label is Leads in Campaign.
NumberOfOpportunities
Type
int
Properties
Filter, Group, Sort
Description
Number of opportunities associated with the campaign. Label is Opportunities in Campaign.
NumberOfResponses
Type
int
383
Standard Objects
Field
Campaign
Details
Properties
Filter, Group, Sort
Description
Number of contacts and unconverted leads with a Member Status equivalent to “Responded”
for the campaign. Label is Responses in Campaign.
NumberOfWonOpportunities Type
int
Properties
Filter, Group, Sort
Description
Number of closed or won opportunities associated with the campaign. Label is Won
Opportunities in Campaign.
NumberSent
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Number of individuals targeted by the campaign. For example, the number of emails sent.
Label is Num Sent.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns this campaign. Default value is the user logging in to the API to
perform the create.
ParentCampaign
Type
reference
Properties
Create, Filter Nillable, Update
Description
The campaign above the selected campaign in the campaign hierarchy.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
384
Standard Objects
Field
Campaign
Details
Description
ID of the parent Campaign record, if any.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Starting date for the campaign.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Status of the campaign, for example, Planned, In Progress. Limit: 40 characters.
TotalAmountAllOpportunities Type
currency
Properties
Filter
Description
Calculated field for total amount of all opportunities associated with the campaign hierarchy,
including closed/won opportunities. Label is Total Value Opportunities in Hierarchy.
TotalAmountAllWonOpportunities Type
currency
Properties
Filter
Description
Calculated field for amount of all closed/won opportunities associated with the campaign
hierarchy. Label is Total Value Won Opportunities in Hierarchy.
TotalNumberofContacts
Type
int
385
Standard Objects
Field
Campaign
Details
Properties
Filter
Description
Calculated field for number of contacts associated with the campaign hierarchy. Label is
Total Contacts in Hierarchy.
TotalNumberofConvertedLeads Type
int
Properties
Filter
Description
Calculated field for the total number of leads associated with the campaign hierarchy that
were converted into accounts, contacts, and opportunities. Label is Total Converted Leads
in Hierarchy.
TotalNumberofLeads
Type
int
Properties
Filter
Description
Calculated field for total number of leads associated with the campaign hierarchy. This
number also includes converted leads. Label is Total Leads in Hierarchy.
TotalNumberofOpportunities Type
int
Properties
Filter
Description
Calculated field for the total number of opportunities associated with the campaign hierarchy.
Label is Total Opportunities in Hierarchy.
TotalNumberofResponses
Type
int
Properties
Filter
Description
Calculated field for number of contacts and unconverted leads that have a Member
Status equivalent to “Responded” for the campaign hierarchy. Label is Total Responses
in Hierarchy.
TotalNumberofWonOpportunities Type
int
386
Standard Objects
Field
CampaignFeed
Details
Properties
Filter
Description
Calculated field for the total number of won opportunities associated with the campaign
hierarchy. Label is Total Won Opportunities in Hierarchy.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of campaign, for example, Direct Mail or Referral Program. Limit: 40 characters.
Usage
Client applications can create, update, delete, and query Attachment records associated with a campaign via the API.
The Campaign object is defined only for those organizations that have the marketing feature enabled and valid marketing licenses. In
addition, it is accessible only to those users that are enabled as marketing users. If the organization does not have the marketing feature
or valid marketing licenses, this object does not appear in the describeGlobal() call, and you can’t use describeSObjects()
or query() with the Campaign object.
Note: The main constituent of a campaign is a CampaignMember. You will commonly need to update campaigns with
CampaignMember.
SEE ALSO:
Object Basics
CampaignFeed
Represents a single feed item in the feed on a campaign record detail page. This object is available in API version 18.0 and later.
A campaign feed shows recent changes to a campaign record for any fields that are tracked in feeds, and posts and comments about
the record. It is a useful way to stay up-to-date with changes made to campaigns.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
387
Standard Objects
CampaignFeed
• “Modify All” on the Campaign object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of CampaignFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator and the ConnectionId contains the ID of
the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
388
Standard Objects
CampaignFeed
Field
Details
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
389
Standard Objects
CampaignFeed
Field
Details
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
390
Standard Objects
Field
CampaignFeed
Details
Rich text supports the following HTML tags:
• 
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
391
Standard Objects
CampaignFeed
Field
Details
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the campaign record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
392
Standard Objects
CampaignFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
393
Standard Objects
Field
CampaignFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
394
Standard Objects
CampaignInfluence
Usage
Use this object to track changes for a campaign record.
SEE ALSO:
Campaign
EntitySubscription
NewsFeed
UserProfileFeed
CampaignInfluence
Represents the association between a campaign and an opportunity in Customizable Campaign Influence. This object is available in API
version 37.0 and later.
Note: This information applies only to Customizable Campaign Influence and not to the original version of Campaign Influence.
Supported Calls
create(),delete(),describeLayout(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),update(),upsert()
Special Access Rules
To access this object, Customizable Campaign Influence must be enabled. Customer Portal users can’t access this object.
Fields
Field Name
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated campaign.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the contact on the associated opportunity.
395
Standard Objects
CampaignInfluenceModel
Field Name
Details
Influence
Type
percent
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The percentage of the associated opportunity’s Amount field attributed to the
associated campaign.
ModelId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the campaign influence model associated with the record.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated opportunity.
RevenueShare
Type
currency
Properties
Filter, Nillable, Sort
Description
The amount of revenue from the associated opportunity attributed to the
associated campaign.
Usage
Use this object to create campaign influence records for your custom campaign influence models. Do not create campaign influence
records for the default Salesforce model. Records added to the Salesforce model via the API are deleted when the model is recalculated.
CampaignInfluenceModel
This read-only object represents a campaign influence model in Customizable Campaign Influence. Use campaign influence models to
group CampaignInfluence records created by a specific set of triggers and workflows that you define. The Salesforce influence
model is the default model. This object is available in API version 37.0 and later.
396
Standard Objects
CampaignInfluenceModel
Note: This information applies only to Customizable Campaign Influence and not to the original version of Campaign Influence.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
To access this object, Customizable Campaign Influence must be enabled. Customer Portal users can’t access this object.
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The API name of the influence model. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
IsDefaultModel
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the model is the primary model (true) or not (false).
CampaignInfluence records associated with the primary model appear
in the Campaign Influence related list on opportunities, the Influenced
Opportunities related list on campaigns, and the Campaign Statistics section on
campaigns. The value of IsDefaultModel can only be true for 1 model at
a time.
IsModelLocked
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
397
Standard Objects
Field Name
CampaignMember
Details
Description
Indicates whether the model is locked (true) or not (false). Records for locked
models can only be added, updated, or deleted via the API.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the influence model.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The label for the influence model.
ModelDescription
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The description of the influence model.
ModelType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates whether the model is the default Salesforce influence model, or a custom
model. These are the allowed picklist values.
• 1: Salesforce
• 2: custom
CampaignMember
Represents the association between a campaign and either a lead or a contact.
398
Standard Objects
CampaignMember
Supported Calls
For API version 15.0 and earlier:create(), delete(), describeLayout(), describeSObjects(), getDeleted(),
getUpdated(), query(), retrieve(), update(), upsert()
For API version 16.0 and later: upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Campaign to which this Lead or Contact is associated.
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The city for the address of the lead or contact.
CompanyOrAccount
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The company or account of the lead or contact.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the Contact who is associated with a Campaign.
CurrencyIsoCode
Type
picklist
399
Standard Objects
Field
CampaignMember
Details
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The country for the address of the lead or contact.
Description
Type
textarea
Properties
Nillable
Description
The description of the associated lead or contact.
DoNotCall
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the contact does not wish to be called.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
Email address for the contact or lead.
Fax
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Fax number for the contact or lead.
400
Standard Objects
CampaignMember
Field
Details
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of the contact or lead.
FirstRespondedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates the date on which the campaign member was first given a responded status.
HasOptedOutOfEmail
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the contact or lead would prefer not to receive email from Salesforce
(true) or not (false).
HasOptedOutOfFax
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the contact or lead does not wish to receive faxes.
HasResponded
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the campaign member has responded to the campaign (true) or not
(false). Label is Responded.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
401
Standard Objects
Field
CampaignMember
Details
Description
The last name of the contact or lead.
LeadId
Type
reference
Properties
Create, Filter, Group, Nillable,Sort
Description
Required. ID of the Lead who is associated with a Campaign.
LeadOrContactId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the associated lead or contact.
LeadOrContactOwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the owner of the associated lead or contact.
LeadSource
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The source from which the lead was obtained.
MobilePhone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The mobile phone number of the lead or contact.
Name
Type
string
402
Standard Objects
Field
CampaignMember
Details
Properties
Filter, Group, Nillable, Sort
Description
First and last name of the contact or lead with which the campaign member is associated.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number of the lead or contact.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The postal code of the lead or contact.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object. To change the record type, modify the
CampaignMemberRecordTypeId field on the associated Campaign.
Salutation
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Salutation for the lead or contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The state for the address of the lead or contact.
403
Standard Objects
CampaignMember
Field
Details
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Controls the HasResponded flag on this object. You can't directly set the
HasResponded flag, as it is read-only, but you can set it indirectly by setting this field in
a create or update call. Each predefined value implies a HasResponded flag value. Each
time you update this field, you implicitly update the HasResponded flag. In the Salesforce
user interface, Marketing users can define valid status values for the Status picklist. They
can choose one status as the default status. For each Status field value, they can also
select which values should be counted as “Responded,” meaning that the HasResponded
flag will be set to true for those values.
40 character limit.
Note: When creating or updating campaign members, use the text value for
Status instead of the ID from the CampaignMemberStatus object.
Street
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The street for the address of the lead or contact.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title for the lead or contact.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the campaign member is a lead or a contact.
Note: If you are importing CampaignMember data into Salesforce and need to set the value for an audit field, such as
CreatedDate, contact Salesforce. Audit fields are automatically updated during API operations unless you request to set these
fields yourself..
404
Standard Objects
CampaignMemberStatus
Usage
Each record has a unique ID, and must contain either a ContactId or a LeadId, but can't contain both. Any attempt to create a
single record with both results in a successful insert but only the ContactId will be inserted. However, you can create two separate
records on a Campaign—one for the Lead and one for the Contact.
Standard fields from a Contact or Lead are associated with the CampaignMember object but you can’t query them directly. To include
a lead’s Phone in your query, for example, query the field from the Lead object.
SELECT Id, (SELECT Phone FROM Lead)
FROM CampaignMember
This object is defined only for those organizations that have the marketing feature and valid marketing licenses. If the organization does
not have the marketing feature or valid marketing licenses, this object does not appear in the describeGlobal() call, and you
can't use describeSObjects() or query() with the CampaignMember object.
In API version 16.0 and later, a create() call only creates a new record; in earlier versions, a create() call creates and updates
records. The API determines whether a record exists with the specified CampaignId and either ContactId or LeadId.
Note: Only use a ContactId or LeadId, but not both, unless you want to track lead-based campaign members you convert
to contacts.
If the record does not exist for the given ContactId or LeadId, then a new record is created. If the record exists, an error is returned
and no update is made. To update an existing record, specify the ID of the CampaignMember record to update.
In API versions 15.0 and earlier, if you submit multiple records using a single create request, and if more than one record matches an
existing record, only the first record submitted updates the existing record. If any of the submitted records match each other but do not
match existing records, only the last record submitted is created.
The upsert() call is not supported in API version 16.0 and later. To use the upsert() call on this object, you must first delete all
data in ID fields except the record ID.
To delete a record, specify the ID of the CampaignMember record to delete.
When creating or updating records, the Status field value specified in the call is verified as a valid status for the given Campaign:
• If the specified Status value is a valid status, the value is updated, and the HasResponded field is updated to either true
or false, depending on the Status value association with HasResponded.
• If the specified Status value is not a valid status, the API assigns the default status to the Status field and updates the
HasResponded field with the associated value. However, if the given Campaign does not have a default status, the API assigns
the value specified in the call to the Status field, and the HasResponded field is set to false.
SEE ALSO:
Campaign
CampaignMemberStatus
CampaignMemberStatus
One or more member status values defined for a campaign.
405
Standard Objects
CampaignMemberStatus
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
You can't delete a CampaignMemberStatus if that status is designated as the default status or if the status is currently used in a Campaign.
Fields
Field
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the campaign associated with this member status.
HasResponded
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this status is equivalent to “Responded” (true) or not (false). Beginning
with API version 39.0, at least one CampaignMemberStatus on each campaign must
have a hasResponded value of true.
IsDefault
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this status is the default status (true) or not (false). Beginning with
API version 39.0, there must be a default CampaignMemberStatus defined for every campaign.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
406
Standard Objects
Field
CampaignOwnerSharingRule
Details
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Label
Type
string
Properties
Create, Filter, Sort, Update
Description
Label for the status in the picklist. Limited to 765 characters.
SortOrder
Type
int
Properties
Create, Filter, Group, Sort, Update, Nillable
Description
Order where this campaign member status appears in the picklist.
Usage
Use this object to create picklist items for the member status in a campaign.
This object is defined only for those organizations that have the marketing feature and valid marketing licenses. In addition, the object
is accessible only to those users that are enabled as marketing users. If the organization does not have the marketing feature or valid
marketing licenses, this object does not appear in a describeGlobal() call, and you can't use describeSObjects() or
query() with the CampaignMember object.
SEE ALSO:
Campaign
CampaignMember
CampaignOwnerSharingRule
Represents the rules for sharing a campaign with User records other than the owner or anyone above the owner in the role hierarchy.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
407
Standard Objects
CampaignOwnerSharingRule
Fields
Field
Details
CampaignAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group, or UserRole. The
possible values are:
• Read
• Edit
• All
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
408
Standard Objects
Field
CampaignShare
Details
Description
The ID representing the source group. ACampaign owned by a User in the source Group
triggers the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for campaigns.
SEE ALSO:
Metadata API Developer Guide: SharingRules
CampaignShare
Represents a sharing entry on a Campaign.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
409
Standard Objects
CampaignShare
Field
Details
CampaignId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Campaign associated with this sharing entry. This field can't be updated.
CampaignAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Campaign. The possible values are:
• Read
• Edit
• All (This value is not valid for creating or updating records.)
This field must be set to an access level that is higher than the organization’s default access
level for Campaign.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values:
• Rule—The User or Group has access via a Campaign sharing rule.
• Manual—The User or Group has access because a User with “All” access manually
shared the Campaign with them.
• Owner—The User is the owner of the Campaign.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Campaign. This field can't be
updated.
410
Standard Objects
CampaignTag
Usage
This object allows you to determine which users and groups can view or edit Campaign records owned by other users.
CampaignTag
Associates a word or short phrase with a Campaign.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
411
Standard Objects
Field Name
Case
Details
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
CampaignTag stores the relationship between its parent TagDefinition and the Campaign being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
Case
Represents a case, which is a customer issue or problem.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account associated with this case.
BusinessHoursId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the business hours associated with this case.
412
Standard Objects
Case
Field
Details
CaseNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Assigned automatically when each case is inserted. It can't be set directly, and it can't be
modified after the case is created.
ClosedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the case was closed.
CommunityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the Community (Zone) associated with this case.
This field is available in API version 24.0 and later.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
413
Standard Objects
Case
Field
Details
ContactEmail
Type
email
Properties
Filter, Group, Nillable, Sort
Description
Email address for the Contact. The Case.ContactEmail field displays the Email field on the
contact on page 502 that is referenced by Case.ContactId. Label is Contact Email. This
field is available in API version 38.0 and later.
ContactFax
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Fax number for the Contact. Label is Contact Fax. This field is available in API version
38.0 and later.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the associated Contact.
ContactMobile
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Mobile telephone number for the Contact. Label is Contact Mobile. This field is available
in API version 38.0 and later.
ContactPhone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Telephone number for the Contact. Label is Contact Phone. This field is available in
API version 38.0 and later.
CreatorFullPhotoUrl
Type
string
414
Standard Objects
Field
Case
Details
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the question or reply. Only the first name of internal users
(agents) appears to portal users in the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view
this field. This field is available in API version 26.0 and later.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A text description of the case. Limit: 32 KB.
FeedItemId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the question in Chatter associated with the case. This field is available in API version
33.0 and later, and is only accessible in organizations where Question-to-Case is enabled.
HasCommentsUnreadByOwner Type
boolean
415
Standard Objects
Field
Case
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a case contains comments that the case owner hasn’t read (true) or not
(false).
HasSelfServiceComments Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a case has comments added by a Self-Service user (true) or not (false).
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case is closed (true) or open (false). This field is controlled by the
Status field; it can't be set directly. Label is Closed.
IsClosedOnCreate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case was closed at the same time that it was created (true) or not
(false). This flag is read-only and is automatically set when a record is created. It can't be
set to true unless the IsClosed flag is also true.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsEscalated
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
416
Standard Objects
Field
Case
Details
Description
Indicates whether the case has been escalated (true) or not. A case's escalated state does
not affect how you can use a case, or whether you can query, delete, or update it. You can
set this flag via the API. Label is Escalated.
IsSelfServiceClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case is closed for Self-Service users (true) or not (false).
IsStopped
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether an entitlement process on a case is stopped (true) or not (false).
IsVisibleInSelfService Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case can be viewed in the Customer Service Portal, Partner Service
Portal, and Self-Service Portal (true) or not (false). This field is applied for case visibility
in the Partner Relationship Management, Customer Service Portal, and the earlier version of
Self Service Portal. The field does not alter sharing and will not prevent usage of a direct URL
to a case if a portal user has read or write access.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
417
Standard Objects
Field
Case
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Origin
Type
picklist
Properties
Create, Filter, Group, Nillable,Sort, Update
Description
The source of the case, such as Email, Phone, or Web. Label is Case Origin.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the contact who owns the case.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the parent case in the hierarchy. The label is Parent Case.
Priority
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The importance or urgency of the case, such as High, Medium, or Low.
QuestionId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The question in the answers community that is associated with the case. This field does not
appear if you don't have an answers community enabled.
Reason
Type
picklist
418
Standard Objects
Field
Case
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The reason why the case was created, such as Instructions not clear, or User
didn’t attend training.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
SlaStartDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
Shows the time that the case entered an entitlement process. If you have the “Edit” permission
on cases, you can update or reset the time if you have the “Edit” permission on cases.
This field is available in API version 18.0 and later.
SourceId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the social post source.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the
IsClosed flag. Each predefined Status value implies an IsClosed flag value. For
more information, see CaseStatus.
StopStartDate
Type
dateTime
Properties
Filter, Nillable
419
Standard Objects
Field
Case
Details
Description
The date and time an entitlement process was stopped on the case.
This field is available in API version 18.0 and later.
Subject
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The subject of the case. Limit: 255 characters.
SuppliedCompany
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The company name that was entered when the case was created. This field can't be updated
after the case has been created. Label is Company.
SuppliedEmail
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The email address that was entered when the case was created. This field can't be updated
after the case has been created. Label is Email.
If your organization has an active auto-response rule, SuppliedEmail is required when
creating a case via the API. Auto-response rules use the email in the contact specified by
ContactId. If no email address is in the contact record, the email specified here is used.
SuppliedName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name that was entered when the case was created. This field can't be updated after the
case has been created. Label is Name.
SuppliedPhone
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
420
Standard Objects
Field
Case
Details
Description
The phone number that was entered when the case was created. This field can't be updated
after the case has been created. Label is Phone.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The type of case, such as Feature Request or Question.
Note: If you are importing Case data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself.
Usage
Use the Case object to manage cases for your organization. Client applications can query, update, and delete Attachment records
associated with a case via the API.
Assignment Rules
When you query or update a case, your client application can have the case automatically assigned to one or more User records based
on assignment rules that have been configured in the user interface. To use this feature, your client application must set either of the
following options (but not both) in the AssignmentRuleHeader used in the create or update:
Field
Field Type
Details
assignmentRuleId
reference
ID of the assignment rule to use. Can be an inactive assignment
rule. If unspecified and useDefaultRule is true, then the
default assignment rule is used. To find the ID for a given
assignment rule, query the AssignmentRule object (specifying
RuleType="caseAssignment"), iterate through the
returned AssignmentRule objects, find the one you want to use,
retrieve its ID, and then specify its ID in this field in the
AssignmentRuleHeader.
useDefaultRule
boolean
Specifies whether to use the default rule for rule-based assignment
(true) or not (false). The default rule is assigned by users in
the Salesforce user interface.
For a code example that shows setting the AssignmentRuleHeader for a Lead (which is similar to setting the AssignmentRuleHeader for
a Case), see Lead.
421
Standard Objects
CaseArticle
Separating Accounts from Contacts in Cases
In releases before 8.0, the AccountId could not be specified, it was derived from the contact’s account. This behavior will continue
to be supported in future releases, but you can also now specify an AccountId. If you do not specify the AccountId during the
creation of a case, the value will default to the contact’s AccountId.
Note: When a record is updated, if the ContactId has not changed, then the AccountId is not regenerated. This prevents
the API from overwriting a value previously changed in the Salesforce user interface. However, if an API call changes the
ContactId and the AccountId field is empty, then the AccountId is generated using the contact’s account.
Using _case with Java
Depending on the development tool you use, you might need to write your application using _case instead of Case, because case
is a reserved word in Java.
SEE ALSO:
Account
CaseMilestone
CaseArticle
Represents the association between a Case and a KnowledgeArticle. This object is available in API version 20.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
Access to this object is controlled by the parent Case and KnowledgeArticle. However, when querying, access is only controlled by the
parent Case.
Customer Portal users can't access this object.
Fields
Field
Details
ArticleLanguage
Type
picklist
Properties
Filter, Restricted picklist
Description
The language of the article associated with the case.
422
Standard Objects
CaseArticle
Field
Details
ArticleVersionNumber
Type
int
Properties
Create, Group, Nillable
Description
The number assigned to a version of an article. This field is available in API version 24.0 and
later.
CaseId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Case associated with the KnowledgeArticle.
IsSharedByEmail
Type
int
Properties
Create, Group, Nillable
Description
Indicates that the article has been shared with the customer through an email.
KnowledgeArticleId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the KnowledgeArticle associated with the Case.
Usage
This object represents the association of a knowledge article with a Case. An article is associated with a case when it’s relevant to a
specific issue, when it helps an agent solve the case, or when the agent sends the article to a customer.
You can use this object to include case-article associations in Apex and Visualforce.
You can't update this object via the API. If you attempt to create a record that matches an existing record, the create request simply
returns the existing record.
SEE ALSO:
Case
KnowledgeArticle
423
Standard Objects
CaseComment
CaseComment
Represents a comment that provides additional information about the associated Case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
CommentBody
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Text of the CaseComment. The maximum size of the comment body is 4,000 bytes. Label is
Body.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
424
Standard Objects
Field
CaseComment
Details
Description
URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the question or reply. Only the first name of internal users
(agents) appears to portal users in the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view
this field. This field is available in API version 26.0 and later.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPublished
Type
boolean
Properties
Defaulted on create, Create, Filter, Group, Sort, Update
Description
Indicates whether the CaseComment is visible to customers in the Self-Service portal (true)
or not (false). Label is Published. This is the only CaseComment field that can be updated
via the API.
ParentId
Type
reference
425
Standard Objects
Field
CaseContactRole
Details
Properties
Create, Filter, Group, Sort,
Description
Required. ID of the parent Case of the CaseComment.
Note: If you are importing CaseComment data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
In the Salesforce user interface, comments are generally entered by a User working on a Case. All users have access to create and view
CaseComment in the Salesforce user interface and when using the API. In the API, CaseComment records can't be modified after insertion
unless the user has the “Modify All” object-level permission for Cases or the “Modify All Data” permission. If not, users can only update
the IsPublished field, and can't delete CaseComment.
SEE ALSO:
Object Basics
CaseContactRole
Represents the role that a given Contact plays on a Case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CasesId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the cases associated with this contact.
ContactId
Type
reference
426
Standard Objects
Field
CaseFeed
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. ID of the contact.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Role
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the role played by the contact on this contract, such as Decision Maker, Approver,
Buyer, and so on. Must be unique—there can't be multiple records in which the
ContractId, ContactId, and Role values are identical. Different contacts can play
the same role on the same contract. A contact can play different roles on the same contract.
Usage
Use this object to define the role that a given Case plays on a given Contact. For example, you can use this object to be able to see all
contacts who are associated to a case, or, given a contact, be able to query all cases that they are associated with, even if they are not
the primary contact on the case.
CaseFeed
Represents a single feed item in the feed displayed on the detail page for a case record. A case feed shows recent changes to a case
record for any fields that are tracked in feeds, and comments and posts about the record. It is a useful way to stay up-to-date with changes
to cases. This object is available in API version 18.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
427
Standard Objects
CaseFeed
• “Modify All Data”
• “Modify All” on the Case object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the CaseFeed. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until
a comment is published. For example, say you comment on a post that already has
one published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through
pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy
field contains the ID of the system administrator and the ConnectionId contains
428
Standard Objects
Field
CaseFeed
Details
the ID of the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled
for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost.
Encoded file data in any format, and can’t be 0 bytes. Setting this field automatically sets
Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to
the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
429
Standard Objects
Field
CaseFeed
Details
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the
feed. This field is read-only and is automatically determined during insert.
FeedPostId
Type
reference
Properties
Filter. Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only. Use FeedItem instead.
The ID of the associated FeedPost. A FeedPost represents the following types of changes
in a CaseFeed: status updates, changes to tracked fields, text posts, link posts, and content
posts.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent
feed item or comment.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is
set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true
if you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain
text.
430
Standard Objects
Field
CaseFeed
Details
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
391
Standard Objects
CampaignFeed
Field
Details
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the campaign record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
392
Standard Objects
CampaignFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
393
Standard Objects
Field
CampaignFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
394
Standard Objects
CampaignInfluence
Usage
Use this object to track changes for a campaign record.
SEE ALSO:
Campaign
EntitySubscription
NewsFeed
UserProfileFeed
CampaignInfluence
Represents the association between a campaign and an opportunity in Customizable Campaign Influence. This object is available in API
version 37.0 and later.
Note: This information applies only to Customizable Campaign Influence and not to the original version of Campaign Influence.
Supported Calls
create(),delete(),describeLayout(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),update(),upsert()
Special Access Rules
To access this object, Customizable Campaign Influence must be enabled. Customer Portal users can’t access this object.
Fields
Field Name
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated campaign.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the contact on the associated opportunity.
395
Standard Objects
CampaignInfluenceModel
Field Name
Details
Influence
Type
percent
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The percentage of the associated opportunity’s Amount field attributed to the
associated campaign.
ModelId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the campaign influence model associated with the record.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated opportunity.
RevenueShare
Type
currency
Properties
Filter, Nillable, Sort
Description
The amount of revenue from the associated opportunity attributed to the
associated campaign.
Usage
Use this object to create campaign influence records for your custom campaign influence models. Do not create campaign influence
records for the default Salesforce model. Records added to the Salesforce model via the API are deleted when the model is recalculated.
CampaignInfluenceModel
This read-only object represents a campaign influence model in Customizable Campaign Influence. Use campaign influence models to
group CampaignInfluence records created by a specific set of triggers and workflows that you define. The Salesforce influence
model is the default model. This object is available in API version 37.0 and later.
396
Standard Objects
CampaignInfluenceModel
Note: This information applies only to Customizable Campaign Influence and not to the original version of Campaign Influence.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
To access this object, Customizable Campaign Influence must be enabled. Customer Portal users can’t access this object.
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The API name of the influence model. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
IsDefaultModel
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the model is the primary model (true) or not (false).
CampaignInfluence records associated with the primary model appear
in the Campaign Influence related list on opportunities, the Influenced
Opportunities related list on campaigns, and the Campaign Statistics section on
campaigns. The value of IsDefaultModel can only be true for 1 model at
a time.
IsModelLocked
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
397
Standard Objects
Field Name
CampaignMember
Details
Description
Indicates whether the model is locked (true) or not (false). Records for locked
models can only be added, updated, or deleted via the API.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the influence model.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The label for the influence model.
ModelDescription
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The description of the influence model.
ModelType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates whether the model is the default Salesforce influence model, or a custom
model. These are the allowed picklist values.
• 1: Salesforce
• 2: custom
CampaignMember
Represents the association between a campaign and either a lead or a contact.
398
Standard Objects
CampaignMember
Supported Calls
For API version 15.0 and earlier:create(), delete(), describeLayout(), describeSObjects(), getDeleted(),
getUpdated(), query(), retrieve(), update(), upsert()
For API version 16.0 and later: upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Campaign to which this Lead or Contact is associated.
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The city for the address of the lead or contact.
CompanyOrAccount
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The company or account of the lead or contact.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the Contact who is associated with a Campaign.
CurrencyIsoCode
Type
picklist
399
Standard Objects
Field
CampaignMember
Details
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The country for the address of the lead or contact.
Description
Type
textarea
Properties
Nillable
Description
The description of the associated lead or contact.
DoNotCall
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the contact does not wish to be called.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
Email address for the contact or lead.
Fax
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Fax number for the contact or lead.
400
Standard Objects
CampaignMember
Field
Details
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of the contact or lead.
FirstRespondedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates the date on which the campaign member was first given a responded status.
HasOptedOutOfEmail
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the contact or lead would prefer not to receive email from Salesforce
(true) or not (false).
HasOptedOutOfFax
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the contact or lead does not wish to receive faxes.
HasResponded
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the campaign member has responded to the campaign (true) or not
(false). Label is Responded.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
401
Standard Objects
Field
CampaignMember
Details
Description
The last name of the contact or lead.
LeadId
Type
reference
Properties
Create, Filter, Group, Nillable,Sort
Description
Required. ID of the Lead who is associated with a Campaign.
LeadOrContactId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the associated lead or contact.
LeadOrContactOwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the owner of the associated lead or contact.
LeadSource
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The source from which the lead was obtained.
MobilePhone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The mobile phone number of the lead or contact.
Name
Type
string
402
Standard Objects
Field
CampaignMember
Details
Properties
Filter, Group, Nillable, Sort
Description
First and last name of the contact or lead with which the campaign member is associated.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number of the lead or contact.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The postal code of the lead or contact.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object. To change the record type, modify the
CampaignMemberRecordTypeId field on the associated Campaign.
Salutation
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Salutation for the lead or contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The state for the address of the lead or contact.
403
Standard Objects
CampaignMember
Field
Details
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Controls the HasResponded flag on this object. You can't directly set the
HasResponded flag, as it is read-only, but you can set it indirectly by setting this field in
a create or update call. Each predefined value implies a HasResponded flag value. Each
time you update this field, you implicitly update the HasResponded flag. In the Salesforce
user interface, Marketing users can define valid status values for the Status picklist. They
can choose one status as the default status. For each Status field value, they can also
select which values should be counted as “Responded,” meaning that the HasResponded
flag will be set to true for those values.
40 character limit.
Note: When creating or updating campaign members, use the text value for
Status instead of the ID from the CampaignMemberStatus object.
Street
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The street for the address of the lead or contact.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title for the lead or contact.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the campaign member is a lead or a contact.
Note: If you are importing CampaignMember data into Salesforce and need to set the value for an audit field, such as
CreatedDate, contact Salesforce. Audit fields are automatically updated during API operations unless you request to set these
fields yourself..
404
Standard Objects
CampaignMemberStatus
Usage
Each record has a unique ID, and must contain either a ContactId or a LeadId, but can't contain both. Any attempt to create a
single record with both results in a successful insert but only the ContactId will be inserted. However, you can create two separate
records on a Campaign—one for the Lead and one for the Contact.
Standard fields from a Contact or Lead are associated with the CampaignMember object but you can’t query them directly. To include
a lead’s Phone in your query, for example, query the field from the Lead object.
SELECT Id, (SELECT Phone FROM Lead)
FROM CampaignMember
This object is defined only for those organizations that have the marketing feature and valid marketing licenses. If the organization does
not have the marketing feature or valid marketing licenses, this object does not appear in the describeGlobal() call, and you
can't use describeSObjects() or query() with the CampaignMember object.
In API version 16.0 and later, a create() call only creates a new record; in earlier versions, a create() call creates and updates
records. The API determines whether a record exists with the specified CampaignId and either ContactId or LeadId.
Note: Only use a ContactId or LeadId, but not both, unless you want to track lead-based campaign members you convert
to contacts.
If the record does not exist for the given ContactId or LeadId, then a new record is created. If the record exists, an error is returned
and no update is made. To update an existing record, specify the ID of the CampaignMember record to update.
In API versions 15.0 and earlier, if you submit multiple records using a single create request, and if more than one record matches an
existing record, only the first record submitted updates the existing record. If any of the submitted records match each other but do not
match existing records, only the last record submitted is created.
The upsert() call is not supported in API version 16.0 and later. To use the upsert() call on this object, you must first delete all
data in ID fields except the record ID.
To delete a record, specify the ID of the CampaignMember record to delete.
When creating or updating records, the Status field value specified in the call is verified as a valid status for the given Campaign:
• If the specified Status value is a valid status, the value is updated, and the HasResponded field is updated to either true
or false, depending on the Status value association with HasResponded.
• If the specified Status value is not a valid status, the API assigns the default status to the Status field and updates the
HasResponded field with the associated value. However, if the given Campaign does not have a default status, the API assigns
the value specified in the call to the Status field, and the HasResponded field is set to false.
SEE ALSO:
Campaign
CampaignMemberStatus
CampaignMemberStatus
One or more member status values defined for a campaign.
405
Standard Objects
CampaignMemberStatus
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
You can't delete a CampaignMemberStatus if that status is designated as the default status or if the status is currently used in a Campaign.
Fields
Field
Details
CampaignId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the campaign associated with this member status.
HasResponded
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this status is equivalent to “Responded” (true) or not (false). Beginning
with API version 39.0, at least one CampaignMemberStatus on each campaign must
have a hasResponded value of true.
IsDefault
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this status is the default status (true) or not (false). Beginning with
API version 39.0, there must be a default CampaignMemberStatus defined for every campaign.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
406
Standard Objects
Field
CampaignOwnerSharingRule
Details
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Label
Type
string
Properties
Create, Filter, Sort, Update
Description
Label for the status in the picklist. Limited to 765 characters.
SortOrder
Type
int
Properties
Create, Filter, Group, Sort, Update, Nillable
Description
Order where this campaign member status appears in the picklist.
Usage
Use this object to create picklist items for the member status in a campaign.
This object is defined only for those organizations that have the marketing feature and valid marketing licenses. In addition, the object
is accessible only to those users that are enabled as marketing users. If the organization does not have the marketing feature or valid
marketing licenses, this object does not appear in a describeGlobal() call, and you can't use describeSObjects() or
query() with the CampaignMember object.
SEE ALSO:
Campaign
CampaignMember
CampaignOwnerSharingRule
Represents the rules for sharing a campaign with User records other than the owner or anyone above the owner in the role hierarchy.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
407
Standard Objects
CampaignOwnerSharingRule
Fields
Field
Details
CampaignAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group, or UserRole. The
possible values are:
• Read
• Edit
• All
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
408
Standard Objects
Field
CampaignShare
Details
Description
The ID representing the source group. ACampaign owned by a User in the source Group
triggers the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for campaigns.
SEE ALSO:
Metadata API Developer Guide: SharingRules
CampaignShare
Represents a sharing entry on a Campaign.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
409
Standard Objects
CampaignShare
Field
Details
CampaignId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Campaign associated with this sharing entry. This field can't be updated.
CampaignAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Campaign. The possible values are:
• Read
• Edit
• All (This value is not valid for creating or updating records.)
This field must be set to an access level that is higher than the organization’s default access
level for Campaign.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values:
• Rule—The User or Group has access via a Campaign sharing rule.
• Manual—The User or Group has access because a User with “All” access manually
shared the Campaign with them.
• Owner—The User is the owner of the Campaign.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Campaign. This field can't be
updated.
410
Standard Objects
CampaignTag
Usage
This object allows you to determine which users and groups can view or edit Campaign records owned by other users.
CampaignTag
Associates a word or short phrase with a Campaign.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
411
Standard Objects
Field Name
Case
Details
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
CampaignTag stores the relationship between its parent TagDefinition and the Campaign being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
Case
Represents a case, which is a customer issue or problem.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account associated with this case.
BusinessHoursId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the business hours associated with this case.
412
Standard Objects
Case
Field
Details
CaseNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Assigned automatically when each case is inserted. It can't be set directly, and it can't be
modified after the case is created.
ClosedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the case was closed.
CommunityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the Community (Zone) associated with this case.
This field is available in API version 24.0 and later.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
413
Standard Objects
Case
Field
Details
ContactEmail
Type
email
Properties
Filter, Group, Nillable, Sort
Description
Email address for the Contact. The Case.ContactEmail field displays the Email field on the
contact on page 502 that is referenced by Case.ContactId. Label is Contact Email. This
field is available in API version 38.0 and later.
ContactFax
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Fax number for the Contact. Label is Contact Fax. This field is available in API version
38.0 and later.
ContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the associated Contact.
ContactMobile
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Mobile telephone number for the Contact. Label is Contact Mobile. This field is available
in API version 38.0 and later.
ContactPhone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
Telephone number for the Contact. Label is Contact Phone. This field is available in
API version 38.0 and later.
CreatorFullPhotoUrl
Type
string
414
Standard Objects
Field
Case
Details
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the question or reply. Only the first name of internal users
(agents) appears to portal users in the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view
this field. This field is available in API version 26.0 and later.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A text description of the case. Limit: 32 KB.
FeedItemId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the question in Chatter associated with the case. This field is available in API version
33.0 and later, and is only accessible in organizations where Question-to-Case is enabled.
HasCommentsUnreadByOwner Type
boolean
415
Standard Objects
Field
Case
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a case contains comments that the case owner hasn’t read (true) or not
(false).
HasSelfServiceComments Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a case has comments added by a Self-Service user (true) or not (false).
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case is closed (true) or open (false). This field is controlled by the
Status field; it can't be set directly. Label is Closed.
IsClosedOnCreate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case was closed at the same time that it was created (true) or not
(false). This flag is read-only and is automatically set when a record is created. It can't be
set to true unless the IsClosed flag is also true.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsEscalated
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
416
Standard Objects
Field
Case
Details
Description
Indicates whether the case has been escalated (true) or not. A case's escalated state does
not affect how you can use a case, or whether you can query, delete, or update it. You can
set this flag via the API. Label is Escalated.
IsSelfServiceClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case is closed for Self-Service users (true) or not (false).
IsStopped
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether an entitlement process on a case is stopped (true) or not (false).
IsVisibleInSelfService Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the case can be viewed in the Customer Service Portal, Partner Service
Portal, and Self-Service Portal (true) or not (false). This field is applied for case visibility
in the Partner Relationship Management, Customer Service Portal, and the earlier version of
Self Service Portal. The field does not alter sharing and will not prevent usage of a direct URL
to a case if a portal user has read or write access.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
417
Standard Objects
Field
Case
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Origin
Type
picklist
Properties
Create, Filter, Group, Nillable,Sort, Update
Description
The source of the case, such as Email, Phone, or Web. Label is Case Origin.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the contact who owns the case.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the parent case in the hierarchy. The label is Parent Case.
Priority
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The importance or urgency of the case, such as High, Medium, or Low.
QuestionId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The question in the answers community that is associated with the case. This field does not
appear if you don't have an answers community enabled.
Reason
Type
picklist
418
Standard Objects
Field
Case
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The reason why the case was created, such as Instructions not clear, or User
didn’t attend training.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
SlaStartDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
Shows the time that the case entered an entitlement process. If you have the “Edit” permission
on cases, you can update or reset the time if you have the “Edit” permission on cases.
This field is available in API version 18.0 and later.
SourceId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the social post source.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the
IsClosed flag. Each predefined Status value implies an IsClosed flag value. For
more information, see CaseStatus.
StopStartDate
Type
dateTime
Properties
Filter, Nillable
419
Standard Objects
Field
Case
Details
Description
The date and time an entitlement process was stopped on the case.
This field is available in API version 18.0 and later.
Subject
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The subject of the case. Limit: 255 characters.
SuppliedCompany
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The company name that was entered when the case was created. This field can't be updated
after the case has been created. Label is Company.
SuppliedEmail
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The email address that was entered when the case was created. This field can't be updated
after the case has been created. Label is Email.
If your organization has an active auto-response rule, SuppliedEmail is required when
creating a case via the API. Auto-response rules use the email in the contact specified by
ContactId. If no email address is in the contact record, the email specified here is used.
SuppliedName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name that was entered when the case was created. This field can't be updated after the
case has been created. Label is Name.
SuppliedPhone
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
420
Standard Objects
Field
Case
Details
Description
The phone number that was entered when the case was created. This field can't be updated
after the case has been created. Label is Phone.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The type of case, such as Feature Request or Question.
Note: If you are importing Case data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself.
Usage
Use the Case object to manage cases for your organization. Client applications can query, update, and delete Attachment records
associated with a case via the API.
Assignment Rules
When you query or update a case, your client application can have the case automatically assigned to one or more User records based
on assignment rules that have been configured in the user interface. To use this feature, your client application must set either of the
following options (but not both) in the AssignmentRuleHeader used in the create or update:
Field
Field Type
Details
assignmentRuleId
reference
ID of the assignment rule to use. Can be an inactive assignment
rule. If unspecified and useDefaultRule is true, then the
default assignment rule is used. To find the ID for a given
assignment rule, query the AssignmentRule object (specifying
RuleType="caseAssignment"), iterate through the
returned AssignmentRule objects, find the one you want to use,
retrieve its ID, and then specify its ID in this field in the
AssignmentRuleHeader.
useDefaultRule
boolean
Specifies whether to use the default rule for rule-based assignment
(true) or not (false). The default rule is assigned by users in
the Salesforce user interface.
For a code example that shows setting the AssignmentRuleHeader for a Lead (which is similar to setting the AssignmentRuleHeader for
a Case), see Lead.
421
Standard Objects
CaseArticle
Separating Accounts from Contacts in Cases
In releases before 8.0, the AccountId could not be specified, it was derived from the contact’s account. This behavior will continue
to be supported in future releases, but you can also now specify an AccountId. If you do not specify the AccountId during the
creation of a case, the value will default to the contact’s AccountId.
Note: When a record is updated, if the ContactId has not changed, then the AccountId is not regenerated. This prevents
the API from overwriting a value previously changed in the Salesforce user interface. However, if an API call changes the
ContactId and the AccountId field is empty, then the AccountId is generated using the contact’s account.
Using _case with Java
Depending on the development tool you use, you might need to write your application using _case instead of Case, because case
is a reserved word in Java.
SEE ALSO:
Account
CaseMilestone
CaseArticle
Represents the association between a Case and a KnowledgeArticle. This object is available in API version 20.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
Access to this object is controlled by the parent Case and KnowledgeArticle. However, when querying, access is only controlled by the
parent Case.
Customer Portal users can't access this object.
Fields
Field
Details
ArticleLanguage
Type
picklist
Properties
Filter, Restricted picklist
Description
The language of the article associated with the case.
422
Standard Objects
CaseArticle
Field
Details
ArticleVersionNumber
Type
int
Properties
Create, Group, Nillable
Description
The number assigned to a version of an article. This field is available in API version 24.0 and
later.
CaseId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Case associated with the KnowledgeArticle.
IsSharedByEmail
Type
int
Properties
Create, Group, Nillable
Description
Indicates that the article has been shared with the customer through an email.
KnowledgeArticleId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the KnowledgeArticle associated with the Case.
Usage
This object represents the association of a knowledge article with a Case. An article is associated with a case when it’s relevant to a
specific issue, when it helps an agent solve the case, or when the agent sends the article to a customer.
You can use this object to include case-article associations in Apex and Visualforce.
You can't update this object via the API. If you attempt to create a record that matches an existing record, the create request simply
returns the existing record.
SEE ALSO:
Case
KnowledgeArticle
423
Standard Objects
CaseComment
CaseComment
Represents a comment that provides additional information about the associated Case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
CommentBody
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Text of the CaseComment. The maximum size of the comment body is 4,000 bytes. Label is
Body.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
424
Standard Objects
Field
CaseComment
Details
Description
URL of the user’s profile photo from the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the question or reply. Only the first name of internal users
(agents) appears to portal users in the feed. Chatter Answers must be enabled to view this
field. This field is available in API version 26.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo from the feed. Chatter Answers must be enabled to view
this field. This field is available in API version 26.0 and later.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPublished
Type
boolean
Properties
Defaulted on create, Create, Filter, Group, Sort, Update
Description
Indicates whether the CaseComment is visible to customers in the Self-Service portal (true)
or not (false). Label is Published. This is the only CaseComment field that can be updated
via the API.
ParentId
Type
reference
425
Standard Objects
Field
CaseContactRole
Details
Properties
Create, Filter, Group, Sort,
Description
Required. ID of the parent Case of the CaseComment.
Note: If you are importing CaseComment data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
In the Salesforce user interface, comments are generally entered by a User working on a Case. All users have access to create and view
CaseComment in the Salesforce user interface and when using the API. In the API, CaseComment records can't be modified after insertion
unless the user has the “Modify All” object-level permission for Cases or the “Modify All Data” permission. If not, users can only update
the IsPublished field, and can't delete CaseComment.
SEE ALSO:
Object Basics
CaseContactRole
Represents the role that a given Contact plays on a Case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CasesId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the cases associated with this contact.
ContactId
Type
reference
426
Standard Objects
Field
CaseFeed
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. ID of the contact.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
Role
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the role played by the contact on this contract, such as Decision Maker, Approver,
Buyer, and so on. Must be unique—there can't be multiple records in which the
ContractId, ContactId, and Role values are identical. Different contacts can play
the same role on the same contract. A contact can play different roles on the same contract.
Usage
Use this object to define the role that a given Case plays on a given Contact. For example, you can use this object to be able to see all
contacts who are associated to a case, or, given a contact, be able to query all cases that they are associated with, even if they are not
the primary contact on the case.
CaseFeed
Represents a single feed item in the feed displayed on the detail page for a case record. A case feed shows recent changes to a case
record for any fields that are tracked in feeds, and comments and posts about the record. It is a useful way to stay up-to-date with changes
to cases. This object is available in API version 18.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
427
Standard Objects
CaseFeed
• “Modify All Data”
• “Modify All” on the Case object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the CaseFeed. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until
a comment is published. For example, say you comment on a post that already has
one published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through
pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy
field contains the ID of the system administrator and the ConnectionId contains
428
Standard Objects
Field
CaseFeed
Details
the ID of the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled
for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost.
Encoded file data in any format, and can’t be 0 bytes. Setting this field automatically sets
Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to
the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
429
Standard Objects
Field
CaseFeed
Details
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the
feed. This field is read-only and is automatically determined during insert.
FeedPostId
Type
reference
Properties
Filter. Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only. Use FeedItem instead.
The ID of the associated FeedPost. A FeedPost represents the following types of changes
in a CaseFeed: status updates, changes to tracked fields, text posts, link posts, and content
posts.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent
feed item or comment.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is
set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true
if you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain
text.
430
Standard Objects
Field
CaseFeed
Details
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich
text with escaped HTML. In API version 34.0 and prior, all rich text appears as a
plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate.
If a FeedComment is inserted on the feed item, then LastModifiedDate becomes
the CreatedDate for the FeedComment. Deleting the FeedComment does not
change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent
feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
431
Standard Objects
CaseFeed
Field
Details
LinkURL
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later, if
Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left
empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value
for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the case record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordID
Type
reference
Properties
Group, Nillable, Sort
432
Standard Objects
Field
CaseFeed
Details
Description
ID of the ContentVersion article associated with a ContentPost. This field is null for
all posts except ContentPost. For example, set this field to an existing ContentVersion
and post it to a feed as a CaseFeed object of Type ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the CaseFeed. When the Type is LinkPost, the LinkURL is the URL,
and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of CaseFeed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series
only. For a recurring Task with CaseFeed enabled, events are generated for the series
and each occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public
group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the
publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
433
Standard Objects
Field
CaseFeed
Details
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to
a case.
• CallLogPost—generated event when a user logs a call for a case through the
user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a
case object.
• ChangeStatusPost—generated event when a user changes the status of a
case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved
to a case.
• EmailMessageEvent—generated event when an email related to a case object
is sent or received.
• FacebookPost—generated when a Facebook post is created from a case.
Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This field
is available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
434
Standard Objects
Field
CaseHistory
Details
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users
by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for a case record.
SEE ALSO:
Case
EntitySubscription
NewsFeed
FeedItem
UserProfileFeed
CaseHistory
Represents historical information about changes that have been made to the associated Case.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
This object is always read-only.
Fields
Field
Details
CaseId
Type
reference
435
Standard Objects
Field
CaseHistory
Details
Properties
Filter, Group, Sort
Description
ID of the Case associated with this record.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Name of the case field that was modified, or a special value to indicate some other
modification to the case. The possible values, in addition to the case field names, are:
• ownerAssignment—The owner of the case was changed.
• ownerAccepted—A user took ownership of a case from a queue.
• ownerEscalated—The owner of the case was changed due to case escalation.
• external—A user made the case visible to customers in the Customer Self-Service Portal.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
New value of the modified case field. Maximum of 255 characters.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
Previous value of the modified case field. Maximum of 255 characters.
436
Standard Objects
CaseMilestone
Usage
Case history entries are indirectly created each time a case is modified.
Two rows are added to this record when foreign key fields change. One row contains the foreign key object names that display in the
online application. For example, Jane Doe is recorded as the name of a Contact. The other row contains the actual foreign key ID
that is only returned to and visible from the API.
This object respects field level security on the parent object.
SEE ALSO:
Object Basics
CaseMilestone
Represents a milestone (required step in a customer support process) on a Case. This object is available in API version 18.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Fields
Field
Details
BusinessHoursId
Type
reference
Properties
Filter, Group, Nillable,Sort
Description
ID of the BusinessHours associated with the CaseMilestone.
CaseId
Type
reference
Properties
Filter
Description
ID of the case.
CompletionDate
Type
dateTime
Properties
Filter, Nillable, Update
Description
The date and time the milestone was completed.
437
Standard Objects
CaseMilestone
Field
Details
ElapsedTimeInDays
Type
double
Properties
Filter, Nillable
Description
The time required to complete a milestone in days.
ElapsedTimeInHrs
Type
double
Properties
Filter, Nillable
Description
The time required to complete a milestone in hours.
ElapsedTimeInMins
Type
int
Properties
Filter, Nillable
Description
The time required to complete a milestone in minutes.
IsCompleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the milestone is completed (true) or not (false).
IsViolated
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the milestone is violated (true) or not (false).
MilestoneTypeId
Type
reference
Properties
Filter, Nillable
Description
The ID of the milestone on the case.
438
Standard Objects
CaseMilestone
Field
Details
StartDate
Type
dateTime
Properties
Filter, Nillable, Update
Description
The date and time the milestone started on the case.
TargetDate
Type
dateTime
Properties
Filter
Description
The date and time the milestone must be completed.
TargetResponseInDays
Type
double
Properties
Filter, Nillable
Description
The time to complete the milestone in days.
TargetResponseInHrs
Type
double
Properties
Filter, Nillable
Description
The time to complete the milestone in hours.
TargetResponseInMins
Type
int
Properties
Filter, Nillable
Description
The time to complete the milestone in minutes.
TimeSinceTargetInMins
Type
text
Properties
Nillable
Description
The time elapsed since the milestone target. The format is minutes and seconds.
439
Standard Objects
CaseOwnerSharingRule
Field
Details
TimeRemainingInMins
Type
text
Properties
Nillable
Description
Time remaining to reach the milestone target. The format is minutes and seconds.
Usage
This object lets you view a milestone on a case. It also lets you view if the milestone was completed and when it must be completed.
SEE ALSO:
Case
MilestoneType
SlaProcess
CaseOwnerSharingRule
Represents the rules for sharing a case with users other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
440
Standard Objects
Field
CaseOwnerSharingRule
Details
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Cases owned by users in the source group
trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
441
Standard Objects
Field
CaseShare
Details
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. Target users or groups are given access.
Usage
Use this object to manage the sharing rules for cases. General sharing and territory management-related sharing use this object.
SEE ALSO:
Case
CaseShare
Metadata API Developer Guide: SharingRules
CaseShare
Represents a sharing entry on a Case.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
CaseAccessLevel
Type
picklist
442
Standard Objects
Field
CaseShare
Details
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Case. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
This field must be set to an access level that is higher than the organization’s default access
level for cases.
CaseId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Case associated with this sharing entry. This field can't be updated.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Case with them.
• Owner—The User is the owner of the Case.
• ImplicitChild—User or Group has access to the Case on the Account associated
with this Case.
• Rule—The User or Group has access via a Case sharing rule.
443
Standard Objects
CaseSolution
Field
Details
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Case. This field can't be updated.
Usage
This object allows you to determine which users and groups can view and edit Case records owned by other users.
If you attempt to create a new record that matches an existing record, request updates any modified fields and returns the existing
record.
SEE ALSO:
AccountShare
LeadShare
OpportunityShare
CaseSolution
Represents the association between a Case and a Solution.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
CaseId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Case associated with the Solution.
IsDeleted
Type
boolean
444
Standard Objects
Field
CaseStatus
Details
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
SolutionId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Solution associated with the case.
Usage
You can't update this object via the API. If you attempt to create a record that matches an existing record, the request simply returns
the existing record.
SEE ALSO:
CaseShare
SolutionStatus
CaseStatus
Represents the status of a Case, such as New, On Hold, or In Process.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
445
Standard Objects
CaseStatus
Field
Details
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this case status value represents a closed Case (true) or not (false).
Multiple case status values can represent a closed Case.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default case status value (true) or not (false) in the picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this case status value. This display value is the internal label that does not
get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the case status picklist. These numbers are not guaranteed
to be sequential, as some previous case status values might have been deleted.
Usage
This object represents a value in the case status picklist. The case status picklist provides additional information about the status of a
Case, such as whether a given Status value represents an open or closed case. Query the CaseStatus object to retrieve the set of
values in the case status picklist, and then use that information while processing Case records to determine more information about a
given case. For example, the application could test whether a given case is open or closed based on its Status value and the value
of the IsClosed property in the associated CaseStatus object.
SEE ALSO:
Object Basics
446
Standard Objects
CaseTag
CaseTag
Associates a word or short phrase with a Case
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
447
Standard Objects
Field Name
CaseTeamMember
Details
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
CaseTag stores the relationship between its parent TagDefinition and the Case being tagged. Tag objects act as metadata, allowing users
to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
CaseTeamMember
Represents a case team member, who works with a team of other users to help resolve a case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user or contact who is a member on a case team.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the case with which the case team member is associated.
TeamRoleId
Type
reference
Properties
Create, Filter, Group, Sort, Update
448
Standard Objects
Field
CaseTeamRole
Details
Description
The ID of the case team role with which the case team member is associated.
TeamTemplateMemberId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the team member included in a predefined case team.
CaseTeamRole
Represents a case team role. Every case team member has a role on a case, such as “Customer Contact” or “Case Manager.”
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for cases. The possible
values are:
• None
• Read
• Edit
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the case team role.
449
Standard Objects
Field
CaseTeamTemplate
Details
PreferencesVisibleInCSP Type
boolean
Properties
Create, Filter, Update
Description
Indicates whether or not the case team role is visible to Customer Portal users.
CaseTeamTemplate
Represents a predefined case team, which is a group of users that helps resolve a case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A text description of the predefined case team.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the predefined case team.
CaseTeamTemplateMember
Represents a member on a predefined case team, which is a group of users that helps resolve cases.
450
Standard Objects
CaseTeamTemplateRecord
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user or contact who is a team member on a predefined case team.
TeamRoleId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the predefined case team member's case team role.
TeamTemplateId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the predefined case team's template.
CaseTeamTemplateRecord
The CaseTeamTemplateRecord object is a linking object between the Case and CaseTeamTemplate objects. To assign a predefined case
team to a case (customer inquiry), create a CaseTeamTemplateRecord record and point the ParentId to the case and the
TeamTemplateId to the predefined case team.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
451
Standard Objects
CategoryData
Fields
Field
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the case with which the case team template record is associated.
TeamTemplateId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the predefined case team with which the case team template record is associated.
CategoryData
Represents a logical grouping of Solution records.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
CategoryNodeId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the CategoryNode associated with the solution.
452
Standard Objects
CategoryNode
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RelatedSobjectId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the solution related to the category.
Usage
This object allows you to assign one or more categories to a Solution. It is an intermediate data table with two foreign keys that defines
the relationship between a CategoryNode and a Solution record.
CategoryData has two foreign keys:
• The first foreign key, CategoryNodeId, refers to the ID of a CategoryNode.
• The other foreign key, RelatedSobjectId, refers to a Solution ID.
This is a many-to-many relationship, so there can be multiple rows returned with a CategoryNodeId. A Solution can be associated
with multiple categories.
SEE ALSO:
Object Basics
CategoryNode
Represents a tree of Solution categories.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Customer Portal users can't access this object.
453
Standard Objects
CategoryNode
• Attempting to delete a CategoryNode that has children (referred by CategoryNode.Parent), or is referred to elsewhere, causes a
failure.
Fields
Field
Details
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the category node.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the parent of this node, if any.
SortOrder
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the sort order of child CategoryNode objects.
SortStyle
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Indicates whether the sort order is alphabetical or custom.
Usage
A CategoryNode defines a category of solutions. In the user interface, you can edit category definitions from Setup by entering Solution
Categories in the Quick Find box, then selecting Solution Categories.
SEE ALSO:
CategoryData
Solution
454
Standard Objects
CategoryNodeLocalization
CategoryNodeLocalization
When the Translation Workbench is enabled for your organization, the CategoryNodeLocalization object provides the translation of the
label of a solution category.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Your organization must be using Professional, Enterprise, Developer, Unlimited, or Performance Edition and be enabled for the
Translation Workbench.
• To view this object, you must have the “View Setup and Configuration” permission.
Fields
Field
Details
CategoryNodeId
Type
reference
Properties
Create, Filter, Nillable
Description
The ID of the solution CategoryNode that is being translated.
LanguageLocaleKey
Type
picklist
Properties
Create, Filter, Nillable, Restricted picklist
Description
This field is available in API version 16.0 and earlier. It is the same as the Language
field.
Language
Type
picklist
Properties
Create, Filter, Nillable, Restricted picklist
Description
This field is available in API version 17.0 and later. The combined language and locale
ISO code, which controls the language for labels displayed in an application.
This picklist contains the following fully-supported languages:
455
Standard Objects
Field
CategoryNodeLocalization
Details
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
The following end-user only languages are available.
• Arabic: ar
• Bulgarian: bg
• Croatian: hr
• Czech: cs
• English (UK): en_GB
• Greek: el
• Hebrew: iw
• Hungarian: hu
• Indonesian: in
• Polish: pl
• Portuguese (Portugal): pt_PT
• Romanian: ro
• Slovak: sk
• Slovenian: sl
• Turkish: tr
• Ukrainian: uk
• Vietnamese: vi
The following platform languages are available for organizations that use Salesforce
exclusively as a platform.
456
Standard Objects
Field
CategoryNodeLocalization
Details
• Albanian: sq
• Arabic (Algeria): ar_DZ
• Arabic (Bahrain): ar_BH
• Arabic (Egypt): ar_EG
• Arabic (Iraq): ar_IQ
• Arabic (Jordan): ar_JO
• Arabic (Kuwait): ar_KW
• Arabic (Lebanon): ar_LB
• Arabic (Libya): ar_LY
• Arabic (Morocco): ar_MA
• Arabic (Oman): ar_OM
• Arabic (Qatar): ar_QA
• Arabic (Saudi Arabia): ar_SA
• Arabic (Sudan): ar_SD
• Arabic (Syria): ar_SY
• Arabic (Tunisia): ar_TN
• Arabic (United Arab Emirates): ar_AE
• Arabic (Yemen): ar_YE
• Armenian: hy
• Basque: eu
• Bosnian: bs
• Bengali: bn
• Chinese (Simplified—Singapore): zh_SG
• Chinese (Traditional—Hong Kong): zh_HK
• English (Australia): en_AU
• English (Canada): en_CA
• English (Hong Kong): en_HK
• English (India): en_IN
• English (Ireland): en_IE
• English (Malaysia): en_MY
• English (Philippines): en_PH
• English (Singapore): en_SG
• English (South Africa): en_ZA
• Estonian: et
• French (Belgium): fr_BE
• French (Canada): fr_CA
• French (Luxembourg): fr_LU
• French (Switzerland): fr_CH
457
Standard Objects
Field
CategoryNodeLocalization
Details
• Georgian: ka
• German (Austria): de_AT
• German (Luxembourg): de_LU
• German (Switzerland): de_CH
• Hindi: hi
• Icelandic: is
• Irish: ga
• Italian (Switzerland): it_CH
• Latvian: lv
• Lithuanian: lt
• Luxembourgish: lb
• Macedonian: mk
• Malay: ms
• Maltese: mt
• Romanian (Moldova): ro_MD
• Montenegrin: sh_ME
• Romansh: rm
• Serbian (Cyrillic): sr
• Serbian (Latin): sh
• Spanish (Argentina): es_AR
• Spanish (Bolivia): es_BO
• Spanish (Chile): es_CL
• Spanish (Colombia): es_CO
• Spanish (Costa Rica): es_CR
• Spanish (Dominican Republic): es_DO
• Spanish (Ecuador): es_EC
• Spanish (El Salvador): es_SV
• Spanish (Guatemala): es_GT
• Spanish (Honduras): es_HN
• Spanish (Nicaragua): es_NI
• Spanish (Panama): es_PA
• Spanish (Paraguay): es_PY
• Spanish (Peru): es_PE
• Spanish (Puerto Rico): es_PR
• Spanish (United States): es_US
• Spanish (Uruguay): es_UY
• Spanish (Venezuela): es_VE
• Tagalog: tl
458
Standard Objects
Field
CategoryNodeLocalization
Details
• Tamil: ta
• Urdu: ur
• Welsh: cy
The values in this field are not related to the default locale selection.
NamespacePrefix
Type
string
Properties
Filter, Nillable
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
Value
Type
string
Properties
Create, Filter, Nillable, Update
Description
The actual translated label for the solution category. Label is Translation.
Usage
Use this object to translate the labels of your solution categories into a supported language. Users with the Translation Workbench
enabled can view category node translations, but either the “Customize Application,” “Manage Translation,” or “Manage Categories”
permission is required to create or update category node translations.
SEE ALSO:
ScontrolLocalization
WebLinkLocalization
459
Standard Objects
ChatterActivity
ChatterActivity
ChatterActivity represents the number of posts and comments made by a user and the number of comments and likes on posts and
comments received by the same user. This object is available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments made by the ParentId.
CommentReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments received by the ParentId.
InfluenceRawRank
Type
int
Properties
Filter, Group, Sort
Description
Number indicating the ParentId’s Chatter influence rank, which is calculated based
on the ParentId’s ChatterActivity statistics, relative to the other users in the
organization. This field is available in API version 26.0 and later.
LikeReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes received by the ParentId.
460
Standard Objects
ChatterActivity
Field Name
Details
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the community to which the ChatterActivity belongs. This field is available
only if Salesforce Communities is enabled in your organization. This field is available
in API version 26.0 and later.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the object type to which the ChatterActivity is related. In API version 39.0,
the ParentId must be a UserId or SelfServiceUser ID.
PostCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedItems made by the ParentId.
Usage
• Use this object to reference the Chatter activity statistics, which include the number of posts and comments made by a user and
the number of comments and likes on posts and comments received by the same user.
• You can directly query for ChatterActivity.
SELECT Id, PostCount, LikeReceivedCount
FROM ChatterActivity
WHERE ParentId = UserId
Note: To query ChatterActivity, you must provide the ParentId. In API version 39.0, the ParentId must be a UserId
or SelfServiceUser ID.
• A ChatterActivity record is created for users the first time they post or comment. Users who have never posted or commented don’t
have ChatterActivity records. If users make only one post and then delete it, they do have ChatterActivity records. In both cases, the
user interface displays zeros for their Chatter activity.
461
Standard Objects
ChatterAnswersActivity
• Use the InfluenceRawRank field to reference a user’s Chatter influence rank. This field is available in API version 26.0 and later.
SEE ALSO:
FeedItem
FeedComment
FeedLike
ChatterAnswersActivity
Represents the reputation of a User in Chatter Answers communities. This object is available in API version 25.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
BestAnswerReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of best answers the User has received from other users.
BestAnswerSelectedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of best answers the User has selected.
QuestionsCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of Question records posted by the User.
QuestionSubscrCount
Type
int
462
Standard Objects
Field Name
ChatterAnswersActivity
Details
Properties
Filter, Group, Nillable, Sort
Description
The number of Question records the User has selected to follow.
QuestionSubscrReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of users following Question records posted by the User.
QuestionUpVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has marked on Question records posted by
other users.
QuestionUpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has received from other users on the Question
records he or she has posted.
RepliesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of Reply records posted by the User.
ReplyDownVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
463
Standard Objects
Field Name
ChatterAnswersActivity
Details
Description
The number of down votes the User has marked on Reply records posted by
other users.
ReplyDownVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes the User has received from other users on the Reply
records he or she has posted.
ReplyUpVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has marked on the Reply records posted by
other users.
ReplyUpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has received from other users on the Reply
records he or she has posted.
ReportAbuseOnQuestionsCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of abuses that the User has reported on Question records posted
by other users.
ReportAbuseOnRepliesCount
Type
int
Properties
Filter, Group, Nillable, Sort
464
Standard Objects
Field Name
ChatterAnswersActivity
Details
Description
The number of abuses that the User has reported on Reply records posted by
other users.
ReportAbuseReceivedOnQnCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of abuses reported by other users on the Question records posted
by the User.
ReportAbuseReceivedOnReCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
the number of abuses reported by other users on the Reply records posted by
the User.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The User ID associated with this reputation.
CommunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID for the zone associated with this reputation.
465
Standard Objects
ChatterAnswersReputationLevel
Usage
Use this object to view metrics on User activity in Chatter Answers. For example, you can use the ChatterAnswersActivity object to view
the number of Question records a user is following in Chatter Answers communities.
SEE ALSO:
Question
Reply
User
ChatterAnswersReputationLevel
Represents a reputation level within a Chatter Answers zone. This object is available in API version 26.0 and later.
Supported Calls
create(), delete(), query(), retrieve(), update()
Fields
Field
Details
CommunityID
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the zone for which you’re creating the reputation level.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the reputation level.
Value
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Minimum number of points for this level.
466
Standard Objects
ChatterConversation
Usage
Use to create or edit reputation levels for the zone.
ChatterConversation
Represents a private conversation in Chatter, consisting of messages that conversation members have sent or received. This object is
available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Id
Type
ID
Properties
Defaulted on create, Filter, Group, Sort
Description
ID of the conversation.
Usage
Use this object to identify private conversations in Chatter. Users can access this object if they have the “Manage Chatter Messages and
Direct Messages” permission. This object is read-only via the API and is provided only to allow administrators to view users' Chatter
messages; for example, for compliance purposes.
SEE ALSO:
ChatterConversationMember
ChatterMessage
ChatterConversationMember
Represents a member of a private conversation in Chatter. A member has either sent messages to or received messages from other
conversation participants. This object is available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
467
Standard Objects
ChatterMessage
Fields
Field Name
Details
ConversationId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the associated ChatterConversation.
MemberId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the conversation member.
Usage
Use this object to view members of private conversations in Chatter. Users can access this object if they have the “Manage Chatter
Messages and Direct Messages” permission. This object is read-only via the API and is provided only to allow administrators to view
users' Chatter messages; for example, for compliance purposes.
SEE ALSO:
ChatterConversation
ChatterMessage
ChatterMessage
Represents a message sent as part of a private conversation in Chatter. This object is available in API version 23.0 and later.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Body
Type
textarea
468
Standard Objects
Field Name
ChatterMessage
Details
Properties
None
Description
Text of the message.
ConversationId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the conversation that the ChatterMessage is associated with.
SenderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the sender.
SenderNetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community from which the message was sent. This field is available
only if Salesforce Communities is enabled in your organization.
This field is available in API version 32.0 and later.
SentDate
Type
dateTime
Properties
Filter, Sort
Description
Date the message was sent.
Usage
Use this object to view and delete messages sent or received via private conversations in Chatter. Users can access this object if they
have the “Manage Chatter Messages and Direct Messages” permission. Users with the “Moderate Communities Chatter Messages”
permission can access this object in communities they’re a member of, only if the message has been flagged as inappropriate. This
object is provided to allow administrators to view and delete users' Chatter messages, for example, for compliance purposes.
469
Standard Objects
ClientBrowser
Messages are hard deleted. They aren’t sent to the recycle bin.
Deleting a message that resulted from sharing a file with someone does not delete the file itself.
SEE ALSO:
ChatterConversation
ChatterConversationMember
ClientBrowser
Represents a cookie added to the browser upon login, and also includes information about the browser application where the cookie
was inserted. This object is available in version 28.0 and later.
Supported Calls
describeSObjects(), delete(), query(), retrieve()
Fields
Field
Details
FullUserAgent
Type
string
Properties
Filter, Nillable, Sort
Description
Detailed information about the client (browser). For example, Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
LastUpdate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the last time the cookie was changed.
ProxyInfo
Type
string
Properties
Filter, Nillable, Sort
Description
The browser’s current proxy information.
470
Standard Objects
CollaborationGroup
Field
Details
UsersId
Type
reference
Properties
Nillable, Group, Sort
Description
The ID of the user associated with this item.
Usage
At every login, the device the login request is from is checked against the known devices using ClientBrowser. A match means a cookie
was found on the browser that matches an entry in the ClientBrowser table, so the device is known. No match means that no matching
cookie was found, so the device is unknown, and the user is asked to confirm their identity.
CollaborationGroup
Represents a Chatter group. This object is available in API version 19.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), update(),
upsert()
Special Access Rules
The visibility of information in groups depends on the type of group and the user’s permissions.
• Members: Any user with the “Create and Own New Chatter Groups” permission can create public, private, and unlisted groups,
including in any communities they belong to.
• Owners and managers: Users can modify group details for any group they own or manage. Owners can also delete groups they
own.
• Nonmembers: These user permissions allow group access regardless of group membership.
– “View All Data”—Allows users to view all public and private groups across their organization and its communities. Users with
this permission can’t view unlisted group information, unless they have the “Modify Unlisted Groups” permission as well.
– “Modify All Data”—Allows users to view, modify, and delete all public and private groups across their organization and its
communities. Users with this permission can’t view or modify unlisted group information, unless they have the “Manage Unlisted
Groups” permission as well.
– “Create and Customize Communities”—Allows users to view, modify, and delete all public and private groups in communities.
– “Manage Unlisted Groups”—Allows users to search for, access, and modify any unlisted group in an organization and its
communities.
– “Data Export”—Allows users to export any data from Salesforce, including private and unlisted group data from an organization
and its communities.
471
Standard Objects
CollaborationGroup
• Apex and Visualforce: Apex code runs in system mode, which means that the permissions of the current user aren’t taken into
account.
– Visualforce pages that display groups might expose unlisted or private group data to users who aren’t members.
– Because system mode disregards the user’s permissions, all users who are accessing a Visualforce page that’s showing a group
can act as an owner of that group.
– AppExchange apps that are written in Apex and that access all groups will expose unlisted groups to users who aren’t members.
To limit and manage access to the unlisted and private groups in your organization:
• Explicitly filter out unlisted and private group information from SOQL queries in all Apex code.
• Use permission sets, profile-level permissions, and sharing checks in your code to further limit group access.
• Use Apex triggers on the CollaborationGroup object to monitor and manage the creation of groups. In Setup, enter Group
Triggers in the Quick Find box, then select Group Triggers to add triggers.
Fields
Field
Details
AnnouncementId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the ID of the Announcement last associated with the group. This field is available
in API version 30.0 and later.
BannerPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for the group's banner photo.
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 36.0 and later.
CanHaveGuests
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If set to true, indicates that a group allows customers. Chatter customers are users outside
your company's email domains who can only see groups they're invited to and interact with
members of those groups; they can't see any Salesforce information.
472
Standard Objects
Field
CollaborationGroup
Details
This field is available starting in API version 23.0, but groups that allow customers are
accessible from earlier API versions. However, when accessed from earlier API versions, groups
that allow customers aren't distinguishable from private groups. We strongly recommend
that you upgrade to the latest API version. If you must use an earlier version, name groups
that allow customers to indicate that they include customers.
CollaborationType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of Chatter group. Available values are:
• Public—Anyone can see and post updates. Anyone can join a public group.
• Private—Only members can see the group feed and post updates. Non-members
can only see the group name and a few other details in list views, search, and on the
group page. The group's owner or managers must add members who request to join
the group.
• Unlisted—Only members and users with the “Manage Unlisted Groups” permission
can see the group and post updates. Other users can’t access the group or see it in lists,
search, and feeds.
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the group.
FullPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for the group's profile photo.
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 20.0 and later.
GroupEmail
Type
email
473
Standard Objects
Field
CollaborationGroup
Details
Properties
Group, Nillable, Sort
Description
The email address for posting to the group. For private groups, only visible to members and
users with “Modify All Data” or “View All Data” permissions.
This field is available in API version 29.0 and later.
HasPrivateFieldsAccess
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If set to true, indicates that a user can see the InformationBody and
InformationTitle fields in a private group. This field is set to true for members of
a private group and users with “Modify All Data” or “View All Data” permissions.
InformationBody
Type
textarea
Properties
Create, Nillable, Update
Description
The text of the Information section. For private groups, only visible to members and users
with “Modify All Data” or “View All Data” permissions.
InformationTitle
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The title of the Information section. For private groups, only visible to members and users
with “Modify All Data” or “View All Data” permissions.
IsArchived
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the group is archived (true) or not (false).
IsAutoArchiveDisabled
Type
boolean
474
Standard Objects
Field
CollaborationGroup
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether automatic archiving is disabled for the group (true) or not (false).
IsBroadcast
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the group is a broadcast group (true) or not (false).
This field is available in API version 36.0 and later.
LastFeedModifiedDate
Type
dateTime
Properties
Filter, Sort
Description
The date of the last post or comment on the group.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
MediumPhotoUrl
Type
url
Properties
Filter
Nillable
Sort
475
Standard Objects
Field
CollaborationGroup
Details
Description
The URL for the larger, cropped photo size.
MemberCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of members in the group.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the group. Group names must be unique across public and private groups. Unlisted
groups don’t require unique names.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the community that this group is part of. This field is available only if Salesforce
Communities is enabled in your organization.
You can only add a NetworkId when creating a group. You can’t change or add a
NetworkId for an existing group. This field is available in API version 26.0 and later.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the group. Only the current group owner or people with the “Modify All
Data” permission can update the OwnerId.
SmallPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for a thumbnail of the group's profile photo.
476
Standard Objects
Field
CollaborationGroupFeed
Details
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 20.0 and later.
Usage
Use this object to create, edit, or delete groups in an organization or in a community. Deleting a group permanently deletes all posts
and comments to the group. It also deletes all files and links posted to the group and removes the files from other locations where they
were shared.
As a Chatter group member, you can post to the group using the CollaborationGroupFeed object. As a Chatter group owner or manager,
you can add or remove group members using the CollaborationGroupMember object, post announcements to the group using the
Announcement object, and accept or decline requests to join private groups using the CollaborationGroupMemberRequest object.
Additionally, the group owner, manager, or your Salesforce system administrator can invite people to join the group using the
CollaborationInvitation object.
The Salesforce system administrator doesn’t need to be a member of the group in order to send invitations using the API.
SEE ALSO:
CollaborationGroupFeed
CollaborationGroupMember
CollaborationGroupMemberRequest
CollaborationGroupFeed
Represents a single feed item on a Chatter group feed. A group feed shows posts and comments about the group. This object is available
in API version 19.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
477
Standard Objects
CollaborationGroupFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of CollaborationGroupFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
478
Standard Objects
Field
CollaborationGroupFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost.The name of the file uploaded to the feed. Setting ContentFileName
automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
479
Standard Objects
Field
CollaborationGroupFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich
text with escaped HTML. In API version 34.0 and prior, all rich text appears as a
plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate.
If a FeedComment is inserted on the feed item, then LastModifiedDate becomes
the CreatedDate for the FeedComment. Deleting the FeedComment does not
change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent
feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
431
Standard Objects
CaseFeed
Field
Details
LinkURL
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later, if
Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left
empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value
for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the case record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordID
Type
reference
Properties
Group, Nillable, Sort
432
Standard Objects
Field
CaseFeed
Details
Description
ID of the ContentVersion article associated with a ContentPost. This field is null for
all posts except ContentPost. For example, set this field to an existing ContentVersion
and post it to a feed as a CaseFeed object of Type ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the CaseFeed. When the Type is LinkPost, the LinkURL is the URL,
and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of CaseFeed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series
only. For a recurring Task with CaseFeed enabled, events are generated for the series
and each occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public
group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the
publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
433
Standard Objects
Field
CaseFeed
Details
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to
a case.
• CallLogPost—generated event when a user logs a call for a case through the
user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a
case object.
• ChangeStatusPost—generated event when a user changes the status of a
case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved
to a case.
• EmailMessageEvent—generated event when an email related to a case object
is sent or received.
• FacebookPost—generated when a Facebook post is created from a case.
Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This field
is available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
434
Standard Objects
Field
CaseHistory
Details
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users
by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for a case record.
SEE ALSO:
Case
EntitySubscription
NewsFeed
FeedItem
UserProfileFeed
CaseHistory
Represents historical information about changes that have been made to the associated Case.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
This object is always read-only.
Fields
Field
Details
CaseId
Type
reference
435
Standard Objects
Field
CaseHistory
Details
Properties
Filter, Group, Sort
Description
ID of the Case associated with this record.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Name of the case field that was modified, or a special value to indicate some other
modification to the case. The possible values, in addition to the case field names, are:
• ownerAssignment—The owner of the case was changed.
• ownerAccepted—A user took ownership of a case from a queue.
• ownerEscalated—The owner of the case was changed due to case escalation.
• external—A user made the case visible to customers in the Customer Self-Service Portal.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
New value of the modified case field. Maximum of 255 characters.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
Previous value of the modified case field. Maximum of 255 characters.
436
Standard Objects
CaseMilestone
Usage
Case history entries are indirectly created each time a case is modified.
Two rows are added to this record when foreign key fields change. One row contains the foreign key object names that display in the
online application. For example, Jane Doe is recorded as the name of a Contact. The other row contains the actual foreign key ID
that is only returned to and visible from the API.
This object respects field level security on the parent object.
SEE ALSO:
Object Basics
CaseMilestone
Represents a milestone (required step in a customer support process) on a Case. This object is available in API version 18.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Fields
Field
Details
BusinessHoursId
Type
reference
Properties
Filter, Group, Nillable,Sort
Description
ID of the BusinessHours associated with the CaseMilestone.
CaseId
Type
reference
Properties
Filter
Description
ID of the case.
CompletionDate
Type
dateTime
Properties
Filter, Nillable, Update
Description
The date and time the milestone was completed.
437
Standard Objects
CaseMilestone
Field
Details
ElapsedTimeInDays
Type
double
Properties
Filter, Nillable
Description
The time required to complete a milestone in days.
ElapsedTimeInHrs
Type
double
Properties
Filter, Nillable
Description
The time required to complete a milestone in hours.
ElapsedTimeInMins
Type
int
Properties
Filter, Nillable
Description
The time required to complete a milestone in minutes.
IsCompleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the milestone is completed (true) or not (false).
IsViolated
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the milestone is violated (true) or not (false).
MilestoneTypeId
Type
reference
Properties
Filter, Nillable
Description
The ID of the milestone on the case.
438
Standard Objects
CaseMilestone
Field
Details
StartDate
Type
dateTime
Properties
Filter, Nillable, Update
Description
The date and time the milestone started on the case.
TargetDate
Type
dateTime
Properties
Filter
Description
The date and time the milestone must be completed.
TargetResponseInDays
Type
double
Properties
Filter, Nillable
Description
The time to complete the milestone in days.
TargetResponseInHrs
Type
double
Properties
Filter, Nillable
Description
The time to complete the milestone in hours.
TargetResponseInMins
Type
int
Properties
Filter, Nillable
Description
The time to complete the milestone in minutes.
TimeSinceTargetInMins
Type
text
Properties
Nillable
Description
The time elapsed since the milestone target. The format is minutes and seconds.
439
Standard Objects
CaseOwnerSharingRule
Field
Details
TimeRemainingInMins
Type
text
Properties
Nillable
Description
Time remaining to reach the milestone target. The format is minutes and seconds.
Usage
This object lets you view a milestone on a case. It also lets you view if the milestone was completed and when it must be completed.
SEE ALSO:
Case
MilestoneType
SlaProcess
CaseOwnerSharingRule
Represents the rules for sharing a case with users other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
CaseAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
440
Standard Objects
Field
CaseOwnerSharingRule
Details
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Cases owned by users in the source group
trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
441
Standard Objects
Field
CaseShare
Details
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. Target users or groups are given access.
Usage
Use this object to manage the sharing rules for cases. General sharing and territory management-related sharing use this object.
SEE ALSO:
Case
CaseShare
Metadata API Developer Guide: SharingRules
CaseShare
Represents a sharing entry on a Case.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
CaseAccessLevel
Type
picklist
442
Standard Objects
Field
CaseShare
Details
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Case. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
This field must be set to an access level that is higher than the organization’s default access
level for cases.
CaseId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Case associated with this sharing entry. This field can't be updated.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). You can create a value for this field in API versions 32.0
and later with the correct organization-wide sharing settings.
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Case with them.
• Owner—The User is the owner of the Case.
• ImplicitChild—User or Group has access to the Case on the Account associated
with this Case.
• Rule—The User or Group has access via a Case sharing rule.
443
Standard Objects
CaseSolution
Field
Details
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Case. This field can't be updated.
Usage
This object allows you to determine which users and groups can view and edit Case records owned by other users.
If you attempt to create a new record that matches an existing record, request updates any modified fields and returns the existing
record.
SEE ALSO:
AccountShare
LeadShare
OpportunityShare
CaseSolution
Represents the association between a Case and a Solution.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
CaseId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Case associated with the Solution.
IsDeleted
Type
boolean
444
Standard Objects
Field
CaseStatus
Details
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
SolutionId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Solution associated with the case.
Usage
You can't update this object via the API. If you attempt to create a record that matches an existing record, the request simply returns
the existing record.
SEE ALSO:
CaseShare
SolutionStatus
CaseStatus
Represents the status of a Case, such as New, On Hold, or In Process.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
445
Standard Objects
CaseStatus
Field
Details
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this case status value represents a closed Case (true) or not (false).
Multiple case status values can represent a closed Case.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default case status value (true) or not (false) in the picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this case status value. This display value is the internal label that does not
get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the case status picklist. These numbers are not guaranteed
to be sequential, as some previous case status values might have been deleted.
Usage
This object represents a value in the case status picklist. The case status picklist provides additional information about the status of a
Case, such as whether a given Status value represents an open or closed case. Query the CaseStatus object to retrieve the set of
values in the case status picklist, and then use that information while processing Case records to determine more information about a
given case. For example, the application could test whether a given case is open or closed based on its Status value and the value
of the IsClosed property in the associated CaseStatus object.
SEE ALSO:
Object Basics
446
Standard Objects
CaseTag
CaseTag
Associates a word or short phrase with a Case
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
447
Standard Objects
Field Name
CaseTeamMember
Details
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
CaseTag stores the relationship between its parent TagDefinition and the Case being tagged. Tag objects act as metadata, allowing users
to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
CaseTeamMember
Represents a case team member, who works with a team of other users to help resolve a case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user or contact who is a member on a case team.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the case with which the case team member is associated.
TeamRoleId
Type
reference
Properties
Create, Filter, Group, Sort, Update
448
Standard Objects
Field
CaseTeamRole
Details
Description
The ID of the case team role with which the case team member is associated.
TeamTemplateMemberId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the team member included in a predefined case team.
CaseTeamRole
Represents a case team role. Every case team member has a role on a case, such as “Customer Contact” or “Case Manager.”
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group for cases. The possible
values are:
• None
• Read
• Edit
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the case team role.
449
Standard Objects
Field
CaseTeamTemplate
Details
PreferencesVisibleInCSP Type
boolean
Properties
Create, Filter, Update
Description
Indicates whether or not the case team role is visible to Customer Portal users.
CaseTeamTemplate
Represents a predefined case team, which is a group of users that helps resolve a case.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A text description of the predefined case team.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the predefined case team.
CaseTeamTemplateMember
Represents a member on a predefined case team, which is a group of users that helps resolve cases.
450
Standard Objects
CaseTeamTemplateRecord
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the user or contact who is a team member on a predefined case team.
TeamRoleId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the predefined case team member's case team role.
TeamTemplateId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the predefined case team's template.
CaseTeamTemplateRecord
The CaseTeamTemplateRecord object is a linking object between the Case and CaseTeamTemplate objects. To assign a predefined case
team to a case (customer inquiry), create a CaseTeamTemplateRecord record and point the ParentId to the case and the
TeamTemplateId to the predefined case team.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
451
Standard Objects
CategoryData
Fields
Field
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the case with which the case team template record is associated.
TeamTemplateId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the predefined case team with which the case team template record is associated.
CategoryData
Represents a logical grouping of Solution records.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
CategoryNodeId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the CategoryNode associated with the solution.
452
Standard Objects
CategoryNode
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RelatedSobjectId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the solution related to the category.
Usage
This object allows you to assign one or more categories to a Solution. It is an intermediate data table with two foreign keys that defines
the relationship between a CategoryNode and a Solution record.
CategoryData has two foreign keys:
• The first foreign key, CategoryNodeId, refers to the ID of a CategoryNode.
• The other foreign key, RelatedSobjectId, refers to a Solution ID.
This is a many-to-many relationship, so there can be multiple rows returned with a CategoryNodeId. A Solution can be associated
with multiple categories.
SEE ALSO:
Object Basics
CategoryNode
Represents a tree of Solution categories.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Customer Portal users can't access this object.
453
Standard Objects
CategoryNode
• Attempting to delete a CategoryNode that has children (referred by CategoryNode.Parent), or is referred to elsewhere, causes a
failure.
Fields
Field
Details
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the category node.
ParentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the parent of this node, if any.
SortOrder
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the sort order of child CategoryNode objects.
SortStyle
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Indicates whether the sort order is alphabetical or custom.
Usage
A CategoryNode defines a category of solutions. In the user interface, you can edit category definitions from Setup by entering Solution
Categories in the Quick Find box, then selecting Solution Categories.
SEE ALSO:
CategoryData
Solution
454
Standard Objects
CategoryNodeLocalization
CategoryNodeLocalization
When the Translation Workbench is enabled for your organization, the CategoryNodeLocalization object provides the translation of the
label of a solution category.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Your organization must be using Professional, Enterprise, Developer, Unlimited, or Performance Edition and be enabled for the
Translation Workbench.
• To view this object, you must have the “View Setup and Configuration” permission.
Fields
Field
Details
CategoryNodeId
Type
reference
Properties
Create, Filter, Nillable
Description
The ID of the solution CategoryNode that is being translated.
LanguageLocaleKey
Type
picklist
Properties
Create, Filter, Nillable, Restricted picklist
Description
This field is available in API version 16.0 and earlier. It is the same as the Language
field.
Language
Type
picklist
Properties
Create, Filter, Nillable, Restricted picklist
Description
This field is available in API version 17.0 and later. The combined language and locale
ISO code, which controls the language for labels displayed in an application.
This picklist contains the following fully-supported languages:
455
Standard Objects
Field
CategoryNodeLocalization
Details
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
The following end-user only languages are available.
• Arabic: ar
• Bulgarian: bg
• Croatian: hr
• Czech: cs
• English (UK): en_GB
• Greek: el
• Hebrew: iw
• Hungarian: hu
• Indonesian: in
• Polish: pl
• Portuguese (Portugal): pt_PT
• Romanian: ro
• Slovak: sk
• Slovenian: sl
• Turkish: tr
• Ukrainian: uk
• Vietnamese: vi
The following platform languages are available for organizations that use Salesforce
exclusively as a platform.
456
Standard Objects
Field
CategoryNodeLocalization
Details
• Albanian: sq
• Arabic (Algeria): ar_DZ
• Arabic (Bahrain): ar_BH
• Arabic (Egypt): ar_EG
• Arabic (Iraq): ar_IQ
• Arabic (Jordan): ar_JO
• Arabic (Kuwait): ar_KW
• Arabic (Lebanon): ar_LB
• Arabic (Libya): ar_LY
• Arabic (Morocco): ar_MA
• Arabic (Oman): ar_OM
• Arabic (Qatar): ar_QA
• Arabic (Saudi Arabia): ar_SA
• Arabic (Sudan): ar_SD
• Arabic (Syria): ar_SY
• Arabic (Tunisia): ar_TN
• Arabic (United Arab Emirates): ar_AE
• Arabic (Yemen): ar_YE
• Armenian: hy
• Basque: eu
• Bosnian: bs
• Bengali: bn
• Chinese (Simplified—Singapore): zh_SG
• Chinese (Traditional—Hong Kong): zh_HK
• English (Australia): en_AU
• English (Canada): en_CA
• English (Hong Kong): en_HK
• English (India): en_IN
• English (Ireland): en_IE
• English (Malaysia): en_MY
• English (Philippines): en_PH
• English (Singapore): en_SG
• English (South Africa): en_ZA
• Estonian: et
• French (Belgium): fr_BE
• French (Canada): fr_CA
• French (Luxembourg): fr_LU
• French (Switzerland): fr_CH
457
Standard Objects
Field
CategoryNodeLocalization
Details
• Georgian: ka
• German (Austria): de_AT
• German (Luxembourg): de_LU
• German (Switzerland): de_CH
• Hindi: hi
• Icelandic: is
• Irish: ga
• Italian (Switzerland): it_CH
• Latvian: lv
• Lithuanian: lt
• Luxembourgish: lb
• Macedonian: mk
• Malay: ms
• Maltese: mt
• Romanian (Moldova): ro_MD
• Montenegrin: sh_ME
• Romansh: rm
• Serbian (Cyrillic): sr
• Serbian (Latin): sh
• Spanish (Argentina): es_AR
• Spanish (Bolivia): es_BO
• Spanish (Chile): es_CL
• Spanish (Colombia): es_CO
• Spanish (Costa Rica): es_CR
• Spanish (Dominican Republic): es_DO
• Spanish (Ecuador): es_EC
• Spanish (El Salvador): es_SV
• Spanish (Guatemala): es_GT
• Spanish (Honduras): es_HN
• Spanish (Nicaragua): es_NI
• Spanish (Panama): es_PA
• Spanish (Paraguay): es_PY
• Spanish (Peru): es_PE
• Spanish (Puerto Rico): es_PR
• Spanish (United States): es_US
• Spanish (Uruguay): es_UY
• Spanish (Venezuela): es_VE
• Tagalog: tl
458
Standard Objects
Field
CategoryNodeLocalization
Details
• Tamil: ta
• Urdu: ur
• Welsh: cy
The values in this field are not related to the default locale selection.
NamespacePrefix
Type
string
Properties
Filter, Nillable
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
Value
Type
string
Properties
Create, Filter, Nillable, Update
Description
The actual translated label for the solution category. Label is Translation.
Usage
Use this object to translate the labels of your solution categories into a supported language. Users with the Translation Workbench
enabled can view category node translations, but either the “Customize Application,” “Manage Translation,” or “Manage Categories”
permission is required to create or update category node translations.
SEE ALSO:
ScontrolLocalization
WebLinkLocalization
459
Standard Objects
ChatterActivity
ChatterActivity
ChatterActivity represents the number of posts and comments made by a user and the number of comments and likes on posts and
comments received by the same user. This object is available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments made by the ParentId.
CommentReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments received by the ParentId.
InfluenceRawRank
Type
int
Properties
Filter, Group, Sort
Description
Number indicating the ParentId’s Chatter influence rank, which is calculated based
on the ParentId’s ChatterActivity statistics, relative to the other users in the
organization. This field is available in API version 26.0 and later.
LikeReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes received by the ParentId.
460
Standard Objects
ChatterActivity
Field Name
Details
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the community to which the ChatterActivity belongs. This field is available
only if Salesforce Communities is enabled in your organization. This field is available
in API version 26.0 and later.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the object type to which the ChatterActivity is related. In API version 39.0,
the ParentId must be a UserId or SelfServiceUser ID.
PostCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedItems made by the ParentId.
Usage
• Use this object to reference the Chatter activity statistics, which include the number of posts and comments made by a user and
the number of comments and likes on posts and comments received by the same user.
• You can directly query for ChatterActivity.
SELECT Id, PostCount, LikeReceivedCount
FROM ChatterActivity
WHERE ParentId = UserId
Note: To query ChatterActivity, you must provide the ParentId. In API version 39.0, the ParentId must be a UserId
or SelfServiceUser ID.
• A ChatterActivity record is created for users the first time they post or comment. Users who have never posted or commented don’t
have ChatterActivity records. If users make only one post and then delete it, they do have ChatterActivity records. In both cases, the
user interface displays zeros for their Chatter activity.
461
Standard Objects
ChatterAnswersActivity
• Use the InfluenceRawRank field to reference a user’s Chatter influence rank. This field is available in API version 26.0 and later.
SEE ALSO:
FeedItem
FeedComment
FeedLike
ChatterAnswersActivity
Represents the reputation of a User in Chatter Answers communities. This object is available in API version 25.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
BestAnswerReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of best answers the User has received from other users.
BestAnswerSelectedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of best answers the User has selected.
QuestionsCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of Question records posted by the User.
QuestionSubscrCount
Type
int
462
Standard Objects
Field Name
ChatterAnswersActivity
Details
Properties
Filter, Group, Nillable, Sort
Description
The number of Question records the User has selected to follow.
QuestionSubscrReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of users following Question records posted by the User.
QuestionUpVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has marked on Question records posted by
other users.
QuestionUpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has received from other users on the Question
records he or she has posted.
RepliesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of Reply records posted by the User.
ReplyDownVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
463
Standard Objects
Field Name
ChatterAnswersActivity
Details
Description
The number of down votes the User has marked on Reply records posted by
other users.
ReplyDownVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes the User has received from other users on the Reply
records he or she has posted.
ReplyUpVotesCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has marked on the Reply records posted by
other users.
ReplyUpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes the User has received from other users on the Reply
records he or she has posted.
ReportAbuseOnQuestionsCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of abuses that the User has reported on Question records posted
by other users.
ReportAbuseOnRepliesCount
Type
int
Properties
Filter, Group, Nillable, Sort
464
Standard Objects
Field Name
ChatterAnswersActivity
Details
Description
The number of abuses that the User has reported on Reply records posted by
other users.
ReportAbuseReceivedOnQnCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of abuses reported by other users on the Question records posted
by the User.
ReportAbuseReceivedOnReCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
the number of abuses reported by other users on the Reply records posted by
the User.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The User ID associated with this reputation.
CommunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID for the zone associated with this reputation.
465
Standard Objects
ChatterAnswersReputationLevel
Usage
Use this object to view metrics on User activity in Chatter Answers. For example, you can use the ChatterAnswersActivity object to view
the number of Question records a user is following in Chatter Answers communities.
SEE ALSO:
Question
Reply
User
ChatterAnswersReputationLevel
Represents a reputation level within a Chatter Answers zone. This object is available in API version 26.0 and later.
Supported Calls
create(), delete(), query(), retrieve(), update()
Fields
Field
Details
CommunityID
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the zone for which you’re creating the reputation level.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the reputation level.
Value
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Minimum number of points for this level.
466
Standard Objects
ChatterConversation
Usage
Use to create or edit reputation levels for the zone.
ChatterConversation
Represents a private conversation in Chatter, consisting of messages that conversation members have sent or received. This object is
available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Id
Type
ID
Properties
Defaulted on create, Filter, Group, Sort
Description
ID of the conversation.
Usage
Use this object to identify private conversations in Chatter. Users can access this object if they have the “Manage Chatter Messages and
Direct Messages” permission. This object is read-only via the API and is provided only to allow administrators to view users' Chatter
messages; for example, for compliance purposes.
SEE ALSO:
ChatterConversationMember
ChatterMessage
ChatterConversationMember
Represents a member of a private conversation in Chatter. A member has either sent messages to or received messages from other
conversation participants. This object is available in API version 23.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
467
Standard Objects
ChatterMessage
Fields
Field Name
Details
ConversationId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the associated ChatterConversation.
MemberId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the conversation member.
Usage
Use this object to view members of private conversations in Chatter. Users can access this object if they have the “Manage Chatter
Messages and Direct Messages” permission. This object is read-only via the API and is provided only to allow administrators to view
users' Chatter messages; for example, for compliance purposes.
SEE ALSO:
ChatterConversation
ChatterMessage
ChatterMessage
Represents a message sent as part of a private conversation in Chatter. This object is available in API version 23.0 and later.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Body
Type
textarea
468
Standard Objects
Field Name
ChatterMessage
Details
Properties
None
Description
Text of the message.
ConversationId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the conversation that the ChatterMessage is associated with.
SenderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the sender.
SenderNetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community from which the message was sent. This field is available
only if Salesforce Communities is enabled in your organization.
This field is available in API version 32.0 and later.
SentDate
Type
dateTime
Properties
Filter, Sort
Description
Date the message was sent.
Usage
Use this object to view and delete messages sent or received via private conversations in Chatter. Users can access this object if they
have the “Manage Chatter Messages and Direct Messages” permission. Users with the “Moderate Communities Chatter Messages”
permission can access this object in communities they’re a member of, only if the message has been flagged as inappropriate. This
object is provided to allow administrators to view and delete users' Chatter messages, for example, for compliance purposes.
469
Standard Objects
ClientBrowser
Messages are hard deleted. They aren’t sent to the recycle bin.
Deleting a message that resulted from sharing a file with someone does not delete the file itself.
SEE ALSO:
ChatterConversation
ChatterConversationMember
ClientBrowser
Represents a cookie added to the browser upon login, and also includes information about the browser application where the cookie
was inserted. This object is available in version 28.0 and later.
Supported Calls
describeSObjects(), delete(), query(), retrieve()
Fields
Field
Details
FullUserAgent
Type
string
Properties
Filter, Nillable, Sort
Description
Detailed information about the client (browser). For example, Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1)
Gecko/2008070208 Firefox/3.0.1
LastUpdate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the last time the cookie was changed.
ProxyInfo
Type
string
Properties
Filter, Nillable, Sort
Description
The browser’s current proxy information.
470
Standard Objects
CollaborationGroup
Field
Details
UsersId
Type
reference
Properties
Nillable, Group, Sort
Description
The ID of the user associated with this item.
Usage
At every login, the device the login request is from is checked against the known devices using ClientBrowser. A match means a cookie
was found on the browser that matches an entry in the ClientBrowser table, so the device is known. No match means that no matching
cookie was found, so the device is unknown, and the user is asked to confirm their identity.
CollaborationGroup
Represents a Chatter group. This object is available in API version 19.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), update(),
upsert()
Special Access Rules
The visibility of information in groups depends on the type of group and the user’s permissions.
• Members: Any user with the “Create and Own New Chatter Groups” permission can create public, private, and unlisted groups,
including in any communities they belong to.
• Owners and managers: Users can modify group details for any group they own or manage. Owners can also delete groups they
own.
• Nonmembers: These user permissions allow group access regardless of group membership.
– “View All Data”—Allows users to view all public and private groups across their organization and its communities. Users with
this permission can’t view unlisted group information, unless they have the “Modify Unlisted Groups” permission as well.
– “Modify All Data”—Allows users to view, modify, and delete all public and private groups across their organization and its
communities. Users with this permission can’t view or modify unlisted group information, unless they have the “Manage Unlisted
Groups” permission as well.
– “Create and Customize Communities”—Allows users to view, modify, and delete all public and private groups in communities.
– “Manage Unlisted Groups”—Allows users to search for, access, and modify any unlisted group in an organization and its
communities.
– “Data Export”—Allows users to export any data from Salesforce, including private and unlisted group data from an organization
and its communities.
471
Standard Objects
CollaborationGroup
• Apex and Visualforce: Apex code runs in system mode, which means that the permissions of the current user aren’t taken into
account.
– Visualforce pages that display groups might expose unlisted or private group data to users who aren’t members.
– Because system mode disregards the user’s permissions, all users who are accessing a Visualforce page that’s showing a group
can act as an owner of that group.
– AppExchange apps that are written in Apex and that access all groups will expose unlisted groups to users who aren’t members.
To limit and manage access to the unlisted and private groups in your organization:
• Explicitly filter out unlisted and private group information from SOQL queries in all Apex code.
• Use permission sets, profile-level permissions, and sharing checks in your code to further limit group access.
• Use Apex triggers on the CollaborationGroup object to monitor and manage the creation of groups. In Setup, enter Group
Triggers in the Quick Find box, then select Group Triggers to add triggers.
Fields
Field
Details
AnnouncementId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the ID of the Announcement last associated with the group. This field is available
in API version 30.0 and later.
BannerPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for the group's banner photo.
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 36.0 and later.
CanHaveGuests
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If set to true, indicates that a group allows customers. Chatter customers are users outside
your company's email domains who can only see groups they're invited to and interact with
members of those groups; they can't see any Salesforce information.
472
Standard Objects
Field
CollaborationGroup
Details
This field is available starting in API version 23.0, but groups that allow customers are
accessible from earlier API versions. However, when accessed from earlier API versions, groups
that allow customers aren't distinguishable from private groups. We strongly recommend
that you upgrade to the latest API version. If you must use an earlier version, name groups
that allow customers to indicate that they include customers.
CollaborationType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of Chatter group. Available values are:
• Public—Anyone can see and post updates. Anyone can join a public group.
• Private—Only members can see the group feed and post updates. Non-members
can only see the group name and a few other details in list views, search, and on the
group page. The group's owner or managers must add members who request to join
the group.
• Unlisted—Only members and users with the “Manage Unlisted Groups” permission
can see the group and post updates. Other users can’t access the group or see it in lists,
search, and feeds.
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the group.
FullPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for the group's profile photo.
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 20.0 and later.
GroupEmail
Type
email
473
Standard Objects
Field
CollaborationGroup
Details
Properties
Group, Nillable, Sort
Description
The email address for posting to the group. For private groups, only visible to members and
users with “Modify All Data” or “View All Data” permissions.
This field is available in API version 29.0 and later.
HasPrivateFieldsAccess
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If set to true, indicates that a user can see the InformationBody and
InformationTitle fields in a private group. This field is set to true for members of
a private group and users with “Modify All Data” or “View All Data” permissions.
InformationBody
Type
textarea
Properties
Create, Nillable, Update
Description
The text of the Information section. For private groups, only visible to members and users
with “Modify All Data” or “View All Data” permissions.
InformationTitle
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The title of the Information section. For private groups, only visible to members and users
with “Modify All Data” or “View All Data” permissions.
IsArchived
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the group is archived (true) or not (false).
IsAutoArchiveDisabled
Type
boolean
474
Standard Objects
Field
CollaborationGroup
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether automatic archiving is disabled for the group (true) or not (false).
IsBroadcast
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the group is a broadcast group (true) or not (false).
This field is available in API version 36.0 and later.
LastFeedModifiedDate
Type
dateTime
Properties
Filter, Sort
Description
The date of the last post or comment on the group.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
MediumPhotoUrl
Type
url
Properties
Filter
Nillable
Sort
475
Standard Objects
Field
CollaborationGroup
Details
Description
The URL for the larger, cropped photo size.
MemberCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of members in the group.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the group. Group names must be unique across public and private groups. Unlisted
groups don’t require unique names.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the community that this group is part of. This field is available only if Salesforce
Communities is enabled in your organization.
You can only add a NetworkId when creating a group. You can’t change or add a
NetworkId for an existing group. This field is available in API version 26.0 and later.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the group. Only the current group owner or people with the “Modify All
Data” permission can update the OwnerId.
SmallPhotoUrl
Type
url
Properties
Filter, Nillable, Sort
Description
The URL for a thumbnail of the group's profile photo.
476
Standard Objects
Field
CollaborationGroupFeed
Details
The URL is updated every time a photo is uploaded and reflects the most recent photo. The
URL returned for an older photo is not guaranteed to return a photo if a newer photo has
been uploaded. You should always query this field for the URL of the most recent photo.
This field is available in API version 20.0 and later.
Usage
Use this object to create, edit, or delete groups in an organization or in a community. Deleting a group permanently deletes all posts
and comments to the group. It also deletes all files and links posted to the group and removes the files from other locations where they
were shared.
As a Chatter group member, you can post to the group using the CollaborationGroupFeed object. As a Chatter group owner or manager,
you can add or remove group members using the CollaborationGroupMember object, post announcements to the group using the
Announcement object, and accept or decline requests to join private groups using the CollaborationGroupMemberRequest object.
Additionally, the group owner, manager, or your Salesforce system administrator can invite people to join the group using the
CollaborationInvitation object.
The Salesforce system administrator doesn’t need to be a member of the group in order to send invitations using the API.
SEE ALSO:
CollaborationGroupFeed
CollaborationGroupMember
CollaborationGroupMemberRequest
CollaborationGroupFeed
Represents a single feed item on a Chatter group feed. A group feed shows posts and comments about the group. This object is available
in API version 19.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
477
Standard Objects
CollaborationGroupFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of CollaborationGroupFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
478
Standard Objects
Field
CollaborationGroupFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost.The name of the file uploaded to the feed. Setting ContentFileName
automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
479
Standard Objects
Field
CollaborationGroupFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
480
Standard Objects
Field
CollaborationGroupFeed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
481
Standard Objects
Field
CollaborationGroupFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the group that is tracked in the feed. The feed is displayed on the detail page for this
record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
482
Standard Objects
CollaborationGroupFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and TextPost, don’t
create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
483
Standard Objects
Field
CollaborationGroupFeed
Details
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
484
Standard Objects
Field
CollaborationGroupMember
Details
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a group.
SEE ALSO:
CollaborationGroup
CollaborationGroupMember
NewsFeed
CollaborationGroupMember
Represents a member of a Chatter group. This object is available in API version 19.0 and later.
Supported Calls
create(), delete(), describeSObjects(), describeLayout(), query(), retrieve(), update()
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated CollaborationGroup.
CollaborationRole
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The role of a group member. Group owners and managers can change roles for members
of their groups. The valid values are:
• Standard—Indicates that a user is a group member. Members can post and comment
in the group.
485
Standard Objects
Field
CollaborationGroupMember
Details
• Admin—Indicates that a user is a group manager. Managers can post and comment,
change member roles, edit group settings, add and remove members, delete posts and
comments, and edit the group information field.
Note: To change the group owner, use the OwnerId field on the
CollaborationGroup object.
LastFeedAccessDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when a group member last accessed the group’s feed. The value is only
updated when a member explicitly consumes the group’s feed, not when the member sees
group posts in other feeds, like the profile feed.
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the group member.
NotificationFrequency
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Required. The frequency at which Salesforce sends Chatter group email digests to this
member. Can only be set by the member or users with the “Modify All Data” permission.
The valid values are:
• D—Daily
• W—Weekly
• N—Never
• P—On every post
The default value is specified by the member in their Chatter email settings. In communities,
the Email on every post option is disabled once more than 10,000 members
choose this setting for the group. All members who had this option selected are automatically
switched to Daily digests.
486
Standard Objects
CollaborationGroupMemberRequest
Usage
Use this object to view, create, and delete Chatter group members. You must be a group owner or manager to create members for
private Chatter groups.
SEE ALSO:
CollaborationGroup
CollaborationGroupFeed
CollaborationGroupMemberRequest
CollaborationGroupMemberRequest
Represents a request to join a private Chatter group. This object is available in API version 21.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the private Chatter group.
RequesterId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user requesting to join the group; must be the ID of the context user.
ResponseMessage
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
Optional message to be included in the notification email when Status is Declined.
487
Standard Objects
CollaborationGroupRecord
Field
Details
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort, Update
Description
The status of the request. Available values are:
• Accepted
• Declined
• Pending
Usage
This object represents a request to join a private Chatter group, and can be used to accept or decline requests to join private groups you
own or manage. On create, an email is sent to the owner and managers of the private group to be accepted or declined. When the
Status is Accepted or Declined, an email is sent to notify the requester. When the Status is Declined, a
ResponseMessage is optionally included to provide additional details.
Note the following when working with requests:
• Users with the “Modify All Data” or “View All Data” permission can view records for all groups, regardless of membership.
• A user can be a member of 300 groups. Requests to join groups count against this limit.
• Status can't be specified on create.
• You can only update a request when the Status is Pending.
• You can't delete or update a request with a Status of Accepted or Declined.
SEE ALSO:
CollaborationGroup
CollaborationGroupMember
CollaborationGroupRecord
Represents the records associated with Chatter groups.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert(),
undelete()
488
Standard Objects
CollaborationInvitation
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Chatter group.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Optional. The ID of the community that the group belongs to. Available from API version
34.0.
RecordId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. The ID of the record associated with the Chatter group.
CollaborationInvitation
Represents an invitation to join Chatter, either directly or through a group. This object is available in API version 21.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
Invitations are available if “Allow Invitations” is enabled for your organization.
Invitations are limited to your allowed domain(s) unless the invite is sent from a private group that allows customers. Allowed domains
are set by the administrator.
Invitations to customers are available if “Allow Customer Invitations” is enabled for your organization. Users must have the “Invite
Customers to Chatter” permission to send invitations to people outside their Chatter domain.
489
Standard Objects
CollaborationInvitation
Fields
Field
Details
InvitedUserEmail
Type
string
Properties
Create, Filter, Group, Sort
Description
The email address for the user invited to join Chatter. Label is Invited Email.
InvitedUserEmailNormalized Type
email
Properties
Filter, Group, Sort
Description
A normalized version of the InvitedUserEmail entered. Label is Invited Email
(Normalized).
InviterId
Type
reference
Properties
Filter, Group, Sort
Description
The person that initiated the invitation.
OptionalMessage
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
An optional message from the person sending the invitation to the person receiving it.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Used when the email address on the invitation is different than the one entered when the
invitee accepts the invitation.
SharedEntityId
Type
reference
490
Standard Objects
Field
CollaborationInvitation
Details
Properties
Create, Filter, Group, Sort
Description
ID of the user or group associated with this invitation.
• If the invitation is to join Chatter, the SharedEntityId is the ID of the User that
created the invitation. The invitee will auto-follow the inviter.
• If the invitation is to join a group within Chatter, the SharedEntityId is the ID of
the Chatter CollaborationGroup.
• To invite a customer, set SharedEntityId to the ID of the private
CollaborationGroup with Allow Customers turned on.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The status of the invitation. Possible values are:
• Sent
• Accepted
• Canceled
Usage
Use this object to create or delete (cancel) invitations to join Chatter. You can either invite a user to join Chatter directly or as part of a
CollaborationGroup.
Note: To invite someone to join a CollaborationGroup, you must be either the owner or a manager of the group or a Salesforce
system administrator.
The Salesforce system administrator doesn’t need to be a member of the group in order to send invitations using the API.
When the person accepts your CollaborationGroup invitation, they join the CollaborationGroup and Chatter as well.
Note: You can't send invitations to users of the organization the invite was sent from.
Invited users can view profiles, post on their feed, and join groups, but can't see your Salesforce data or records.
If your organization allows groups with customers, owners and managers of private groups with the “Allow Customers” setting, as well
as system administrators, can use this object to invite customers.
Java Samples
The following example shows how to send an invitation to join Chatter:
public void invitePeople(String inviterUserId, String invitedEmail) throws Exception {
CollaborationInvitation invitation = new CollaborationInvitation();
491
Standard Objects
CombinedAttachment
invitation.setSharedEntityId(inviterUserId);//pass the userId of the inviter
invitation.setInvitedUserEmail(invitedEmail);//email of the invited user
insert(invitation);
}
The following example shows how to send an invitation to a customer user from a group that allows customers:
public void inviteToGroup(String GroupName, String invitedEmail) throws Exception {
QueryResult qr = query("select id from collaborationgroup where name = '" +
GroupName); //pass the group name
String groupId = qr.getRecords()[0].getId();
CollaborationInvitation invitation = new CollaborationInvitation();
invitation.setSharedEntityId(groupId);//pass the groupId
invitation.setInvitedUserEmail(invitedEmail);//email of the invited user
insert(invitation);
}
Apex Samples
String emailAddress = 'bob@external.com';
CollaborationGroup chatterGroup = [SELECT Id
FROM CollaborationGroup
WHERE Name='All acme.com'
LIMIT 1];
CollaborationInvitation inv = New CollaborationInvitation();
inv.SharedEntityId = chatterGroup.id;
inv.InvitedUserEmail = emailAddress;
try {
Insert inv;
} catch(DMLException e){
System.debug('There was an error with the invite: '+e);
}
CombinedAttachment
This read-only object contains all notes, attachments, Google Docs, documents uploaded to libraries in Salesforce CRM Content, and
files added to Chatter that are associated with a record.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentSize
Type
int
492
Standard Objects
Field Name
CombinedAttachment
Details
Properties
Filter, Group, Nillable, Sort
Description
Size of the document in bytes.
ContentUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
URL for links and Google Docs. This field is set only for links and Google Docs,
and is one of the fields that determine the FileType.
This field is available in API version 31.0 and later.
ExternalDataSourceName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the external data source in which the document is stored. This field is
set only for external documents that are connected to Salesforce.
This field is available in API version 32.0 and later.
ExternalDataSourceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of external data source in which the document is stored. This field is set
only for external documents that are connected to Salesforce.
This field is available in API version 35.0 and later.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the document.
This field is available in API version 31.0 and later.
493
Standard Objects
CombinedAttachment
Field Name
Details
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the parent object.
RecordType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The parent object type.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file
owners with Collaborator access to the file can modify this field. Default is
Allowed, which means that new shares are allowed. When set to
Restricted, new shares are prevented without affecting existing shares.
This field is available in API versions 35.0 and later.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title of the attached file.
494
Standard Objects
Community (Zone)
Usage
Use this object to list all notes, attachments, documents uploaded to libraries in Salesforce CRM Content, and files added to Chatter for
a record, such as a related list on a detail page.
To determine if an object supports the CombinedAttachment object, call describeSObject() on the object. For example,
describeSObject('Account') returns all the child relationships of the Account object, including CombinedAttachment.
You can then query the CombinedAttachment child relationship.
SELECT Name, (SELECT Title FROM CombinedAttachments)
FROM Account
You can’t directly query CombinedAttachment.
Community (Zone)
Represents a zone that contains Idea or Question objects.
Note: Starting with the Summer ’13 release, Chatter Answers and Ideas “communities” have been renamed to “zones.” In API
version 28, the API object label has changed to Zone, but the API type is still Community.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
CanCreateCase
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether users can ask private questions in the zone using Chatter Answers.
DataCategoryName
Type
string
Properties
Filter, Nillable, Group, Sort
Description
The data category associated with the zone.
Description
Type
textarea
495
Standard Objects
Field
Community (Zone)
Details
Properties
Filter, Nillable, Sort
Description
Text description of the zone.
HasChatterService
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether Chatter Answers is available in the zone.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the zone is active or inactive. An idea or question can only be posted to
an active zone.
IsPublished
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the zone is available in portals.
Name
Type
string
Properties
Filter, Group, Sort
Description
The name of the zone.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Chatter community that this zone is associated with. This field is available only if
Salesforce Communities is enabled in your org. This field is available in API version 39.0 and
later.
496
Standard Objects
ConnectedApplication
Usage
Use this object to create a zone in Ideas, Chatter Answers, or Answers. Zones help organize ideas and questions into logical groups and
are shared by the Ideas, Answers, and Chatter Answers.
ConnectedApplication
Represents a connected app and its details; all fields are read-only.
Connected apps link client applications, third-party services, other Salesforce organizations, apps and resources to your organization.
The connected app configuration specifies authorization and security settings for these resources. This object exposes the settings for
a specified connected app.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
MobileSessionTimeout
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Length of time after which the system logs out inactive mobile users.
MobileStartUrl
Type
url
Properties
Filter, idLookup, Nillable, Sort
Description
Users are directed to this URL after they’ve authenticated when the app is accessed
from a mobile device.
Name
Type
string
Properties
Filter, Group, Sort
Description
The unique name for this object.
497
Standard Objects
Field Name
ConnectedApplication
Details
OptionsAllowAdminApprovedUsersOnly Type
boolean
Properties
Filter
Description
Indicates whether access is limited to users granted approval to use the connected
app by an administrator. Manage profiles for the app by editing each profile’s
Access list.
OptionsHasSessionLevelPolicy
Type
boolean
Properties
Filter
Description
Specifies whether the connected app requires a High Assurance level session.
OptionsRefreshTokenValidityMetric Type
boolean
Properties
Filter
Description
Specifies whether the refresh token validity is based on duration or inactivity. If
true, the token validity is measured based on the last use of the token;
otherwise, it is based on the token duration.
PinLength
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
For mobile apps, this is the PIN length requirement for users of the connected
app.Valid values are 5, 6, 7, 8 or 9.
RefreshTokenValidityPeriod
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The duration of an authorization token until it expires in hours, months or days
as set in the connected app management page.
498
Standard Objects
Contact
Field Name
Details
StartUrl
Type
url
Properties
Filter, Nillable, Sort
Description
If the app is not accessed from a mobile device, users are directed to this URL
after they’ve authenticated.
Contact
Represents a contact, which is an individual associated with an account.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), merge(),
query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Customer Portal users can access only portal-enabled contacts.
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account that is the parent of this contact.
We recommend that you only update up to 50 contacts simultaneously when changing the
accounts on contacts enabled for a Customer Portal or partner portal. We also recommend
that you make this update during times outside of your organization's business hours.
AssistantName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
499
Standard Objects
Field
Contact
Details
Description
The name of the assistant.
AssistantPhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The telephone number of the assistant.
Birthdate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The birthdate of the contact.
The year portion of the Birthdate field is ignored in filter criteria, including report filters,
list view filters, and SOQL queries. For example, the following SOQL query returns contacts
with birthdays later in the year than today:
SELECT Name, Birthdate
FROM Contact
WHERE Birthdate > TODAY
CanAllowPortalSelfReg
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether this contact can self-register for your organization's Customer Portal
(true) or not (false).
CleanStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the record’s clean status as compared with Data.com. Values are: Matched,
Different, Acknowledged, NotFound, Inactive, Pending, SelectMatch,
or Skipped.
Several values for CleanStatus display with different labels on the contact record detail
page.
500
Standard Objects
Field
Contact
Details
• Matched displays as In Sync
• Acknowledged displays as Reviewed
• Pending displays as Not Compared
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
Department
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The department of the contact.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A description of the contact. Label is Contact Description. Limit: 32 KB.
DoNotCall
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
501
Standard Objects
Field
Contact
Details
Description
Indicates that the contact does not wish to be called.
Email
Type
email
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
Email address for the contact.
EmailBouncedDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the contact bounces, the date and
time the bounce occurred.
EmailBouncedReason
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the contact bounces, the reason
the bounce occurred.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Fax number for the contact. Label is Business Phone.
FirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
First name of the contact. Maximum size is 40 characters.
HasOptedOutOfEmail
Type
boolean
502
Standard Objects
Field
Contact
Details
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the contact would prefer not to receive email from Salesforce (true) or
not (false). Label is Email Opt Out.
HasOptedOutOfFax
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates that the contact does not wish to receive faxes.
HomePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Home telephone number for the contact.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsEmailBounced
Type
boolean
Properties
Filter, Group, Sort
Description
If bounce management is activated and an email is sent to a contact, indicates whether the
email bounced (true) or not (false).
IsPersonAccount
Type
boolean
Properties
Defaulted on create, Filter
503
Standard Objects
Field
Contact
Details
Description
Read only. Label is Is Person Account. Indicates whether this account has a record type of
Person Account (true) or not (false).
Jigsaw
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
References the ID of a company in Data.com. If an account has a value in this field, it means
that the account was imported from Data.com. If the field value is null, the account was
not imported from Data.com. Maximum size is 20 characters. Available in API version 22.0
and later. Label is Data.com Key.
Important: The Jigsaw field is exposed in the API to support troubleshooting for
import errors and reimporting of corrected data. Do not modify this value.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastCURequestDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The last date that a Stay-in-Touch request was sent to the contact.
LastCUUpdateDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The last time a Stay-in-Touch update was processed for the contact.
LastName
Type
string
504
Standard Objects
Field
Contact
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. Last name of the contact. Maximum size is 80 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The source of the lead.
MailingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the mailing address. Read-only. See Address Compound Fields for
details on compound address fields.
• MailingCity
• MailingState
• MailingCountry
• MailingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the mailing address.
505
Standard Objects
Contact
Field
Details
• MailingStateCode
Type
picklist
• MailingCountryCode
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO codes for the mailing address’s state and country.
MailingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address for mailing address.
MailingGeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the mailing address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
MailingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with MailingLongitude to specify the precise geolocation of a mailing address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
MailingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with MailingLatitude to specify the precise geolocation of a mailing address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
MasterRecordId
Type
reference
506
Standard Objects
Field
Contact
Details
Properties
Filter, Group, Nillable, Sort
Description
If this object was deleted as the result of a merge, this field contains the ID of the record that
was kept. If this object was deleted for any other reason, or has not been deleted, the value
is null.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Middle name of the contact. Maximum size is 40 characters. Contact Salesforce Customer
Support to enable this field.
MobilePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contact’s mobile phone number.
Name
Type
string
Properties
Filter, Group, Sort
Description
Concatenation of FirstName, MiddleName, LastName, and Suffix. Maximum
size is 121 characters.
OtherAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the other address. Read-only. See Address Compound Fields for
details on compound address fields.
• OtherCity
• OtherCountry
• OtherPostalCode
• OtherState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
507
Standard Objects
Field
Contact
Details
Description
Details for alternate address.
• OtherCountryCode
• OtherStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO codes for the alternate address’s state and country.
OtherGeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the other address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
OtherLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with OtherLongitude to specify the precise geolocation of an alternate address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
OtherLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with OtherLatitude to specify the precise geolocation of an alternate address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
OtherPhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Telephone for alternate address.
508
Standard Objects
Contact
Field
Details
OtherStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street for alternate address.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the owner of the account associated with this contact.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Telephone number for the contact. Label is Business Phone.
PhotoUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
Path to be combined with the URL of a Salesforce instance (for example,
https://yourInstance.salesforce.com/) to generate a URL to request the social network
profile image associated with the contact. Generated URL returns an HTTP redirect (code
302) to the social network profile image for the contact.
Blank if Social Accounts and Contacts isn't enabled for the organization or if Social Accounts
and Contacts is disabled for the requesting user.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
509
Standard Objects
Contact
Field
Details
ReportsToId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
This field is not visible if IsPersonAccount is true.
Salutation
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr.
or Mrs.
Suffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name suffix of the contact. Maximum size is 40 characters. Contact Salesforce Customer
Support to enable this field.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Title of the contact such as CEO or Vice President.
Note: If you are importing Contact data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use this object to manage individuals who are associated with an Account in your organization. You can create, query, delete, or update
any Attachment associated with a contact.
510
Standard Objects
ContactCleanInfo
Create or update contacts by converting a Lead with the convertLead() call.
SEE ALSO:
Object Basics
ContactHistory
ContactCleanInfo
Stores the metadata Data.com Clean uses to determine a contact record’s clean status. Helps you automate the cleaning or related
processing of contact records. ContactCleanInfo includes a number of bit vector fields.
Contact Clean Info provides a snapshot of the data in your Salesforce contact record and its matched Data.com record at the time the
Salesforce record was cleaned.
Contact Clean Info includes a number of bit vector fields, whose component fields each correspond to individual object fields and provide
related data or status information about those fields. For example, the bit vector field IsDifferent has an IsDifferentEmail
field. If the IsDifferentEmail field’s value is False, that means the Email field value is the same on the Salesforce contact
record and its matched Data.com record.
ContactCleanInfo bit vector fields include:
• CleanedBy indicates who (a user) or what (a Clean job) cleaned the contact record.
• IsDifferent indicates whether or not a field on the contact record has a value that differs from the corresponding field on the
matched Data.com record.
• IsFlaggedWrong indicates whether or not a field on the contact record has a value that is flagged as wrong to Data.com.
• IsReviewed indicates whether or not a field on the contact record is in a Reviewed state, which means that the value was
reviewed but not accepted.
Fields
Field Name
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields
for details on compound address fields.
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
511
Standard Objects
ContactCleanInfo
Field Name
Details
CleanedByJob
Type
boolean
Properties
Filter
Description
Indicates whether the contact record was cleaned by a Data.com Clean job (true)
or not (false).
CleanedByUser
Type
boolean
Properties
Filter
Description
Indicates whether the contact record was cleaned by a Salesforce user (true)
or not (false).
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
The unique, system-generated ID assigned when the contact record was created.
ContactStatusDataDotCom
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The status of the contact per Data.com. Values are: Contact is Active
per Data.com, Phone is Wrong per Data.com , Email is
Wrong per Data.com, Phone and Email are Wrong per
Data.com, Contact Not at Company per Data.com, Contact
is Inactive per Data.com, Company this contact
belongs to is out of business per Data.com, Company
this contact belongs to never existed per Data.com
or Email address is invalid per Data.com.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
512
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Details for the billing address of the contact.
DataDotComID
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ID Data.com maintains for the contact.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
The email address for the contact.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s first name.
IsDifferentCity
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s City field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountry
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Country field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountryCode
Type
boolean
513
Standard Objects
Field Name
ContactCleanInfo
Details
Properties
Filter
Description
Indicates whether the contact’s Country Code field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentEmail
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Email field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentFirstName
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s First Name field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentLastName
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Last Name field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPhone
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Phone field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPostalCode
Type
boolean
Properties
Filter
514
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Postal Code field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentState
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s State field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStateCode
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s State Code field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStreet
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Street field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentTitle
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Title field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsFlaggedWrongAddress
Type
boolean
Properties
Filter, Update
515
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Address field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongEmail
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Email field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Name field value is flagged as wrong to Data.com
(true) or not (false).
IsFlaggedWrongPhone
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Phone field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongTitle
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Title field value is flagged as wrong to
Data.com (true) or not (false).
IsInactive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
516
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact has been reported to Data.com as Inactive
(true) or not (false).
IsReviewedAddress
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Address field value is in a Reviewed state
(true) or not (false).
IsReviewedEmail
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Email field value is in a Reviewed state
(true) or not (false).
IsReviewedName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Name field value is in a Reviewed state
(true) or not (false).
IsReviewedPhone
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Phone field value is in a Reviewed state
(true) or not (false).
IsReviewedTitle
Type
boolean
Properties
Filter, Update
517
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Title field value is in a Reviewed state
(true) or not (false).
LastMatchedDate
Type
dateTime
Properties
Filter, Sort
Description
The date the contact record was last matched and linked to a Data.com record.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s last name.
LastStatusChangedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of who or what last changed the record’s Clean Status field value:
a Salesforce user or a Clean job.
LastStatusChangedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date on which the record’s Clean Status field value was last changed.
Latitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Longitude to specify the precise geolocation of a billing address.
Data not currently provided.
518
Standard Objects
ContactCleanInfo
Field Name
Details
Longitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Latitude to specify the precise geolocation of a billing address.
Data not currently provided.
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
Field label is Contact Clean Info Name. The name of the contact. Maximum
size is 255 characters.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number for the contact.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
Street
Type
textarea
Properties
Filter, Group, Nillable, Sort
519
Standard Objects
Field Name
ContactFeed
Details
Description
Details for the billing address of the contact.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s title.
Usage
Developers can create triggers that read the Contact Clean Info fields to help automate the cleaning or related processing of contact
records.
Create a customized set of Title field values. Use triggers to map values from fields on imported or cleaned records onto a standard
set of values.
ContactFeed
Represents a single feed item in the feed on a contact record detail page. This object is available in API version 18.0 and later.
A contact feed shows recent changes to a contact record for any fields that are tracked in feeds, and posts and comments about the
record. It is a useful way to stay up-to-date with changes made to Contact records.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Contact object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
520
Standard Objects
ContactFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of ContactFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
521
Standard Objects
Field
ContactFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
522
Standard Objects
Field
ContactFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
481
Standard Objects
Field
CollaborationGroupFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the group that is tracked in the feed. The feed is displayed on the detail page for this
record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
482
Standard Objects
CollaborationGroupFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and TextPost, don’t
create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
483
Standard Objects
Field
CollaborationGroupFeed
Details
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
484
Standard Objects
Field
CollaborationGroupMember
Details
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a group.
SEE ALSO:
CollaborationGroup
CollaborationGroupMember
NewsFeed
CollaborationGroupMember
Represents a member of a Chatter group. This object is available in API version 19.0 and later.
Supported Calls
create(), delete(), describeSObjects(), describeLayout(), query(), retrieve(), update()
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated CollaborationGroup.
CollaborationRole
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The role of a group member. Group owners and managers can change roles for members
of their groups. The valid values are:
• Standard—Indicates that a user is a group member. Members can post and comment
in the group.
485
Standard Objects
Field
CollaborationGroupMember
Details
• Admin—Indicates that a user is a group manager. Managers can post and comment,
change member roles, edit group settings, add and remove members, delete posts and
comments, and edit the group information field.
Note: To change the group owner, use the OwnerId field on the
CollaborationGroup object.
LastFeedAccessDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when a group member last accessed the group’s feed. The value is only
updated when a member explicitly consumes the group’s feed, not when the member sees
group posts in other feeds, like the profile feed.
MemberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the group member.
NotificationFrequency
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Required. The frequency at which Salesforce sends Chatter group email digests to this
member. Can only be set by the member or users with the “Modify All Data” permission.
The valid values are:
• D—Daily
• W—Weekly
• N—Never
• P—On every post
The default value is specified by the member in their Chatter email settings. In communities,
the Email on every post option is disabled once more than 10,000 members
choose this setting for the group. All members who had this option selected are automatically
switched to Daily digests.
486
Standard Objects
CollaborationGroupMemberRequest
Usage
Use this object to view, create, and delete Chatter group members. You must be a group owner or manager to create members for
private Chatter groups.
SEE ALSO:
CollaborationGroup
CollaborationGroupFeed
CollaborationGroupMemberRequest
CollaborationGroupMemberRequest
Represents a request to join a private Chatter group. This object is available in API version 21.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the private Chatter group.
RequesterId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user requesting to join the group; must be the ID of the context user.
ResponseMessage
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
Optional message to be included in the notification email when Status is Declined.
487
Standard Objects
CollaborationGroupRecord
Field
Details
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort, Update
Description
The status of the request. Available values are:
• Accepted
• Declined
• Pending
Usage
This object represents a request to join a private Chatter group, and can be used to accept or decline requests to join private groups you
own or manage. On create, an email is sent to the owner and managers of the private group to be accepted or declined. When the
Status is Accepted or Declined, an email is sent to notify the requester. When the Status is Declined, a
ResponseMessage is optionally included to provide additional details.
Note the following when working with requests:
• Users with the “Modify All Data” or “View All Data” permission can view records for all groups, regardless of membership.
• A user can be a member of 300 groups. Requests to join groups count against this limit.
• Status can't be specified on create.
• You can only update a request when the Status is Pending.
• You can't delete or update a request with a Status of Accepted or Declined.
SEE ALSO:
CollaborationGroup
CollaborationGroupMember
CollaborationGroupRecord
Represents the records associated with Chatter groups.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert(),
undelete()
488
Standard Objects
CollaborationInvitation
Fields
Field
Details
CollaborationGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Chatter group.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Optional. The ID of the community that the group belongs to. Available from API version
34.0.
RecordId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. The ID of the record associated with the Chatter group.
CollaborationInvitation
Represents an invitation to join Chatter, either directly or through a group. This object is available in API version 21.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
Invitations are available if “Allow Invitations” is enabled for your organization.
Invitations are limited to your allowed domain(s) unless the invite is sent from a private group that allows customers. Allowed domains
are set by the administrator.
Invitations to customers are available if “Allow Customer Invitations” is enabled for your organization. Users must have the “Invite
Customers to Chatter” permission to send invitations to people outside their Chatter domain.
489
Standard Objects
CollaborationInvitation
Fields
Field
Details
InvitedUserEmail
Type
string
Properties
Create, Filter, Group, Sort
Description
The email address for the user invited to join Chatter. Label is Invited Email.
InvitedUserEmailNormalized Type
email
Properties
Filter, Group, Sort
Description
A normalized version of the InvitedUserEmail entered. Label is Invited Email
(Normalized).
InviterId
Type
reference
Properties
Filter, Group, Sort
Description
The person that initiated the invitation.
OptionalMessage
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
An optional message from the person sending the invitation to the person receiving it.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Used when the email address on the invitation is different than the one entered when the
invitee accepts the invitation.
SharedEntityId
Type
reference
490
Standard Objects
Field
CollaborationInvitation
Details
Properties
Create, Filter, Group, Sort
Description
ID of the user or group associated with this invitation.
• If the invitation is to join Chatter, the SharedEntityId is the ID of the User that
created the invitation. The invitee will auto-follow the inviter.
• If the invitation is to join a group within Chatter, the SharedEntityId is the ID of
the Chatter CollaborationGroup.
• To invite a customer, set SharedEntityId to the ID of the private
CollaborationGroup with Allow Customers turned on.
Status
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The status of the invitation. Possible values are:
• Sent
• Accepted
• Canceled
Usage
Use this object to create or delete (cancel) invitations to join Chatter. You can either invite a user to join Chatter directly or as part of a
CollaborationGroup.
Note: To invite someone to join a CollaborationGroup, you must be either the owner or a manager of the group or a Salesforce
system administrator.
The Salesforce system administrator doesn’t need to be a member of the group in order to send invitations using the API.
When the person accepts your CollaborationGroup invitation, they join the CollaborationGroup and Chatter as well.
Note: You can't send invitations to users of the organization the invite was sent from.
Invited users can view profiles, post on their feed, and join groups, but can't see your Salesforce data or records.
If your organization allows groups with customers, owners and managers of private groups with the “Allow Customers” setting, as well
as system administrators, can use this object to invite customers.
Java Samples
The following example shows how to send an invitation to join Chatter:
public void invitePeople(String inviterUserId, String invitedEmail) throws Exception {
CollaborationInvitation invitation = new CollaborationInvitation();
491
Standard Objects
CombinedAttachment
invitation.setSharedEntityId(inviterUserId);//pass the userId of the inviter
invitation.setInvitedUserEmail(invitedEmail);//email of the invited user
insert(invitation);
}
The following example shows how to send an invitation to a customer user from a group that allows customers:
public void inviteToGroup(String GroupName, String invitedEmail) throws Exception {
QueryResult qr = query("select id from collaborationgroup where name = '" +
GroupName); //pass the group name
String groupId = qr.getRecords()[0].getId();
CollaborationInvitation invitation = new CollaborationInvitation();
invitation.setSharedEntityId(groupId);//pass the groupId
invitation.setInvitedUserEmail(invitedEmail);//email of the invited user
insert(invitation);
}
Apex Samples
String emailAddress = 'bob@external.com';
CollaborationGroup chatterGroup = [SELECT Id
FROM CollaborationGroup
WHERE Name='All acme.com'
LIMIT 1];
CollaborationInvitation inv = New CollaborationInvitation();
inv.SharedEntityId = chatterGroup.id;
inv.InvitedUserEmail = emailAddress;
try {
Insert inv;
} catch(DMLException e){
System.debug('There was an error with the invite: '+e);
}
CombinedAttachment
This read-only object contains all notes, attachments, Google Docs, documents uploaded to libraries in Salesforce CRM Content, and
files added to Chatter that are associated with a record.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentSize
Type
int
492
Standard Objects
Field Name
CombinedAttachment
Details
Properties
Filter, Group, Nillable, Sort
Description
Size of the document in bytes.
ContentUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
URL for links and Google Docs. This field is set only for links and Google Docs,
and is one of the fields that determine the FileType.
This field is available in API version 31.0 and later.
ExternalDataSourceName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the external data source in which the document is stored. This field is
set only for external documents that are connected to Salesforce.
This field is available in API version 32.0 and later.
ExternalDataSourceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Type of external data source in which the document is stored. This field is set
only for external documents that are connected to Salesforce.
This field is available in API version 35.0 and later.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the document.
This field is available in API version 31.0 and later.
493
Standard Objects
CombinedAttachment
Field Name
Details
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the parent object.
RecordType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The parent object type.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file
owners with Collaborator access to the file can modify this field. Default is
Allowed, which means that new shares are allowed. When set to
Restricted, new shares are prevented without affecting existing shares.
This field is available in API versions 35.0 and later.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title of the attached file.
494
Standard Objects
Community (Zone)
Usage
Use this object to list all notes, attachments, documents uploaded to libraries in Salesforce CRM Content, and files added to Chatter for
a record, such as a related list on a detail page.
To determine if an object supports the CombinedAttachment object, call describeSObject() on the object. For example,
describeSObject('Account') returns all the child relationships of the Account object, including CombinedAttachment.
You can then query the CombinedAttachment child relationship.
SELECT Name, (SELECT Title FROM CombinedAttachments)
FROM Account
You can’t directly query CombinedAttachment.
Community (Zone)
Represents a zone that contains Idea or Question objects.
Note: Starting with the Summer ’13 release, Chatter Answers and Ideas “communities” have been renamed to “zones.” In API
version 28, the API object label has changed to Zone, but the API type is still Community.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
CanCreateCase
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether users can ask private questions in the zone using Chatter Answers.
DataCategoryName
Type
string
Properties
Filter, Nillable, Group, Sort
Description
The data category associated with the zone.
Description
Type
textarea
495
Standard Objects
Field
Community (Zone)
Details
Properties
Filter, Nillable, Sort
Description
Text description of the zone.
HasChatterService
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether Chatter Answers is available in the zone.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the zone is active or inactive. An idea or question can only be posted to
an active zone.
IsPublished
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the zone is available in portals.
Name
Type
string
Properties
Filter, Group, Sort
Description
The name of the zone.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Chatter community that this zone is associated with. This field is available only if
Salesforce Communities is enabled in your org. This field is available in API version 39.0 and
later.
496
Standard Objects
ConnectedApplication
Usage
Use this object to create a zone in Ideas, Chatter Answers, or Answers. Zones help organize ideas and questions into logical groups and
are shared by the Ideas, Answers, and Chatter Answers.
ConnectedApplication
Represents a connected app and its details; all fields are read-only.
Connected apps link client applications, third-party services, other Salesforce organizations, apps and resources to your organization.
The connected app configuration specifies authorization and security settings for these resources. This object exposes the settings for
a specified connected app.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
MobileSessionTimeout
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Length of time after which the system logs out inactive mobile users.
MobileStartUrl
Type
url
Properties
Filter, idLookup, Nillable, Sort
Description
Users are directed to this URL after they’ve authenticated when the app is accessed
from a mobile device.
Name
Type
string
Properties
Filter, Group, Sort
Description
The unique name for this object.
497
Standard Objects
Field Name
ConnectedApplication
Details
OptionsAllowAdminApprovedUsersOnly Type
boolean
Properties
Filter
Description
Indicates whether access is limited to users granted approval to use the connected
app by an administrator. Manage profiles for the app by editing each profile’s
Access list.
OptionsHasSessionLevelPolicy
Type
boolean
Properties
Filter
Description
Specifies whether the connected app requires a High Assurance level session.
OptionsRefreshTokenValidityMetric Type
boolean
Properties
Filter
Description
Specifies whether the refresh token validity is based on duration or inactivity. If
true, the token validity is measured based on the last use of the token;
otherwise, it is based on the token duration.
PinLength
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
For mobile apps, this is the PIN length requirement for users of the connected
app.Valid values are 5, 6, 7, 8 or 9.
RefreshTokenValidityPeriod
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The duration of an authorization token until it expires in hours, months or days
as set in the connected app management page.
498
Standard Objects
Contact
Field Name
Details
StartUrl
Type
url
Properties
Filter, Nillable, Sort
Description
If the app is not accessed from a mobile device, users are directed to this URL
after they’ve authenticated.
Contact
Represents a contact, which is an individual associated with an account.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), merge(),
query(), retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Customer Portal users can access only portal-enabled contacts.
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account that is the parent of this contact.
We recommend that you only update up to 50 contacts simultaneously when changing the
accounts on contacts enabled for a Customer Portal or partner portal. We also recommend
that you make this update during times outside of your organization's business hours.
AssistantName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
499
Standard Objects
Field
Contact
Details
Description
The name of the assistant.
AssistantPhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The telephone number of the assistant.
Birthdate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The birthdate of the contact.
The year portion of the Birthdate field is ignored in filter criteria, including report filters,
list view filters, and SOQL queries. For example, the following SOQL query returns contacts
with birthdays later in the year than today:
SELECT Name, Birthdate
FROM Contact
WHERE Birthdate > TODAY
CanAllowPortalSelfReg
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether this contact can self-register for your organization's Customer Portal
(true) or not (false).
CleanStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the record’s clean status as compared with Data.com. Values are: Matched,
Different, Acknowledged, NotFound, Inactive, Pending, SelectMatch,
or Skipped.
Several values for CleanStatus display with different labels on the contact record detail
page.
500
Standard Objects
Field
Contact
Details
• Matched displays as In Sync
• Acknowledged displays as Reviewed
• Pending displays as Not Compared
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
Department
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The department of the contact.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A description of the contact. Label is Contact Description. Limit: 32 KB.
DoNotCall
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
501
Standard Objects
Field
Contact
Details
Description
Indicates that the contact does not wish to be called.
Email
Type
email
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
Email address for the contact.
EmailBouncedDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the contact bounces, the date and
time the bounce occurred.
EmailBouncedReason
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the contact bounces, the reason
the bounce occurred.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Fax number for the contact. Label is Business Phone.
FirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
First name of the contact. Maximum size is 40 characters.
HasOptedOutOfEmail
Type
boolean
502
Standard Objects
Field
Contact
Details
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the contact would prefer not to receive email from Salesforce (true) or
not (false). Label is Email Opt Out.
HasOptedOutOfFax
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates that the contact does not wish to receive faxes.
HomePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Home telephone number for the contact.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsEmailBounced
Type
boolean
Properties
Filter, Group, Sort
Description
If bounce management is activated and an email is sent to a contact, indicates whether the
email bounced (true) or not (false).
IsPersonAccount
Type
boolean
Properties
Defaulted on create, Filter
503
Standard Objects
Field
Contact
Details
Description
Read only. Label is Is Person Account. Indicates whether this account has a record type of
Person Account (true) or not (false).
Jigsaw
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
References the ID of a company in Data.com. If an account has a value in this field, it means
that the account was imported from Data.com. If the field value is null, the account was
not imported from Data.com. Maximum size is 20 characters. Available in API version 22.0
and later. Label is Data.com Key.
Important: The Jigsaw field is exposed in the API to support troubleshooting for
import errors and reimporting of corrected data. Do not modify this value.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastCURequestDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The last date that a Stay-in-Touch request was sent to the contact.
LastCUUpdateDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The last time a Stay-in-Touch update was processed for the contact.
LastName
Type
string
504
Standard Objects
Field
Contact
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. Last name of the contact. Maximum size is 80 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The source of the lead.
MailingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the mailing address. Read-only. See Address Compound Fields for
details on compound address fields.
• MailingCity
• MailingState
• MailingCountry
• MailingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the mailing address.
505
Standard Objects
Contact
Field
Details
• MailingStateCode
Type
picklist
• MailingCountryCode
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO codes for the mailing address’s state and country.
MailingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address for mailing address.
MailingGeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the mailing address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
MailingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with MailingLongitude to specify the precise geolocation of a mailing address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
MailingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with MailingLatitude to specify the precise geolocation of a mailing address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
MasterRecordId
Type
reference
506
Standard Objects
Field
Contact
Details
Properties
Filter, Group, Nillable, Sort
Description
If this object was deleted as the result of a merge, this field contains the ID of the record that
was kept. If this object was deleted for any other reason, or has not been deleted, the value
is null.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Middle name of the contact. Maximum size is 40 characters. Contact Salesforce Customer
Support to enable this field.
MobilePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contact’s mobile phone number.
Name
Type
string
Properties
Filter, Group, Sort
Description
Concatenation of FirstName, MiddleName, LastName, and Suffix. Maximum
size is 121 characters.
OtherAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the other address. Read-only. See Address Compound Fields for
details on compound address fields.
• OtherCity
• OtherCountry
• OtherPostalCode
• OtherState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
507
Standard Objects
Field
Contact
Details
Description
Details for alternate address.
• OtherCountryCode
• OtherStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO codes for the alternate address’s state and country.
OtherGeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
Description
Accuracy level of the geocode for the other address. See Compound Field Considerations
and Limitations for details on geolocation compound fields.
OtherLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with OtherLongitude to specify the precise geolocation of an alternate address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
OtherLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with OtherLatitude to specify the precise geolocation of an alternate address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places. See
Compound Field Considerations and Limitations for details on geolocation compound fields.
OtherPhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Telephone for alternate address.
508
Standard Objects
Contact
Field
Details
OtherStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street for alternate address.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the owner of the account associated with this contact.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Telephone number for the contact. Label is Business Phone.
PhotoUrl
Type
url
Properties
Filter, Group, Nillable, Sort
Description
Path to be combined with the URL of a Salesforce instance (for example,
https://yourInstance.salesforce.com/) to generate a URL to request the social network
profile image associated with the contact. Generated URL returns an HTTP redirect (code
302) to the social network profile image for the contact.
Blank if Social Accounts and Contacts isn't enabled for the organization or if Social Accounts
and Contacts is disabled for the requesting user.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
509
Standard Objects
Contact
Field
Details
ReportsToId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
This field is not visible if IsPersonAccount is true.
Salutation
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr.
or Mrs.
Suffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name suffix of the contact. Maximum size is 40 characters. Contact Salesforce Customer
Support to enable this field.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Title of the contact such as CEO or Vice President.
Note: If you are importing Contact data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use this object to manage individuals who are associated with an Account in your organization. You can create, query, delete, or update
any Attachment associated with a contact.
510
Standard Objects
ContactCleanInfo
Create or update contacts by converting a Lead with the convertLead() call.
SEE ALSO:
Object Basics
ContactHistory
ContactCleanInfo
Stores the metadata Data.com Clean uses to determine a contact record’s clean status. Helps you automate the cleaning or related
processing of contact records. ContactCleanInfo includes a number of bit vector fields.
Contact Clean Info provides a snapshot of the data in your Salesforce contact record and its matched Data.com record at the time the
Salesforce record was cleaned.
Contact Clean Info includes a number of bit vector fields, whose component fields each correspond to individual object fields and provide
related data or status information about those fields. For example, the bit vector field IsDifferent has an IsDifferentEmail
field. If the IsDifferentEmail field’s value is False, that means the Email field value is the same on the Salesforce contact
record and its matched Data.com record.
ContactCleanInfo bit vector fields include:
• CleanedBy indicates who (a user) or what (a Clean job) cleaned the contact record.
• IsDifferent indicates whether or not a field on the contact record has a value that differs from the corresponding field on the
matched Data.com record.
• IsFlaggedWrong indicates whether or not a field on the contact record has a value that is flagged as wrong to Data.com.
• IsReviewed indicates whether or not a field on the contact record is in a Reviewed state, which means that the value was
reviewed but not accepted.
Fields
Field Name
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields
for details on compound address fields.
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
511
Standard Objects
ContactCleanInfo
Field Name
Details
CleanedByJob
Type
boolean
Properties
Filter
Description
Indicates whether the contact record was cleaned by a Data.com Clean job (true)
or not (false).
CleanedByUser
Type
boolean
Properties
Filter
Description
Indicates whether the contact record was cleaned by a Salesforce user (true)
or not (false).
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
The unique, system-generated ID assigned when the contact record was created.
ContactStatusDataDotCom
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The status of the contact per Data.com. Values are: Contact is Active
per Data.com, Phone is Wrong per Data.com , Email is
Wrong per Data.com, Phone and Email are Wrong per
Data.com, Contact Not at Company per Data.com, Contact
is Inactive per Data.com, Company this contact
belongs to is out of business per Data.com, Company
this contact belongs to never existed per Data.com
or Email address is invalid per Data.com.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
512
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Details for the billing address of the contact.
DataDotComID
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ID Data.com maintains for the contact.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
The email address for the contact.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s first name.
IsDifferentCity
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s City field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountry
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Country field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentCountryCode
Type
boolean
513
Standard Objects
Field Name
ContactCleanInfo
Details
Properties
Filter
Description
Indicates whether the contact’s Country Code field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentEmail
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Email field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentFirstName
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s First Name field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentLastName
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Last Name field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPhone
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Phone field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentPostalCode
Type
boolean
Properties
Filter
514
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Postal Code field value is different from
the corresponding value on its matched Data.com record (true) or not (false).
IsDifferentState
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s State field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStateCode
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s State Code field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentStreet
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Street field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsDifferentTitle
Type
boolean
Properties
Filter
Description
Indicates whether the contact’s Title field value is different from the
corresponding value on its matched Data.com record (true) or not (false).
IsFlaggedWrongAddress
Type
boolean
Properties
Filter, Update
515
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Address field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongEmail
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Email field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Name field value is flagged as wrong to Data.com
(true) or not (false).
IsFlaggedWrongPhone
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Phone field value is flagged as wrong to
Data.com (true) or not (false).
IsFlaggedWrongTitle
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Title field value is flagged as wrong to
Data.com (true) or not (false).
IsInactive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
516
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact has been reported to Data.com as Inactive
(true) or not (false).
IsReviewedAddress
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Address field value is in a Reviewed state
(true) or not (false).
IsReviewedEmail
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Email field value is in a Reviewed state
(true) or not (false).
IsReviewedName
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Name field value is in a Reviewed state
(true) or not (false).
IsReviewedPhone
Type
boolean
Properties
Filter, Update
Description
Indicates whether the contact’s Phone field value is in a Reviewed state
(true) or not (false).
IsReviewedTitle
Type
boolean
Properties
Filter, Update
517
Standard Objects
Field Name
ContactCleanInfo
Details
Description
Indicates whether the contact’s Title field value is in a Reviewed state
(true) or not (false).
LastMatchedDate
Type
dateTime
Properties
Filter, Sort
Description
The date the contact record was last matched and linked to a Data.com record.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s last name.
LastStatusChangedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of who or what last changed the record’s Clean Status field value:
a Salesforce user or a Clean job.
LastStatusChangedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date on which the record’s Clean Status field value was last changed.
Latitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Longitude to specify the precise geolocation of a billing address.
Data not currently provided.
518
Standard Objects
ContactCleanInfo
Field Name
Details
Longitude
Type
double
Properties
Filter, Nillable, Sort
Description
Used with Latitude to specify the precise geolocation of a billing address.
Data not currently provided.
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
Field label is Contact Clean Info Name. The name of the contact. Maximum
size is 255 characters.
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number for the contact.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Details for the billing address of the contact.
Street
Type
textarea
Properties
Filter, Group, Nillable, Sort
519
Standard Objects
Field Name
ContactFeed
Details
Description
Details for the billing address of the contact.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The contact’s title.
Usage
Developers can create triggers that read the Contact Clean Info fields to help automate the cleaning or related processing of contact
records.
Create a customized set of Title field values. Use triggers to map values from fields on imported or cleaned records onto a standard
set of values.
ContactFeed
Represents a single feed item in the feed on a contact record detail page. This object is available in API version 18.0 and later.
A contact feed shows recent changes to a contact record for any fields that are tracked in feeds, and posts and comments about the
record. It is a useful way to stay up-to-date with changes made to Contact records.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Contact object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
520
Standard Objects
ContactFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of ContactFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
521
Standard Objects
Field
ContactFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
522
Standard Objects
Field
ContactFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
523
Standard Objects
Field
ContactFeed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
524
Standard Objects
Field
ContactFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the contact record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
525
Standard Objects
ContactFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
526
Standard Objects
Field
ContactFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
527
Standard Objects
ContactHistory
Usage
Use this object to track changes for a contact record.
SEE ALSO:
Contact
EntitySubscription
NewsFeed
UserProfileFeed
ContactHistory
Represents the history of changes to the values in the fields of a contact. This object is available in versions 11.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contact. Label is Contact ID.
528
Standard Objects
ContactOwnerSharingRule
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contact.
This object respects field level security on the parent object.
SEE ALSO:
Contact
ContactOwnerSharingRule
Represents the rules for sharing a contact with a User other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ContactAccessLevel
Type
picklist
529
Standard Objects
Field
ContactOwnerSharingRule
Details
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group, UserRole, or
User for Contacts. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. A Contact owned by a User in the source Group
triggers the rule to give access.
530
Standard Objects
ContactShare
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for contacts.
SEE ALSO:
Contact
ContactShare
Metadata API Developer Guide: SharingRules
ContactShare
Represents a list of access levels to a Contact along with an explanation of the access level. For example, if you have access to a record
because you own it, the ContactAccessLevel is All and RowCause is Owner.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
531
Standard Objects
ContactShare
Fields
Field
Details
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contact associated with this sharing entry. This field can't be updated.
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to cases associated with the account Contact. The
possible values are:
• Read
• Edit
• All This value is not valid for create or update.
This field must be set to an access level that is higher than the organization’s default access
level for contacts.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). There are many possible values, including:
• Rule—The User or Group has access via a Contact sharing rule.
• ImplicitChild—The User or Group has access to the Contact via sharing access on
the associated Account.
532
Standard Objects
Field
ContactTag
Details
• Manual—The User or Group has access because a User with “All” access manually shared
the Contact with them.
• Owner—The User is the owner of the Contact.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Contact. This field can't be updated.
Usage
This object allows you to determine which users and groups can view or edit Contact records owned by other users.
SEE ALSO:
AccountShare
ContactTag
Associates a word or short phrase with a Contact.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
533
Standard Objects
Field Name
ContentAsset
Details
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
ContactTag stores the relationship between its parent TagDefinition and the Contact being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
ContentAsset
Represents a Salesforce file that has been converted to an asset file in a custom app inLightning Experience. Enables a Salesforce file to
be used for org setup and configuration purposes. Asset files can be packaged and referenced by other components. This object is
available in API version 38.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
534
Standard Objects
ContentAsset
Special Access Rules
• Only admin users can create, edit, or delete ContentAssets.
• It isn’t necessary to create asset files for regular, collaborative use of Salesforce Files. “Assetize” files only when they’re used in setup
and configuration situations.
• Neither the file (ContentDocument) nor the asset settings record (ContentAssets) can be deleted if the asset file is referenced by
another component.
• ContentAsset doesn’t support search or most recently used (MRU) lists.
• ContentAsset doesn’t support Apex triggers.
•
Fields
Field
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the document.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the asset file in the API. ContentAsset.DeveloperName:
• must be 40 characters or fewer
• must begin with a letter
• can contain only underscores and alphanumeric characters
• can’t include spaces
• can’t end with an underscore
• can’t contain 2 consecutive underscores
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
535
Standard Objects
Field
ContentDistribution
Details
Description
The language for this document. This field defaults to the user's language unless the org is
multi-language enabled. Specifies the language of the labels returned. The value must be a
valid user locale (language and country), such as “de_DE” or “en_GB”. For more information
on locales, see the Language field on the CategoryNodeLocalization object.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The master label for the asset file. This internal label doesn’t get translated.
NameSpacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
ContentDistribution
Represents information about sharing a document externally. This object is available in API version 32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), undelete(), update(), upsert()
Special Access Rules
• Salesforce CRM Content must be enabled to query shared documents. To query content deliveries, content deliveries must be
enabled.
• Users (including users with the “View All Data” permission) can query only the files that they have access to. If the file is managed
by a Content Library, the user must have “Deliver Content” enabled in the library permission definition and be a member of the
library. If the file isn’t managed by a Content Library, the user must have the “Enable Creation of Content Deliveries for Salesforce
Files” permission.
• Users can query the DistributionPublicUrl and Password fields only if they are the file owner, if the file is shared with
them, or if the RelatedRecordId specifies a record that the users can access.
536
Standard Objects
ContentDistribution
• If the shared document is deleted, the delete cascades to any associated ContentDistribution. The ContentDistribution is still queryable
by using the QueryAll verb.
• If the shared document is archived, the only fields that users can edit are ExpiryDate and PreferencesExpires.
• Customer Portal users can’t access this object.
• Chatter Free users can’t access this object.
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the shared document.
ContentVersionId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the shared document version.
DistributionPublicUrl
Type
string
Properties
Nillable, Sort
Description
URL of the link to the shared document.
ExpiryDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date when the shared document becomes inaccessible.
FirstViewDate
Type
dateTime
Properties
Filter, Nillable, Sort
537
Standard Objects
Field Name
ContentDistribution
Details
Description
Date when the shared document is first viewed.
LastViewDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date when the shared document was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the content delivery.
OwnerId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the user who owns the shared document.
Password
Type
string
Properties
Group, Nillable, Sort
Description
A password that allows access to a shared document.
PreferencesAllowOriginalDownload Type
boolean
Properties
Create, Filter, Update
Description
When true, the shared document can be downloaded as the file type that it
was uploaded as.
When false, download availability depends on whether a preview of the file
exists. If a preview exists, the file can’t be downloaded. If a preview doesn’t exist,
the file can still be downloaded.
538
Standard Objects
Field Name
ContentDistribution
Details
If the shared document is a link, it can’t be downloaded.
PreferencesAllowPDFDownload
Type
boolean
Properties
Create, Filter, Update
Description
When true, the shared document can be downloaded as a PDF if the original
file type is PDF or if a PDF preview has been generated.
PreferencesAllowViewInBrowser
Type
boolean
Properties
Create, Filter, Update
Description
When true, a preview of the shared document can be viewed in a Web browser.
PreferencesExpires
Type
boolean
Properties
Create, Filter, Update
Description
When true, access to the shared document expires on the date that’s specified
by ExpiryDate.
PreferencesLinkLatestVersion
Type
boolean
Properties
Create, Filter, Update
Description
When true, users see the most recent version of a shared document. When
false, users see the version of the document that’s shared, even if it isn’t the
most recent version.
PreferencesNotifyOnVisit
Type
boolean
Properties
Create, Filter, Update
Description
When true, the owner of the shared document is emailed the first time that
someone views or downloads the shared document.
539
Standard Objects
Field Name
ContentDistribution
Details
PreferencesNotifyRndtnComplete Type
boolean
Properties
Create, Filter, Update
Description
When true, the owner of the shared document is emailed when renditions of
the shared document that can be previewed in a Web browser are generated.
PreferencesPasswordRequired
Type
boolean
Properties
Create, Filter, Update
Description
When true, a password, specified by Password, is required to access the
shared document.
RelatedRecordId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the record, such as an Account, Campaign, or Case, that the shared document
is related to.
ViewCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times that the shared document has been viewed.
Usage
Use this object to create, update, delete, or query information about a document shared externally via a link or via Salesforce CRM Content
delivery.
The ContentDistribution object supports triggers before and after these operations: insert, update, delete. It supports triggers after
undelete.
Example: The VP of Marketing wants file authors to specify whether their files can be shared with external people using content
delivery. He also wants some files to have a password. You can add a custom field DeliveryPolicy on the ContentVersion
object. Make the custom field a picklist with the values, Allowed, Blocked, and Password required. Add the field to
540
Standard Objects
ContentDistributionView
the ContentVersion layout so that the user can set the delivery policy per file. Then, add an insert trigger for the ContentDistribution
object to enforce the rules based on the delivery policy set in the file.
Note: The ContentVersionId for ContentDistribution must be unique.
This trigger for the ContentDistribution object enforces the delivery policy rules for each file:
trigger deliveryPolicy on ContentDistribution (before insert) {
for (ContentDistribution cd : trigger.new) {
String versionId = DeliveryPolicyHelper.getContentVersionId(cd);
ContentVersion version = [select DeliveryPolicy__c from ContentVersion where
Id = :versionId];
String policy = version.DeliveryPolicy__c;
if (policy.equals('Blocked')) {
cd.addError('This file is not allowed to be delivered.');
} else if (policy.equals('Password required')){
if (!DeliveryPolicyHelper.requirePassword(cd)) {
cd.addError('To deliver this file, set a password.');
}
}
}
}
The trigger calls this helper class:
public class DeliveryPolicyHelper {
public static String getContentVersionId(ContentDistribution cd) {
if (cd.ContentVersionId != null) {
return cd.ContentVersionId;
} else {
String versionId = [select LatestPublishedVersionId from ContentDocument
where Id = :cd.ContentDocumentId].get(0).LatestPublishedVersionId;
return versionId;
}
}
public static boolean requirePassword(ContentDistribution cd) {
return cd.PreferencesPasswordRequired;
}
}
Important: Apex has a per organization limit of 10 concurrent requests that last longer than 5 seconds. A trigger that uploads
files can easily hit this limit.
ContentDistributionView
Represents information about views of a shared document. This read-only object is available in API version 32.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
541
Standard Objects
ContentDistributionView
Special Access Rules
• Salesforce CRM Content must be enabled to query shared documents. To query content deliveries, content deliveries must be
enabled.
• Users (including users with the “View All Data” permission) can query only the files that they have access to. If the file is managed
by a Content Library, the user must have “Deliver Content” enabled in the library permission definition and be a member of the
library. If the file isn’t managed by a Content Library, the user must have the “Enable Creation of Content Deliveries for Salesforce
Files” permission.
• If the shared document is deleted, the delete cascades to any associated ContentDistributionView. The ContentDistributionView is
still queryable by using the QueryAll verb.
• Customer Portal users can’t access this object.
• Chatter Free users can’t access this object.
Fields
Field Name
Details
DistributionId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the content delivery that the document is part of.
IsDownload
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if the shared document is downloaded; false if the shared document
is viewed.
IsInternal
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if the shared document is viewed by a user in the same organization;
false if viewed by an external user.
ParentViewId
Type
reference
Properties
Filter, Group, Nillable, Sort
542
Standard Objects
Field Name
ContentDocument
Details
Description
ID of this instance of accessing the shared document.
Usage
Use this read-only object to query information about users who are accessing shared documents.
ContentDocument
Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.This object is available in API
versions 17.0 and later for Salesforce CRM Content. This object is available in API version 21.0 and later for Salesforce Files.
The maximum number of documents that can be published is 10,000,000. Archived files count towards this limit and towards storage
usage limits.
• Contact Manager, Group, Professional, Enterprise, Unlimited, and Performance Edition customers can publish a maximum of 36,000
new versions per 24–hour period.
• Developer Edition and trial users can publish a maximum of 2,500 new versions per 24–hour period.
Supported Calls
delete(), describeLayout()describeSObjects(), query(), retrieve(), search(), undelete(),
update()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission in order to query content in libraries where
they have access.
• Users (including users with the “View All Data” permission) can only query files they have access to, including:
– All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions
(API version 17.0 and later).
– All Salesforce Files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version
21.0 and later).
• A Salesforce CRM Content document can be deleted if any of the following are true:
– The document is published into a personal library or is in the user's upload queue.
– The document is published into a public library, the user is a member of that library with the “Add Content” library privilege
enabled, and the user trying to delete the document is the owner.
– The document is published into a public library that has the “Delete Content” or “Manage Library” permission enabled, and the
user trying to delete the document is not the owner.
For API version 25.0 and later, you can change ownership of Salesforce Files and Salesforce CRM Content documents.
• The following must be true to change ownership of a Salesforce CRM Content document:
– The Salesforce CRM Content app must be enabled.
543
Standard Objects
ContentDocument
– The user who is becoming the owner of the document must have a Salesforce CRM Content feature license.
• A user can change ownership of a Salesforce CRM Content document or Salesforce file if any of the following are true:
– The user is the current owner, or has either the “Modify All Data” or "Manage Salesforce CRM Content” permission enabled.
– The user has the “Manage Library” permission enabled for the library containing the document.
Note:
– The user who is becoming the owner of the document must be a visible user who is active, but the original owner can be
inactive.
– A document's owner can be changed to a user who doesn’t have access to the library that contains the document. Library
administrators may need to give the new owner membership to the library.
Fields
Field
Details
ArchivedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user who archived the document.
This field is available in API version 24.0 and later.
ArchivedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
The date when the document was archived.
This field is available in API version 24.0 and later.
ContentAssetId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
If the ContentDocument is an asset file, this field points to the asset. For most entities, the
value of this field is null.
This field is available in API version 38.0 and later.
ContentModifiedDate
Type
dateTime
544
Standard Objects
Field
ContentDocument
Details
Properties
Filter, Nillable, Sort
Description
Date the document was modified.
ContentModifiedDate updates when, for example, the document is renamed or a
new document version is uploaded. When you’re uploading the first version of a document,
ContentModifiedDate can be set to the current time or any time in the past.
This field is available in API version 32.0 and later.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The size of the document in bytes.
This field is available in API version 31.0 and later.
Description
Type
textarea
Properties
Filter, Nillable, Sort
Description
A description of the document.
This field is available in API version 31.0 and later.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
545
Standard Objects
Field
ContentDocument
Details
Description
File extension of the document.
This field is available in API version 31.0 and later.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
This field is available in API version 31.0 and later.
IsArchived
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the document has been archived (true) or not (false).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LatestPublishedVersionId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the latest document version (ContentVersion).
546
Standard Objects
ContentDocument
Field
Details
OwnerId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the owner of this document.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the library that owns the document. Created automatically when inserting a
ContentVersion via the API for the first time.
This field is available in API version 24.0 and later when Salesforce CRM Content is enabled.
PublishStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Indicates if and how the document is published. Valid values are:
• P—The document is published to a public library and is visible to other users. Label is
Public.
• R—The document is published to a personal library and is not visible to other users.
Label is Personal Library.
• U—The document is not published because publishing was interrupted. Label is Upload
Interrupted.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file owners with
Collaborator access to the file can modify this field. Default is Allowed, which means that
new shares are allowed. When set to Restricted, new shares are prevented without
affecting existing shares.
This field is available in API versions 35.0 and later.
547
Standard Objects
ContentDocumentFeed
Field
Details
Title
Type
string
Properties
Filter, Group, Sort
Description
The title of a document.
Usage
• Use this object to retrieve, query, update, and delete the latest version of a document, but not a content pack, in a library or a
Salesforce file . Use the ContentVersion object to create, query, retrieve, search, edit, and update a specific version of a Salesforce
CRM Content document or Salesforce file.
• The query() call doesn’t return archived documents. The queryAll() call returns archived documents.
• You can’t add new versions of archived documents.
• To query a file that is shared only with a record, you must specify the content ID of the file.
• To create a document, create a new version via the ContentVersion object without setting the ContentDocumentId. This
automatically creates a parent document record. When adding a new version of the document, you must specify an existing
ContentDocumentId which initiates the revision process for the document. When the latest version is published, the title,
owner, and publish status fields are updated in the document.
• When you delete a document, all versions of that document are deleted, including ratings, comments, and tags.
• You can't create, edit, or delete content packs via the API.
Note: Content metadata, such as tags, custom fields, and content owners are tracked at the version level rather than at the
document level.
• If you query versions in the API, versions with a PublishStatus of Upload Interrupted are not returned.
• A document record is a container for multiple version records. You create a new version to add a document to the system. The new
version contains the actual file data which allows the document to have multiple versions. The version stores the body of the uploaded
document.
• Assign topics to ContentDocument using TopicAssignment in API version 37.0 or later.
SEE ALSO:
ContentDocumentFeed
ContentDocumentHistory
ContentVersion
ContentDocumentFeed
Represents a single feed item associated with ContentDocument. A content document feed shows these content document changes:
creating a ContentDocument file and uploading a new ContentDocument. This object is available in versions 20.0 and later.
548
Standard Objects
ContentDocumentFeed
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the ContentDocument object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of ContentDocumentFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ContentData
Type
base64
549
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost.The name of the file uploaded to the feed. Setting ContentFileName
automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
550
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
551
Standard Objects
Field
ContentDocumentFeed
Details
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
524
Standard Objects
Field
ContactFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the contact record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
525
Standard Objects
ContactFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
526
Standard Objects
Field
ContactFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
527
Standard Objects
ContactHistory
Usage
Use this object to track changes for a contact record.
SEE ALSO:
Contact
EntitySubscription
NewsFeed
UserProfileFeed
ContactHistory
Represents the history of changes to the values in the fields of a contact. This object is available in versions 11.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contact. Label is Contact ID.
528
Standard Objects
ContactOwnerSharingRule
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contact.
This object respects field level security on the parent object.
SEE ALSO:
Contact
ContactOwnerSharingRule
Represents the rules for sharing a contact with a User other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
ContactAccessLevel
Type
picklist
529
Standard Objects
Field
ContactOwnerSharingRule
Details
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of access granted to the target Group, UserRole, or
User for Contacts. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. A Contact owned by a User in the source Group
triggers the rule to give access.
530
Standard Objects
ContactShare
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
Usage
Use this object to manage the sharing rules for contacts.
SEE ALSO:
Contact
ContactShare
Metadata API Developer Guide: SharingRules
ContactShare
Represents a list of access levels to a Contact along with an explanation of the access level. For example, if you have access to a record
because you own it, the ContactAccessLevel is All and RowCause is Owner.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can't access this object.
531
Standard Objects
ContactShare
Fields
Field
Details
ContactId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contact associated with this sharing entry. This field can't be updated.
ContactAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to cases associated with the account Contact. The
possible values are:
• Read
• Edit
• All This value is not valid for create or update.
This field must be set to an access level that is higher than the organization’s default access
level for contacts.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default). There are many possible values, including:
• Rule—The User or Group has access via a Contact sharing rule.
• ImplicitChild—The User or Group has access to the Contact via sharing access on
the associated Account.
532
Standard Objects
Field
ContactTag
Details
• Manual—The User or Group has access because a User with “All” access manually shared
the Contact with them.
• Owner—The User is the owner of the Contact.
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Contact. This field can't be updated.
Usage
This object allows you to determine which users and groups can view or edit Contact records owned by other users.
SEE ALSO:
AccountShare
ContactTag
Associates a word or short phrase with a Contact.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
533
Standard Objects
Field Name
ContentAsset
Details
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
ContactTag stores the relationship between its parent TagDefinition and the Contact being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
ContentAsset
Represents a Salesforce file that has been converted to an asset file in a custom app inLightning Experience. Enables a Salesforce file to
be used for org setup and configuration purposes. Asset files can be packaged and referenced by other components. This object is
available in API version 38.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
534
Standard Objects
ContentAsset
Special Access Rules
• Only admin users can create, edit, or delete ContentAssets.
• It isn’t necessary to create asset files for regular, collaborative use of Salesforce Files. “Assetize” files only when they’re used in setup
and configuration situations.
• Neither the file (ContentDocument) nor the asset settings record (ContentAssets) can be deleted if the asset file is referenced by
another component.
• ContentAsset doesn’t support search or most recently used (MRU) lists.
• ContentAsset doesn’t support Apex triggers.
•
Fields
Field
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the document.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the asset file in the API. ContentAsset.DeveloperName:
• must be 40 characters or fewer
• must begin with a letter
• can contain only underscores and alphanumeric characters
• can’t include spaces
• can’t end with an underscore
• can’t contain 2 consecutive underscores
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
535
Standard Objects
Field
ContentDistribution
Details
Description
The language for this document. This field defaults to the user's language unless the org is
multi-language enabled. Specifies the language of the labels returned. The value must be a
valid user locale (language and country), such as “de_DE” or “en_GB”. For more information
on locales, see the Language field on the CategoryNodeLocalization object.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The master label for the asset file. This internal label doesn’t get translated.
NameSpacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
ContentDistribution
Represents information about sharing a document externally. This object is available in API version 32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), undelete(), update(), upsert()
Special Access Rules
• Salesforce CRM Content must be enabled to query shared documents. To query content deliveries, content deliveries must be
enabled.
• Users (including users with the “View All Data” permission) can query only the files that they have access to. If the file is managed
by a Content Library, the user must have “Deliver Content” enabled in the library permission definition and be a member of the
library. If the file isn’t managed by a Content Library, the user must have the “Enable Creation of Content Deliveries for Salesforce
Files” permission.
• Users can query the DistributionPublicUrl and Password fields only if they are the file owner, if the file is shared with
them, or if the RelatedRecordId specifies a record that the users can access.
536
Standard Objects
ContentDistribution
• If the shared document is deleted, the delete cascades to any associated ContentDistribution. The ContentDistribution is still queryable
by using the QueryAll verb.
• If the shared document is archived, the only fields that users can edit are ExpiryDate and PreferencesExpires.
• Customer Portal users can’t access this object.
• Chatter Free users can’t access this object.
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the shared document.
ContentVersionId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the shared document version.
DistributionPublicUrl
Type
string
Properties
Nillable, Sort
Description
URL of the link to the shared document.
ExpiryDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date when the shared document becomes inaccessible.
FirstViewDate
Type
dateTime
Properties
Filter, Nillable, Sort
537
Standard Objects
Field Name
ContentDistribution
Details
Description
Date when the shared document is first viewed.
LastViewDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date when the shared document was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the content delivery.
OwnerId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the user who owns the shared document.
Password
Type
string
Properties
Group, Nillable, Sort
Description
A password that allows access to a shared document.
PreferencesAllowOriginalDownload Type
boolean
Properties
Create, Filter, Update
Description
When true, the shared document can be downloaded as the file type that it
was uploaded as.
When false, download availability depends on whether a preview of the file
exists. If a preview exists, the file can’t be downloaded. If a preview doesn’t exist,
the file can still be downloaded.
538
Standard Objects
Field Name
ContentDistribution
Details
If the shared document is a link, it can’t be downloaded.
PreferencesAllowPDFDownload
Type
boolean
Properties
Create, Filter, Update
Description
When true, the shared document can be downloaded as a PDF if the original
file type is PDF or if a PDF preview has been generated.
PreferencesAllowViewInBrowser
Type
boolean
Properties
Create, Filter, Update
Description
When true, a preview of the shared document can be viewed in a Web browser.
PreferencesExpires
Type
boolean
Properties
Create, Filter, Update
Description
When true, access to the shared document expires on the date that’s specified
by ExpiryDate.
PreferencesLinkLatestVersion
Type
boolean
Properties
Create, Filter, Update
Description
When true, users see the most recent version of a shared document. When
false, users see the version of the document that’s shared, even if it isn’t the
most recent version.
PreferencesNotifyOnVisit
Type
boolean
Properties
Create, Filter, Update
Description
When true, the owner of the shared document is emailed the first time that
someone views or downloads the shared document.
539
Standard Objects
Field Name
ContentDistribution
Details
PreferencesNotifyRndtnComplete Type
boolean
Properties
Create, Filter, Update
Description
When true, the owner of the shared document is emailed when renditions of
the shared document that can be previewed in a Web browser are generated.
PreferencesPasswordRequired
Type
boolean
Properties
Create, Filter, Update
Description
When true, a password, specified by Password, is required to access the
shared document.
RelatedRecordId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the record, such as an Account, Campaign, or Case, that the shared document
is related to.
ViewCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times that the shared document has been viewed.
Usage
Use this object to create, update, delete, or query information about a document shared externally via a link or via Salesforce CRM Content
delivery.
The ContentDistribution object supports triggers before and after these operations: insert, update, delete. It supports triggers after
undelete.
Example: The VP of Marketing wants file authors to specify whether their files can be shared with external people using content
delivery. He also wants some files to have a password. You can add a custom field DeliveryPolicy on the ContentVersion
object. Make the custom field a picklist with the values, Allowed, Blocked, and Password required. Add the field to
540
Standard Objects
ContentDistributionView
the ContentVersion layout so that the user can set the delivery policy per file. Then, add an insert trigger for the ContentDistribution
object to enforce the rules based on the delivery policy set in the file.
Note: The ContentVersionId for ContentDistribution must be unique.
This trigger for the ContentDistribution object enforces the delivery policy rules for each file:
trigger deliveryPolicy on ContentDistribution (before insert) {
for (ContentDistribution cd : trigger.new) {
String versionId = DeliveryPolicyHelper.getContentVersionId(cd);
ContentVersion version = [select DeliveryPolicy__c from ContentVersion where
Id = :versionId];
String policy = version.DeliveryPolicy__c;
if (policy.equals('Blocked')) {
cd.addError('This file is not allowed to be delivered.');
} else if (policy.equals('Password required')){
if (!DeliveryPolicyHelper.requirePassword(cd)) {
cd.addError('To deliver this file, set a password.');
}
}
}
}
The trigger calls this helper class:
public class DeliveryPolicyHelper {
public static String getContentVersionId(ContentDistribution cd) {
if (cd.ContentVersionId != null) {
return cd.ContentVersionId;
} else {
String versionId = [select LatestPublishedVersionId from ContentDocument
where Id = :cd.ContentDocumentId].get(0).LatestPublishedVersionId;
return versionId;
}
}
public static boolean requirePassword(ContentDistribution cd) {
return cd.PreferencesPasswordRequired;
}
}
Important: Apex has a per organization limit of 10 concurrent requests that last longer than 5 seconds. A trigger that uploads
files can easily hit this limit.
ContentDistributionView
Represents information about views of a shared document. This read-only object is available in API version 32.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
541
Standard Objects
ContentDistributionView
Special Access Rules
• Salesforce CRM Content must be enabled to query shared documents. To query content deliveries, content deliveries must be
enabled.
• Users (including users with the “View All Data” permission) can query only the files that they have access to. If the file is managed
by a Content Library, the user must have “Deliver Content” enabled in the library permission definition and be a member of the
library. If the file isn’t managed by a Content Library, the user must have the “Enable Creation of Content Deliveries for Salesforce
Files” permission.
• If the shared document is deleted, the delete cascades to any associated ContentDistributionView. The ContentDistributionView is
still queryable by using the QueryAll verb.
• Customer Portal users can’t access this object.
• Chatter Free users can’t access this object.
Fields
Field Name
Details
DistributionId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the content delivery that the document is part of.
IsDownload
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if the shared document is downloaded; false if the shared document
is viewed.
IsInternal
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if the shared document is viewed by a user in the same organization;
false if viewed by an external user.
ParentViewId
Type
reference
Properties
Filter, Group, Nillable, Sort
542
Standard Objects
Field Name
ContentDocument
Details
Description
ID of this instance of accessing the shared document.
Usage
Use this read-only object to query information about users who are accessing shared documents.
ContentDocument
Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.This object is available in API
versions 17.0 and later for Salesforce CRM Content. This object is available in API version 21.0 and later for Salesforce Files.
The maximum number of documents that can be published is 10,000,000. Archived files count towards this limit and towards storage
usage limits.
• Contact Manager, Group, Professional, Enterprise, Unlimited, and Performance Edition customers can publish a maximum of 36,000
new versions per 24–hour period.
• Developer Edition and trial users can publish a maximum of 2,500 new versions per 24–hour period.
Supported Calls
delete(), describeLayout()describeSObjects(), query(), retrieve(), search(), undelete(),
update()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission in order to query content in libraries where
they have access.
• Users (including users with the “View All Data” permission) can only query files they have access to, including:
– All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions
(API version 17.0 and later).
– All Salesforce Files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version
21.0 and later).
• A Salesforce CRM Content document can be deleted if any of the following are true:
– The document is published into a personal library or is in the user's upload queue.
– The document is published into a public library, the user is a member of that library with the “Add Content” library privilege
enabled, and the user trying to delete the document is the owner.
– The document is published into a public library that has the “Delete Content” or “Manage Library” permission enabled, and the
user trying to delete the document is not the owner.
For API version 25.0 and later, you can change ownership of Salesforce Files and Salesforce CRM Content documents.
• The following must be true to change ownership of a Salesforce CRM Content document:
– The Salesforce CRM Content app must be enabled.
543
Standard Objects
ContentDocument
– The user who is becoming the owner of the document must have a Salesforce CRM Content feature license.
• A user can change ownership of a Salesforce CRM Content document or Salesforce file if any of the following are true:
– The user is the current owner, or has either the “Modify All Data” or "Manage Salesforce CRM Content” permission enabled.
– The user has the “Manage Library” permission enabled for the library containing the document.
Note:
– The user who is becoming the owner of the document must be a visible user who is active, but the original owner can be
inactive.
– A document's owner can be changed to a user who doesn’t have access to the library that contains the document. Library
administrators may need to give the new owner membership to the library.
Fields
Field
Details
ArchivedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user who archived the document.
This field is available in API version 24.0 and later.
ArchivedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
The date when the document was archived.
This field is available in API version 24.0 and later.
ContentAssetId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
If the ContentDocument is an asset file, this field points to the asset. For most entities, the
value of this field is null.
This field is available in API version 38.0 and later.
ContentModifiedDate
Type
dateTime
544
Standard Objects
Field
ContentDocument
Details
Properties
Filter, Nillable, Sort
Description
Date the document was modified.
ContentModifiedDate updates when, for example, the document is renamed or a
new document version is uploaded. When you’re uploading the first version of a document,
ContentModifiedDate can be set to the current time or any time in the past.
This field is available in API version 32.0 and later.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The size of the document in bytes.
This field is available in API version 31.0 and later.
Description
Type
textarea
Properties
Filter, Nillable, Sort
Description
A description of the document.
This field is available in API version 31.0 and later.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
545
Standard Objects
Field
ContentDocument
Details
Description
File extension of the document.
This field is available in API version 31.0 and later.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of document, determined by the file extension.
This field is available in API version 31.0 and later.
IsArchived
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the document has been archived (true) or not (false).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LatestPublishedVersionId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the latest document version (ContentVersion).
546
Standard Objects
ContentDocument
Field
Details
OwnerId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the owner of this document.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the library that owns the document. Created automatically when inserting a
ContentVersion via the API for the first time.
This field is available in API version 24.0 and later when Salesforce CRM Content is enabled.
PublishStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Indicates if and how the document is published. Valid values are:
• P—The document is published to a public library and is visible to other users. Label is
Public.
• R—The document is published to a personal library and is not visible to other users.
Label is Personal Library.
• U—The document is not published because publishing was interrupted. Label is Upload
Interrupted.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file owners with
Collaborator access to the file can modify this field. Default is Allowed, which means that
new shares are allowed. When set to Restricted, new shares are prevented without
affecting existing shares.
This field is available in API versions 35.0 and later.
547
Standard Objects
ContentDocumentFeed
Field
Details
Title
Type
string
Properties
Filter, Group, Sort
Description
The title of a document.
Usage
• Use this object to retrieve, query, update, and delete the latest version of a document, but not a content pack, in a library or a
Salesforce file . Use the ContentVersion object to create, query, retrieve, search, edit, and update a specific version of a Salesforce
CRM Content document or Salesforce file.
• The query() call doesn’t return archived documents. The queryAll() call returns archived documents.
• You can’t add new versions of archived documents.
• To query a file that is shared only with a record, you must specify the content ID of the file.
• To create a document, create a new version via the ContentVersion object without setting the ContentDocumentId. This
automatically creates a parent document record. When adding a new version of the document, you must specify an existing
ContentDocumentId which initiates the revision process for the document. When the latest version is published, the title,
owner, and publish status fields are updated in the document.
• When you delete a document, all versions of that document are deleted, including ratings, comments, and tags.
• You can't create, edit, or delete content packs via the API.
Note: Content metadata, such as tags, custom fields, and content owners are tracked at the version level rather than at the
document level.
• If you query versions in the API, versions with a PublishStatus of Upload Interrupted are not returned.
• A document record is a container for multiple version records. You create a new version to add a document to the system. The new
version contains the actual file data which allows the document to have multiple versions. The version stores the body of the uploaded
document.
• Assign topics to ContentDocument using TopicAssignment in API version 37.0 or later.
SEE ALSO:
ContentDocumentFeed
ContentDocumentHistory
ContentVersion
ContentDocumentFeed
Represents a single feed item associated with ContentDocument. A content document feed shows these content document changes:
creating a ContentDocument file and uploading a new ContentDocument. This object is available in versions 20.0 and later.
548
Standard Objects
ContentDocumentFeed
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the ContentDocument object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of ContentDocumentFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ContentData
Type
base64
549
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost.The name of the file uploaded to the feed. Setting ContentFileName
automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
550
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
551
Standard Objects
Field
ContentDocumentFeed
Details
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
552
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the document that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com thanks
posts, it’s the ID of the WorkThanks object associated with a RypplePost. This field is
typically null for all posts except ContentPost and RypplePost.
553
Standard Objects
Field
ContentDocumentFeed
Details
For example, set this field to an existing ContentVersion and post it to a feed as a FeedItem
object of Type ContentPost.
Title
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name. The Title field can be updated on posts of Type
QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and TextPost, don’t
create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
554
Standard Objects
Field
ContentDocumentFeed
Details
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
555
Standard Objects
Field
ContentDocumentHistory
Details
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a ContentDocument object.
SEE ALSO:
ContentDocument
ContentDocumentHistory
Represents the history of a document. This object is available in versions 17.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• A user can query all versions of a document from their personal library and any version that is part of or shared with a library where
they are a member, regardless of library permissions.
Fields
Field
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the document.
Division
Type
picklist
556
Standard Objects
Field
ContentDocumentHistory
Details
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Field
Type
picklist
Properties
Filter, Group, Sort, Restricted picklist
Description
The name of the field that was changed. Possible values include:
• contentDocPublished—The document is published into a library.
• contentDocUnpublished—The document is archived or removed from a library,
either directly or when the owning library is changed.
• contentDocRepublished—The document is removed from the archive.
• contentDocFeatured—The document is featured.
• contentDocSubscribed—The document is subscribed to.
• contentDocUnsubscribed—The document is no longer subscribed to.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
557
Standard Objects
ContentDocumentLink
Usage
Use this read-only object to query the history of a document.
SEE ALSO:
ContentDocument
ContentDocumentLink
Represents the link between a Salesforce CRM Content document or Salesforce file and where it's shared. A file can be shared with other
users, groups, records, and Salesforce CRM Content libraries. This object is available in versions 21.0 and later for Salesforce CRM Content
documents and Salesforce Files.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• Users (including users with the “View All Data” permission) can only query files they have access to, including:
– All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions
(API version 17.0 and later).
– All Salesforce Files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version
21.0 and later).
• In API versions 33.0 and later, you can create and delete ContentDocumentLink objects with a LinkedEntityId of any record
type that can be tracked in the feed, even if feed tracking is disabled for that record type.
• In API versions 25.0 and later, you can create ContentDocumentLink objects with a LinkedEntityId of type User,
CollaborationGroup, or Organization.
• In API versions 21.0 and later, users with explicit Viewer access (the file has been directly shared with the user) to a file can delete
ContentDocumentLink objects between the file and other users who have Viewer access. In the same API versions, any user with
Viewer access to a file can deleteContentDocumentLink objects between the file and organizations or groups of which they are a
member.
• For organizations with Communities enabled, a document can only be shared with users and groups that are a part of the community
the file was created in.
Fields
Field
Details
ContentDocumentId
Type
reference
558
Standard Objects
Field
ContentDocumentLink
Details
Properties
Create, Filter, Group, Sort
Description
ID of the document.
LinkedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the linked object. Can include Chatter users, groups, records (any that support Chatter
feed tracking including custom objects), and Salesforce CRM Content libraries.
ShareType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Required. The permission granted to the user of the shared file in a library. This is determined
by the permission the user already has in the library. This field is available in API version 25.0
and later.
V
Viewer premission. The user can explicitly view but not edit the shared file.
C
Collaborator permission. The user can explicitly view and edit the shared file.
I
Inferred permission. The user’s permission is determined by the related record. For shares
with a library, this is defined by the permissions the user has in that library.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
Specifies whether this file is available to all users, internal users, or shared users. This field is
available in API version 26.0 and later.
Visibility can have the following values.
• AllUsers—The file is available to all users who have permission to see the file.
• InternalUsers—The file is available only to internal users who have permission
to see the file.
559
Standard Objects
Field
ContentDocumentLink
Details
• SharedUsers—The file is available to all users who can see the feed to which the
file is posted. SharedUsers is used only for files shared with users, and is available only
when an org has private org-wide sharing on by default. The SharedUsers value is
available in API version 32.0 and later.
Note the following exceptions for Visibility.
• AllUsers & InternalUsers values apply to files posted on standard and custom
object records, but not to users, groups, or content libraries.
• For posts to a record feed, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
• For posts to a user feed, if the organization-wide default for user sharing is set to private,
Visibility is set to SharedUsers.
The visibility setting onContentDocumentLink determines a file’s visibility on a record post. When
a file has multiple references posted in a feed, the file’s visibility is determined by the most visible
setting.
Usage
Use this object to query the locations where a file is shared or query which files are linked to a particular location. For example, the
following query returns a particular document shared with a Chatter group:
SELECT ContentDocument.title FROM ContentDocumentLink WHERE ContentDocumentId =
'069D00000000so2' AND LinkedEntityId = '0D5000000089123'
• You can't run a query without filters against ContentDocumentLink.
• You can't filter on ContentDocument fields if you're filtering by ContentDocumentId. You can only filter on ContentDocument
fields if you're filtering by LinkedEntityId.
• You can't filter on the related object fields. For example, you can't filter on the properties of the account to which a file is linked. You
can filter on the properties of the file, such as the title field.
A SOQL query must filter on one of Id, ContentDocumentId, or LinkedEntityId.
The ContentDocumentLink object supports triggers before and after these operations: insert, update, delete.
Example: This trigger for the ContentDocumentLink object prevents public XLSX files from being shared.
trigger NoShareXLSX on ContentDocumentLink (after insert) {
for (ContentDocumentLink cdl : trigger.new) {
if (!CDLHelper.isSharingAllowed(cdl)) {
cdl.addError('Sorry, you cannot share this file.');
}
}
}
560
Standard Objects
ContentDocumentLink
The trigger calls this helper class.
public class CDLHelper {
/**
* Gets FileExtension of the inserted content.
*/
public static String getFileExtension(ContentDocumentLink cdl) {
String fileExtension;
String docId = cdl.ContentDocumentId;
FileExtension = [select FileExtension from ContentVersion where ContentDocumentId
= :docId].get(0).FileExtension;
return FileExtension;
}
/**
* Checks the file's PublishStatus and FileExtension to decide whether user can
share the file with others.
* PublishStatus 'P' means the document is in a public library.
*/
public static boolean isSharingAllowed(ContentDocumentLink cdl) {
String docId = cdl.ContentDocumentId;
ContentVersion version = [select PublishStatus,FileExtension from ContentVersion
where ContentDocumentId = :docId].get(0);
if (version.PublishStatus.equals('P') && (version.FileExtension != null &&
version.FileExtension.equals('xlsx'))) {
return false;
}
return true;
}
/**
* Gets the parent account name if the file is linked to an account.
*/
public static String getAccountName(ContentDocumentLink cdl) {
String name;
String id = cdl.LinkedEntityId;
if (id.substring(0,3) == '001') {
name = [select Name from Account where Id = :id].get(0).Name;
}
return name;
}
}
Important: Apex has a per organization limit of 10 concurrent requests that last longer than 5 seconds. A trigger that uploads
files can easily hit this limit.
SEE ALSO:
ContentDocument
561
Standard Objects
ContentFolder
ContentFolder
Represents a folder in a content library for adding files. This object is available in API version 34.0 and later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Special Access Rules
• Salesforce CRM Content or Chatter must be enabled to access ContentFolder.
• All users with a content feature license can modify folders in their personal library.
• To modify a folder, the user must be a member of the library and have permission to modify folders.
Fields
Field Name
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the folder.
ParentContentFolderId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the ParentFolder.
ContentFolderItem
Represents a file (ContentDocument) or folder (ContentFolder) that resides in a ContentFolder in a ContentWorkspace. This object is
available in API version 35.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
562
Standard Objects
ContentFolderItem
Special Access Rules
Fields
Field Name
Details
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The file or folder size of the ContentFolderItem.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Specifies the file extension if the ContentFolderItem is a file.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Specifies the type of file if ContentFolderItem is a file.
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the ContentFolderItem is a folder, and not a file.
ParentContentFolderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ContentFolder that the ContentFolderItem resides in.
563
Standard Objects
ContentFolderLink
Field Name
Details
Title
Type
string
Properties
Filter, Group, Sort
Description
The name of the file or folder.
Usage
ContentFolderLink
Defines the association between a library and its root folder. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Salesforce CRM Content must be enabled to access ContentFolderLink.
• ContentFolderLink is read-only in the context of a library.
Fields
Field Name
Details
ContentFolderId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the folder.
EnableFolderStatus
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates the status of enabling folders for the library. Valid values are:
564
Standard Objects
Field Name
ContentFolderMember
Details
• C — Completed folder enablement
• S — Started folder enablement
• F — Failed folder enablement
This field is available in API version 39.0 and later.
ParentEntityId
Type
reference
Properties
Filter, Group, Sort
Description
Name of the entity the folder hierarchy is linked to.
ContentFolderMember
Defines the association between a file and a folder. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
• Salesforce CRM Content or Chatter must be enabled to access ContentFolderMember.
• All users with a content feature license can modify folders in their personal library.
• To modify ContentFolderMember, the user must be a member of the library and have permission to modify folders.
Fields
Field Name
Details
ChildRecordId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the file.
ParentContentFolderId
Type
reference
565
Standard Objects
Field Name
ContentHubItem
Details
Properties
Filter, Group, Sort, Update
Description
ID of the folder the file is in.
ContentHubItem
Represents a file or folder in a Files Connect external data source, such as Microsoft SharePoint or OneDrive for Business. This object is
available in API version 33.0 and later.
Special Access Rules
Chatter and Files Connect must be enabled for the organization.
Supported Calls
describeSObjects(), query(), search()
Fields
Field Name
Details
ContentHubRepositoryId
Type
reference
Properties
Filter, Group, Nillable
Description
The ID for the related external data source described by the ContentHubRepository
object.
ContentModifiedDate
Type
dateTime
Properties
Nillable
Description
Date the file or folder content last changed.
ContentSize
Type
int
Properties
Group, Nillable
566
Standard Objects
Field Name
ContentHubItem
Details
Description
File or folder size.
Description
Type
string
Properties
Filter, Group, Nillable
Description
Explanation of item in external data source.
ExternalContentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the document content in the external data source.
ExternalDocumentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the detail page in the external data source.
ExternalId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID for the file or folder in the external data source.
FileExtension
Type
string
Properties
Group, Nillable
Description
File format extension, such as .doc or .pdf
FileType
Type
string
Properties
Group, Nillable
567
Standard Objects
Field Name
ContentHubItem
Details
Description
Complete file type, such as “Microsoft Word Document.”
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether item is a folder or file.
MimeType
Type
string
Properties
Filter, Group, Nillable
Description
MIME type of the content.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
Name of the file or folder in the external data source.
Owner
Type
string
Properties
Filter, Group, Nillable
Description
Username of the content owner in the external data source.
ParentId
Type
string
Properties
Filter, Group, Nillable
Description
The ID of the parent folder for the record.
This field isn’t returned in queries or searches of the ContentHubItem object. It
supports only WHERE clauses, such as the following:
568
Standard Objects
Field Name
ContentHubItem
Details
WHERE ContentHubRepositoryId = Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
552
Standard Objects
Field
ContentDocumentFeed
Details
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the document that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com thanks
posts, it’s the ID of the WorkThanks object associated with a RypplePost. This field is
typically null for all posts except ContentPost and RypplePost.
553
Standard Objects
Field
ContentDocumentFeed
Details
For example, set this field to an existing ContentVersion and post it to a feed as a FeedItem
object of Type ContentPost.
Title
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name. The Title field can be updated on posts of Type
QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and TextPost, don’t
create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
554
Standard Objects
Field
ContentDocumentFeed
Details
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
555
Standard Objects
Field
ContentDocumentHistory
Details
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a ContentDocument object.
SEE ALSO:
ContentDocument
ContentDocumentHistory
Represents the history of a document. This object is available in versions 17.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• A user can query all versions of a document from their personal library and any version that is part of or shared with a library where
they are a member, regardless of library permissions.
Fields
Field
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the document.
Division
Type
picklist
556
Standard Objects
Field
ContentDocumentHistory
Details
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Field
Type
picklist
Properties
Filter, Group, Sort, Restricted picklist
Description
The name of the field that was changed. Possible values include:
• contentDocPublished—The document is published into a library.
• contentDocUnpublished—The document is archived or removed from a library,
either directly or when the owning library is changed.
• contentDocRepublished—The document is removed from the archive.
• contentDocFeatured—The document is featured.
• contentDocSubscribed—The document is subscribed to.
• contentDocUnsubscribed—The document is no longer subscribed to.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
557
Standard Objects
ContentDocumentLink
Usage
Use this read-only object to query the history of a document.
SEE ALSO:
ContentDocument
ContentDocumentLink
Represents the link between a Salesforce CRM Content document or Salesforce file and where it's shared. A file can be shared with other
users, groups, records, and Salesforce CRM Content libraries. This object is available in versions 21.0 and later for Salesforce CRM Content
documents and Salesforce Files.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• Users (including users with the “View All Data” permission) can only query files they have access to, including:
– All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions
(API version 17.0 and later).
– All Salesforce Files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version
21.0 and later).
• In API versions 33.0 and later, you can create and delete ContentDocumentLink objects with a LinkedEntityId of any record
type that can be tracked in the feed, even if feed tracking is disabled for that record type.
• In API versions 25.0 and later, you can create ContentDocumentLink objects with a LinkedEntityId of type User,
CollaborationGroup, or Organization.
• In API versions 21.0 and later, users with explicit Viewer access (the file has been directly shared with the user) to a file can delete
ContentDocumentLink objects between the file and other users who have Viewer access. In the same API versions, any user with
Viewer access to a file can deleteContentDocumentLink objects between the file and organizations or groups of which they are a
member.
• For organizations with Communities enabled, a document can only be shared with users and groups that are a part of the community
the file was created in.
Fields
Field
Details
ContentDocumentId
Type
reference
558
Standard Objects
Field
ContentDocumentLink
Details
Properties
Create, Filter, Group, Sort
Description
ID of the document.
LinkedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the linked object. Can include Chatter users, groups, records (any that support Chatter
feed tracking including custom objects), and Salesforce CRM Content libraries.
ShareType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Required. The permission granted to the user of the shared file in a library. This is determined
by the permission the user already has in the library. This field is available in API version 25.0
and later.
V
Viewer premission. The user can explicitly view but not edit the shared file.
C
Collaborator permission. The user can explicitly view and edit the shared file.
I
Inferred permission. The user’s permission is determined by the related record. For shares
with a library, this is defined by the permissions the user has in that library.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
Specifies whether this file is available to all users, internal users, or shared users. This field is
available in API version 26.0 and later.
Visibility can have the following values.
• AllUsers—The file is available to all users who have permission to see the file.
• InternalUsers—The file is available only to internal users who have permission
to see the file.
559
Standard Objects
Field
ContentDocumentLink
Details
• SharedUsers—The file is available to all users who can see the feed to which the
file is posted. SharedUsers is used only for files shared with users, and is available only
when an org has private org-wide sharing on by default. The SharedUsers value is
available in API version 32.0 and later.
Note the following exceptions for Visibility.
• AllUsers & InternalUsers values apply to files posted on standard and custom
object records, but not to users, groups, or content libraries.
• For posts to a record feed, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
• For posts to a user feed, if the organization-wide default for user sharing is set to private,
Visibility is set to SharedUsers.
The visibility setting onContentDocumentLink determines a file’s visibility on a record post. When
a file has multiple references posted in a feed, the file’s visibility is determined by the most visible
setting.
Usage
Use this object to query the locations where a file is shared or query which files are linked to a particular location. For example, the
following query returns a particular document shared with a Chatter group:
SELECT ContentDocument.title FROM ContentDocumentLink WHERE ContentDocumentId =
'069D00000000so2' AND LinkedEntityId = '0D5000000089123'
• You can't run a query without filters against ContentDocumentLink.
• You can't filter on ContentDocument fields if you're filtering by ContentDocumentId. You can only filter on ContentDocument
fields if you're filtering by LinkedEntityId.
• You can't filter on the related object fields. For example, you can't filter on the properties of the account to which a file is linked. You
can filter on the properties of the file, such as the title field.
A SOQL query must filter on one of Id, ContentDocumentId, or LinkedEntityId.
The ContentDocumentLink object supports triggers before and after these operations: insert, update, delete.
Example: This trigger for the ContentDocumentLink object prevents public XLSX files from being shared.
trigger NoShareXLSX on ContentDocumentLink (after insert) {
for (ContentDocumentLink cdl : trigger.new) {
if (!CDLHelper.isSharingAllowed(cdl)) {
cdl.addError('Sorry, you cannot share this file.');
}
}
}
560
Standard Objects
ContentDocumentLink
The trigger calls this helper class.
public class CDLHelper {
/**
* Gets FileExtension of the inserted content.
*/
public static String getFileExtension(ContentDocumentLink cdl) {
String fileExtension;
String docId = cdl.ContentDocumentId;
FileExtension = [select FileExtension from ContentVersion where ContentDocumentId
= :docId].get(0).FileExtension;
return FileExtension;
}
/**
* Checks the file's PublishStatus and FileExtension to decide whether user can
share the file with others.
* PublishStatus 'P' means the document is in a public library.
*/
public static boolean isSharingAllowed(ContentDocumentLink cdl) {
String docId = cdl.ContentDocumentId;
ContentVersion version = [select PublishStatus,FileExtension from ContentVersion
where ContentDocumentId = :docId].get(0);
if (version.PublishStatus.equals('P') && (version.FileExtension != null &&
version.FileExtension.equals('xlsx'))) {
return false;
}
return true;
}
/**
* Gets the parent account name if the file is linked to an account.
*/
public static String getAccountName(ContentDocumentLink cdl) {
String name;
String id = cdl.LinkedEntityId;
if (id.substring(0,3) == '001') {
name = [select Name from Account where Id = :id].get(0).Name;
}
return name;
}
}
Important: Apex has a per organization limit of 10 concurrent requests that last longer than 5 seconds. A trigger that uploads
files can easily hit this limit.
SEE ALSO:
ContentDocument
561
Standard Objects
ContentFolder
ContentFolder
Represents a folder in a content library for adding files. This object is available in API version 34.0 and later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Special Access Rules
• Salesforce CRM Content or Chatter must be enabled to access ContentFolder.
• All users with a content feature license can modify folders in their personal library.
• To modify a folder, the user must be a member of the library and have permission to modify folders.
Fields
Field Name
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the folder.
ParentContentFolderId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the ParentFolder.
ContentFolderItem
Represents a file (ContentDocument) or folder (ContentFolder) that resides in a ContentFolder in a ContentWorkspace. This object is
available in API version 35.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
562
Standard Objects
ContentFolderItem
Special Access Rules
Fields
Field Name
Details
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The file or folder size of the ContentFolderItem.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Specifies the file extension if the ContentFolderItem is a file.
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Specifies the type of file if ContentFolderItem is a file.
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the ContentFolderItem is a folder, and not a file.
ParentContentFolderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ContentFolder that the ContentFolderItem resides in.
563
Standard Objects
ContentFolderLink
Field Name
Details
Title
Type
string
Properties
Filter, Group, Sort
Description
The name of the file or folder.
Usage
ContentFolderLink
Defines the association between a library and its root folder. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Salesforce CRM Content must be enabled to access ContentFolderLink.
• ContentFolderLink is read-only in the context of a library.
Fields
Field Name
Details
ContentFolderId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the folder.
EnableFolderStatus
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates the status of enabling folders for the library. Valid values are:
564
Standard Objects
Field Name
ContentFolderMember
Details
• C — Completed folder enablement
• S — Started folder enablement
• F — Failed folder enablement
This field is available in API version 39.0 and later.
ParentEntityId
Type
reference
Properties
Filter, Group, Sort
Description
Name of the entity the folder hierarchy is linked to.
ContentFolderMember
Defines the association between a file and a folder. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
• Salesforce CRM Content or Chatter must be enabled to access ContentFolderMember.
• All users with a content feature license can modify folders in their personal library.
• To modify ContentFolderMember, the user must be a member of the library and have permission to modify folders.
Fields
Field Name
Details
ChildRecordId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the file.
ParentContentFolderId
Type
reference
565
Standard Objects
Field Name
ContentHubItem
Details
Properties
Filter, Group, Sort, Update
Description
ID of the folder the file is in.
ContentHubItem
Represents a file or folder in a Files Connect external data source, such as Microsoft SharePoint or OneDrive for Business. This object is
available in API version 33.0 and later.
Special Access Rules
Chatter and Files Connect must be enabled for the organization.
Supported Calls
describeSObjects(), query(), search()
Fields
Field Name
Details
ContentHubRepositoryId
Type
reference
Properties
Filter, Group, Nillable
Description
The ID for the related external data source described by the ContentHubRepository
object.
ContentModifiedDate
Type
dateTime
Properties
Nillable
Description
Date the file or folder content last changed.
ContentSize
Type
int
Properties
Group, Nillable
566
Standard Objects
Field Name
ContentHubItem
Details
Description
File or folder size.
Description
Type
string
Properties
Filter, Group, Nillable
Description
Explanation of item in external data source.
ExternalContentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the document content in the external data source.
ExternalDocumentUrl
Type
url
Properties
Group, Nillable
Description
The URL of the detail page in the external data source.
ExternalId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
ID for the file or folder in the external data source.
FileExtension
Type
string
Properties
Group, Nillable
Description
File format extension, such as .doc or .pdf
FileType
Type
string
Properties
Group, Nillable
567
Standard Objects
Field Name
ContentHubItem
Details
Description
Complete file type, such as “Microsoft Word Document.”
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether item is a folder or file.
MimeType
Type
string
Properties
Filter, Group, Nillable
Description
MIME type of the content.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
Name of the file or folder in the external data source.
Owner
Type
string
Properties
Filter, Group, Nillable
Description
Username of the content owner in the external data source.
ParentId
Type
string
Properties
Filter, Group, Nillable
Description
The ID of the parent folder for the record.
This field isn’t returned in queries or searches of the ContentHubItem object. It
supports only WHERE clauses, such as the following:
568
Standard Objects
Field Name
ContentHubItem
Details
WHERE ContentHubRepositoryId = and ParentId = .
Or specify WHERE ParentId =  to return
the children of the root folder.
Tip: The ParentId field supports both Salesforce IDs (in the format
“0CHxxx”) and external IDs.
Title
Type
string
Properties
Group, Nillable
Description
The title that appears in the content, which often differs from the Name of the
containing file or folder.
UpdatedBy
Type
string
Properties
Group, Nillable
Description
Username for the person who last updated the file.
Usage
The following SOQL query examples show how to retrieve files and folders from a Files Connect external data source. These examples
use placeholders for ID values for the repository ID and folder IDs. Before running these queries, replace the placeholders with valid ID
values for your external data source and folders.
Important: You must filter queries and searches on ContentHubItem with the ContentHubRepositoryId field; for
example, SELECT Id FROM ContentHubItem WHERE ContentHubRepositoryId = .
Example 1: Get the ID and name of the root folder in an external file source.
SELECT Id, Name
FROM ContentHubItem
WHERE ContentHubRepositoryId = '' AND ParentId = NULL
Example 2: List all folders and files under the specified root folder.
SELECT Id, Name
FROM ContentHubItem
WHERE ContentHubRepositoryId = '' AND ParentId = ''
569
Standard Objects
ContentHubRepository
Example 3: List all external file data sources by querying ContentHubRepository.
SELECT DeveloperName
FROM ContentHubRepository
Example 4: List all files and folders in a given folder and external file source.
SELECT Id, Name
FROM ContentHubItem
WHERE ContentHubRepositoryId = '' AND ParentId = ''
Example 5: To return only folders in the result set, add IsFolder = true in the WHERE clause to a query that returns files and
folders. For example, the following query lists all folders under the root folder.
SELECT Id, Name
FROM ContentHubItem
WHERE ContentHubRepositoryId = '' AND ParentId = ''
AND IsFolder = true
Example 6: Retrieve a link that is used to open the specified document in an external source.
SELECT ExternalDocumentUrl
FROM ContentHubItem
WHERE ContentHubRepositoryId = '' AND Id = ''
SOSL Example: Retrieve the ID and name of all documents that contain the search string. The result set is limited to the first 10 documents.
FIND {}
RETURNING ContentHubItem(Id, Name
WHERE ContentHubRepositoryId = '')
LIMIT 10
ContentHubRepository
Represents a Files Connect external data source such as Microsoft SharePoint or OneDrive for Business. This object is available in API
version 33.0 and later.
Special Access Rules
Chatter and Files Connect must be enabled for the organization.
Supported Calls
describeLayout(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
DeveloperName
Type
string
570
Standard Objects
Field Name
ContentNote
Details
Properties
Filter, Group, Sort
Description
The unique name of the record in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. This field is automatically generated but you can supply
your own value if you create the record using the API.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for the external data source. This display value is the internal label
and does not get translated.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The data source type. Possible values are:
• contenthubGoogleDrive
• contenthubOffice365
• contenthubOneDrive
• contenthubSharepoint
ContentNote
Represents a note in Salesforce. This object is available in API version 32.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), update()
571
Standard Objects
ContentNote
Special Access Rules
• Notes must be enabled.
Fields
Field
Details
Content
Type
base64
Properties
Create, Nillable, Update
Description
The content or body of the note, which can include propertly formatted HTML or plain text.
Any special characters within plain text in the Content field must be escaped. You can
escape special characters by calling content.escapeHtml4().
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the note in bytes.
CreatedById
Type
reference
Properties
Defaulted on createFilter, Group, Sort
Description
ID of the user who created the note.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date the note was created.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the note.
572
Standard Objects
ContentNote
Field
Details
FileType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Type of file for the note. All notes have a file type of SNOTE.
Id
Type
id
Properties
Defaulted on createFilter, Group, Nillable, Sort
Description
ID of the note.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the note has been deleted.
IsReadOnly
Type
boolean
Properties
Defaulted on create, Group, Sort
Description
Indicates whether the note is read only.
LastModifiedById
Type
reference
Properties
Defaulted on create, Filter, Group, Sort
Description
The ID of the user who last modified the note.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
573
Standard Objects
Field
ContentNote
Details
Description
Date the note was last modified. Updates when the Title or Content of the note are
updated.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable Sort
Description
Date the note was last viewed. This field is available in API version 35.0 and later.
LatestPublishedVersionId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the ContentVersion for the latest published version of the note.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the owner of the note.
TextPreview
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A preview of the note’s content. This field is available in API version 35.0 and later.
Title
Type
string
Properties
Create, Filter, Group, idLookup, Namefield, Sort, Update
Description
Title of the note.
574
Standard Objects
ContentVersion
Usage
• The ContentNote object represents notes created with the enhanced note taking tool, released in Winter ‘16.
• Use ContentNote to create, query, retrieve, search, edit, and update notes.
• ContentNote is built on ContentVersion, and so it has many of the same usages.
• Not all fields can be set for notes. Only the Content and Title fields can be updated.
• The maximum file size you can upload via the SOAP API must be less than 50 MB. When a document is uploaded or downloaded
via the API, it is converted to base64. This conversion increases the document size by approximately 37%. Account for the base64
conversion increase so that the file you plan to upload is less than 50 MB.
• SOQL and SOSL queries on the ContentNote return only the most recent version of the note.
• To relate a note to a record, use ContentDocumentLink.
For example, the following code creates a note and escapes any special characters so they are converted to their HTML equivalents.
ContentNote cn = new ContentNote();
cn.Title = 'test1';
String body = 'Hello World. Before insert/update, escape special characters such as ", ',
&, and other standard escape characters.';
cn.Content = Blob.valueOf(body.escapeHTML4());
insert(cn);
In this example, the following code creates a note using text that is already formatted as HTML, so it does not need to be escaped.
ContentNote cn = new ContentNote();
cn.Title = 'test2';
String body = 'Hello World. Because this text is already formatted as HTML, it does not
need to be escaped.
Special characters such as ", etc. must already use their HTML equivalents.';
cn.Content = body;
insert(cn);
ContentVersion
Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. This object is available in versions 17.0 and
later for Salesforce CRM Content documents. This object is available in versions 20.0 and later for Salesforce Files.
The maximum number of versions that can be published in a 24-hour period is 36,000.
Supported Calls
create(), describeLayout(), describeSObjects(), query(), retrieve(), search(), update(), upsert()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• Customer and Partner Portal users can only publish, version, or edit documents if they have a Salesforce CRM Content feature license.
• All users with a content feature license can create versions in their personal library.
• Users (including users with the “View All Data” permission) can only query files they have access to, including:
575
Standard Objects
ContentVersion
– All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions
(API version 17.0 and later).
– All Salesforce Files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version
21.0 and later).
• All users can update versions in their personal library.
• The owner of a version or document can update the document if they are a member of the library, regardless of library permissions.
• To update a Salesforce CRM Content document, the user must be a member of the library with one of these library privileges enabled:
– “Add Content”
– “Add Content On Behalf of Others”
– “Manage Library”
• FileType is defined by either ContentUrl for links or PathOnClient for documents, but not both.
• In API version 34.0 and later, any file can be shared with libraries, whether the file originated in Chatter or in Salesforce CRM Content.
Fields
Field
Details
Checksum
Type
string
Properties
Filter, Group, Nillable, Sort
Description
MD5 checksum for the file.
ContentDocumentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the document.
ContentLocation
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Origin of the document. Valid values are:
• S—This is a document located within Salesforce. Label is Salesforce.
• E—This is a document located outside of Salesforce. Label is External.
ContentModifiedById
Type
reference
576
Standard Objects
Field
ContentVersion
Details
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who modified the document.
ContentModifiedDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort
Description
Date the document was modified.
ContentModifiedDate updates when, for example, the document is renamed or a
new document version is uploaded. When uploading the first version of a document,
ContentModifiedDate can be set to the current time or any time in the past.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the document in bytes. Always zero for links.
ContentUrl
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
URL for links. This is only set for links. One of the fields that determines the FileType. The
character limit in API versions 39.0 and later is 1,300. The character limit in API versions 32.0
and earlier was 255.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the content version.
Division
Type
picklist
577
Standard Objects
Field
ContentVersion
Details
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
ExternalDataSourceId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the external document referenced in the ExternalDataSource object.
ExternalDocumentInfo1
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Stores the URL of the file in the external content repository. The integration from the external
source determines the content for this string. After the reference or copy is created, the URL
of the external file is updated when you:
• Republish a file reference in Lightning Experience
• Open the document
• Create a file reference in the Chatter REST API with reuseReference set to true.
When the file is updated, the shared link is updated to the most current version.
ExternalDocumentInfo2
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Contains the external file ID. Salesforce determines the content for this string, which is private.
The content can change without notice, depending on the external system. After the file
reference is created, this field isn’t updated, even if the file path changes.
FeaturedContentBoost
Type
int
Properties
Filter, Group, Nillable, Sort
578
Standard Objects
Field
ContentVersion
Details
Description
Read only. Designates a document as featured.
FeaturedContentDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Date the document was featured.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the document.
This field is available in API version 31.0 and later.
FileType
Type
string
Properties
Filter, Group, Sort
Description
Type of content determined by ContentUrl for links or PathOnClient for documents.
FirstPublishLocationId Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the location where the version was first published. If the version is first published into
a user's personal library or My Files, the field will contain the ID of the user who owns the
personal library or My Files. If the first version is published into a public library, the field will
contain the ID of that library.
This field is only set the first time a version is published via the API. It isn't set when a version
is published in Salesforce CRM Content or uploaded in Salesforce Files or. After the version
is published, it is a read-only field.
If you don't set a FirstPublishLocationId via the API, this field defaults to the
user's personal library, unless Origin is set to H, then this field defaults to My Files.
579
Standard Objects
ContentVersion
Field
Details
IsAssetEnabled
Type
boolean
Properties
Create, Group, Defaulted on create
Description
Can be specified on insert of ContentVersion to automatically convert a ContentDocument
file into a ContentAsset. This field can be SOQL queried, but it can’t be edited. This field is
available in API version 38.0 and later.
IsEncrypted
Note: This information is about Shield Platform Encryption and not Classic Encryption.
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether files are encrypted using Shield Platform Encryption (true) or not (false).
This field is available in API version 34.0 and later.
IsLatest
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the latest version of the document (true) or not (false).
IsMajorVersion
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
true if the document is a major version; false if the document is a minor version. Major
versions can’t be replaced.
Language
Type
picklist
Properties
Create, Filter, Nillable, Restricted picklist, Update
Description
The language for this document. This field defaults to the user's language unless the
organization is multi-language enabled.
580
Standard Objects
Field
ContentVersion
Details
Specifies the language of the labels returned. The value must be a valid user locale (language
and country), such as de_DE or en_GB. For more information on locales, see the
Language field on the CategoryNodeLocalization object.
NegativeRatingCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Read only. The number of times different users have given the document a thumbs down.
Rating counts for the latest version are not version-specific. If Version 1 receives 10
thumbs-down votes, and Version 2 receives 2 thumbs-down votes, the
NegativeRatingCount on Version 2 is 12. However, rating counts are not retroactive
for prior versions. The NegativeRatingCount on Version 1 is 10.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the community that this file originated from. This field is available in API version 26.0
and later, if Salesforce Communities is enabled for your organization.
You can only add a NetworkId when creating a file. You can’t change or add a
NetworkId for an existing file.
Origin
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
The source of the content version. Valid values are:
• C—This is a Content document from the user's personal library. Label is Content. The
FirstPublishLocationId must be the user's ID. If
FirstPublishLocationId is left blank, it defaults to the user's ID.
• H—This is a Salesforce file from the user's My Files. Label is Chatter. The
FirstPublishLocationId must be the user's ID. If
FirstPublishLocationId is left blank, it defaults to the user's ID. Origin can
only be set to H if Chatter is enabled for your organization.
This field defaults to C. Label is Content Origin.
OwnerId
Type
reference
581
Standard Objects
Field
ContentVersion
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of this document.
PathOnClient
Type
string
Properties
Create, Filter, Nillable, Sort
Description
The complete path of the document. One of the fields that determines the FileType.
Note: You must specify a complete path including the path extension in order for
the document to be visible in the Preview tab.
PositiveRatingCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Read only. The number of times different users have given the document a thumbs up.
Rating counts for the latest version are not version-specific. If Version 1 receives 10 thumbs-up
votes, and Version 2 receives 2 thumbs-up votes, the PositiveRatingCount on
Version 2 is 12. However, rating counts are not retroactive for prior versions. The
PositiveRatingCount on Version 1 is 10.
PublishStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Indicates if and how the document is published. Valid values are:
• P—The document is published to a public library and is visible to other users. Label is
Public.
• R—The document is published to a personal library and is not visible to other users.
Label is Personal Library.
• U—The document is not published because publishing was interrupted. Label is Upload
Interrupted.
RatingCount
Type
int
582
Standard Objects
Field
ContentVersion
Details
Properties
Filter, Group, Nillable, Sort
Description
Read only. Total number of positive and negative ratings.
ReasonForChange
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The reason why the document was changed. This field can only be set when inserting a new
version (revising) a document.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type of the version.
Custom fields are restricted in RecordTypeId. When an administrator creates a custom
field via the API it must be added to at least one page layout:
• If the custom field is added to the page layout associated with the General record type,
the RecordTypeId that corresponds to that record type does not have to be set on
the version record.
• If the custom field is added to the page layout associated with a custom record type, the
RecordTypeId that corresponds to that record type must be set on the version
record.
SharingOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Controls whether or not sharing is frozen for a file. Only administrators and file owners with
Collaborator access to the file can modify this field. Default is Allowed, which means that
new shares are allowed. When set to Restricted, new shares are prevented without
affecting existing shares.
This field is available in API versions 35.0 and later.
TagCsv
Type
textarea
583
Standard Objects
Field
ContentVersion
Details
Properties
Create, Nillable, Sort, Update
Description
Text used to apply tags to a content version via the API.
TextPreview
Type
string
Properties
Nillable, Filter,Group, Sort
Description
A preview of a document. Available in API version 35.0 and later.
Title
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The title of a document.
VersionData
Type
base64
Properties
Create, Nillable, Update
Description
Encoded file data. This field can't be set for links. The maximum file size you can upload via
the SOAP API must be less than 50 MB. When a document is uploaded or downloaded via
the API, it is converted to base64 and stored in VersionData. This conversion increases
the document size by approximately 37%. You must account for the base64 conversion
increase so that the file you plan to upload is less than 50 MB.
VersionNumber
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The version number. The number increments with each version of the document, for example,
1, 2, 3.
584
Standard Objects
ContentVersion
Usage
• Use this object to create, query, retrieve, search, edit, and update a specific version of a Salesforce CRM Content document or Salesforce
file. Use the ContentDocument object to retrieve, query, update, and delete the latest version of a document, but not a content pack,
in a library or a Salesforce file .
• Use this object to create, query, retrieve, search, edit, and update a specific version of a Salesforce file. Use the ContentDocument
object to retrieve, query, update, and delete the latest version of a Salesforce file .
• To query a file that is shared only with a record, you must specify the content ID of the file.
• Not all fields can be set for Salesforce Files.
• You can only update a version if it is the latest version and if it is published.
• You can't archive versions.
• Using API version 32.0 and later, you can update record types on versions.
• You can't delete a version via the API.
• The maximum file size you can upload via the SOAP API must be less than 50 MB. When a document is uploaded or downloaded
via the API, it is converted to base64 and stored in VersionData. This conversion increases the document size by approximately
37%. You must account for the base64 conversion increase so that the file you plan to upload is less than 50 MB.
• To download a document via the API, you must export the VersionData of the document. This does not increase the download
count.
• When you upload a document from your local drive using the Data Loader, you must specify the actual path in both VersionData
and PathOnClient. VersionData identifies the location and extracts the format and PathOnClient identifies the type
of document being uploaded.
• SOQL queries on the ContentVersion object return all versions of the document. SOSL searches on the ContentVersion object return
only the most recent version of the document.
• If you query versions in the API, versions with a PublishStatus of Upload Interrupted are not returned.
• Documents published into a personal library assume the default record type that is set for the user profile of the person publishing
the document (General, if no default is set for the user profile).
Note: An administrator can rename the default (Content Version Layout) page layout.
• Contact Manager, Group, Professional, Enterprise, Unlimited, and Performance Edition customers can publish a maximum of 36,000
new versions per 24–hour period. Developer Edition and trial users can publish a maximum of 2,500 new versions per 24–hour
period.
• Custom validation rules can prevent an update of documents published into a personal library via the API.
Applying Tags to ContentVersion Records
Tags can be applied to ContentVersion records using either Enterprise or Partner API.
To apply tags to a ContentVersion record, set a value in the TagCsv field. For example, setting this field to one,two,three creates
and associates three tags to that version.
• The maximum length of the TagCsv field is 2,000 characters.
• The maximum length of an individual tag is 100 characters.
• When tags are applied to a version, the content is indexed automatically and the tags are searchable.
• You can't apply tags to a TagCsv that is published into a personal library.
• You can't apply tags using the ContentDocument object.
585
Standard Objects
ContentVersionHistory
• You can't change or delete tag names. You can remove tags from a document, but that doesn't delete the tag.
• Tags are case insensitive. You can't have two tags with the same name even if they use different uppercase and lowercase letters.
The case of the original tag is always used.
To delete tags from a ContentVersion record, perform a standard API update, and remove any values from the TagCsv field that you
want to delete. For example, if the original TagCsv is one,two,three, perform an API update specifying one,three in the
TagCsv field to delete two. To delete all tags from a ContentVersion you perform a standard API update by setting the field to null.
If you create a ContentVersion record and want to revise it via the API, you insert another ContentVersion record but associate it to the
same ContentDocument record as the original. This has an impact on tagging:
• If you insert the revision and do not set any value in the TagCsv field, any tags applied to the previous version are automatically
applied to the new version.
• If you insert the revision and specify a new TagCsv field, no tags transfer over and the tags you specify are applied instead.
When you perform a SOQL query for a ContentVersion record and select the TagCsv field, all the tags associated with that record are
returned. The tags in the string are always ordered alphabetically even if they were inserted in a different order. You can't use the
TagCsv field as part of a filter in a SOQL query. You can't query all tags in your organization.
Library tagging rules:
• API tagging respects the tagging restrictions that exist on any library that the document is published into. For example, if the library
is in restricted tagging mode and only allows tags one,three, you can't save a version with a TagCsv of one,two,three.
• If the library is in guided tagging mode, you can apply tags to the ContentVersion. You can't query the value of guided tags on a
library, but you can query the tagging model of a library.
SEE ALSO:
ContentDocument
ContentVersionHistory
ContentVersionHistory
Represents the history of a specific version of a document. This object is available in version 17.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission to query content in libraries where they have
access.
• A user can query all versions of a document from their personal library and any version that is part of or shared with a library where
they are a member, regardless of library permissions.
586
Standard Objects
ContentVersionHistory
Fields
Field
Details
ContentVersionId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the version.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed. Possible values include:
• contentVersionCreated—A new version is created.
• contentVersionUpdated—The title, description, or any custom field on the
version is changed.
• contentVersionDownloaded—A version is downloaded.
• contentVersionViewed—The version details are viewed.
• contentVersionRated—The version is rated.
• contentVersionCommented—The version receives a comment.
• contentVersionDataReplaced—The new version replaces the previous version,
which can happen only when the new version is uploaded immediately after the previous
version.
NewValue
Type
anyType
Properties
Nillable, Sort
587
Standard Objects
Field
ContentWorkspace
Details
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this read-only object to query the history of a document version.
SEE ALSO:
ContentVersion
ContentWorkspace
Represents a public library in Salesforce CRM Content. This object is available in versions 17.0 and later.
Note: This object does not apply to personal libraries.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Customer and Partner Portal users can only edit the library document object if they have a Salesforce CRM Content feature license.
• Customer and Partner Portal users can query this object if they have the “View Content in Portal” permission. A user can query all
public libraries where they are members, regardless of library permissions.
Fields
Field
Details
DefaultRecordTypeId
Type
reference
Properties
Filter, Nillable
588
Standard Objects
Field
ContentWorkspace
Details
Description
ID of the default content type for the library. Content types are the containers
for custom fields in Salesforce CRM Content.
Description
Type
textarea
Properties
Filter, Nillable
Description
Text description of the content library.
DeveloperName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique name of the library in the API. Allows a link to the library to be
packaged when an asset file is added to a package. Although libraries are not
a packageable entity, references to libraries with a developer name will be
included in the package when asset files are packaged. These links can then
be restored in the target org.
This name can contain only underscores and alphanumeric characters, and
must be unique in your org. It must begin with a letter, not include spaces, not
end with an underscore, and not contain two consecutive underscores. Label
is Unique Name.
This field is available in API version 39.0 and later.
IsRestrictContentTypes
Type
boolean
Properties
Defaulted on create, Filter
Description
Read only. Indicates whether content types have been restricted (true) or
not (false).
IsRestrictLinkedContentTypes
Type
boolean
Properties
Defaulted on create, Filter
Description
Read only. Indicates whether linked content types have been restricted (true)
or not (false).
589
Standard Objects
ContentWorkspace
Field
Details
Name
Type
string
Properties
Filter, idLookup
Description
Name of the library.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique name of the library in the API. Allows a link to the library to be
packaged when an asset file is added to a package. Limit: 15 characters. This
field is available in API version 39.0 and later.
RootContentFolderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of root folder of the library. This field is available in API version 39.0 and later.
TagModel
Type
picklist
Properties
Defaulted on create, Filter, Nillable, Restricted picklist
Description
The type of tagging assigned to a library. Valid values are:
• U — Unrestricted. No restrictions on tagging. Users can enter any tag when
publishing or editing content.
• G — Guided. Users can enter any tag when publishing or editing content,
but they are also offered a list of suggested tags.
• R — Restricted. Users must choose from a list of suggested tabs.
WorkspaceType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Differentiates between different types of libraries. Valid values are:
590
Standard Objects
Field
ContentWorkspaceDoc
Details
• R — Regular library
• B — Org asset library
This field is available in API version 39.0 and later.
Usage
Use this object to query libraries to find out where documents can be published.
If the content type is not specified when publishing a new version into a library, it will be determined by the DefaultRecordTypeId
of the primary library.
You can't create, update, or delete a library via the API.
SEE ALSO:
ContentWorkspaceDoc
ContentWorkspaceDoc
Represents a link between a document and a public library in Salesforce CRM Content. This object is available in versions 17.0 and later.
Note: This object does not apply to documents and versions in a personal library.
Supported Calls
create(), delete(), describeSObjects()query(), retrieve(), update(), upsert()
Special Access Rules
• Customer and Partner Portal users must have the “View Content in Portal” permission in order to query and obtain content in libraries
where they have access.
• Customer and Partner Portal users can only edit documents if they have a Salesforce CRM Content feature license.
• To create a ContentWorkspaceDoc, you must be a member of the library with one of these library privileges enabled:
– “Add Content”
– “Add Content On Behalf of Others”
– “Manage Library”
• To query all library documents in a library, a user must be a member of that library, regardless of library permissions.
591
Standard Objects
ContentWorkspaceDoc
Fields
Field
Details
ContentDocumentId
Type
reference
Properties
Create, Filter
Description
Read only. ID of the library document.
ContentWorkspaceId
Type
reference
Properties
Create, Filter
Description
Read only. ID of the library.
IsOwner
Type
boolean
Properties
Defaulted on create, Filter
Description
Read only. Indicates whether the library owns the document and determines
permissions for that document (true) or not (false). Documents can belong to
more than one library, but only one library owns the document and determines its
permissions.
Usage
• Use this object to link a document to one or more libraries.
• To share a document with additional libraries, create additional ContentWorkspaceDoc records which join the document to the
additional libraries.
• Inserting a ContentWorkspaceDoc triggers the publish process for public libraries.
• A document can be published into many public libraries, but it will always be owned by one library which controls the security of
the document.
• A document can only be published into the document owner's personal library. You can't publish into another user's personal library.
Personal libraries are not visible via the API.
• To publish a document into a personal library, you must specify your user ID as the first publish location ID. If you leave the first
publish location ID blank, it defaults to the current user's ID.
• A document can be published from a personal library into a public library, but once it has been published into the public library, it
can't be published into the personal library again.
• You can't publish a document from a personal library into a public library that has restricted content types.
592
Standard Objects
Contract
• You can't update or delete a library document via the API.
SEE ALSO:
ContentWorkspace
Contract
Represents a contract (a business agreement) associated with an Account.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Sort,Update
Description
Required. ID of the Account associated with this contract.
ActivatedById
Type
reference
Properties
Filter, Group, Nillable, Sort,Update
Description
ID of the User who activated this contract.
ActivatedDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
Date and time when this contract was activated.
BillingAddress
Type
address
Properties
Filter, Nillable
593
Standard Objects
Field
Contract
Details
Description
The compound form of the billing address. Read-only. See Address Compound Fields for
details on compound address fields.
BillingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address. Maximum size is 40 characters.
BillingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 80 characters.
BillingCountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the contract’s billing address.
BillingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLongitude to specify the precise geolocation of a billing address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places.
BillingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLatitude to specify the precise geolocation of a billing address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places.
594
Standard Objects
Contract
Field
Details
BillingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address of this account. Maximum size is 20 characters.
BillingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Details for the billing address. Maximum size is 80 characters.
BillingStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the contract’s billing address.
BillingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address for the billing address.
CompanySignedDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date on which the contract was signed by your organization.
CompanySignedId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the User who signed the contract.
595
Standard Objects
Contract
Field
Details
ContractNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
Number of the contract.
ContractTerm
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Number of months that the contract is valid.
CustomerSignedDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date on which the customer signed the contract.
CustomerSignedId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the Contact who signed this contract.
CustomerSignedTitle
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Title of the customer who signed the contract.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the contract.
596
Standard Objects
Contract
Field
Details
EndDate
Type
date
Properties
Filter, Group, Nillable, Sort,
Description
Read-only. Calculated end date of the contract. This value is calculated by adding the
ContractTerm to the StartDate.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastApprovedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Last date the contract was approved.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
597
Standard Objects
Field
Contract
Details
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
OwnerExpirationNotice
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Number of days ahead of the contract end date (15, 30, 45, 60, 90, and 120). Used to notify
the owner in advance that the contract is ending.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the contract.
Pricebook2Id
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the pricebook, if any, associated with this contract.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
ShippingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the shipping address. Read-only. See Address Compound Fields for
details on compound address fields.
598
Standard Objects
Contract
Field
Details
ShippingCity
Type
string
Properties
Create, Filter, Nillable, Update
Description
Details of the shipping address. City maximum size is 40 characters.
ShippingCountry
Type
string
Properties
Create, Filter, Nillable, Update
Description
Details of the shipping address. Country maximum size is 80 characters.
ShippingCountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the contract’s shipping address.
ShippingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLongitude to specify the precise geolocation of a shipping address.
Acceptable values are numbers between –90 and 90 with up to 15 decimal places.
ShippingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLatitude to specify the precise geolocation of an address.
Acceptable values are numbers between –180 and 180 with up to 15 decimal places.
ShippingPostalCode
Type
string
Properties
Create, Filter, Nillable, Update
599
Standard Objects
Field
Contract
Details
Description
Details of the shipping address. Postal code maximum size is 20 characters.
ShippingState
Type
string
Properties
Create, Filter, Nillable, Update
Description
Details of the shipping address. State maximum size is 80 characters.
ShippingStateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the contract’s shipping address.
ShippingStreet
Type
string
Properties
Create, Filter, Nillable, Update
Description
The street address of the shipping address. Maximum of 255 characters.
SpecialTerms
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Special terms that apply to the contract.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort,Update
Description
Start date for this contract. Label is Contract Start Date.
Status
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
600
Standard Objects
Field
ContractContactRole
Details
Description
The picklist of values that indicate order status. Each value is within one of two status
categories defined in StatusCode. For example, the status picklist may contain: Ready
to Ship, Shipped, Received as values within the Activated StatusCode.
StatusCode
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The status category for the contract. A contract can be Draft, InApproval, or Activated. Label
is Status Category.
Usage
The Contract object represents a business agreement.
The Status field specifies the current state of a contract. Status strings (defined in the ContractStatus object) represent its current
state (Draft, InApproval, or Activated).
Client applications must initially create a Contract in a non-Activated state. Client applications can subsequently activate a Contract by
updating it and setting the value in its Status field to Activated; however, the Status field is the only field you can update when
activating the Contract.
Once a Contract has been activated, your client application can't change its status; however, prior to activation, your client application
can change the status value from Draft to InApproval via the API. Also, your client application can delete contracts whose status is Draft
or InApproval but not when a contract status is Activated.
Client applications can use the API to create, update, delete, and query any Attachment associated with a contract.
SEE ALSO:
ContractContactRole
ContractHistory
ContractStatus
ContractContactRole
Represents the role that a given Contact plays on a Contract.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
601
Standard Objects
ContractContactRole
Fields
Field
Details
ContactId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the Contact associated with this Contract.
ContractId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Contract.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort,Update
Description
Specifies whether this Contact plays the primary role on this Contract (true) or not (false).
Note that each contract has only one primary contact role. Default is false. Labels is
Primary.
Role
Type
picklist
Properties
Create, Filter, Nillable, Group, Sort, Update
Description
Name of the role played by the Contact on this Contract, such as Decision Maker, Approver,
Buyer, and so on. Must be unique—there can't be multiple records in which the
ContractId, ContactId, and Role values are identical. Different contacts can play
the same role on the same contract. A contact can play different roles on the same contract.
602
Standard Objects
ContractFeed
Usage
Use the ContractContactRole object to define the role that a given Contact plays on a given Contract within the context of a specific
Opportunity.
SEE ALSO:
ContractStatus
ContractFeed
Represents a single feed item in the feed on the contract record detail page. This object is available in API version 18.0 and later.
A contract feed shows recent changes to a contract record for any fields that are tracked in feeds, and posts and comments about the
record. It is a useful way to stay up-to-date with changes made to contracts in Salesforce.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Contract object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of ContractFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
603
Standard Objects
Field
ContractFeed
Details
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
604
Standard Objects
Field
ContractFeed
Details
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
605
Standard Objects
ContractFeed
Field
Details
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• 
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: 606
Standard Objects
Field
ContractFeed
Details
Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
607
Standard Objects
Field
ContractFeed
Details
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the contract record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
608
Standard Objects
Field
ContractFeed
Details
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
609
Standard Objects
ContractHistory
Field
Details
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a contract record.
SEE ALSO:
Contract
EntitySubscription
NewsFeed
UserProfileFeed
ContractHistory
Represents the history of changes to the values in the fields of a contract.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
610
Standard Objects
ContractHistory
Fields
Field
Details
ContractId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contract. Label is Contract ID.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contract.
611
Standard Objects
ContractLineItem
This object respects field level security on the parent object.
SEE ALSO:
ContractStatus
ContractLineItem
Represents a Product2 in a ServiceContract (customer support agreement). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AssetId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Required. ID of the Asset associated with the contract line item. Must be a valid asset ID.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the contract line item.
Discount
Type
percent
Properties
Create, Filter, Nillable, Update
Description
The discount for the product as a percentage.
When updating, if you specify Discount without specifying TotalPrice, the
TotalPrice will be adjusted to accommodate the new Discount value, and the
UnitPrice will be held constant.
612
Standard Objects
Field
ContractLineItem
Details
If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system can determine which one to automatically
adjust.
EndDate
Type
date
Properties
Create, Filter, Nillable, Update
Description
The last day the contract line item is in effect.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LineItemNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Update
Description
Automatically-generated number that identifies the contract line item.
ListPrice
Type
currency
Properties
Filter, Nillable
Description
Corresponds to the UnitPrice on the PricebookEntry that is associated with this line
item, which can be in the standard pricebook or a custom pricebook. A client application
can use this information to show whether the unit price (or sales price) of the line item differs
from the pricebook entry list price.
613
Standard Objects
Field
ContractLineItem
Details
ParentContractLineItemId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The line item’s parent line item, if it has one.
PricebookEntryId
Type
reference
Properties
Create, Filter
Description
Required. ID of the associated PricebookEntry.
Only exists if Product2 is enabled.
Quantity
Type
double
Properties
Create, Filter, Update
Description
Number of units of the contract line item (product) included in the associated service contract.
RootContractLineItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The top-level line item in a contract line item hierarchy. Depending on where a
line item lies in the hierarchy, its root could be the same as its parent.
ServiceContractId
Type
reference
Properties
Create, Filter
Description
Required. ID of the ServiceContract associated with the contract line item. Must be a valid
asset ID.
StartDate
Type
date
614
Standard Objects
Field
ContractLineItem
Details
Properties
Create, Filter, Nillable, Update
Description
The first day the contract line item is in effect.
Status
Type
picklist
Properties
Filter, Nillable
Description
Status of the contract line item.
Subtotal
Type
currency
Properties
Filter, Nillable
Description
Contract line item's sales price multiplied by the Quantity.
TotalPrice
Type
currency
Properties
Filter, Nillable
Description
This field is available only for backward compatibility. It represents the total price of the
ContractLineItem
If you specify Discount and Quantity, this field or UnitPrice is required.
This field is nillable, but you can't set both TotalPrice and UnitPrice to null in the
same update request. To insert the TotalPrice for a contract line item via the API (given
only a unit price and the quantity), calculate this field as the unit price multiplied by the
quantity.
UnitPrice
Type
currency
Properties
Create, Filter, Update
Description
The unit price for the contract line item. In the user interface, this field’s value is calculated
by dividing the total price of the contract line item by the quantity listed for that line item.
Label is Sales Price.
This field or TotalPrice is required. You can’t specify both.
615
Standard Objects
Field
ContractLineItemHistory
Details
If you specify Discount and Quantity, this field or TotalPrice is required.
Usage
Use this object to query and manage contract line items.
SEE ALSO:
ContractLineItemHistory
ContractLineItemHistory
Represents the history of changes to the values in the fields on a ContractLineItem (items in a customer support agreement). This object
is available in API version 18.0 and later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
ContractLineItemId
Type
reference
Properties
Filter, Group, Sort
Description
Required. ID of the ContractLineItem.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is
organized into different business units, you could create a division for each business
unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the
organization has the Division permission enabled.
Field
Type
picklist
616
Standard Objects
Field
ContractStatus
Details
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contract line item.
This object respects field level security on the parent object.
SEE ALSO:
ContractLineItem
ContractStatus
Represents the status of a Contract, such as Draft, InApproval, Activated, Terminated, or Expired.
617
Standard Objects
ContractStatus
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default contract status value (true) or not (false) in the
picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this contract status value. This display value is the internal label that does
not get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the contract status picklist. These numbers are not
guaranteed to be sequential, as some previous contract status values might have been
deleted.
StatusCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
618
Standard Objects
Field
ContractTag
Details
Description
Code indicating the status of a contract. One of the following values:
• Draft
• InApproval
• Activated
Two other values (Terminated and Expired) are defined but are not available for use
via the API.
Usage
This object represents a value in the contract status picklist. The contract status picklist provides additional information about the status
of a Contract, such as its current state (Draft, InApproval, or Activated). You can query these records to retrieve the set of
values in the contract status picklist, and then use that information while processing Contract objects to determine more information
about a given contract. For example, the application could test whether a given contract is activated based on its Status value and
the value of the StatusCode property in the associated ContractStatus object.
SEE ALSO:
ContractContactRole
ContractTag
Associates a word or short phrase with a Contract.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
619
Standard Objects
Field Name
CorsWhitelistEntry
Details
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
ContractTag stores the relationship between its parent TagDefinition and the Contract being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
CorsWhitelistEntry
Apex REST, Bulk API, Chatter REST API, Lightning API, Lightning Out, REST API, and Wave REST API support CORS (cross-origin resource
sharing). To access these APIs from JavaScript in a web browser, add the origin serving the script to the CORS whitelist.
Supported Calls
create(), delete(), query(), retrieve(), upsert()
620
Standard Objects
CorsWhitelistEntry
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
This field is automatically generated but you can supply your own value if you create the
record using the API.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
This picklist contains the following fully-supported languages:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
621
Standard Objects
Field Name
CorsWhitelistEntry
Details
• Thai: th
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the CORS whitelist entry.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
For managed packages, this field is the namespace prefix assigned to the package. For
unmanaged packages, this field is blank.
UrlPattern
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The origin URL pattern must include the HTTPS protocol (unless you’re using your localhost)
and a domain name, and can include a port. The wildcard character (*) is supported and
must be in front of a second-level domain name. For example,
https://*.example.com adds all subdomains of example.com to the whitelist.
The origin URL pattern can be an IP address. However, an IP address and a domain that
resolve to the same address are not the same origin, and you must add them to the CORS
whitelist as separate entries.
Usage
CORS is a W3C recommendation that enables web browsers to request resources from origins other than their own (cross-origin request).
For example, using CORS, a JavaScript script at https://www.example.com could request a resource from
https://www.salesforce.com.
If a browser that supports CORS makes a request to an origin in the Salesforce CORS whitelist, Salesforce returns the origin in the
Access-Control-Allow-Origin HTTP header, along with any additional CORS HTTP headers. If the origin is not included in
the whitelist, Salesforce returns HTTP status code 403.
622
Standard Objects
CronJobDetail
CronJobDetail
Contains details about the associated scheduled job, such as the job’s name and type. This object is available in API version 29.0 and
later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
JobType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of the associated scheduled job. The following are the available job types. Each job
type label is listed with its value in parenthesis. Use the job type value when querying for a
specific job type.
• Data Export (0)
• Dashboard Refresh (3)
• Reporting Snapshot (4)
• Scheduled Apex (7)
• Report Run (8)
• Batch Job (9)
Name
Type
string
Properties
Filter, Group, idLookup, Sort,
Description
The name of the associated scheduled job.
Usage
Use this object to query additional information about a scheduled job, such as the job’s name and type.
623
Standard Objects
CronTrigger
CronTrigger
Contains schedule information for a scheduled job. CronTrigger is similar to a cron job on UNIX systems. This object is available in API
version 17.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
CronExpression
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The cron expression used to initiate the schedule.
Syntax:
Seconds Minutes Hours Day_of_month Month Day_of_week
Optional_year
See schedule(jobName, cronExpression, schedulableClass) in the
Apex Developer Guide.
CronJobDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the CronJobDetail record containing more details about this scheduled job.
EndTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the job either finished or will finish.
NextFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
624
Standard Objects
Field
CronTrigger
Details
Description
The next date and time the job is scheduled to run. null if the job is not scheduled to run
again.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Owner of the job.
PreviousFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The most recent date and time the job ran. null if the job has not run before current local
time.
StartTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the most recent iteration of the scheduled job started.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The current state of the job. The job state is managed by the system. Possible values are:
• WAITING—The job is waiting for execution.
• ACQUIRED—The job has been picked up by the system and is about to execute.
• EXECUTING—The job is executing.
• COMPLETE—The trigger has fired and is not scheduled to fire again.
• ERROR—The trigger definition has an error.
• DELETED—The job has been deleted.
• PAUSED—A job can have this state during patch and major releases. After the release
has finished, the job state is automatically set to WAITING or another state.
625
Standard Objects
Field
CurrencyType
Details
• BLOCKED—Execution of a second instance of the job is attempted while one instance
is running. This state lasts until the first job instance is completed.
• PAUSED_BLOCKED—A job has this state due to a release occurring. When the release
has finished and no other instance of the job is running, the job’s status is set to another
state.
TimesTriggered
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times this job has been triggered.
TimeZoneSidKey
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Returns the timezone ID. For example, America/Los_Angeles.
Usage
Use this object to query scheduled jobs in your organization.
CurrencyType
Represents the currencies used by an organization for which the multicurrency feature is enabled.
Supported Calls
create(), describeSObjects(), getUpdated(), query(), retrieve(), search(), update()
Special Access Rules
• This object is not available in single-currency organizations.
• You need the “Customize Application” permission to edit this object.
• Your client application can't delete this object.
• Customer Portal users can't access this object.
626
Standard Objects
CurrencyType
Fields
Field
Details
ConversionRate
Type
double
Properties
Filter
Description
Required. Conversion rate of this currency type against the corporate currency.
DecimalPlaces
Type
int
Properties
Filter
Description
Required. For this currency, specifies the number of digits to the right of the decimal
point, such as zero (0) for JPY or 2 for USD.
IsActive
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether this currency type is active (true) or not (false). Inactive
currency types do not appear in picklists in the user interface. Label is Active. This
field defaults to false if no value is provided when updating or inserting a record.
IsCorporate
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether this currency type is the corporate currency (true) or not (false).
Label is Corporate Currency. All other currency conversion rates are applied against
this corporate currency. If a currency is already defined as the corporate currency in
the user interface, it can't be unset. When a non-corporate currency is set to a
corporate currency, the system reconfigures all conversion rates based on the new
corporate currency.
IsoCode
Type
picklist
Properties
Filter, Restricted picklist
627
Standard Objects
Field
CustomBrand
Details
Description
Required. ISO code of the currency. Must be one of the valid alphabetic, three-letter
currency ISO codes defined by the ISO 4217 standard, such as USD, GBP, or JPY.
Must be unique within your organization. Label is Currency ISO Code.
Usage
This object is for multicurrency organizations only. Use this object to define the currencies your organization uses.
When updating an existing record, make sure to provide values for all fields to avoid undesired changes to the CurrencyType. For example,
if a value for IsActive is not provided, the default (false) is used, which could result in a currently active CurrencyType becoming
inactive.
SEE ALSO:
DatedConversionRate
Object Basics
CustomBrand
Represents a custom branding and color scheme. This object is available in API version 28.0 and later.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the parent entity that this branding applies to. The parent entity can
be either a network, organization, topic, or reputation level.
The branding applies to the entity that the ParentId references. For example,
if the ParentId references a network ID, the branding applies to that network
628
Standard Objects
Field Name
CustomBrandAsset
Details
(community) only, and if the ParentId references an organization ID, the
branding applies to the organization that it is accessed through, and so on. Label
is Branded Entity ID.
Usage
Use this object along with CustomBrandAsset to apply a custom branding scheme to your community. The branding scheme for the
community shows in both the user interface and in Salesforce1. You must have “Create and Manage Communities” to customize
community branding.
You can also use this object to apply a custom branding scheme to your organization when it is accessed through Salesforce1.
SEE ALSO:
Network
CustomBrandAsset
Represents a branding element in a custom branding scheme. For example, a color, logo image, header image, or footer text. A
CustomBrandAsset can apply to a community or to an organization using Salesforce1. This object is available in API version 28.0 and
later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AssetCategory
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Values include:
• MotifZeronaryColor—The background color for the header. Label
is Zeronary motif color.
629
Standard Objects
Field Name
CustomBrandAsset
Details
If this CustomBrandAsset is for a network, this is the header color for the
network. If it is for an organization, this is the header color when users access
Salesforce1.
• MotifPrimaryColor—The color used for the active tab. Label is
Primary motif color.
Not used for Salesforce1 branding.
• MotifSecondaryColor—The color used for the top borders of lists
and tables. Label is Secondary motif color.
Not used for Salesforce1 branding.
• MotifTertiaryColor—The background color for section headers on
edit and detail pages. Label is Tertiary motif color.
Not used for Salesforce1 branding.
• MotifQuaternaryColor—If this CustomBrandAsset is for a network,
this is the background color for network pages. If it is for an organization, this
is the background color on a splash page. Label is Quaternary motif
color.
• MotifZeronaryComplementColor—Font color used with
zeronaryColor. Label is Zeronary motif colors
complement color.
• MotifPrimaryComplementColor—Font color used with
primaryColor. Label is Primary motif colors complement
color.
Not used for Salesforce1 branding.
• MotifTertiaryComplementColor—Font color used with
tertiaryColor. Label is Tertiary motif colors
complement color.
Not used for Salesforce1 branding.
• MotifQuaternaryComplementColor—Font color used with
quaternaryColor. Label is Quaternary motif colors
complement color.
Not used for Salesforce1 branding.
• PageHeader—An image that appears on the header of the community
pages. Can be an .html, .gif, .jpg, or .png file. Label is Page Header.
Not used for Salesforce1 branding.
• PageFooter—An image that appears on the footer of the community
pages. Must be an .html file. Label is Page Footer.
Not used for Salesforce1 branding.
630
Standard Objects
Field Name
CustomBrandAsset
Details
• LoginFooterText—The text that appears in the footer of the
community login page. Label is Footer text displayed on the
login page.
Not used for Salesforce1 branding.
• LoginLogoImageId—The logo that appears on the community login
page for external users. In Salesforce1, this logo also appears on the
community splash page. Label is Logo image displayed on the
login page.
• LargeLogoImageId—Only used for Salesforce1. The logo that appears
on the splash page when you start Salesforce1. Label is Large logo
image.
• SmallLogoImageId—Only used for Salesforce1. The logo that appears
on the publisher in Salesforce1. Label is Small logo image.
CustomBrandId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the associated CustomBrand.
ForeignKeyAssetId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the document used if the AssetCategory is PageHeader,
PageFooter, or LoginLogoImageId.
TextAsset
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Text used if the AssetCategory is LoginFooterText.
Usage
Use this object to add basic branding elements—color scheme, header or footer images, login page logo, or footer text—to the branding
scheme (CustomBrand) for your Network. You must have “Create and Manage Communities” to customize community branding.
631
Standard Objects
Custom Metadata Type__mdt
If you’re using communities in Salesforce1, the loading page shows the logo.
SEE ALSO:
Network
Custom Metadata Type__mdt
Represents a custom metadata record. This object is available in API version 34.0 and later.
The object name is a variable with the syntax Custom Metadata Type__mdt, where Custom Metadata Type is the
Object Name for the custom metadata type associated with the custom metadata record. For example, PicklistUsage__mdt
represents a custom metadata record based on the PicklistUsage custom metadata type.
Supported Calls
describeSObjects(), describeLayout(), query(), retrieve()
Fields
Field
Details
Custom Field__c
Type
Any Type
Properties
Filter, Group, Nillable, Sort
Description
A custom field on the record.
DeveloperName
Type
string
Properties
Defaulted on create, Filter, Group, Sort
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization.
isProtected
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
632
Standard Objects
Field
Custom Metadata Type__mdt
Details
Description
When a custom metadata type’s records are released in a managed package, access to them
is limited in specific ways.
• Code that’s in the same managed package as custom metadata records can read the
records.
• Code that’s in the same managed package as custom metadata types can read the
records that belong to that type.
• Code that’s in a managed package that doesn’t contain either the type or the protected
record can’t read the protected records.
• Code that the subscriber creates and code that’s in an unmanaged package can’t read
the protected records.
• The developer can modify protected records only with a package upgrade. The subscriber
can’t read or modify protected records. The developer name of a protected record can’t
be changed after release.
Records that are hidden by these access rules are also unavailable to REST, SOAP, SOQL, and
Setup.
Label
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The custom metadata record label. This label value is always the same as the MasterLabel
value.
Language
Type
string
Properties
Filter, Group, restrictedPicklist, Sort
Description
The language of the custom metadata record. This value is always the default language of
the developing organization.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The master label for the custom metadata record.
NamespacePrefix
Type
string
633
Standard Objects
Field
Custom Object__Feed
Details
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
QualifiedApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A concatenation of the namespace prefix and developer name. The format is
NamespacePrefix__DeveloperName.
Custom Object__Feed
Represents a single feed item on a custom object detail page. This object is available in API version 18.0 and later.
A custom object feed shows recent changes to a custom object record for fields that are tracked in feeds, and posts and comments
about the object. It is a useful way to stay up-to-date with changes made to a custom object. The object name is variable and uses a
Custom Object__Feed syntax, where Custom Object is the Object Name for the custom object. For example,
Offer__Feed represents a feed object for the custom object named Offer.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
634
Standard Objects
Custom Object__Feed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of Custom Object__Feed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy
field contains the ID of the system administrator. The ConnectionId contains the ID of
the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
635
Standard Objects
Field
Custom Object__Feed
Details
Description
Required if Type is ContentPost. Encoded file data in any format, and can’t be 0 bytes.
Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
This field is required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
636
Standard Objects
Custom Object__Feed
Field
Details
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• 606
Standard Objects
Field
ContractFeed
Details
Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
607
Standard Objects
Field
ContractFeed
Details
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the contract record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
608
Standard Objects
Field
ContractFeed
Details
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
609
Standard Objects
ContractHistory
Field
Details
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for a contract record.
SEE ALSO:
Contract
EntitySubscription
NewsFeed
UserProfileFeed
ContractHistory
Represents the history of changes to the values in the fields of a contract.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
610
Standard Objects
ContractHistory
Fields
Field
Details
ContractId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Contract. Label is Contract ID.
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contract.
611
Standard Objects
ContractLineItem
This object respects field level security on the parent object.
SEE ALSO:
ContractStatus
ContractLineItem
Represents a Product2 in a ServiceContract (customer support agreement). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AssetId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Required. ID of the Asset associated with the contract line item. Must be a valid asset ID.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the contract line item.
Discount
Type
percent
Properties
Create, Filter, Nillable, Update
Description
The discount for the product as a percentage.
When updating, if you specify Discount without specifying TotalPrice, the
TotalPrice will be adjusted to accommodate the new Discount value, and the
UnitPrice will be held constant.
612
Standard Objects
Field
ContractLineItem
Details
If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system can determine which one to automatically
adjust.
EndDate
Type
date
Properties
Create, Filter, Nillable, Update
Description
The last day the contract line item is in effect.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LineItemNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Update
Description
Automatically-generated number that identifies the contract line item.
ListPrice
Type
currency
Properties
Filter, Nillable
Description
Corresponds to the UnitPrice on the PricebookEntry that is associated with this line
item, which can be in the standard pricebook or a custom pricebook. A client application
can use this information to show whether the unit price (or sales price) of the line item differs
from the pricebook entry list price.
613
Standard Objects
Field
ContractLineItem
Details
ParentContractLineItemId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The line item’s parent line item, if it has one.
PricebookEntryId
Type
reference
Properties
Create, Filter
Description
Required. ID of the associated PricebookEntry.
Only exists if Product2 is enabled.
Quantity
Type
double
Properties
Create, Filter, Update
Description
Number of units of the contract line item (product) included in the associated service contract.
RootContractLineItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The top-level line item in a contract line item hierarchy. Depending on where a
line item lies in the hierarchy, its root could be the same as its parent.
ServiceContractId
Type
reference
Properties
Create, Filter
Description
Required. ID of the ServiceContract associated with the contract line item. Must be a valid
asset ID.
StartDate
Type
date
614
Standard Objects
Field
ContractLineItem
Details
Properties
Create, Filter, Nillable, Update
Description
The first day the contract line item is in effect.
Status
Type
picklist
Properties
Filter, Nillable
Description
Status of the contract line item.
Subtotal
Type
currency
Properties
Filter, Nillable
Description
Contract line item's sales price multiplied by the Quantity.
TotalPrice
Type
currency
Properties
Filter, Nillable
Description
This field is available only for backward compatibility. It represents the total price of the
ContractLineItem
If you specify Discount and Quantity, this field or UnitPrice is required.
This field is nillable, but you can't set both TotalPrice and UnitPrice to null in the
same update request. To insert the TotalPrice for a contract line item via the API (given
only a unit price and the quantity), calculate this field as the unit price multiplied by the
quantity.
UnitPrice
Type
currency
Properties
Create, Filter, Update
Description
The unit price for the contract line item. In the user interface, this field’s value is calculated
by dividing the total price of the contract line item by the quantity listed for that line item.
Label is Sales Price.
This field or TotalPrice is required. You can’t specify both.
615
Standard Objects
Field
ContractLineItemHistory
Details
If you specify Discount and Quantity, this field or TotalPrice is required.
Usage
Use this object to query and manage contract line items.
SEE ALSO:
ContractLineItemHistory
ContractLineItemHistory
Represents the history of changes to the values in the fields on a ContractLineItem (items in a customer support agreement). This object
is available in API version 18.0 and later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
ContractLineItemId
Type
reference
Properties
Filter, Group, Sort
Description
Required. ID of the ContractLineItem.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is
organized into different business units, you could create a division for each business
unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the
organization has the Division permission enabled.
Field
Type
picklist
616
Standard Objects
Field
ContractStatus
Details
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a contract line item.
This object respects field level security on the parent object.
SEE ALSO:
ContractLineItem
ContractStatus
Represents the status of a Contract, such as Draft, InApproval, Activated, Terminated, or Expired.
617
Standard Objects
ContractStatus
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default contract status value (true) or not (false) in the
picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this contract status value. This display value is the internal label that does
not get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the contract status picklist. These numbers are not
guaranteed to be sequential, as some previous contract status values might have been
deleted.
StatusCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
618
Standard Objects
Field
ContractTag
Details
Description
Code indicating the status of a contract. One of the following values:
• Draft
• InApproval
• Activated
Two other values (Terminated and Expired) are defined but are not available for use
via the API.
Usage
This object represents a value in the contract status picklist. The contract status picklist provides additional information about the status
of a Contract, such as its current state (Draft, InApproval, or Activated). You can query these records to retrieve the set of
values in the contract status picklist, and then use that information while processing Contract objects to determine more information
about a given contract. For example, the application could test whether a given contract is activated based on its Status value and
the value of the StatusCode property in the associated ContractStatus object.
SEE ALSO:
ContractContactRole
ContractTag
Associates a word or short phrase with a Contract.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
619
Standard Objects
Field Name
CorsWhitelistEntry
Details
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
ContractTag stores the relationship between its parent TagDefinition and the Contract being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
CorsWhitelistEntry
Apex REST, Bulk API, Chatter REST API, Lightning API, Lightning Out, REST API, and Wave REST API support CORS (cross-origin resource
sharing). To access these APIs from JavaScript in a web browser, add the origin serving the script to the CORS whitelist.
Supported Calls
create(), delete(), query(), retrieve(), upsert()
620
Standard Objects
CorsWhitelistEntry
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
This field is automatically generated but you can supply your own value if you create the
record using the API.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
This picklist contains the following fully-supported languages:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
621
Standard Objects
Field Name
CorsWhitelistEntry
Details
• Thai: th
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the CORS whitelist entry.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
For managed packages, this field is the namespace prefix assigned to the package. For
unmanaged packages, this field is blank.
UrlPattern
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The origin URL pattern must include the HTTPS protocol (unless you’re using your localhost)
and a domain name, and can include a port. The wildcard character (*) is supported and
must be in front of a second-level domain name. For example,
https://*.example.com adds all subdomains of example.com to the whitelist.
The origin URL pattern can be an IP address. However, an IP address and a domain that
resolve to the same address are not the same origin, and you must add them to the CORS
whitelist as separate entries.
Usage
CORS is a W3C recommendation that enables web browsers to request resources from origins other than their own (cross-origin request).
For example, using CORS, a JavaScript script at https://www.example.com could request a resource from
https://www.salesforce.com.
If a browser that supports CORS makes a request to an origin in the Salesforce CORS whitelist, Salesforce returns the origin in the
Access-Control-Allow-Origin HTTP header, along with any additional CORS HTTP headers. If the origin is not included in
the whitelist, Salesforce returns HTTP status code 403.
622
Standard Objects
CronJobDetail
CronJobDetail
Contains details about the associated scheduled job, such as the job’s name and type. This object is available in API version 29.0 and
later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
JobType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of the associated scheduled job. The following are the available job types. Each job
type label is listed with its value in parenthesis. Use the job type value when querying for a
specific job type.
• Data Export (0)
• Dashboard Refresh (3)
• Reporting Snapshot (4)
• Scheduled Apex (7)
• Report Run (8)
• Batch Job (9)
Name
Type
string
Properties
Filter, Group, idLookup, Sort,
Description
The name of the associated scheduled job.
Usage
Use this object to query additional information about a scheduled job, such as the job’s name and type.
623
Standard Objects
CronTrigger
CronTrigger
Contains schedule information for a scheduled job. CronTrigger is similar to a cron job on UNIX systems. This object is available in API
version 17.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
CronExpression
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The cron expression used to initiate the schedule.
Syntax:
Seconds Minutes Hours Day_of_month Month Day_of_week
Optional_year
See schedule(jobName, cronExpression, schedulableClass) in the
Apex Developer Guide.
CronJobDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the CronJobDetail record containing more details about this scheduled job.
EndTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the job either finished or will finish.
NextFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
624
Standard Objects
Field
CronTrigger
Details
Description
The next date and time the job is scheduled to run. null if the job is not scheduled to run
again.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Owner of the job.
PreviousFireTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The most recent date and time the job ran. null if the job has not run before current local
time.
StartTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time when the most recent iteration of the scheduled job started.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The current state of the job. The job state is managed by the system. Possible values are:
• WAITING—The job is waiting for execution.
• ACQUIRED—The job has been picked up by the system and is about to execute.
• EXECUTING—The job is executing.
• COMPLETE—The trigger has fired and is not scheduled to fire again.
• ERROR—The trigger definition has an error.
• DELETED—The job has been deleted.
• PAUSED—A job can have this state during patch and major releases. After the release
has finished, the job state is automatically set to WAITING or another state.
625
Standard Objects
Field
CurrencyType
Details
• BLOCKED—Execution of a second instance of the job is attempted while one instance
is running. This state lasts until the first job instance is completed.
• PAUSED_BLOCKED—A job has this state due to a release occurring. When the release
has finished and no other instance of the job is running, the job’s status is set to another
state.
TimesTriggered
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times this job has been triggered.
TimeZoneSidKey
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Returns the timezone ID. For example, America/Los_Angeles.
Usage
Use this object to query scheduled jobs in your organization.
CurrencyType
Represents the currencies used by an organization for which the multicurrency feature is enabled.
Supported Calls
create(), describeSObjects(), getUpdated(), query(), retrieve(), search(), update()
Special Access Rules
• This object is not available in single-currency organizations.
• You need the “Customize Application” permission to edit this object.
• Your client application can't delete this object.
• Customer Portal users can't access this object.
626
Standard Objects
CurrencyType
Fields
Field
Details
ConversionRate
Type
double
Properties
Filter
Description
Required. Conversion rate of this currency type against the corporate currency.
DecimalPlaces
Type
int
Properties
Filter
Description
Required. For this currency, specifies the number of digits to the right of the decimal
point, such as zero (0) for JPY or 2 for USD.
IsActive
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether this currency type is active (true) or not (false). Inactive
currency types do not appear in picklists in the user interface. Label is Active. This
field defaults to false if no value is provided when updating or inserting a record.
IsCorporate
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether this currency type is the corporate currency (true) or not (false).
Label is Corporate Currency. All other currency conversion rates are applied against
this corporate currency. If a currency is already defined as the corporate currency in
the user interface, it can't be unset. When a non-corporate currency is set to a
corporate currency, the system reconfigures all conversion rates based on the new
corporate currency.
IsoCode
Type
picklist
Properties
Filter, Restricted picklist
627
Standard Objects
Field
CustomBrand
Details
Description
Required. ISO code of the currency. Must be one of the valid alphabetic, three-letter
currency ISO codes defined by the ISO 4217 standard, such as USD, GBP, or JPY.
Must be unique within your organization. Label is Currency ISO Code.
Usage
This object is for multicurrency organizations only. Use this object to define the currencies your organization uses.
When updating an existing record, make sure to provide values for all fields to avoid undesired changes to the CurrencyType. For example,
if a value for IsActive is not provided, the default (false) is used, which could result in a currently active CurrencyType becoming
inactive.
SEE ALSO:
DatedConversionRate
Object Basics
CustomBrand
Represents a custom branding and color scheme. This object is available in API version 28.0 and later.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the parent entity that this branding applies to. The parent entity can
be either a network, organization, topic, or reputation level.
The branding applies to the entity that the ParentId references. For example,
if the ParentId references a network ID, the branding applies to that network
628
Standard Objects
Field Name
CustomBrandAsset
Details
(community) only, and if the ParentId references an organization ID, the
branding applies to the organization that it is accessed through, and so on. Label
is Branded Entity ID.
Usage
Use this object along with CustomBrandAsset to apply a custom branding scheme to your community. The branding scheme for the
community shows in both the user interface and in Salesforce1. You must have “Create and Manage Communities” to customize
community branding.
You can also use this object to apply a custom branding scheme to your organization when it is accessed through Salesforce1.
SEE ALSO:
Network
CustomBrandAsset
Represents a branding element in a custom branding scheme. For example, a color, logo image, header image, or footer text. A
CustomBrandAsset can apply to a community or to an organization using Salesforce1. This object is available in API version 28.0 and
later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AssetCategory
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Values include:
• MotifZeronaryColor—The background color for the header. Label
is Zeronary motif color.
629
Standard Objects
Field Name
CustomBrandAsset
Details
If this CustomBrandAsset is for a network, this is the header color for the
network. If it is for an organization, this is the header color when users access
Salesforce1.
• MotifPrimaryColor—The color used for the active tab. Label is
Primary motif color.
Not used for Salesforce1 branding.
• MotifSecondaryColor—The color used for the top borders of lists
and tables. Label is Secondary motif color.
Not used for Salesforce1 branding.
• MotifTertiaryColor—The background color for section headers on
edit and detail pages. Label is Tertiary motif color.
Not used for Salesforce1 branding.
• MotifQuaternaryColor—If this CustomBrandAsset is for a network,
this is the background color for network pages. If it is for an organization, this
is the background color on a splash page. Label is Quaternary motif
color.
• MotifZeronaryComplementColor—Font color used with
zeronaryColor. Label is Zeronary motif colors
complement color.
• MotifPrimaryComplementColor—Font color used with
primaryColor. Label is Primary motif colors complement
color.
Not used for Salesforce1 branding.
• MotifTertiaryComplementColor—Font color used with
tertiaryColor. Label is Tertiary motif colors
complement color.
Not used for Salesforce1 branding.
• MotifQuaternaryComplementColor—Font color used with
quaternaryColor. Label is Quaternary motif colors
complement color.
Not used for Salesforce1 branding.
• PageHeader—An image that appears on the header of the community
pages. Can be an .html, .gif, .jpg, or .png file. Label is Page Header.
Not used for Salesforce1 branding.
• PageFooter—An image that appears on the footer of the community
pages. Must be an .html file. Label is Page Footer.
Not used for Salesforce1 branding.
630
Standard Objects
Field Name
CustomBrandAsset
Details
• LoginFooterText—The text that appears in the footer of the
community login page. Label is Footer text displayed on the
login page.
Not used for Salesforce1 branding.
• LoginLogoImageId—The logo that appears on the community login
page for external users. In Salesforce1, this logo also appears on the
community splash page. Label is Logo image displayed on the
login page.
• LargeLogoImageId—Only used for Salesforce1. The logo that appears
on the splash page when you start Salesforce1. Label is Large logo
image.
• SmallLogoImageId—Only used for Salesforce1. The logo that appears
on the publisher in Salesforce1. Label is Small logo image.
CustomBrandId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the associated CustomBrand.
ForeignKeyAssetId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the document used if the AssetCategory is PageHeader,
PageFooter, or LoginLogoImageId.
TextAsset
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Text used if the AssetCategory is LoginFooterText.
Usage
Use this object to add basic branding elements—color scheme, header or footer images, login page logo, or footer text—to the branding
scheme (CustomBrand) for your Network. You must have “Create and Manage Communities” to customize community branding.
631
Standard Objects
Custom Metadata Type__mdt
If you’re using communities in Salesforce1, the loading page shows the logo.
SEE ALSO:
Network
Custom Metadata Type__mdt
Represents a custom metadata record. This object is available in API version 34.0 and later.
The object name is a variable with the syntax Custom Metadata Type__mdt, where Custom Metadata Type is the
Object Name for the custom metadata type associated with the custom metadata record. For example, PicklistUsage__mdt
represents a custom metadata record based on the PicklistUsage custom metadata type.
Supported Calls
describeSObjects(), describeLayout(), query(), retrieve()
Fields
Field
Details
Custom Field__c
Type
Any Type
Properties
Filter, Group, Nillable, Sort
Description
A custom field on the record.
DeveloperName
Type
string
Properties
Defaulted on create, Filter, Group, Sort
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization.
isProtected
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
632
Standard Objects
Field
Custom Metadata Type__mdt
Details
Description
When a custom metadata type’s records are released in a managed package, access to them
is limited in specific ways.
• Code that’s in the same managed package as custom metadata records can read the
records.
• Code that’s in the same managed package as custom metadata types can read the
records that belong to that type.
• Code that’s in a managed package that doesn’t contain either the type or the protected
record can’t read the protected records.
• Code that the subscriber creates and code that’s in an unmanaged package can’t read
the protected records.
• The developer can modify protected records only with a package upgrade. The subscriber
can’t read or modify protected records. The developer name of a protected record can’t
be changed after release.
Records that are hidden by these access rules are also unavailable to REST, SOAP, SOQL, and
Setup.
Label
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The custom metadata record label. This label value is always the same as the MasterLabel
value.
Language
Type
string
Properties
Filter, Group, restrictedPicklist, Sort
Description
The language of the custom metadata record. This value is always the default language of
the developing organization.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The master label for the custom metadata record.
NamespacePrefix
Type
string
633
Standard Objects
Field
Custom Object__Feed
Details
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
QualifiedApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A concatenation of the namespace prefix and developer name. The format is
NamespacePrefix__DeveloperName.
Custom Object__Feed
Represents a single feed item on a custom object detail page. This object is available in API version 18.0 and later.
A custom object feed shows recent changes to a custom object record for fields that are tracked in feeds, and posts and comments
about the object. It is a useful way to stay up-to-date with changes made to a custom object. The object name is variable and uses a
Custom Object__Feed syntax, where Custom Object is the Object Name for the custom object. For example,
Offer__Feed represents a feed object for the custom object named Offer.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
634
Standard Objects
Custom Object__Feed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of Custom Object__Feed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy
field contains the ID of the system administrator. The ConnectionId contains the ID of
the PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
635
Standard Objects
Field
Custom Object__Feed
Details
Description
Required if Type is ContentPost. Encoded file data in any format, and can’t be 0 bytes.
Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
This field is required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
636
Standard Objects
Custom Object__Feed
Field
Details
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
637
Standard Objects
Field
Custom Object__Feed
Details
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
638
Standard Objects
Field
Custom Object__Feed
Details
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the custom object that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
639
Standard Objects
Custom Object__Feed
Field
Details
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
640
Standard Objects
Field
CustomPermission
Details
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Usage
Use this object to track changes for a custom object. A record of this object type is automatically created when a user enables feed
tracking for a custom object.
CustomPermission
Represents a permission created to control access to a custom process or app, such as sending email. This object is available in API
version 31.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Description
Type
textarea
Properties
Filter, Group, Nillable, Sort
Description
A description of the custom permission. Limit: 255 characters.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the custom permission in the API. This name can contain
only underscores and alphanumeric characters and must be unique in your
641
Standard Objects
Field Name
CustomPermission
Details
organization. It must begin with a letter, not include spaces, not end with an
underscore, and not contain two consecutive underscores. The label corresponds
to Name in the user interface. Limit: 80 characters.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the custom permission. Valid values are:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The custom permission label, which corresponds to Label in the user interface.
Limit: 80 characters.
642
Standard Objects
CustomPermission
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Usage
Use the CustomPermission object to determine users’ access to custom permissions.
For example, to query all permission sets where the Button1 permission is enabled:
SELECT Id, DeveloperName,
(select Id, Parent.Name, Parent.Profile.Name from SetupEntityAccessItems)
FROM CustomPermission
WHERE DeveloperName = 'Button1'
To query all permission sets and profiles with custom permissions:
SELECT Assignee.Name, PermissionSet.Id,
PermissionSet.Profile.Name,
PermissionSet.isOwnedByProfile,
PermissionSet.Label
FROM PermissionSetAssignment
WHERE PermissionSetId
IN (SELECT ParentId
FROM SetupEntityAccess
WHERE SetupEntityType =
'CustomPermission')
To query for all SetupEntityAccess rows with custom permissions:
SELECT Id,ParentId,Parent.Name, SetupEntityId
FROM SetupEntityAccess
643
Standard Objects
CustomPermissionDependency
WHERE SetupEntityType='CustomPermission'
AND ParentId
IN (SELECT Id
FROM PermissionSet
WHERE isOwnedByProfile = false)
SEE ALSO:
CustomPermissionDependency
PermissionSet
Profile
SetupEntityAccess
CustomPermissionDependency
Represents the dependency between two custom permissions when one custom permission requires that you enable another custom
permission. This object is available in API version 32.0 and later.
Supported Calls
describeLayout(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
CustomPermissionId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the custom permission that requires the permission that’s specified in
RequiredCustomPermissionId.
RequiredCustomPermissionId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the custom permission that must be enabled when
CustomPermissionId is enabled.
644
Standard Objects
DandBCompany
Usage
The following Apex class contains a method that returns the IDs of all custom permissions that are required for the given custom
permission ID. To use this class, save it in your organization.
public class CustomPermissionUtil {
public String[] getAllRequiredCustomPermissions(String customPermId) {
return getAllRequiredHelper(new String[]{customPermId});
}
private String[] getAllRequiredHelper(String[] customPermIds) {
CustomPermissionDependency[] requiredPerms = [SELECT RequiredCustomPermissionId
FROM CustomPermissionDependency
WHERE CustomPermissionId
IN :customPermIds];
String[] requiredPermIds = new String[]{};
for (CustomPermissionDependency cpd : requiredPerms) {
requiredPermIds.add(cpd.RequiredCustomPermissionId);
}
if (requiredPermIds.size() > 0) {
customPermIds.addall(getAllRequiredHelper(requiredPermIds));
return customPermIds;
} else {
return customPermIds;
}
}
}
For more information about using Apex classes, see the Force.com Apex Code Developer’s Guide.
SEE ALSO:
CustomPermission
DandBCompany
Represents a Dun & Bradstreet® company record, which is associated with an account added from Data.com. This object is available in
API version 25.0 and later.
Warning: You can update fields in the DandBCompany object; however, field changes may be overwritten by Data.com Clean
jobs or by using the Data.com Clean button.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Only organizations with Data.com Premium Prospector or Data.com Premium Clean can access this object.
645
Standard Objects
DandBCompany
Fields
Field Name
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields
for details on compound address fields.
City
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city where a company is physically located. Maximum size is 40 characters.
CompanyCurrencyIsoCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The code used to represent a company’s local currency. This data is provided by
the International Organization for Standardization (ISO) and is based on their
three-letter currency codes. For example, USD is the ISO code for United States
Dollar. Maximum size is 3 characters.
Country
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The country where a company is physically located. Maximum size is 40 characters.
CountryAccessCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The required code for international calls. Maximum size is 4 characters.
646
Standard Objects
DandBCompany
Field Name
Details
CurrencyCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The currency in which the company’s sales volume is expressed. The full list of
values can be found at the Optimizer Resources page maintained by Dun &
Bradstreet. Maximum size is 4 characters.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A brief description of the company, which may include information about its
history, its products and services, and its influence on a particular industry.
Maximum size is 32000 characters.
DomesticUltimateBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
Maximum size is 255 characters.
DomesticUltimateDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number for the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
Maximum size is 9 characters.
DunsNumber
Type
string
Properties
Create, Filter, Group, Sort, Update
647
Standard Objects
Field Name
DandBCompany
Details
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit
number assigned to every business location in the Dun & Bradstreet database
that has a unique, separate, and distinct operation. D-U-N-S numbers are used
by industries and organizations around the world as a global standard for business
identification and tracking. Maximum size is 9 characters.
EmployeeQuantityGrowthRate
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
EmployeesHere
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of employees at a specified location, such as a branch location.
Maximum size is 15 characters.
EmployeesHereReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the EmployeesHere figure. Available values include:
• 0—Actual number
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
EmployeesTotal
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total number of employees in the company, including all subsidiary and
branch locations. This data is only available on records that have a value of
648
Standard Objects
Field Name
DandBCompany
Details
Headquarters/Parent in the LocationStatus field. Maximum size
is 15 characters.
EmployeesTotalReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the EmployeesTotal figure. Available values include:
• 0—Actual number
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
A blank value indicates this data is unavailable.
FamilyMembers
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of family members, worldwide, within an organization, including
the Global Ultimate, its subsidiaries (if any), and its branches (if any). Maximum
size is 5 characters.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The company’s facsimile number.
FifthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
FifthNaicsDesc
Type
string
649
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
FifthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FifthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FipsMsaCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
650
Standard Objects
Field Name
DandBCompany
Details
Description
The Federal Information Processing Standards (FIPS) and the Metropolitan
Statistical Area (MSA) codes identify the organization’s location. The MSA codes
are defined by the US Office of Management and Budget. Maximum size is 5
characters.
FipsMsaDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s FIPS MSA code. Maximum size is 255
characters.
FortuneRank
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FourthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
FourthNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
FourthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
651
Standard Objects
Field Name
DandBCompany
Details
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FourthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
GeoCodeAccuracy
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The level of accuracy of a location’s geographical coordinates compared with its
physical address. Available values include:
• A – Non-US rooftop accuracy
• B – Block level
• C – Places the address in the correct city
• D – Rooftop level
• I – Street intersection
• M – Mailing address level
652
Standard Objects
Field Name
DandBCompany
Details
• N – Not matched
• P – PO BOX location
• S – Street level
• T – Census tract level
• Z – ZIP code level
• 0 (zero)– Geocode could not be assigned
GlobalUltimateBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the Global Ultimate, which is the highest entity within an
organization’s corporate structure and may oversee branches and subsidiaries.
Maximum size is 255 characters.
GlobalUltimateDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number of the Global Ultimate, which is the highest entity within
an organization’s corporate structure and may oversee branches and subsidiaries.
Maximum size is 9 characters.
GlobalUltimateTotalEmployees
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total number of employees at the Global Ultimate, which is the highest entity
within an organization’s corporate structure and may oversee branches and
subsidiaries. Maximum size is 15 characters.
ImportExportAgent
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies whether a business imports goods or services, exports goods or services,
and/or is an agent for goods. Available values include:
• A—Importer/exporter/agent
653
Standard Objects
Field Name
DandBCompany
Details
• B—Importer/exporter
• C—Importer
• D—Importer/agent
• E—Exporter/agent
• F—Agent (keeps no inventory and does not take title goods)
• G—None or data not available
• H—Exporter
IncludedInSnP500
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Latitude
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Used with longitude to specify a precise location, which is then used to assess
the Geocode Accuracy. Maximum size is 11 characters.
LegalStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies the legal structure of an organization.
LocationStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies the organizational status of a company. Available values are Single
location, Headquarters/Parent, and Branch. Available values
include:
• 0—Single location (no other entities report to the business)
• 1—Headquarters/parent (branches and/or subsidiaries report to the business)
654
Standard Objects
Field Name
DandBCompany
Details
• 2—Branch (secondary location to a headquarters location)
Longitude
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Used with latitude to specify a precise location, which is then used to assess the
Geocode Accuracy. Maximum size is 11 characters.
MailingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the mailing address. Read-only. See Address Compound
Fields for details on compound address fields.
MailingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city where a company has its mail delivered. Maximum size is 40 characters.
MailingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The country where a company has its mail delivered. Maximum size is 40
characters.
MailingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code that a company uses on its mailing address. Maximum size is 20
characters.
655
Standard Objects
DandBCompany
Field Name
Details
MailingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state where a company has its mail delivered. Maximum size is 20 characters.
MailingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street address where a company has its mail delivered. Maximum size is 255
characters.
MarketingPreScreen
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The probability that a company will pay with a significant delay compared to the
agreed terms. The risk level is based on the standard Commercial Credit Score,
and ranges from low risk to high risk. Available values include:
• L—Low risk of delinquency
• M—Moderate risk of delinquency
• H—High risk of delinquency
Important: Use this information for marketing pre-screening purposes
only.
MarketingSegmentationCluster
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Twenty-two distinct, mutually exclusive profiles, created as a result of cluster
analysis of Dun & Bradstreet data for US organizations.
MinorityOwned
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
656
Standard Objects
Field Name
DandBCompany
Details
Description
Indicates whether an organization is owned or controlled by a member of a
minority group. Available values include:
• Y—Minority owned
• N—Not minority owned
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The primary or registered name of a company. Maximum size is 255 characters.
NationalId
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identification number used in some countries for business registration and
tax collection. Maximum size is 255 characters.
NationalIdType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
A code value that identifies the type of national identification number used. The
full list of values can be found at the Optimizer Resources page maintained by
Dun & Bradstreet. Maximum size is 5 characters.
OutOfBusiness
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether the company at the specified address has discontinued
operations. Available values include:
• 0—Unknown or not applicable
• 1—Owns
• 2—Rents
657
Standard Objects
DandBCompany
Field Name
Details
OwnOrRent
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company owns or rents the building it occupies. Available
values include:
• Y—Out of business
• N—Not out of business
ParentOrHqBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the parent or headquarters company. Maximum size is 255
characters.
ParentOrHqDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number for the parent or headquarters. Maximum size is 9 characters.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A company’s primary telephone number.
PostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code that corresponds to a company’s physical location. Maximum
size is 20 characters.
PremisesMeasure
Type
int
658
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PrimaryNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The six-digit North American Industry Classification System (NAICS) code is the
standard used by business and government to classify business establishments
according to their economic activity for the purpose of collecting, analyzing, and
publishing statistical data related to the US business economy. The full list of
values can be found at the Optimizer Resources page maintained by Dun &
Bradstreet. Maximum size is 6 characters.
PrimaryNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its NAICS code.
Maximum size is 120 characters.
PrimarySic
Type
string
659
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The four-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 4
characters.
PrimarySic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The eight-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 8
characters.
PrimarySic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its SIC code.
The full list of values can be found at the Optimizer Resources page maintained
by Dun & Bradstreet. Maximum size is 80 characters.
PrimarySicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its SIC code.
Maximum size is 80 characters.
PriorYearEmployees
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of employees for the prior year.
660
Standard Objects
DandBCompany
Field Name
Details
PriorYearRevenue
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The annual revenue for the prior year.
PublicIndicator
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether ownership of the company is public or private. Available values
include:
• Y—Public
• N—Private
SalesTurnoverGrowthRate
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
SalesVolume
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total annual sales revenue in the headquarters’ local currency. Dun &
Bradstreet tracks revenue data for publicly traded companies, Global Ultimates,
Domestic Ultimates, and some headquarters.
SalesVolumeReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the SalesVolume figure. Available values include:
• 0—Actual number
661
Standard Objects
Field Name
DandBCompany
Details
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
SecondNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
SecondNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
SecondSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
662
Standard Objects
Field Name
DandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SecondSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
SixthNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
SixthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
663
Standard Objects
Field Name
DandBCompany
Details
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SmallBusiness
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether the company is designated a small business as defined by the
Small Business Administration of the US government. Available values include:
• Y—Small business site
• N—Not small business site
State
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state where a company is physically located. Maximum size is 20 characters.
StockExchange
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
664
Standard Objects
Field Name
DandBCompany
Details
Description
The corresponding exchange for a company’s stock symbol. For example: NASDAQ
or NYSE. Maximum size is 16 characters.
StockSymbol
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The abbreviation used to identify publicly traded shares of a particular stock.
Maximum size is 6 characters.
Street
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street address where a company is physically located. Maximum size is 255
characters.
Subsidiary
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company is more than 50 percent owned by another
organization. Available values include:
• 0—Not subsidiary of another organization
• 3—Subsidiary of another organization
ThirdNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
ThirdNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
665
Standard Objects
Field Name
DandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
ThirdSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
ThirdSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
TradeStyle1
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
666
Standard Objects
Field Name
DandBCompany
Details
Description
A name, different from its legal name, that an organization may use for conducting
business. Similar to “Doing business as” or “DBA”. Maximum size is 255 characters.
TradeStyle2
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle3
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle4
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle5
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
URL
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An organization’s primary website address. Maximum size is 104 characters.
UsTaxId
Type
string
667
Standard Objects
Field Name
Dashboard
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identification number for the company used by the Internal Revenue Service
(IRS) in the administration of tax laws. Also referred to as Federal Taxpayer
Identification Number. Maximum size is 9 characters.
WomenOwned
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company is more than 50 percent owned or controlled by
a woman. Available values include:
• Y—Owned by a woman
• N—Not owned by a woman, or unknown
YearStarted
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The year the company was established or the year when current ownership or
management assumed control of the company. Maximum size is 4 characters.
Usage
Use this object to manage D&B Company records in your organization.
Dashboard
Represents a dashboard, which shows data from custom reports as visual components. Access is read-only. This object is available in
API version 20.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), search()
668
Standard Objects
Dashboard
Fields
Field
Details
BackgroundDirection
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Returns the direction of the background fade. Available values are:
• Top to Bottom
• Left to Right
• Diagonal (default value)
Label is Background Fade Direction.
BackgroundEnd
Type
int
Properties
Filter, Group, Sort
Description
Returns the ending fade color in hexadecimal. Label is Ending Color.
BackgroundStart
Type
int
Properties
Filter, Group, Sort
Description
Returns the starting fade color in hexadecimal. Label is Starting Color.
Description
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Returns the description of the dashboard. Limit: 255 characters.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
Required. The unique name of the object in the API. This name can contain only
underscores and alphanumeric characters, and must be unique in your org. It
669
Standard Objects
Field
Dashboard
Details
must begin with a letter, not include spaces, not end with an underscore, and
not contain two consecutive underscores. In managed packages, this field
prevents naming conflicts on package installations. With this field, a developer
can change the object’s name in a managed package and the changes are
reflected in a subscriber’s organization. Label is Dashboard Unique Name.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is
specified, performance may slow while Salesforce generates one for each
record.
FolderId
Type
reference
Properties
Filter, Group, Sort
Description
Required. Returns the ID of the Folder that contains the dashboard. See Folder.
FolderName
Type
string
Properties
Filter, Nillable, Sort
Description
Name of the folder that contains the dashboard. Available in API version 35.0
and later.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
date
670
Standard Objects
Field
Dashboard
Details
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
LeftSize
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Returns the size of the left column of the dashboard.
Available values are:
• Narrow
• Medium
• Wide
MiddleSize
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Returns the size of the middle column of the dashboard.
Available values are:
• Narrow
• Medium
• Wide
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
671
Standard Objects
Field
Dashboard
Details
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
RightSize
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Returns the size of the right column in the dashboard.
Available values are:
• Narrow
• Medium
• Wide
RunningUserId
Type
reference
Properties
Filter, Group, Sort
Description
Returns the ID of the running user specified for the dashboard. If the dashboard
is dynamic, it returns the user ID of the viewing user.
TextColor
Type
int
Properties
Filter, Group, Sort
Description
Returns the body text color in hexadecimal. Label is Text Color.
Title
Type
string
Properties
Filter, Group, Sort
Description
Returns the title of the dashboard. Limit: 80 characters.
672
Standard Objects
Dashboard
Field
Details
TitleColor
Type
int
Properties
Filter, Group, Sort
Description
Returns the title text color in hexadecimal. Label is Title Color.
TitleSize
Type
int
Properties
Filter, Group, Sort
Description
Returns the title font size in points. Label is Title Size.
Type
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Returns the dashboard type. Available values are:
• SpecificUser—The dashboard displays data according to the access
level of one specific running user.
• LoggedInUser—The dashboard displays data according to the access
level of the logged-in user.
• MyTeamUser—The dashboard displays data according to the access level
of the logged-in user, and managers can view dashboards from the point of
view of users beneath them in the role hierarchy.
Supported Query Scopes
Use these scopes to help specify the data that your SOQL query returns.
allPrivate
Records saved in all users’ private folders.
Requires the user permission "Manage All Private Reports and Dashboards" and Enhanced Analytics Folder Sharing. If your organziation
was created after the Summer ’13 release, you already have Enhanced Analytics Folder Sharing. Available in API version 36.0 and
later.
created
Records created by the user running the query.
everything
All records except records saved in other users’ private folders.
673
Standard Objects
DashboardComponent
mine
Records saved in the private folder of the user running the query.
Usage
Provides read only access to the current values in the dashboard fields.
Example: Dashboards in an Inactive User’s Private Folder
This SOQL query returns dashboards saved in a specific user’s private folder.
SELECT Id FROM Dashboard USING SCOPE allPrivate WHERE CreatedByID = ‘005A0000000Bc2deFG’
SEE ALSO:
DashboardFeed
DashboardTag
Report
DashboardComponent
Represents a dashboard component, which can be a chart, metric, table, or gauge on a dashboard. Access is read-only. This object is
available in API version 21.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
CustomReportId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Requires the user permission "Manage All Private Reports and Dashboards." The ID of the
report that provides data for the dashboard component. See Report.
DashboardId
Type
reference
Properties
Filter, Group, Sort
674
Standard Objects
Field
DashboardComponentFeed
Details
Description
The ID of the dashboard that contains the dashboard component. See Dashboard.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the dashboard component.
Usage
Provides read only access to the current values in dashboard component fields.
DashboardComponentFeed
Represents a single feed item in the feed displayed on a dashboard component. This object is available in API version 21.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of DashboardComponentFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
675
Standard Objects
Field
DashboardComponentFeed
Details
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Create, Nillable, Sort
Description
Available in API version 35.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
676
Standard Objects
Field
DashboardComponentFeed
Details
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
677
Standard Objects
Field
DashboardComponentFeed
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
638
Standard Objects
Field
Custom Object__Feed
Details
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the custom object that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
639
Standard Objects
Custom Object__Feed
Field
Details
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
640
Standard Objects
Field
CustomPermission
Details
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Usage
Use this object to track changes for a custom object. A record of this object type is automatically created when a user enables feed
tracking for a custom object.
CustomPermission
Represents a permission created to control access to a custom process or app, such as sending email. This object is available in API
version 31.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Description
Type
textarea
Properties
Filter, Group, Nillable, Sort
Description
A description of the custom permission. Limit: 255 characters.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the custom permission in the API. This name can contain
only underscores and alphanumeric characters and must be unique in your
641
Standard Objects
Field Name
CustomPermission
Details
organization. It must begin with a letter, not include spaces, not end with an
underscore, and not contain two consecutive underscores. The label corresponds
to Name in the user interface. Limit: 80 characters.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the custom permission. Valid values are:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The custom permission label, which corresponds to Label in the user interface.
Limit: 80 characters.
642
Standard Objects
CustomPermission
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Usage
Use the CustomPermission object to determine users’ access to custom permissions.
For example, to query all permission sets where the Button1 permission is enabled:
SELECT Id, DeveloperName,
(select Id, Parent.Name, Parent.Profile.Name from SetupEntityAccessItems)
FROM CustomPermission
WHERE DeveloperName = 'Button1'
To query all permission sets and profiles with custom permissions:
SELECT Assignee.Name, PermissionSet.Id,
PermissionSet.Profile.Name,
PermissionSet.isOwnedByProfile,
PermissionSet.Label
FROM PermissionSetAssignment
WHERE PermissionSetId
IN (SELECT ParentId
FROM SetupEntityAccess
WHERE SetupEntityType =
'CustomPermission')
To query for all SetupEntityAccess rows with custom permissions:
SELECT Id,ParentId,Parent.Name, SetupEntityId
FROM SetupEntityAccess
643
Standard Objects
CustomPermissionDependency
WHERE SetupEntityType='CustomPermission'
AND ParentId
IN (SELECT Id
FROM PermissionSet
WHERE isOwnedByProfile = false)
SEE ALSO:
CustomPermissionDependency
PermissionSet
Profile
SetupEntityAccess
CustomPermissionDependency
Represents the dependency between two custom permissions when one custom permission requires that you enable another custom
permission. This object is available in API version 32.0 and later.
Supported Calls
describeLayout(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
CustomPermissionId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the custom permission that requires the permission that’s specified in
RequiredCustomPermissionId.
RequiredCustomPermissionId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the custom permission that must be enabled when
CustomPermissionId is enabled.
644
Standard Objects
DandBCompany
Usage
The following Apex class contains a method that returns the IDs of all custom permissions that are required for the given custom
permission ID. To use this class, save it in your organization.
public class CustomPermissionUtil {
public String[] getAllRequiredCustomPermissions(String customPermId) {
return getAllRequiredHelper(new String[]{customPermId});
}
private String[] getAllRequiredHelper(String[] customPermIds) {
CustomPermissionDependency[] requiredPerms = [SELECT RequiredCustomPermissionId
FROM CustomPermissionDependency
WHERE CustomPermissionId
IN :customPermIds];
String[] requiredPermIds = new String[]{};
for (CustomPermissionDependency cpd : requiredPerms) {
requiredPermIds.add(cpd.RequiredCustomPermissionId);
}
if (requiredPermIds.size() > 0) {
customPermIds.addall(getAllRequiredHelper(requiredPermIds));
return customPermIds;
} else {
return customPermIds;
}
}
}
For more information about using Apex classes, see the Force.com Apex Code Developer’s Guide.
SEE ALSO:
CustomPermission
DandBCompany
Represents a Dun & Bradstreet® company record, which is associated with an account added from Data.com. This object is available in
API version 25.0 and later.
Warning: You can update fields in the DandBCompany object; however, field changes may be overwritten by Data.com Clean
jobs or by using the Data.com Clean button.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Special Access Rules
Only organizations with Data.com Premium Prospector or Data.com Premium Clean can access this object.
645
Standard Objects
DandBCompany
Fields
Field Name
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields
for details on compound address fields.
City
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city where a company is physically located. Maximum size is 40 characters.
CompanyCurrencyIsoCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The code used to represent a company’s local currency. This data is provided by
the International Organization for Standardization (ISO) and is based on their
three-letter currency codes. For example, USD is the ISO code for United States
Dollar. Maximum size is 3 characters.
Country
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The country where a company is physically located. Maximum size is 40 characters.
CountryAccessCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The required code for international calls. Maximum size is 4 characters.
646
Standard Objects
DandBCompany
Field Name
Details
CurrencyCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The currency in which the company’s sales volume is expressed. The full list of
values can be found at the Optimizer Resources page maintained by Dun &
Bradstreet. Maximum size is 4 characters.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
A brief description of the company, which may include information about its
history, its products and services, and its influence on a particular industry.
Maximum size is 32000 characters.
DomesticUltimateBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
Maximum size is 255 characters.
DomesticUltimateDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number for the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
Maximum size is 9 characters.
DunsNumber
Type
string
Properties
Create, Filter, Group, Sort, Update
647
Standard Objects
Field Name
DandBCompany
Details
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit
number assigned to every business location in the Dun & Bradstreet database
that has a unique, separate, and distinct operation. D-U-N-S numbers are used
by industries and organizations around the world as a global standard for business
identification and tracking. Maximum size is 9 characters.
EmployeeQuantityGrowthRate
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
EmployeesHere
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The number of employees at a specified location, such as a branch location.
Maximum size is 15 characters.
EmployeesHereReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the EmployeesHere figure. Available values include:
• 0—Actual number
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
EmployeesTotal
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total number of employees in the company, including all subsidiary and
branch locations. This data is only available on records that have a value of
648
Standard Objects
Field Name
DandBCompany
Details
Headquarters/Parent in the LocationStatus field. Maximum size
is 15 characters.
EmployeesTotalReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the EmployeesTotal figure. Available values include:
• 0—Actual number
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
A blank value indicates this data is unavailable.
FamilyMembers
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of family members, worldwide, within an organization, including
the Global Ultimate, its subsidiaries (if any), and its branches (if any). Maximum
size is 5 characters.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The company’s facsimile number.
FifthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
FifthNaicsDesc
Type
string
649
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
FifthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FifthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FipsMsaCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
650
Standard Objects
Field Name
DandBCompany
Details
Description
The Federal Information Processing Standards (FIPS) and the Metropolitan
Statistical Area (MSA) codes identify the organization’s location. The MSA codes
are defined by the US Office of Management and Budget. Maximum size is 5
characters.
FipsMsaDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s FIPS MSA code. Maximum size is 255
characters.
FortuneRank
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FourthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
FourthNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
FourthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
651
Standard Objects
Field Name
DandBCompany
Details
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FourthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
GeoCodeAccuracy
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The level of accuracy of a location’s geographical coordinates compared with its
physical address. Available values include:
• A – Non-US rooftop accuracy
• B – Block level
• C – Places the address in the correct city
• D – Rooftop level
• I – Street intersection
• M – Mailing address level
652
Standard Objects
Field Name
DandBCompany
Details
• N – Not matched
• P – PO BOX location
• S – Street level
• T – Census tract level
• Z – ZIP code level
• 0 (zero)– Geocode could not be assigned
GlobalUltimateBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the Global Ultimate, which is the highest entity within an
organization’s corporate structure and may oversee branches and subsidiaries.
Maximum size is 255 characters.
GlobalUltimateDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number of the Global Ultimate, which is the highest entity within
an organization’s corporate structure and may oversee branches and subsidiaries.
Maximum size is 9 characters.
GlobalUltimateTotalEmployees
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total number of employees at the Global Ultimate, which is the highest entity
within an organization’s corporate structure and may oversee branches and
subsidiaries. Maximum size is 15 characters.
ImportExportAgent
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies whether a business imports goods or services, exports goods or services,
and/or is an agent for goods. Available values include:
• A—Importer/exporter/agent
653
Standard Objects
Field Name
DandBCompany
Details
• B—Importer/exporter
• C—Importer
• D—Importer/agent
• E—Exporter/agent
• F—Agent (keeps no inventory and does not take title goods)
• G—None or data not available
• H—Exporter
IncludedInSnP500
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Latitude
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Used with longitude to specify a precise location, which is then used to assess
the Geocode Accuracy. Maximum size is 11 characters.
LegalStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies the legal structure of an organization.
LocationStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Identifies the organizational status of a company. Available values are Single
location, Headquarters/Parent, and Branch. Available values
include:
• 0—Single location (no other entities report to the business)
• 1—Headquarters/parent (branches and/or subsidiaries report to the business)
654
Standard Objects
Field Name
DandBCompany
Details
• 2—Branch (secondary location to a headquarters location)
Longitude
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Used with latitude to specify a precise location, which is then used to assess the
Geocode Accuracy. Maximum size is 11 characters.
MailingAddress
Type
address
Properties
Filter, Nillable
Description
The compound form of the mailing address. Read-only. See Address Compound
Fields for details on compound address fields.
MailingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The city where a company has its mail delivered. Maximum size is 40 characters.
MailingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The country where a company has its mail delivered. Maximum size is 40
characters.
MailingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code that a company uses on its mailing address. Maximum size is 20
characters.
655
Standard Objects
DandBCompany
Field Name
Details
MailingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state where a company has its mail delivered. Maximum size is 20 characters.
MailingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street address where a company has its mail delivered. Maximum size is 255
characters.
MarketingPreScreen
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The probability that a company will pay with a significant delay compared to the
agreed terms. The risk level is based on the standard Commercial Credit Score,
and ranges from low risk to high risk. Available values include:
• L—Low risk of delinquency
• M—Moderate risk of delinquency
• H—High risk of delinquency
Important: Use this information for marketing pre-screening purposes
only.
MarketingSegmentationCluster
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Twenty-two distinct, mutually exclusive profiles, created as a result of cluster
analysis of Dun & Bradstreet data for US organizations.
MinorityOwned
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
656
Standard Objects
Field Name
DandBCompany
Details
Description
Indicates whether an organization is owned or controlled by a member of a
minority group. Available values include:
• Y—Minority owned
• N—Not minority owned
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The primary or registered name of a company. Maximum size is 255 characters.
NationalId
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identification number used in some countries for business registration and
tax collection. Maximum size is 255 characters.
NationalIdType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
A code value that identifies the type of national identification number used. The
full list of values can be found at the Optimizer Resources page maintained by
Dun & Bradstreet. Maximum size is 5 characters.
OutOfBusiness
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether the company at the specified address has discontinued
operations. Available values include:
• 0—Unknown or not applicable
• 1—Owns
• 2—Rents
657
Standard Objects
DandBCompany
Field Name
Details
OwnOrRent
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company owns or rents the building it occupies. Available
values include:
• Y—Out of business
• N—Not out of business
ParentOrHqBusinessName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The primary name of the parent or headquarters company. Maximum size is 255
characters.
ParentOrHqDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The D-U-N-S Number for the parent or headquarters. Maximum size is 9 characters.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A company’s primary telephone number.
PostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The postal code that corresponds to a company’s physical location. Maximum
size is 20 characters.
PremisesMeasure
Type
int
658
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PrimaryNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The six-digit North American Industry Classification System (NAICS) code is the
standard used by business and government to classify business establishments
according to their economic activity for the purpose of collecting, analyzing, and
publishing statistical data related to the US business economy. The full list of
values can be found at the Optimizer Resources page maintained by Dun &
Bradstreet. Maximum size is 6 characters.
PrimaryNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its NAICS code.
Maximum size is 120 characters.
PrimarySic
Type
string
659
Standard Objects
Field Name
DandBCompany
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The four-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 4
characters.
PrimarySic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The eight-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 8
characters.
PrimarySic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its SIC code.
The full list of values can be found at the Optimizer Resources page maintained
by Dun & Bradstreet. Maximum size is 80 characters.
PrimarySicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on its SIC code.
Maximum size is 80 characters.
PriorYearEmployees
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The total number of employees for the prior year.
660
Standard Objects
DandBCompany
Field Name
Details
PriorYearRevenue
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The annual revenue for the prior year.
PublicIndicator
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether ownership of the company is public or private. Available values
include:
• Y—Public
• N—Private
SalesTurnoverGrowthRate
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
SalesVolume
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The total annual sales revenue in the headquarters’ local currency. Dun &
Bradstreet tracks revenue data for publicly traded companies, Global Ultimates,
Domestic Ultimates, and some headquarters.
SalesVolumeReliability
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The reliability of the SalesVolume figure. Available values include:
• 0—Actual number
661
Standard Objects
Field Name
DandBCompany
Details
• 1—Low
• 2—Estimated (for all records)
• 3—Modeled (for non-US records)
SecondNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
SecondNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
SecondSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
662
Standard Objects
Field Name
DandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SecondSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
SixthNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
SixthSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
663
Standard Objects
Field Name
DandBCompany
Details
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SmallBusiness
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether the company is designated a small business as defined by the
Small Business Administration of the US government. Available values include:
• Y—Small business site
• N—Not small business site
State
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The state where a company is physically located. Maximum size is 20 characters.
StockExchange
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
664
Standard Objects
Field Name
DandBCompany
Details
Description
The corresponding exchange for a company’s stock symbol. For example: NASDAQ
or NYSE. Maximum size is 16 characters.
StockSymbol
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The abbreviation used to identify publicly traded shares of a particular stock.
Maximum size is 6 characters.
Street
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The street address where a company is physically located. Maximum size is 255
characters.
Subsidiary
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company is more than 50 percent owned by another
organization. Available values include:
• 0—Not subsidiary of another organization
• 3—Subsidiary of another organization
ThirdNaics
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional NAICS code used to further classify an organization by industry.
Maximum size is 6 characters.
ThirdNaicsDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
665
Standard Objects
Field Name
DandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code. Maximum size is 120 characters.
ThirdSic
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8Desc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
ThirdSicDesc
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
TradeStyle1
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
666
Standard Objects
Field Name
DandBCompany
Details
Description
A name, different from its legal name, that an organization may use for conducting
business. Similar to “Doing business as” or “DBA”. Maximum size is 255 characters.
TradeStyle2
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle3
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle4
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
TradeStyle5
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An additional tradestyle used by the organization. Maximum size is 255 characters.
URL
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An organization’s primary website address. Maximum size is 104 characters.
UsTaxId
Type
string
667
Standard Objects
Field Name
Dashboard
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The identification number for the company used by the Internal Revenue Service
(IRS) in the administration of tax laws. Also referred to as Federal Taxpayer
Identification Number. Maximum size is 9 characters.
WomenOwned
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates whether a company is more than 50 percent owned or controlled by
a woman. Available values include:
• Y—Owned by a woman
• N—Not owned by a woman, or unknown
YearStarted
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The year the company was established or the year when current ownership or
management assumed control of the company. Maximum size is 4 characters.
Usage
Use this object to manage D&B Company records in your organization.
Dashboard
Represents a dashboard, which shows data from custom reports as visual components. Access is read-only. This object is available in
API version 20.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), search()
668
Standard Objects
Dashboard
Fields
Field
Details
BackgroundDirection
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Returns the direction of the background fade. Available values are:
• Top to Bottom
• Left to Right
• Diagonal (default value)
Label is Background Fade Direction.
BackgroundEnd
Type
int
Properties
Filter, Group, Sort
Description
Returns the ending fade color in hexadecimal. Label is Ending Color.
BackgroundStart
Type
int
Properties
Filter, Group, Sort
Description
Returns the starting fade color in hexadecimal. Label is Starting Color.
Description
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Returns the description of the dashboard. Limit: 255 characters.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
Required. The unique name of the object in the API. This name can contain only
underscores and alphanumeric characters, and must be unique in your org. It
669
Standard Objects
Field
Dashboard
Details
must begin with a letter, not include spaces, not end with an underscore, and
not contain two consecutive underscores. In managed packages, this field
prevents naming conflicts on package installations. With this field, a developer
can change the object’s name in a managed package and the changes are
reflected in a subscriber’s organization. Label is Dashboard Unique Name.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is
specified, performance may slow while Salesforce generates one for each
record.
FolderId
Type
reference
Properties
Filter, Group, Sort
Description
Required. Returns the ID of the Folder that contains the dashboard. See Folder.
FolderName
Type
string
Properties
Filter, Nillable, Sort
Description
Name of the folder that contains the dashboard. Available in API version 35.0
and later.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
date
670
Standard Objects
Field
Dashboard
Details
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
LeftSize
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Returns the size of the left column of the dashboard.
Available values are:
• Narrow
• Medium
• Wide
MiddleSize
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Returns the size of the middle column of the dashboard.
Available values are:
• Narrow
• Medium
• Wide
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
671
Standard Objects
Field
Dashboard
Details
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
RightSize
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Returns the size of the right column in the dashboard.
Available values are:
• Narrow
• Medium
• Wide
RunningUserId
Type
reference
Properties
Filter, Group, Sort
Description
Returns the ID of the running user specified for the dashboard. If the dashboard
is dynamic, it returns the user ID of the viewing user.
TextColor
Type
int
Properties
Filter, Group, Sort
Description
Returns the body text color in hexadecimal. Label is Text Color.
Title
Type
string
Properties
Filter, Group, Sort
Description
Returns the title of the dashboard. Limit: 80 characters.
672
Standard Objects
Dashboard
Field
Details
TitleColor
Type
int
Properties
Filter, Group, Sort
Description
Returns the title text color in hexadecimal. Label is Title Color.
TitleSize
Type
int
Properties
Filter, Group, Sort
Description
Returns the title font size in points. Label is Title Size.
Type
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Returns the dashboard type. Available values are:
• SpecificUser—The dashboard displays data according to the access
level of one specific running user.
• LoggedInUser—The dashboard displays data according to the access
level of the logged-in user.
• MyTeamUser—The dashboard displays data according to the access level
of the logged-in user, and managers can view dashboards from the point of
view of users beneath them in the role hierarchy.
Supported Query Scopes
Use these scopes to help specify the data that your SOQL query returns.
allPrivate
Records saved in all users’ private folders.
Requires the user permission "Manage All Private Reports and Dashboards" and Enhanced Analytics Folder Sharing. If your organziation
was created after the Summer ’13 release, you already have Enhanced Analytics Folder Sharing. Available in API version 36.0 and
later.
created
Records created by the user running the query.
everything
All records except records saved in other users’ private folders.
673
Standard Objects
DashboardComponent
mine
Records saved in the private folder of the user running the query.
Usage
Provides read only access to the current values in the dashboard fields.
Example: Dashboards in an Inactive User’s Private Folder
This SOQL query returns dashboards saved in a specific user’s private folder.
SELECT Id FROM Dashboard USING SCOPE allPrivate WHERE CreatedByID = ‘005A0000000Bc2deFG’
SEE ALSO:
DashboardFeed
DashboardTag
Report
DashboardComponent
Represents a dashboard component, which can be a chart, metric, table, or gauge on a dashboard. Access is read-only. This object is
available in API version 21.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
CustomReportId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Requires the user permission "Manage All Private Reports and Dashboards." The ID of the
report that provides data for the dashboard component. See Report.
DashboardId
Type
reference
Properties
Filter, Group, Sort
674
Standard Objects
Field
DashboardComponentFeed
Details
Description
The ID of the dashboard that contains the dashboard component. See Dashboard.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the dashboard component.
Usage
Provides read only access to the current values in dashboard component fields.
DashboardComponentFeed
Represents a single feed item in the feed displayed on a dashboard component. This object is available in API version 21.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of DashboardComponentFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
675
Standard Objects
Field
DashboardComponentFeed
Details
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Create, Nillable, Sort
Description
Available in API version 35.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
676
Standard Objects
Field
DashboardComponentFeed
Details
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDate DESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
677
Standard Objects
Field
DashboardComponentFeed
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
678
Standard Objects
Field
DashboardComponentFeed
Details
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
679
Standard Objects
Field
DashboardComponentFeed
Details
Properties
Filter, Group, Sort
Description
ID of the dashboard that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com thanks
posts, it’s the ID of the WorkThanks object associated with a RypplePost. This field is
typically null for all posts except ContentPost and RypplePost.
For example, set this field to an existing ContentVersion and post it to a feed as a FeedItem
object of Type ContentPost.
Title
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name. The Title field can be updated on posts of Type
QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and TextPost, don’t
create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
680
Standard Objects
Field
DashboardComponentFeed
Details
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
681
Standard Objects
DashboardFeed
Field
Details
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to retrieve the current contents of the feed fields, such as type of feed or feed ID.
DashboardFeed
Represents a single feed item in the feed displayed on a dashboard. This object is available in API version 20.0 and later.
Shows changes to dashboard fields tracked in feeds, and posts and comments about the dashboard.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
682
Standard Objects
DashboardFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of DashboardFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
683
Standard Objects
Field
DashboardFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
684
Standard Objects
Field
DashboardFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
678
Standard Objects
Field
DashboardComponentFeed
Details
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
679
Standard Objects
Field
DashboardComponentFeed
Details
Properties
Filter, Group, Sort
Description
ID of the dashboard that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com thanks
posts, it’s the ID of the WorkThanks object associated with a RypplePost. This field is
typically null for all posts except ContentPost and RypplePost.
For example, set this field to an existing ContentVersion and post it to a feed as a FeedItem
object of Type ContentPost.
Title
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name. The Title field can be updated on posts of Type
QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and TextPost, don’t
create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
680
Standard Objects
Field
DashboardComponentFeed
Details
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article to a case.
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment for a case
object.
• ChangeStatusPost—generated event when a user changes the status of a case.
• ChatTranscriptPost—generated event when Live Agent transcript is saved to
a case.
• EmailMessageEvent—generated event when an email related to a case object is
sent or received.
• FacebookPost—generated when a Facebook post is created from a case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or reaches
violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
681
Standard Objects
DashboardFeed
Field
Details
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to retrieve the current contents of the feed fields, such as type of feed or feed ID.
DashboardFeed
Represents a single feed item in the feed displayed on a dashboard. This object is available in API version 20.0 and later.
Shows changes to dashboard fields tracked in feeds, and posts and comments about the dashboard.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
682
Standard Objects
DashboardFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of DashboardFeed. Required when Type is TextPost. Optional when Type
is ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
683
Standard Objects
Field
DashboardFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
684
Standard Objects
Field
DashboardFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
685
Standard Objects
Field
DashboardFeed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
686
Standard Objects
Field
DashboardFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the dashboard that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
687
Standard Objects
DashboardFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
688
Standard Objects
Field
DashboardFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
689
Standard Objects
DashboardTag
Usage
Use this object to retrieve the current contents of the feed fields, such as type of feed or feed ID.
SEE ALSO:
Dashboard
DashboardTag
Associates a word or short phrase with a Dashboard. This object is available in API version 20.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
690
Standard Objects
Field Name
DataAssessmentFieldMetric
Details
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
DashboardTag stores the relationship between its parent TagDefinition and the Dashboard being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
SEE ALSO:
Dashboard
DataAssessmentFieldMetric
Represents summary statistics for matched, blank, and differing fields in account records of an org compared to records in Data.com.This
object is available in API version 37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Child Relationships
DataAssessmentFieldMetric is a child object of DataAssessmentMetric object.
Fields
Field Name
Details
DataAssessmentMetricId
Type
reference
Properties
Filter, Group, Sort
Description
A unique number that identifies the parent DataAssessmentMetric record.
691
Standard Objects
DataAssessmentFieldMetric
Field Name
Details
FieldName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the assessed field.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
NumMatchedBlanks
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that contain blank fields.
NumMatchedDifferent
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that have a different value for this field.
NumMatchedInSync
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that have the same value for this field.
NumUnmatchedBlanks
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of unmatched records that contain blank fields.
692
Standard Objects
DataAssessmentMetric
DataAssessmentMetric
Represents a summary of statistics for fields matched and unmatched in your account records with Data.com account records.This object
is available in API version 37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
NumDuplicates
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of duplicate records.
NumMatched
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records.
NumMatchedDifferent
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records in your org matched with a Data.com record that have
different fields.
693
Standard Objects
DataAssessmentValueMetric
Field Name
Details
NumProcessed
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records processed in the data assessment.
NumTotal
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records available for data assessment processing.
NumUnmatched
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records not matched.
DataAssessmentValueMetric
Summarizes the number of fields matched for your account records with Data.com account records.This object is available in API version
37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Child Relationships
DataAssessmentValueMetric is a child of DataAssessementFieldMetric.
Fields
Field Name
Details
DataAssessmentFieldMetricId
Type
reference
Properties
Filter, Group, Sort
694
Standard Objects
Field Name
DatacloudCompany
Details
Description
A unique number that identifies the parent DataAssessementFieldMetric record.
FieldValue
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The value in the matched field.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
ValueCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times this value appears in this field.
DatacloudCompany
Represents the fields for Data.com company records. This object is available in API version 30.0 or later.
Supported Calls
describeLayout(), describeSObjects(), query()
Fields
Field Name
Details
ActiveContacts
Type
int
Properties
Nillable
695
Standard Objects
Field Name
DatacloudCompany
Details
Description
The number of active contacts that are associated with a company.
AnnualRevenue
Type
currency
Properties
Filter, Nillable
Description
The amount of money that the company makes in 1 year. Annual revenue is
measured in US dollars.
City
Type
string
Properties
Filter, Nillable, Sort
Description
The name of the city where the company is located.
CompanyId
Type
string
Properties
Filter, Nillable
Description
A unique numerical identifier for the company and theData.com identifier for a
company.
Country
Type
string
Properties
Filter, Nillable, Sort
Description
A string that represents the standard abbreviation for the country where the
company is located.
CountryCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A standardized name for countries of the world.
696
Standard Objects
DatacloudCompany
Field Name
Details
Description
Type
string
Properties
Nillable
Description
A brief synopsis of the company that provides a general overview of the company
and what it does.
DunsNumber
Type
string
Properties
Filter, Nillable
Description
A randomly generated nine-digit number that’s assigned by Dun & Bradstreet
(D&B) to identify unique business establishments.
EmployeeQuantityGrowthRate
Type
double
Properties
Nillable
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique numerical identifier for the company. The ExternalId is a
system-generated number.
Fax
Type
phone
Properties
Nillable
Description
The telephone number that’s used to send and receive faxes.
697
Standard Objects
DatacloudCompany
Field Name
Details
FortuneRank
Type
int
Properties
Defaulted on create, Group, Nillable
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FullAddress
Type
string
Properties
Group, Nillable
Description
The complete address of a company, including Street, City, State, and Zip.
IncludedInSnP500
Type
string
Properties
Group, Nillable
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Industry
Type
string
Properties
Nillable
Description
A description of the type of industry such as Telecommunications, Agriculture,
or Electronics.
IsInCrm
Type
boolean
Properties
Defaulted on create, Group
Description
Whether the record is in Salesforce (true) or not (false).
IsInactive
Type
boolean
698
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Defaulted on create, Filter
Description
A true or false response. True, the company record is not active. False, the
company record is active.
IsOwned
Type
boolean
Properties
Defaulted on create
Description
A true or false value. True, your organization owns the record. False, your
organization doesn’t own the record.
NaicsCode
Type
string
Properties
Filter, Nillable
Description
A value that represents the North American Industry Classification System (NAICS)
code. NAICS was created to provide details about a business’s service orientation.
The code descriptions are focused on what a business does.
NaicsDesc
Type
string
Properties
Nillable
Description
A description of the NAICS classification.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The company’s name.
NumberOfEmployees
Type
int
699
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Filter, Nillable
Description
The number of employees working for the company.
Ownership
Type
string
Properties
Filter, Nillable
Description
The type of ownership of the company:
• Public
• Private
• Government
• Other
Phone
Type
phone
Properties
Nillable
Description
A numeric string containing the primary telephone number for the company.
PremisesMeasure
Type
int
Properties
Group, Nillable
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Group, Nillable
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
700
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Group, Nillable
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PriorYearEmployees
Type
int
Properties
Group, Nillable
Description
The total number of employees for the prior year.
PriorYearRevenue
Type
double
Properties
Nillable
Description
The annual revenue for the prior year.
SalesTurnoverGrowthRate
Type
double
Properties
Nillable
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
Sic
Type
string
Properties
Filter, Nillable
Description
A numeric value that represents the Standard Industrial Codes (SIC). SIC is a
numbering convention that indicates what type of service a business provides.
It is a four-digit value.
SicCodeDesc
Type
string
Properties
Group, Nillable
701
Standard Objects
Field Name
DatacloudCompany
Details
Description
The SIC numeric code and descsciption for a company.
SicDesc
Type
string
Properties
Nillable
Description
A description of the SIC classification.
Site
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
An organizational status of the company.
• Branch: a secondary location to a headquarter location
• Headquarter: a parent company with branches or subsidiaries
• Single Location: a single business with no subsidiaries or branches
State
Type
string
Properties
Filter, Nillable, Sort
Description
The two-letter standard abbreviation for a state.
StateCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A standard two-letter abbreviation for states and territories of the United States.
The state where the company is located. The abbreviation can also be a province
or other equivalent to a state, depending on the country where the company is
located.
Street
Type
string
702
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Nillable
Description
A postal address for the company.
TickerSymbol
Type
string
Properties
Nillable
Description
The symbol that uniquely identifies companies that are traded on public stock
exchanges.
TradeStyle
Type
string
Properties
Nillable
Description
A legal name under which a company conducts business.
UpdatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The last date and time when the information for this company was updated.
Website
Type
url
Properties
Nillable
Description
The standard URL for the company’s home page.
YearStarted
Type
string
Properties
Nillable
Description
The year when the company was founded.
703
Standard Objects
DatacloudContact
Field Name
Details
Zip
Type
string
Properties
Filter, Nillable
Description
A numeric postal code that’s designated for the address.
Usage
Use the DatacloudCompany object to search the Data.com database for companies with the specific criteria that you enter. Use this
object to find company records that you are interested in purchasing for your organization. Data.com APIs use the term “company,”
which is similar to Salesforce term “accounts.”
Important: DatacloudCompany can’t be used in Apex test methods, because an external web service call is required to access
it. These calls are not allowed in Apex test methods.
DatacloudContact
The fields and properties for Data.com contact records. This object is available in API version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
City
Type
string
Properties
Filter, Nillable, Sort
Description
The city where the company is located.
CompanyId
Type
string
Properties
Filter, Nillable
704
Standard Objects
Field Name
DatacloudContact
Details
Description
The unique numerical identifier for the company and the Data.com company
identification number or Data.com Key.
CompanyName
Type
string
Properties
Filter, Group, Sort
Description
The name of the company.
ContactId
Type
string
Properties
Filter, Nillable
Description
The unique numeric identifier for this contact.
Country
Type
string
Properties
Filter, Nillable, Sort
Description
The standard abbreviation or name for the country where the company is located.
Note: You can enter a comma-separated list of countries; however, for
a country that uses a comma in its name, leave out the comma. For
example, enter “Taiwan, ROC” as Taiwan ROC.
Department
Type
picklist
Properties
Filter, Group, Restricted picklist
Description
The department in the company that the contact is affiliated with. The values of
this field are fixed enumerated values.
• Engineering
• Finance
• Human Resources
• IT
705
Standard Objects
Field Name
DatacloudContact
Details
• Marketing
• Operations
• Other
• Sales
• Support
Email
Type
email
Properties
Filter, Nillable
Description
A business email address for the contact.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique system-generated numerical identifier for the contact.
FirstName
Type
string
Properties
Filter, Nillable
Description
The first name of the contact.
IsInCrm
Type
boolean
Properties
Defaulted on create, Group
Description
Whether the record is in Salesforce (true) or not (false).
IsInactive
Type
boolean
Properties
Defaulted on create, Filter
Description
Whether the record is active (false) or not (true).
706
Standard Objects
DatacloudContact
Field Name
Details
IsOwned
Type
boolean
Properties
Defaulted on create
Description
• True: You own this record.
• False: You do not own this record.
LastName
Type
string
Properties
Filter, Nillable, Sort
Description
The last name of the contact.
Level
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A human resource label that designates a person’s level in the company. The
values of this field are fixed enumerated values.
• C-Level
• VP
• Director
• Manager
• Staff
• Other
Phone
Type
phone
Properties
Nillable
Description
The direct-dial telephone number for the contact.
SocialHandles
Type
string
707
Standard Objects
Field Name
DatacloudContact
Details
Properties
The social handles for this contact. Social handles are a normalized URL and user
name for social media accounts such as, LinkedIn, Facebook, and Twitter. This
field is response-only.
The DatacloudSocialHandles object is a child of the DatacloudContact object.
State
Type
string
Properties
Filter, Nillable, Sort
Description
The state where the company is located, which can also be a province or other
equivalent to a state, depending on the country where the company is located.
Street
Type
string
Properties
Nillable
Description
The street address for the company where the contact works.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title of the contact such as CEO or Vice President.
UpdatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The last date and time when the information for a contact was updated.
Zip
Type
string
Properties
Filter, Nillable
708
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The postal or zip code for the address.
Usage
This object searches the Data.com database for contacts with the specific criteria that you enter. Use this object to find contact records
that you are interested in purchasing for your organization.
Important: DatacloudContact can’t be used in Apex test methods, because an external web service call is required to access it.
These calls are not allowed in Apex test methods.
DatacloudDandBCompany
Represents a set of read-only fields that are used to return D&B company data from Data.com API calls. This object is available in API
version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
City
Type
string
Properties
Nillable
Description
The name of the city where the company is physically located.
CompanyCurrencyIsoCode
Type
picklist
Properties
Nillable, Restricted picklist
Description
The code used to represent a company’s local currency. This data is provided by
the International Organization for Standardization (ISO) and is based on their
three-letter currency codes. For example, USD is the ISO code for United States
Dollar.
709
Standard Objects
DatacloudDandBCompany
Field Name
Details
CompanyId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique numeric identifier for a company.
Country
Type
string
Properties
Nillable
Description
The country where a company is physically located.
CountryAccessCode
Type
string
Properties
Nillable
Description
The required code for international calls.
CurrencyCode
Type
picklist
Properties
Nillable, Restricted picklist
Description
The currency in which the company’s sales volume is expressed.
Description
Type
string
Properties
Nillable
Description
A brief description of the company, which may include information about its
history, its products and services, and its influence on a particular industry.
DomesticUltimateBusinessName
Type
string
Properties
Nillable
710
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The primary name of the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
DomesticUltimateDunsNumber
Type
string
Properties
Nillable
Description
The D-U-N-S number for the Domestic Ultimate, which is the highest-ranking
subsidiary, specified by country, within an organization’s corporate structure.
DunsNumber
Type
string
Properties
Filter, Nillable
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit
number assigned to every business location in the Dun & Bradstreet database
that has a unique, separate, and distinct operation. D-U-N-S numbers are used
by industries and organizations around the world as a global standard for business
identification and tracking.
EmployeeQuantityGrowthRate
Type
double
Properties
Nillable
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
EmployeesHere
Type
double
Properties
Nillable
Description
The number of employees at a specified location, such as a branch location.
EmployeesHereReliability
Type
picklist
711
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable, Restricted picklist
Description
The reliability of the EmployeesHere figure. Available values are Actual
number, Low, Estimated (for all records), Modeled (for
non-US records). A blank value indicates this data is unavailable.
EmployeesTotal
Type
double
Properties
Nillable
Description
The total number of employees in the company, including all subsidiary and
branch locations. This data is available only on records that have a value of
Headquarters/Parent in the LocationStatus field.
EmployeesTotalReliability
Type
picklist
Properties
Nillable, Restricted picklist
Description
The reliability of the EmployeesTotal figure. Available values are Actual
number, Low, Estimated (for all records), Modeled (for
non-US records). A blank value indicates this data is unavailable.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A system generated numeric identification.
FamilyMembers
Type
int
Properties
Nillable
Description
The total number of family members, worldwide, within an organization, including
the Global Ultimate, its subsidiaries (if any), and its branches (if any).
712
Standard Objects
DatacloudDandBCompany
Field Name
Details
Fax
Type
phone
Properties
Nillable
Description
The company’s facsimile number.
FifthNaics
Type
string
Properties
Nillable
Description
A NAICS code that’s used to further classify an organization by industry.
FifthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
FifthSic
Type
string
Properties
Nillable
Description
A Standard Industrial Classification (SIC) code that’s used to further classify an
organization by industry.
FifthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8Desc
Type
string
713
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FifthSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
FipsMsaCode
Type
string
Properties
Nillable
Description
The Federal Information Processing Standards (FIPS) and the Metropolitan
Statistical Area (MSA) codes identify the organization’s location. The MSA codes
are defined by the US Office of Management and Budget.
FipsMsaDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s FIPS MSA code.
FortuneRank
Type
int
Properties
Defaulted on create, Group, Nillable
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FourthNaics
Type
string
714
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
FourthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
FourthSic
Type
string
Properties
Group, Nillable
Description
A SIC code used to further classify an organization by industry.
FourthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FourthSicDesc
Type
string
Properties
Nillable
715
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
GeoCodeAccuracy
Type
picklist
Properties
Nillable, Restricted picklist
Description
The level of accuracy of a location’s geographical coordinates compared with its
physical address. Available values include Rooftop level, Street
level, Block level, Census tract level, Mailing address
level, ZIP code level, Geocode could not be assigned,
Places the address in the correct city, Not matched,
State or Province Centroid, Street intersection, PO
BOX location, Non-US rooftop accuracy, County Centroid,
Sub Locality-Street Level, and Locality Centroid
GlobalUltimateBusinessName
Type
string
Properties
Nillable
Description
The primary name of the Global Ultimate, which is the highest entity within an
organization’s corporate structure and may oversee branches and subsidiaries.
GlobalUltimateDunsNumber
Type
string
Properties
Filter, Nillable
Description
The D-U-N-S number of the Global Ultimate, which is the highest-ranking entity
within an organization’s corporate structure and can oversee branches and
subsidiaries.
GlobalUltimateTotalEmployees
Type
double
Properties
Nillable
716
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The total number of employees at the Global Ultimate, which is the highest entity
within an organization’s corporate structure and may oversee branches and
subsidiaries.
ImportExportAgent
Type
picklist
Properties
Nillable, Restricted picklist
Description
Identifies whether a business imports goods or services, exports goods or services,
and/or is an agent for goods.
IncludedInSnP500
Type
string
Properties
Group, Nillable
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Industry
Type
string
Properties
Group, Nillable
Description
A description of the type of industry such as Telecommunications, Agriculture,
or Electronics.
IsOwned
Type
boolean
Properties
Defaulted on create
Description
A true or false value. True, your organization owns the record. False, your
organization doesn’t own the record.
IsParent
Type
boolean
Properties
Defaulted on create,
717
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A true or false value. True, the company is a parent company. False, the company
isn’t a parent company. A parent company owns other companies.
Latitude
Type
string
Properties
Nillable
Description
Used with longitude to specify a precise location, which is used to assess the
Geocode Accuracy.
LegalStatus
Type
picklist
Properties
Nillable, Restricted picklist
Description
Identifies the legal structure of an organization. Available values include
Cooperative, Nonprofit organization, Local government
body, Partnership of unknown type, and Foreign company.
LocationStatus
Type
picklist
Properties
Filter, Nillable, Restricted picklist
Description
Identifies the organizational status of a company. A numeric value represents
each value.
Organizational status
Numeric value
Single location: The business 0
has no branches or subsidiaries.
Headquarters/Parent: A
1
parent company that owns more than
50 percent of another company. When
the company also has branches, it’s the
headquarters.
Branch: A secondary location of a
business.
718
2
Standard Objects
Field Name
DatacloudDandBCompany
Details
Note: Only the numeric value is accepted in an API request.
Longitude
Type
string
Properties
Nillable
Description
Used with latitude to specify a precise location, which is used to assess the
Geocode Accuracy.
MailingCity
Type
string
Properties
Nillable
Description
The city where a company has its mail delivered.
MailingCountry
Type
string
Properties
Nillable
Description
The country where a company has its mail delivered.
MailingState
Type
string
Properties
Nillable
Description
The state where a company has its mail delivered.
MailingStreet
Type
string
Properties
Nillable
Description
The street address where a company has its mail delivered.
MailingZip
Type
string
719
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
The postal zip code for the company.
MarketingPreScreen
Type
picklist
Properties
Nillable, Restricted picklist
Description
The probability that a company pays with a significant delay compared to the
agreed terms. The risk level is based on the standard Commercial Credit Score,
and ranges from low risk to high risk. Available values are High risk of
delinquency, Low risk of delinquency, and Moderate risk
of delinquency.
Important: Use this information for marketing pre-screening purposes
only.
MarketingSegmentationCluster
Type
picklist
Properties
Nillable, Restricted picklist
Description
Twenty-two distinct, mutually exclusive profiles, created as a result of cluster
analysis of Dun & Bradstreet data for US organizations. Available values include
High-Tension Branches of Insurance/Utility
Industries, Rapid-Growth Large Businesses,
Labor-Intensive Giants, Spartans, Main Street USA.
MinorityOwned
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether an organization is owned or controlled by a member of a
minority group.
Name
Type
string
Properties
Filter, Nillable
720
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The primary or registered name of a company.
NationalId
Type
string
Properties
Nillable
Description
The identification number used in some countries for business registration and
tax collection.
NationalIdType
Type
picklist
Properties
Nillable, Restricted picklist
Description
A code value that identifies the type of national identification number that’s used.
OutOfBusiness
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether the company at the specified address has discontinued
operations.
OwnOrRent
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company owns or rents the building it occupies.
ParentOrHqBusinessName
Type
string
Properties
Nillable
Description
The primary name of the parent or headquarters company.
721
Standard Objects
DatacloudDandBCompany
Field Name
Details
ParentOrHqDunsNumber
Type
string
Properties
Filter, Nillable
Description
The D-U-N-S number for the parent or headquarters.
Phone
Type
phone
Properties
Nillable
Description
A company’s primary telephone number.
PremisesMeasure
Type
int
Properties
Group, Nillable
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Group, Nillable
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
Properties
Group, Nillable
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PrimaryNaics
Type
string
Properties
Nillable
722
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The six-digit North American Industry Classification System (NAICS) code is the
standard used by business and government to classify business establishments
according to their economic activity for the purpose of collecting, analyzing, and
publishing statistical data related to the US business economy.
PrimaryNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on its NAICS code.
PrimarySic
Type
string
Properties
Nillable
Description
The four-digit SIC code that’s used to categorize business establishments by
industry.
PrimarySic8
Type
string
Properties
Group, Nillable
Description
The eight-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 8
characters.
PrimarySic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
PrimarySicDesc
Type
string
723
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A brief description of an organization’s line of business, based on its SIC code.
PriorYearEmployees
Type
int
Properties
Group, Nillable
Description
The total number of employees for the prior year.
PriorYearRevenue
Type
double
Properties
Nillable
Description
The annual revenue for the prior year.
PublicIndicator
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether ownership of the company is public or private.
Revenue
Type
double
Properties
Nillable
Description
The annual revenue of a company in US dollars.
SalesTurnoverGrowthRate
Type
double
Properties
Nillable
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
724
Standard Objects
DatacloudDandBCompany
Field Name
Details
SalesVolume
Type
double
Properties
Nillable
Description
The total annual sales revenue in the headquarters’ local currency. Dun &
Bradstreet tracks revenue data for publicly traded companies, Global Ultimates,
Domestic Ultimates, and some headquarters.
SalesVolumeReliability
Type
picklist
Properties
Nillable, Restricted picklist
Description
The reliability of the SalesVolume figure.
SecondNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
SecondNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
SecondSic
Type
string
Properties
Nillable
Description
A SIC code used to further classify an organization by industry.
SecondSic8
Type
string
725
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SecondSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SixthNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
SixthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SixthSic
Type
string
Properties
Nillable
726
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A SIC code used to further classify an organization by industry.
SixthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SmallBusiness
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether the company is designated a small business as defined by the
Small Business Administration of the US government.
State
Type
string
Properties
Nillable
Description
The state where a company is physically located.
727
Standard Objects
DatacloudDandBCompany
Field Name
Details
StockExchange
Type
string
Properties
Nillable
Description
The corresponding exchange for a company’s stock symbol, for example, NASDAQ
or NYSE.
StockSymbol
Type
string
Properties
Nillable
Description
The abbreviation that’s used to identify publicly traded shares of a particular
stock.
Street
Type
string
Properties
Nillable
Description
The street address where a company is physically located.
Subsidiary
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company is more than 50 percent owned by another
organization.
ThirdNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
ThirdNaicsDesc
Type
string
728
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
ThirdSic
Type
string
Properties
Nillable
Description
A SIC code used to further classify an organization by industry.
ThirdSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
ThirdSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
TradeStyle1
Type
string
Properties
Nillable
729
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A name, different from its legal name, that an organization may use for conducting
business. Similar to “Doing business as” or “DBA”.
TradeStyle2
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle3
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle4
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle5
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
UsTaxId
Type
string
Properties
Nillable
Description
The identification number for the company used by the Internal Revenue Service
(IRS) in the administration of tax laws. Also referred to as Federal Taxpayer
Identification Number.
730
Standard Objects
DatacloudDandBCompany
Field Name
Details
Website
Type
url
Properties
Filter, Group, Nillable
Description
An organization’s primary website address.
WomenOwned
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company is more than 50 percent owned or controlled by
a woman.
YearStarted
Type
string
Properties
Nillable
Description
The year when the company was established or the year when current ownership
or management assumed control of the company.
Zip
Type
string
Properties
Nillable
Description
A five or nine-digit code that’s used to help sort mail.
Usage
Use this object to return D&B Company information. These fields are read-only.
Important: DatacloudDandBCompany can’t be used in Apex test methods, because an external web service call is required to
access it. These calls are not allowed in Apex test methods.
731
Standard Objects
DatacloudOwnedEntity
DatacloudOwnedEntity
Represents fields in the DatacloudOwnedEntity object. The DatacloudOwnedEntity object tracks user-purchased records. This object is
available in API version 30.0 or later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
DataDotComKey
Type
string
Properties
Create, Filter, Sort
Description
The Data.com contact or company record identification number used by the
DatacloudPurchaseUsage object to keep track of purchased records. This is
equivalent to the Data.com record ID for a contact or company.
DatacloudEntityType
Type
picklist
Properties
Create, Filter, Restricted picklist, Sort
Description
The type of Data.com record you want to purchase.
• 0—contact
• 1—company
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
PurchaseType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
732
Standard Objects
Field Name
DatacloudPurchaseUsage
Details
Description
A read only field set by the API to identify the purchase type.
• Added
• Export
• API
PurchaseUsageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The unique identification number for the DatacloudPurchaseUsage object created
by making a REST POST request.
• 0—contact
• 1—company
UserId
Type
reference
Properties
Filter, Group, Sort
Description
A unique identifier for the user making the purchase.
Usage
The Datacloud object that tracks records that are purchased and owned by a specific user.
DatacloudPurchaseUsage
Represents an object used to identify and track Data.com record purchases. This object is available in API version 30.0 or later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
733
Standard Objects
DatacloudPurchaseUsage
Fields
Field Name
Details
DatacloudEntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of Data.com record you want to purchase.
• 0—indicates contact entity type.
• 1—indicates company entity type.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An optional field. You can add a description for your purchase.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
PurchaseType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A read only field set by the API to identify the purchase type.
• Added
• Export
• API
Usage
Type
double
Properties
Filter, Sort
734
Standard Objects
Field Name
DatacloudSocialHandle
Details
Description
A read only field set by the API. It is used to track the points used to purchase
records.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
A read only field set by the API that identifies the user purchasing the records.
UserType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A read only field set by the API with 2 user types.
• Monthly Usage
• List Pool User
Usage
The DatacloudPurchaseUsage object allows you to track Data.com record purchases for CRM users.
DatacloudSocialHandle
Returns normalized URLs with userids for different social media used by Data.com contacts. The DatacloudSocialHandle object is a child
object of the DatacloudContact object.This object is available in API version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
DatacloudContactId
Type
string
735
Standard Objects
Field Name
DatedConversionRate
Details
Properties
Filter, Nillable, Sort
Description
The unique numeric identifier for a Data.com contact record.
ProviderName
Type
string
Properties
Filter, Nillable, Sort
Description
The name of the social media provider.
SocialId
Type
string
Properties
Filter, Nillable, Sort
Description
The normalized userid for the user on this social media.
Url
Type
url
Properties
Filter, Nillable, Sort
Description
A normalized URL and userid for the website of the social media provider.
Usage
Returns social handles with Data.com contacts from the DatacloudContact object. Social handle fields are read only fields and can’t be
used to filter results.
DatedConversionRate
Represents the dated exchange rates used by an organization for which the multicurrency and the effective dated currency features are
enabled.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
736
Standard Objects
DatedConversionRate
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
ConversionRate
Type
double
Properties
Filter, Update
Description
Required. Conversion rate of this currency type against the corporate currency.
IsoCode
Type
picklist
Properties
Filter, Restricted picklist
Description
Required. ISO code of the currency. Must be one of the valid alphabetic, three-letter currency
ISO codes defined by the ISO 4217 standard, such as USD, GBP, or JPY. Must be unique
within your organization. Label is Currency ISO Code.
NextStartDate
Type
date
Properties
Filter, Nillable
Description
Read only. The date on which the next effective dated exchange rate will start. Effectively
the day after the end date for this exchange rate.
StartDate
Type
date
Properties
Filter
Description
The date on which the effective dated exchange rate starts.
Usage
This object is for multicurrency organizations with advanced currency management enabled. Use this object to define the exchange
rates your organization uses for a date range. This object is not available in single-currency organizations, nor is it available if the
organization does not have advanced currency management enabled.
737
Standard Objects
DcSocialProfile
DcSocialProfile
The DcSocialProfile object is a read-only object accessible only through the Data.com Social Key API. This object is available in
API version 32.0 or later.
Supported Calls
describeSObjects(), query()
Special Access Rules
This is a read-only object that is accessed by only the Data.com Social Key API
.
Fields
Field Name
Details
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the city where the company is located.
CompanyName
Type
string
Properties
Filter, Group, Sort
Description
The name of the company at which the contact works.
ContactId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique numerical identifier for a contact.
Country
Type
string
738
Standard Objects
Field Name
DcSocialProfile
Details
Properties
Filter, Group, Nillable, Sort
Description
A string that represents the standard abbreviation for the country where the
contact works.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
An email address for this contact.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of a contact.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The last name of a contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The two-letter standard abbreviation for a state.
Usage
Provides social handle information to the Data.com Social Key API.
739
Standard Objects
DcSocialProfileHandle
DcSocialProfileHandle
The DcSocialProfileHandle object. a child object to DcSocialProfile, is a read-only object accessible only through the
Data.com Social Key API. The DcSocialProfileHandle object is a child object of the DcSocialProfile object.This object
is available in API version 32.0 or later.
Supported Calls
describeSObjects(), query()
Special Access Rules
This is a read-only object that is accessed by only the Data.com Social Key API
Fields
Field Name
Details
DcSocialProfileId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A unique identifier for a contacts social handles.
Handle
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A normalized social handle for a contact.
ProviderName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the social media provider.
Usage
Provides social handle information to the Data.com Social Key API.
740
Standard Objects
DeclinedEventRelation
DeclinedEventRelation
Represents invitees with the status Declined for a given event. This object is available in API versions 29.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
EventId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the event.
RelationId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the invitee.
RespondedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the most recent date and time when the invitee declined an invitation
to the event.
Response
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates the content of the response field. Label is Comment.
Type
Type
string
741
Standard Objects
Division
Field Name
Details
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the invitee is a user, lead or contact, or resource.
Usage
Query invitees who have declined an invitation to an event
SELECT eventId, type, response FROM DeclinedEventRelation WHERE eventid='00UTD000000ZH5LA'
SEE ALSO:
AcceptedEventRelation
UndecidedEventRelation
Division
A logical segment of your organization's data. For example, if your company is organized into different business units, you could create
a division for each business unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
• Divisions must be enabled for your organization to access this object. To discover whether divisions have been enabled for an
organization, inspect the User or Group object for the DefaultDivision field—if it is present, then divisions have been enabled,
and this field (the field is named Division in objects other than User and Group) will be available in all relevant objects.
• Customer Portal users can’t access this object.
Fields
Field
Details
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
742
Standard Objects
Field
Division
Details
Description
Indicates whether the division is active (true) or not (false). Label is Active.
IsGlobalDivision
Type
boolean
Properties
Defaulted on createFilter
Description
Indicates whether the division is your organization’s global default division (true)
or not (false). Label is Global Division.
Name
Type
string
Properties
Create, Filter, Update
Description
A descriptive name for the division. Limit: 80 characters.
SortOrder
Type
int
Properties
Create, Filter, Nillable, Update
Description
The order in which this division name appears in the Division picklist field when
creating or editing users in the Salesforce user interface.
Usage
The values available for that field are the global division ID for the organization, created when divisions are first enabled, and any other
division IDs that have been created. The division ID associated with a user is populated in the objects owned or created by the user.
You can use the division ID to make searches, reports, and list views run more quickly and return more relevant results if an organization
has very large data sets. For more information, see the Salesforce online help, in the Fields description for the object.
You can use WITH in SOSL to pre-filter results based on division. This is faster than specifying the division in a WHERE clause.
Note: The User object has a Division field that is unrelated to this object. The Division field is a standard text field similar
to Company or Department that has no special properties. Do not confuse it with the DefaultDivision field, which does
relate to this object.
SEE ALSO:
Object Basics
743
Standard Objects
DivisionLocalization
DivisionLocalization
When the Translation Workbench is enabled for your organization, the DivisionLocalization object provides the translation of the label
for a division.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Your organization must be using Professional, Enterprise, Developer, Unlimited, or Performance Edition and be enabled for the
Translation Workbench.
• To view this object, you must have the “View Setup and Configuration” permission.
Fields
Field
Details
Language
Type
string
Properties
Create, Filter, Nillable, Restricted picklist
Description
The language for this translated label.
NamespacePrefix
Type
string
Properties
Filter, Nillable
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
744
Standard Objects
Field
Document
Details
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
ParentId
Type
reference
Properties
Create, Filter, Nillable
Description
The ID of the Division associated with the label that is being translated.
Value
Type
string
Properties
Create, Filter, Nillable, Update
Description
The actual translated label for the division. Label is Translation.
Usage
Use this object to translate the labels of your divisions into the different languages supported by Salesforce.
Document
Represents a file that a user has uploaded. Unlike Attachment records, documents are not attached to a parent object.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Special Access Rules
You must have the “Edit” permission on documents and the appropriate access to the Folder that contains a document in order to create
or update a document in that Folder.
Fields
Field
Details
AuthorId
Type
reference
745
Standard Objects
Field
Document
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who is responsible for the Document.
Body
Type
base64
Properties
Create, Nillable, Update
Description
Required. Encoded file data. If specified, then do not specify a URL.
BodyLength
Type
int
Properties
Filter, Group, Sort
Description
Size of the file (in bytes).
ContentType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of content. Label is Mime Type. Limit: 120 characters.
If the Don't allow HTML uploads as attachments or document
records security setting is enabled for your organization, you cannot upload files with
the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm,
.shtml, .acgi, .svg.
Description
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the Document. Limit: 255 characters.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
746
Standard Objects
Field
Document
Details
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Document Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
FolderId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
Required. ID of the Folder that contains the document.
IsBodySearchable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the contents of the object can be searched using a SOSL FIND call. The
ALL FIELDS search group includes the content as a searchable field.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsInternalUseOnly
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the object is only available for internal use (true) or not (false). Label
is Internal Use Only.
747
Standard Objects
Document
Field
Details
IsPublic
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the object is available for external use (true) or not (false). Label is
Externally Available.
Keywords
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Keywords. Limit: 255 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the document. Label is Document Name.
NamespacePrefix
Type
string
Properties
Filter, Group, Sort, Nillable
748
Standard Objects
Field
Document
Details
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
Type
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
File type of the Document. In general, the values match the file extension for the type of
Document (such as pdf or jpg). Label is File Extension.
Url
Type
string
Properties
Create, Filter, Nillable, Group, Sort, Update
Description
URL reference to the file (instead of storing it in the database). If specified, do not specify the
Body or BodyLength.
Usage
When creating or updating a document, you can specify a value in either the Body or Url fields, but not both.
Encoded Data
The API sends and receives the binary file data encoded as a base64 data type. Prior to creating a record, clients must encode the binary
file data as base64. Upon receiving an API response, clients must decode the base64 data to binary (this conversion is usually handled
for you by the SOAP client).
749
Standard Objects
DocumentAttachmentMap
Maximum Document Size
You can only create or update documents to a maximum size of 5 MB.
SEE ALSO:
Object Basics
DocumentAttachmentMap
Maps the relationship between an EmailTemplate and its attachment, which is stored as a Document.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
DocumentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the document that this object tracks.
DocumentSequence
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Represents the order that the attachments will be included in the email defined by the
EmailTemplate specified by the DocumentId. Label is Attachment Sequence. The first
attachment is given a value of 0, and each subsequent attachment is given a value
incremented by 1.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
750
Standard Objects
Field
DocumentTag
Details
Description
ID of the EmailTemplate parent. The attachment identified by DocumentId is attached
to the EmailTemplate specified in this field.
Usage
Use this object to map the relationship of an EmailTemplate to its attachments, and to specify the order of the attachments.
SEE ALSO:
EmailTemplate
DocumentTag
Associates a word or short phrase with a Document.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
751
Standard Objects
Field Name
Domain
Details
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
DocumentTag stores the relationship between its parent TagDefinition and the Document being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
Domain
Read-only object that represents a custom Web address assigned to a site in your organization. This object is available in API version
26.0 and later.
To access this object, Force.com Sites or Site.com must be enabled for your organization.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Customer Portal users can’t access this object.
• To view this object, you must have the “View Setup and Configuration” permission.
• Site.com Publisher users have read-only API access to the Domain and DomainSite objects.
752
Standard Objects
Domain
Fields
Field
Description
Domain
Type
string
Properties
Filter, Sort
Description
The branded custom Web address within the global namespace identified by
this domain's type. In the Domain Name System (DNS) global namespace, this
field is the custom Web address that you registered with a third-party domain
name registrar. The custom Web address can be used to access the site of this
domain.
DomainType
Type
picklist
Properties
Filter, Group, Sort
Description
The global namespace that this custom Web address belongs to. This value is
set to DNS for custom Web addresses in the global DNS.
DomainType can have the following values:
• Domain Name System (DNS)
• Facebook Page
OptionsExternalHttps
Type
boolean
Properties
Filter
Description
Indicates whether the domain supports secure connections (true) or not (false)
via a non-Salesforce content delivery network (CDN) or endpoint. The value of
this field is used only if the domain is not pointing to the
yourdomain.your18characterOrgId.live.siteforce.com
CNAME target.
Usage
Use this read-only object to query the domains that are associated with each website in your organization.
753
Standard Objects
DomainSite
DomainSite
Read-only junction object that joins together the Site and Domain objects. This object is available in API version 26.0 and later.
To access this object, Force.com Sites or Site.com must be enabled for your organization.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Customer Portal users can’t access this object.
• To view this object, you must have the “View Setup and Configuration” permission.
• Site.com Publisher users have read-only API access to the Domain and DomainSite objects.
Fields
Field
Description
DomainId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the associated Domain.
PathPrefix
Type
string
Properties
Filter, Group, Sort
Description
Shows where a site’s root exists on a domain. Can only be set for custom Web
addresses. Always begins with a /.
SiteId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the associated Site.
754
Standard Objects
DuplicateRecordItem
Usage
Use this read-only object to query or retrieve information about your Force.com site.
DuplicateRecordItem
Represents an individual record that’s part of a duplicate record set. Use this object to create custom report types.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
To access this object, your organization must have Data.com Duplicate Management enabled. Data.com Duplicate Management is
currently available as a beta feature. ContactSalesforce for more information. For users to access this object, they must be given read
and write access by their system administrator.
Fields
Field Name
Details
DuplicateRecordSetId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The duplicate record set that the duplicate record item is assigned to.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The autogenerated name that’s given to the Duplicate Record Item. Label is Duplicate
Record Item Name.
RecordId
Type
reference
Properties
Create, Filter, Group, Sort, Update
755
Standard Objects
DuplicateRecordSet
Field Name
Details
Description
The name of the record as it appears on the record’s detail page.
DuplicateRecordSet
Represents a group of records that have been identified as duplicates. Each duplicate record set contains one or more duplicate record
items. Use this object to create custom report types.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
To access this object, enable Duplicate Management. Users must be given read and write access by a Salesforce admin.
Fields
Field Name
Details
DuplicateRuleId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The duplicate rule that’s used to identify this list of duplicate records.
LastReferencedDate Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
756
Standard Objects
Field Name
DuplicateRule
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might
only have been referenced (LastReferencedDate) and not viewed.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The autogenerated name that’s given to the duplicate record set. Label is Duplicate Record
Set Name.
RecordCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of record items in the set.
SobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The object that the duplicate rule and all the record items in the set apply to.
DuplicateRule
Represents a duplicate rule for detecting duplicate records.
Supported Calls
describeSObjects(), query(), retrieve(), search()
757
Standard Objects
DuplicateRule
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The developer name for the duplicate rule.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a duplicate rule is active (true) or not (false). This field is
read only.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language for the duplicate rule.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The label for the duplicate rule.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
758
Standard Objects
Field Name
EmailDomainKey
Details
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
SobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of object the duplicate rule is defined for. For example, account, contact,
or lead.
Usage
DuplicateRule is available to organizations that use duplicate rules.
You can only view details of a duplicate rule using the API. You must use the full Salesforce site to create, edit, and delete duplicate rules.
EmailDomainKey
Represents a domain key for an organization’s domain, used to authenticate outbound email that Salesforce sends on the organization’s
behalf. This object is available in API version 28.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Domain
Type
string
Properties
Create, Filter, Group, Sort, Update
759
Standard Objects
Field Name
EmailDomainKey
Details
Description
The organization’s domain name that the DKIM key is generated for.
DomainMatch
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The specificity of match required on the sending domain name before signing
with this DKIM key. Valid values are:
• DomainOnly—Sign if sending domain matches at the domain level only
(example.com but not mail.example.com)
• SubdomainsOnly—Sign if sending domain matches at the subdomain
level only (mail.example.com but not example.com)
• DomainAndSubdomains—Sign if sending domain matches at the
domain and subdomain levels (example.com and mail.example.com)
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this DKIM key is active (true) or not (false). You can set
IsActive to true on create if you specify an existing key pair.
PrivateKey
Type
textarea
Properties
Create, Nillable, Update
Description
The private portion of the DKIM key pair used to encrypt mail headers from your
domain. Salesforce generates an encrypted PrivateKey if you don’t specify
a value when creating the DKIM key. If you do specify a value, it must be an
existing valid PrivateKey from another EmailDomainKey object.
This field doesn’t contain the actual private key, but a value that represents the
key in our system. Therefore:
• The actual private key can’t be leaked.
• You can’t use the value to do your own email signing.
PublicKey
Type
textarea
760
Standard Objects
Field Name
EmailDomainKey
Details
Properties
Create, Nillable, Update
Description
Part of the domain key pair that mail recipients retrieve to decrypt the DKIM
header and verify your domain. Add the PublicKey value to your domain’s
DNS records before you start signing with this domain key. Otherwise, mail
recipients may reject your email.
Selector
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Text used to distinguish the DKIM key from any other DKIM keys your organization
uses for the specified domain.
Usage
Use this object to define a DomainKeys Identified Mail (DKIM) key, which is used to authenticate outbound email that Salesforce sends
on your organization’s behalf. When you create a DKIM key, Salesforce generates a public and private key pair. You must publish the
public key in the DNS, which tells recipients that you, as the owner of the domain, have authorized the use of this key to sign your mail.
Salesforce uses the private key to create DKIM signature headers on your outgoing email. Then, recipients of the mail, can compare the
signature header with the public key in the DNS to determine that the mail was signed with an authorized key. If your domain also
publishes a Domain-based Message Authentication, Reporting and Conformance (DMARC) policy, recipients can use the DKIM signature
to verify that the mail conforms to DMARC.
For each domain key you create, we recommend this sequence:
1. Insert the Domain, DomainMatch, and Selector.
2. Update your domain’s DNS records.
a. Locate the DNS record at selector._domainkey.domain. For example, mail._domainkey.mail.example.com.
b. Add the PublicKey value, like this: V=DKIM1; p=public_key.
DKIM Signing Outbound Email
a. In addition, you can optionally put the record in testing mode, which instructs recipients to not make decisions based on the
email signature. Add parameter t=y to the DNS entry, like this: V=DKIM1; t=y; p=public_key.
3. Update the key via the API or UI to be active.
Consider the following when using domain keys.
• Make sure you add the public key to your DNS record before you make your key active in Salesforce and start DKIM signing. DKIM
signing is active whenever your DKIM key is in the active state.
• You can’t have more than one active DKIM key per domain name. You might have multiple active DKIM keys if your organization
mails from more than a single domain or if you use subdomains under your organizational domain and have specified domain
matching at the subdomain level.
761
Standard Objects
EmailMessage
• If you want to use the same DKIM key for multiple organizations, you can. Create the key and ensure it’s working for one organization
first. Then using the API or UI create the key in your other organizations by setting the corresponding fields in the new key to the
same values as the original.
• When you insert or update a DKIM key, it’s possible that the change affects existing domain keys. For example, if you’ve set
DomainMatch to DomainAndSubdomains for the example.com domain, and you then set DomainMatch to
SubdomainsOnly for the mail.example.com domain, either key could be used. Here’s how we resolve conflicts in the case when
DKIM keys overlap.
– If two keys are equally specific about matching for the same domain, the new key replaces and deactivates the existing key.
– If a new key is more specific about matching than an existing key, the new key is used and the existing key is modified to inactive.
– If multiple keys have different domains that match the sending domain, the key with the longest domain name is used. In case
of a tie, the most specific key is used. For example, because DomainOnly and SubdomainsOnly are more specific than
DomainAndSubdomains, a new DomainOnly key would change the DomainMatch for an existing
DomainAndSubdomains key to become SubdomainsOnly. In case of a tie, the most specific key is used.
EmailMessage
Represents an email in Salesforce.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
EmailMessage is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for most
customers.
Customer Portal users have read access to EmailMessage if the value for the ParentID field is associated with a case. Otherwise,
access is determined by sharing access of the associated task.
update() is supported only on records whose Status is Draft. When a record’s Status is not Draft, update() is
supported only for the IsExternallyVisible field and custom fields.
Fields
Field
Details
ActivityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the activity that is associated with the email. Usually represents an open task
that is created for the case owner when a new unread email message is received.
762
Standard Objects
EmailMessage
Field
Details
BccAddress
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
A string array of email addresses for recipients who were sent a blind carbon copy of
the email message. This field should include only email addresses that are not
associated with Contact, Lead, or User records in Salesforce. If the recipient is a contact,
lead, or user, add their ID to the BccIds field instead of adding their email address
to the BccAddress field. Then the email message is automatically associated with
the contact, lead, or user.
BccIds
Type
JunctionIdList
Properties
Create, Update
Description
A string array of IDs for contacts, leads, and users who were sent a blind carbon copy
of the email message. Each ID is linked to an EmailMessageRelation record,
which represents the relationship between an email message and a Contact, Lead,
or User record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
CcAddress
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
A string array of email addresses for recipients who were sent a carbon copy of the
email message. This field should include only email addresses that are not associated
with Contact, Lead, or User records in Salesforce. If the recipient is a contact, lead, or
user, add their ID to the CcIds field instead of adding their email address to the
CcAddress field. Then the email message is automatically associated with the
contact, lead, or user.
CcIds
Type
JunctionIdList
Properties
Create, Update
763
Standard Objects
Field
EmailMessage
Details
Description
A string array of IDs for contacts, leads, and users who were sent a carbon copy of the
email message. Each ID is linked to an EmailMessageRelation record, which
represents the relationship between an email message and a Contact, Lead, or User
record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
ContentDocumentIds
Type
JunctionIdList
Properties
Create, Update
Description
A string array of IDs for content documents, such as files and attachments, that are
associated with an email. Each ID is linked to a ContentDocumentLink record,
which represents the relationship between an email message and a content document
record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
FromAddress
Type
email
Properties
Create, Filter, Nillable, Update
Description
The address that originated the email.
FromName
Type
string
Properties
Create, Filter, Nillable, Update
Description
The sender’s name.
HasAttachment
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the email was sent with an attachment (true) or not (false).
764
Standard Objects
EmailMessage
Field
Details
Headers
Type
textarea
Properties
Create, Nillable, Update
Description
The Internet message headers of the incoming email. Used for debugging and tracing
purposes. Does not apply to outgoing emails.
HtmlBody
Type
textarea
Properties
Create, Nillable, Update
Description
The body of the email in HTML format.
Incoming
Type
boolean
Properties
Create, Defaulted on create, Filter
Description
Indicates whether the email was received (true) or sent (false).
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
IsExternallyVisible
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Update
Description
If the community case feed is enabled, IsExternallyVisible controls the
external visibility of emails in communities. When IsExternallyVisible is
set to true—its default value—email messages are visible to external users in the
case feed.
Only emails with the ParentId field populated are available to be externally visible
in communities.
This field can’t be updated if the email’s Status is set to Draft.
765
Standard Objects
EmailMessage
Field
Details
MessageDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
The date the email was created.
MessageIdentifier
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the email message.
ParentId
Type
ID
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the case that’s associated with the email.
RelatedToId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The RelatedToId represents nonhuman objects such as accounts, opportunities,
campaigns, cases, or custom objects. RelatedToIds are polymorphic. Polymorphic
means a RelatedToId is equivalent to the ID of a related object.
ReplyToEmailMessageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the inbound or outbound EmailMessage the current EmailMessage is a reply to.
It’s not possible to reply to a message whose Status is Draft.
Status
Type
picklist
766
Standard Objects
Field
EmailMessage
Details
Properties
Create, Filter, Restricted picklist, Update
Description
Read only. The status of the email. For example, New, Draft, Unread, Replied,
or Sent.
Subject
Type
string
Properties
Create, Filter, Nillable, Update
Description
The subject line of the email.
ThreadIdentifier
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the email thread the email message belongs to.
TextBody
Type
textarea
Properties
Create, Nillable, Update
Description
The body of the email, in plain text format.
ToAddress
Type
string
Properties
Create, Filter, Nillable, Update
Description
A string array of email addresses for recipients who were sent the email message.
This field should include only email addresses that are not associated with Contact,
Lead, or User records in Salesforce. If the recipient is a contact, lead, or user, add their
ID to the ToIds field instead of adding their email address to the ToAddress
field. Then the email message is automatically associated with the contact, lead, or
user.
ToIds
Type
JunctionIdList
767
Standard Objects
Field
EmailMessageRelation
Details
Properties
Create, Update
Description
A string array of IDs for contacts, leads, and users who were sent the email message.
Each ID is linked to an EmailMessageRelation record, which represents the
relationship between an email message and a Contact, Lead, or User record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
Usage
If your organization uses Email-to-Case, a case is created when an email is sent to one of your company’s addresses. The email, which
is related to the case by the ParentID field, is stored as an EmailMessage record. When users view the email, they see the EmailMessage
record.
If your organization uses Enhanced Email, each email is stored as an EmailMessage record and a Task record. When users view an email,
they see the EmailMessage record.
SEE ALSO:
Case
Object Basics
EmailMessageRelation
Represents the relationship between an email and contacts, leads, and users. This object is available in API version 37.0 and later
Special Access Rules
EmailMessageRelation is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for
most customers.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
EmailMessageId
Type
reference
768
Standard Objects
Field Name
EmailMessageRelation
Details
Properties
Create, Filter, Group, Sort
Description
The ID of the EmailMessage record.
RelationAddress
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
The email address of the sender or recipient.
Note: If a record relates an email to an existing contact, lead, or user
record in Salesforce, the value of RelationAddress is null.
RelationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The RecordId of the sender or recipient.
Note: If a record relates an email to an email address that’s not associated
with an existing contact, lead, or user record in Salesforce, the value of
RelationId is null.
RelationObjectType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The API name of the object type of the RecordId in the RelationId field.
It can be a contact, lead, or user.
RelationType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The type of relationship the contact, lead, or user has with the email message.
Possible values include:
• ToAddress
• CcAddress
769
Standard Objects
EmailServicesAddress
Field Name
Details
• BccAddress
• FromAddress
Usage
EmailMessageRelation allows an email to be related to contacts, leads, and users.
EmailServicesAddress
An email service address.
Each email service has one or more email addresses to which users can send messages for processing. An email service only processes
messages it receives at one of its addresses.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AuthorizedSenders
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Configures the email service address to only accept messages from the email addresses or
domains listed in this field. If the email service address receives a message from an unlisted
email address or domain, the email service performs the action specified in the
AuthorizationFailureAction field of its associated email service. Leave this field
blank if you want the email service address to receive email from any email address.
EmailDomainName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A read only field you can query that contains the system-generated domain part of this email
service address. The system generates a unique domain-part for each email service address
to ensure that no two email service addresses are identical.
770
Standard Objects
EmailServicesAddress
Field
Details
FunctionId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the email service for which the email service address receives messages.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this object is active (true) or not (false).
LocalPart
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The local-part of the email service address.
For the local-part of a Salesforce email address, all alphanumeric characters are valid, plus
the following special characters:
! # $ % & amp; ' * / = ? ^ _ + - ` { | } ~ ,
The dot character (.) is also valid as long as it's not the first or last character.
Email addresses aren’t case sensitive.
RunAsUserId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The user whose permissions the email service assumes when processing messages sent to
this address.
771
Standard Objects
EmailServicesFunction
Usage
This object supports the email services feature, which allows you to create automated processes that use Apex classes to process the
contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact
records based on contact information in messages.
SEE ALSO:
EmailServicesFunction
EmailServicesFunction
An email service.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AddressInactiveAction
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages received at an email address that is
inactive.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
ApexClassId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
772
Standard Objects
Field
EmailServicesFunction
Details
Description
Required. The ID of the Apex class that the email service uses to process inbound messages.
This field is required for API version 12.0 and later.
AttachmentOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Indicates the types of attachments the email service accepts. One of the following values:
• 0—The email service accepts the message but discards any attachment.
• 1—The email service only accepts the following types of attachments:
– Attachments with a Multipurpose Internet Mail Extension (MIME) type of text.
– Attachments with a MIME type of application/octet-stream and a file name that ends
with either a .vcf or .vcs extension. These are saved as text/x-vcard and text/calendar
MIME types, respectively.
• 2—The email service only accepts binary attachments, such as image, audio, application,
and video files.
• 3—The email service accepts any type of attachment.
AuthenticationFailureAction Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages that fail or do not support any of the
authentication protocols if the IsAuthenticationRequired field is true.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
AuthorizationFailureAction Type
picklist
Properties
Defaulted on create, Group, Sort, Create, Filter, Nillable, Restricted picklist, Update
773
Standard Objects
Field
EmailServicesFunction
Details
Description
Indicates what the email service does with messages received from senders who are not
listed in the AuthorizedSenders field on either the email service or email service
address.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
AuthorizedSenders
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Configures the email service to only accept messages from the email addresses or domains
listed in this field. If the email service receives a message from an unlisted email address or
domain, the email service performs the action specified in the
AuthorizationFailureAction field. Leave this field blank if you want the email
service to receive email from any email address.
ErrorRoutingAddress
Type
email
Properties
Create, Filter, Nillable, Sort, Update
Description
The destination email address for error notification email messages when
IsErrorRoutingEnabled is true.
FunctionInactiveAction
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages it receives when the email service itself
is inactive.
One of the following values:
• 0—The system default is used.
774
Standard Objects
Field
EmailServicesFunction
Details
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
FunctionName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the email service.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this object is active (true) or not (false).
IsAuthenticationRequired Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Configures the email service to verify the legitimacy of the sending server before processing
a message. The email service uses the SPF, SenderId, and DomainKeys protocols to verify the
sender's legitimacy: If the sending server passes at least one of these protocols and does not
fail any, the email service accepts the email. If the server fails a protocol or does not support
any of the protocols, the email service performs the action specified in the
AuthenticationFailureAction field.
IsErrorRoutingEnabled
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
When incoming email messages can’t be processed, indicates whether error notification
email messages are routed to a chosen address or to the senders.
IsTextAttachmentsAsBinary Type
boolean
775
Standard Objects
Field
EmailServicesFunction
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the email service converts text attachments to binary files.
IsTextTruncated
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
This field is deprecated. It is not available as of API version 23.0 and is deprecated and hidden
in versions 17.0 through 22.0. In all API versions, the email service now accepts inbound
email messages up to the 10 MB size limit, without truncating the text. Previously, it indicated
whether the email service truncated and accepted email messages with HTML body text,
plain body text, and text attachments over approximately 100,000 characters (true) or
rejected these email messages and notified the sender (false).
IsTlsRequired
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Configures the email service to use Transport Layer Security (TLS), a protocol for secure email
communication, to ensure the security and authenticity of inbound email.
OverLimitAction
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages if the total number of messages
processed by all email services combined has reached the daily limit for your organization.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
The system calculates the limit by multiplying the number of user licenses by 1,000.
776
Standard Objects
EmailStatus
Usage
This object supports the email services feature, which allows you to create automated processes that use Apex classes to process the
contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact
records based on contact information in messages.
SEE ALSO:
EmailServicesAddress
EmailStatus
Represents the status of email sent.
Supported Calls
describeSObjects()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
EmailTemplateName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the EmailTemplate.
FirstOpenDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date when the email was first opened by recipient. Label is Date Opened.
LastOpenDate
Type
dateTime
Properties
Filter, Nillable, Sort
777
Standard Objects
Field
EmailTemplate
Details
Description
Date when the email was last opened by recipient.
TaskId
Type
reference
Properties
Filter, Group, Sort
Description
The activity (task or event) associated with the email. Label is Activity ID.
TimesOpened
Type
int
Properties
Filter, Group, Sort
Description
Number of times the recipient opened the email.
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
SEE ALSO:
EmailTemplate
EmailTemplate
Represents a template for mass email, or email sent when the activity history related list of a record is modified.
Note: You can’t send a mass email using a Visualforce email template.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
update(), upsert()
778
Standard Objects
EmailTemplate
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
ApiVersion
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The API version for this class. Every class has an API version specified at creation.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
Content of the email. Limit: 384 KB.
BrandTemplateId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the BrandTemplate associated with this email template. The brand template
supplies letterhead information for the email template.
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the template, for example, Promotion Mass Mailing.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
779
Standard Objects
Field
EmailTemplate
Details
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Template Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
Encoding
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Character set encoding for the template.
EntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort,
Description
When UIType is 2 (Lightning Experience) or 3 (Lightning ExperienceSample),
EntityType indicates which entities this template can be used with (for example, an
account, lead, and so on). Valid values are standard object ID prefixes: 001 for account, 003
for contact, 006 for opportunity, and 00Q for lead, 500 for case, and 701 for campaign.
This field has been deprecated in API version 39.0. Use RelatedEntityType instead.
FolderId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the folder that contains the template.
HtmlValue
Type
textarea
Properties
Create, Nillable, Update
Description
This field contains the content of the email message, including HTML coding to render the
email message. Limit: 384 KB.
780
Standard Objects
EmailTemplate
Field
Details
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates that this template is active if true, or inactive if false.
LastUsedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when this EmailTemplate was last used.
Markup
Type
textarea
Properties
Create, Nillable, Update
Description
The Visualforce markup, HTML, Javascript, or any other Web-enabled code that defines the
content of the template.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the template. Label is Email Template Name.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
781
Standard Objects
Field
EmailTemplate
Details
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field cannot be accessed unless the logged-in user has the “Customize Application”
permission.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the template.
RelatedEntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort,
Description
When UIType is 2 (Lightning Experience) or 3 (Lightning ExperienceSample),
RelatedEntityType indicates which entities this template can be used with. Valid
values are the entity API name: "Account" for account, "Contact" for contact, "Opportunity"
for opportunity, "Lead" for lead, and so on. The value can be any entity the user has read
access to (including custom entities) but not virtual entities, setup entities, or platform entities.
No restrictions exist at the schema level.
Subject
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
Content of the subject line.
TemplateStyle
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Style of the template, such as formalLetter or freeform.
782
Standard Objects
EmbeddedServiceDetail
Field
Details
TemplateType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Type of template, either HTML, text, or custom templates, or those templates generated by
Visualforce.
TimesUsed
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number of times this template has been used.
UIType
Type
picklist
Properties
Create, Filter, Group, , Restricted picklist, Sort,
Description
Indicates the user interface where this template is usable. Valid values are: 1 (Salesforce
Classic), 2 (Lightning Experience), and 3 (Lightning Experience Sample).
Usage
To retrieve this object, issue a describe call on an object, which returns a query result for each activity since the object was created. You
can't query these records.
SEE ALSO:
Attachment
EmailStatus
DocumentAttachmentMap
EmbeddedServiceDetail
Represents a metadata catalog object that exposes fields from the underlying Embedded Service setup objects defined in each
EmbeddedServiceConfig deployment for guest users. Guest users don’t have direct access to the Embedded Service setup objects.
Available in API version 39.0 and later.
783
Standard Objects
EmbeddedServiceDetail
Supported SOAP Calls
describeSObjects(), query()
Supported REST HTTP Methods
GET
Fields
Field
Details
DurableID
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Developer name for the EmbeddedServiceConfig.
ContrastPrimaryColor
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Value of the ContrastPrimaryColor field in the EmbeddedServiceBranding setup
object.
Font
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Font used in the chat text of the Snap-ins chat widget.
IsPreChatEnabled
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Value of the PreChatEnabled field in the EmbeddedServiceLiveAgent setup object.
NavBarColor
Type
string
784
Standard Objects
Field
Entitlement
Details
Properties
Filter, Group, Nillable, Sort
Description
Value of the NavBarColor field in the EmbeddedServiceBranding setup object.
PrimaryColor
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Value of the PrimaryColor field in the EmbeddedServiceBranding setup object.
SecondaryColor
Type
string
Properties
Filter, Group, Nillable Sort
Description
Value of the SecondaryColor field in the EmbeddedServiceBranding setup object.
Site
Type
string
Properties
Filter, Group, Nillable Sort
Description
Value of the Site field in the EmbeddedServiceConfig setup object.
Entitlement
Represents the customer support an Account or Contact is eligible to receive. This object is available in API version 18.0 and later.
Entitlements may be based on an Asset, Product2, or ServiceContract.
Supported Calls
create(), delete(), describeLayout(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
785
Standard Objects
Entitlement
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Account associated with the entitlement.
AssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the Asset associated with the entitlement. Must be a valid asset ID.
BusinessHoursId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the BusinessHours associated with the entitlement. Must be a valid
business hours ID.
CasesPerEntitlement
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The total number of cases the entitlement supports.
This field is only available if IsPerIncident is true.
ContractLineItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the ContractLineItem associated with the entitlement. Must be a valid
ID.
EndDate
Type
date
786
Standard Objects
Field
Entitlement
Details
Properties
Create, Filter, Nillable, Update
Description
The last day the entitlement is in effect.
IsPerIncident
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether the entitlement is limited to supporting a specific number of cases
(true) or not (false).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null,
this record might only have been referenced (LastReferencedDate) and not
viewed.
Name
Type
string
Properties
Create, Filter, Update
Description
Required. Name of the entitlement.
SvcApptBookingWindowsId
Type
reference
Properties
Create, Filter, Group, Sort, Nillable, Update
787
Standard Objects
Field
Entitlement
Details
Description
The operating hours that the entitlement’s work orders should respect. The label in
the user interface is Service Appointment Booking Windows. Available
only if Field Service Lightning is enabled.
RemainingCases
Type
int
Properties
Create, Filter, Nillable, Update
Description
The number of cases the entitlement can support. This field decreases in value by
one each time a case is created with the entitlement.
This field is only available if IsPerIncident is selected.
ServiceContractId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Required. ID of the ServiceContract associated with the entitlement. Must be a valid
ID.
SlaProcessId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the SlaProcess associated with the entitlement. This field is available in version
19.0 and later.
StartDate
Type
date
Properties
Create, Filter, Nillable, Update
Description
The first date the entitlement is in effect.
Status
Type
picklist
Properties
Filter, Nillable
788
Standard Objects
Field
EntitlementContact
Details
Description
Status of the entitlement, such as Expired.
SvcApptBookingWindows
Type
reference
Properties
Create, Filter, Group, Sort, Nillable, Update
Description
The operating hours of the entitlement. This field is visible only if Field Service
Lightning is enabled.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
The type of entitlement, such as Web or phone support.
Usage
Use this object to query and manage entitlements.
SEE ALSO:
EntitlementContact
EntitlementHistory
SlaProcess
EntitlementContact
Represents a Contact eligible to receive customer support via an Entitlement. This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete()
789
Standard Objects
EntitlementContact
Fields
Field
Details
ContactId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Contact associated with the entitlement. Must be a valid ID.
EntitlementId
Type
reference
Properties
Create, Filter
Description
Required. ID of the Entitlement associated with the entitlement contact. Must be a
valid ID.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Nillable
Description
Required. Name of the entitlement contact.
Usage
Use to query and manage entitlement contacts.
SEE ALSO:
Entitlement
EntitlementHistory
790
Standard Objects
EntitlementFeed
EntitlementFeed
Represents a single feed item in the feed displayed on the detail page for an entitlement. An entitlement feed shows recent changes to
an entitlement record for any fields that are tracked in feeds, and comments and posts about the record. It's a useful way to stay up-to-date
with changes to entitlements. This object is available in API version 23.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Entitlement object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the EntitlementFeed. Required when Type is TextPost.
Optional when Type is ContentPost or LinkPost. This field is the
message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
791
Standard Objects
Field Name
EntitlementFeed
Details
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
ContentFileName automatically sets Type to ContentPost.
792
Standard Objects
EntitlementFeed
Field Name
Details
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded
to the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded
to the feed. This field is read-only and is automatically determined during insert.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
The ID of the user who added this object to the feed. For example, if a client
application migrates multiple posts and comments from another application
into a feed, InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
686
Standard Objects
Field
DashboardFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the dashboard that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
687
Standard Objects
DashboardFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
688
Standard Objects
Field
DashboardFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
689
Standard Objects
DashboardTag
Usage
Use this object to retrieve the current contents of the feed fields, such as type of feed or feed ID.
SEE ALSO:
Dashboard
DashboardTag
Associates a word or short phrase with a Dashboard. This object is available in API version 20.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
690
Standard Objects
Field Name
DataAssessmentFieldMetric
Details
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
DashboardTag stores the relationship between its parent TagDefinition and the Dashboard being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
SEE ALSO:
Dashboard
DataAssessmentFieldMetric
Represents summary statistics for matched, blank, and differing fields in account records of an org compared to records in Data.com.This
object is available in API version 37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Child Relationships
DataAssessmentFieldMetric is a child object of DataAssessmentMetric object.
Fields
Field Name
Details
DataAssessmentMetricId
Type
reference
Properties
Filter, Group, Sort
Description
A unique number that identifies the parent DataAssessmentMetric record.
691
Standard Objects
DataAssessmentFieldMetric
Field Name
Details
FieldName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the assessed field.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
NumMatchedBlanks
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that contain blank fields.
NumMatchedDifferent
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that have a different value for this field.
NumMatchedInSync
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records that have the same value for this field.
NumUnmatchedBlanks
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of unmatched records that contain blank fields.
692
Standard Objects
DataAssessmentMetric
DataAssessmentMetric
Represents a summary of statistics for fields matched and unmatched in your account records with Data.com account records.This object
is available in API version 37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
NumDuplicates
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of duplicate records.
NumMatched
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of matched records.
NumMatchedDifferent
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records in your org matched with a Data.com record that have
different fields.
693
Standard Objects
DataAssessmentValueMetric
Field Name
Details
NumProcessed
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records processed in the data assessment.
NumTotal
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records available for data assessment processing.
NumUnmatched
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of records not matched.
DataAssessmentValueMetric
Summarizes the number of fields matched for your account records with Data.com account records.This object is available in API version
37.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Child Relationships
DataAssessmentValueMetric is a child of DataAssessementFieldMetric.
Fields
Field Name
Details
DataAssessmentFieldMetricId
Type
reference
Properties
Filter, Group, Sort
694
Standard Objects
Field Name
DatacloudCompany
Details
Description
A unique number that identifies the parent DataAssessementFieldMetric record.
FieldValue
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The value in the matched field.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
ValueCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times this value appears in this field.
DatacloudCompany
Represents the fields for Data.com company records. This object is available in API version 30.0 or later.
Supported Calls
describeLayout(), describeSObjects(), query()
Fields
Field Name
Details
ActiveContacts
Type
int
Properties
Nillable
695
Standard Objects
Field Name
DatacloudCompany
Details
Description
The number of active contacts that are associated with a company.
AnnualRevenue
Type
currency
Properties
Filter, Nillable
Description
The amount of money that the company makes in 1 year. Annual revenue is
measured in US dollars.
City
Type
string
Properties
Filter, Nillable, Sort
Description
The name of the city where the company is located.
CompanyId
Type
string
Properties
Filter, Nillable
Description
A unique numerical identifier for the company and theData.com identifier for a
company.
Country
Type
string
Properties
Filter, Nillable, Sort
Description
A string that represents the standard abbreviation for the country where the
company is located.
CountryCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A standardized name for countries of the world.
696
Standard Objects
DatacloudCompany
Field Name
Details
Description
Type
string
Properties
Nillable
Description
A brief synopsis of the company that provides a general overview of the company
and what it does.
DunsNumber
Type
string
Properties
Filter, Nillable
Description
A randomly generated nine-digit number that’s assigned by Dun & Bradstreet
(D&B) to identify unique business establishments.
EmployeeQuantityGrowthRate
Type
double
Properties
Nillable
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique numerical identifier for the company. The ExternalId is a
system-generated number.
Fax
Type
phone
Properties
Nillable
Description
The telephone number that’s used to send and receive faxes.
697
Standard Objects
DatacloudCompany
Field Name
Details
FortuneRank
Type
int
Properties
Defaulted on create, Group, Nillable
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FullAddress
Type
string
Properties
Group, Nillable
Description
The complete address of a company, including Street, City, State, and Zip.
IncludedInSnP500
Type
string
Properties
Group, Nillable
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Industry
Type
string
Properties
Nillable
Description
A description of the type of industry such as Telecommunications, Agriculture,
or Electronics.
IsInCrm
Type
boolean
Properties
Defaulted on create, Group
Description
Whether the record is in Salesforce (true) or not (false).
IsInactive
Type
boolean
698
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Defaulted on create, Filter
Description
A true or false response. True, the company record is not active. False, the
company record is active.
IsOwned
Type
boolean
Properties
Defaulted on create
Description
A true or false value. True, your organization owns the record. False, your
organization doesn’t own the record.
NaicsCode
Type
string
Properties
Filter, Nillable
Description
A value that represents the North American Industry Classification System (NAICS)
code. NAICS was created to provide details about a business’s service orientation.
The code descriptions are focused on what a business does.
NaicsDesc
Type
string
Properties
Nillable
Description
A description of the NAICS classification.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The company’s name.
NumberOfEmployees
Type
int
699
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Filter, Nillable
Description
The number of employees working for the company.
Ownership
Type
string
Properties
Filter, Nillable
Description
The type of ownership of the company:
• Public
• Private
• Government
• Other
Phone
Type
phone
Properties
Nillable
Description
A numeric string containing the primary telephone number for the company.
PremisesMeasure
Type
int
Properties
Group, Nillable
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Group, Nillable
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
700
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Group, Nillable
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PriorYearEmployees
Type
int
Properties
Group, Nillable
Description
The total number of employees for the prior year.
PriorYearRevenue
Type
double
Properties
Nillable
Description
The annual revenue for the prior year.
SalesTurnoverGrowthRate
Type
double
Properties
Nillable
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
Sic
Type
string
Properties
Filter, Nillable
Description
A numeric value that represents the Standard Industrial Codes (SIC). SIC is a
numbering convention that indicates what type of service a business provides.
It is a four-digit value.
SicCodeDesc
Type
string
Properties
Group, Nillable
701
Standard Objects
Field Name
DatacloudCompany
Details
Description
The SIC numeric code and descsciption for a company.
SicDesc
Type
string
Properties
Nillable
Description
A description of the SIC classification.
Site
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
An organizational status of the company.
• Branch: a secondary location to a headquarter location
• Headquarter: a parent company with branches or subsidiaries
• Single Location: a single business with no subsidiaries or branches
State
Type
string
Properties
Filter, Nillable, Sort
Description
The two-letter standard abbreviation for a state.
StateCode
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A standard two-letter abbreviation for states and territories of the United States.
The state where the company is located. The abbreviation can also be a province
or other equivalent to a state, depending on the country where the company is
located.
Street
Type
string
702
Standard Objects
Field Name
DatacloudCompany
Details
Properties
Nillable
Description
A postal address for the company.
TickerSymbol
Type
string
Properties
Nillable
Description
The symbol that uniquely identifies companies that are traded on public stock
exchanges.
TradeStyle
Type
string
Properties
Nillable
Description
A legal name under which a company conducts business.
UpdatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The last date and time when the information for this company was updated.
Website
Type
url
Properties
Nillable
Description
The standard URL for the company’s home page.
YearStarted
Type
string
Properties
Nillable
Description
The year when the company was founded.
703
Standard Objects
DatacloudContact
Field Name
Details
Zip
Type
string
Properties
Filter, Nillable
Description
A numeric postal code that’s designated for the address.
Usage
Use the DatacloudCompany object to search the Data.com database for companies with the specific criteria that you enter. Use this
object to find company records that you are interested in purchasing for your organization. Data.com APIs use the term “company,”
which is similar to Salesforce term “accounts.”
Important: DatacloudCompany can’t be used in Apex test methods, because an external web service call is required to access
it. These calls are not allowed in Apex test methods.
DatacloudContact
The fields and properties for Data.com contact records. This object is available in API version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
City
Type
string
Properties
Filter, Nillable, Sort
Description
The city where the company is located.
CompanyId
Type
string
Properties
Filter, Nillable
704
Standard Objects
Field Name
DatacloudContact
Details
Description
The unique numerical identifier for the company and the Data.com company
identification number or Data.com Key.
CompanyName
Type
string
Properties
Filter, Group, Sort
Description
The name of the company.
ContactId
Type
string
Properties
Filter, Nillable
Description
The unique numeric identifier for this contact.
Country
Type
string
Properties
Filter, Nillable, Sort
Description
The standard abbreviation or name for the country where the company is located.
Note: You can enter a comma-separated list of countries; however, for
a country that uses a comma in its name, leave out the comma. For
example, enter “Taiwan, ROC” as Taiwan ROC.
Department
Type
picklist
Properties
Filter, Group, Restricted picklist
Description
The department in the company that the contact is affiliated with. The values of
this field are fixed enumerated values.
• Engineering
• Finance
• Human Resources
• IT
705
Standard Objects
Field Name
DatacloudContact
Details
• Marketing
• Operations
• Other
• Sales
• Support
Email
Type
email
Properties
Filter, Nillable
Description
A business email address for the contact.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique system-generated numerical identifier for the contact.
FirstName
Type
string
Properties
Filter, Nillable
Description
The first name of the contact.
IsInCrm
Type
boolean
Properties
Defaulted on create, Group
Description
Whether the record is in Salesforce (true) or not (false).
IsInactive
Type
boolean
Properties
Defaulted on create, Filter
Description
Whether the record is active (false) or not (true).
706
Standard Objects
DatacloudContact
Field Name
Details
IsOwned
Type
boolean
Properties
Defaulted on create
Description
• True: You own this record.
• False: You do not own this record.
LastName
Type
string
Properties
Filter, Nillable, Sort
Description
The last name of the contact.
Level
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist
Description
A human resource label that designates a person’s level in the company. The
values of this field are fixed enumerated values.
• C-Level
• VP
• Director
• Manager
• Staff
• Other
Phone
Type
phone
Properties
Nillable
Description
The direct-dial telephone number for the contact.
SocialHandles
Type
string
707
Standard Objects
Field Name
DatacloudContact
Details
Properties
The social handles for this contact. Social handles are a normalized URL and user
name for social media accounts such as, LinkedIn, Facebook, and Twitter. This
field is response-only.
The DatacloudSocialHandles object is a child of the DatacloudContact object.
State
Type
string
Properties
Filter, Nillable, Sort
Description
The state where the company is located, which can also be a province or other
equivalent to a state, depending on the country where the company is located.
Street
Type
string
Properties
Nillable
Description
The street address for the company where the contact works.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Title of the contact such as CEO or Vice President.
UpdatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The last date and time when the information for a contact was updated.
Zip
Type
string
Properties
Filter, Nillable
708
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The postal or zip code for the address.
Usage
This object searches the Data.com database for contacts with the specific criteria that you enter. Use this object to find contact records
that you are interested in purchasing for your organization.
Important: DatacloudContact can’t be used in Apex test methods, because an external web service call is required to access it.
These calls are not allowed in Apex test methods.
DatacloudDandBCompany
Represents a set of read-only fields that are used to return D&B company data from Data.com API calls. This object is available in API
version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
City
Type
string
Properties
Nillable
Description
The name of the city where the company is physically located.
CompanyCurrencyIsoCode
Type
picklist
Properties
Nillable, Restricted picklist
Description
The code used to represent a company’s local currency. This data is provided by
the International Organization for Standardization (ISO) and is based on their
three-letter currency codes. For example, USD is the ISO code for United States
Dollar.
709
Standard Objects
DatacloudDandBCompany
Field Name
Details
CompanyId
Type
string
Properties
Filter, Nillable, Sort
Description
A unique numeric identifier for a company.
Country
Type
string
Properties
Nillable
Description
The country where a company is physically located.
CountryAccessCode
Type
string
Properties
Nillable
Description
The required code for international calls.
CurrencyCode
Type
picklist
Properties
Nillable, Restricted picklist
Description
The currency in which the company’s sales volume is expressed.
Description
Type
string
Properties
Nillable
Description
A brief description of the company, which may include information about its
history, its products and services, and its influence on a particular industry.
DomesticUltimateBusinessName
Type
string
Properties
Nillable
710
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The primary name of the Domestic Ultimate, which is the highest ranking
subsidiary, specified by country, within an organization’s corporate structure.
DomesticUltimateDunsNumber
Type
string
Properties
Nillable
Description
The D-U-N-S number for the Domestic Ultimate, which is the highest-ranking
subsidiary, specified by country, within an organization’s corporate structure.
DunsNumber
Type
string
Properties
Filter, Nillable
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit
number assigned to every business location in the Dun & Bradstreet database
that has a unique, separate, and distinct operation. D-U-N-S numbers are used
by industries and organizations around the world as a global standard for business
identification and tracking.
EmployeeQuantityGrowthRate
Type
double
Properties
Nillable
Description
The yearly growth rate of the number of employees in a company expressed as
a decimal percentage. The data includes the total employee growth rate for the
past two years.
EmployeesHere
Type
double
Properties
Nillable
Description
The number of employees at a specified location, such as a branch location.
EmployeesHereReliability
Type
picklist
711
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable, Restricted picklist
Description
The reliability of the EmployeesHere figure. Available values are Actual
number, Low, Estimated (for all records), Modeled (for
non-US records). A blank value indicates this data is unavailable.
EmployeesTotal
Type
double
Properties
Nillable
Description
The total number of employees in the company, including all subsidiary and
branch locations. This data is available only on records that have a value of
Headquarters/Parent in the LocationStatus field.
EmployeesTotalReliability
Type
picklist
Properties
Nillable, Restricted picklist
Description
The reliability of the EmployeesTotal figure. Available values are Actual
number, Low, Estimated (for all records), Modeled (for
non-US records). A blank value indicates this data is unavailable.
ExternalId
Type
string
Properties
Filter, Nillable, Sort
Description
A system generated numeric identification.
FamilyMembers
Type
int
Properties
Nillable
Description
The total number of family members, worldwide, within an organization, including
the Global Ultimate, its subsidiaries (if any), and its branches (if any).
712
Standard Objects
DatacloudDandBCompany
Field Name
Details
Fax
Type
phone
Properties
Nillable
Description
The company’s facsimile number.
FifthNaics
Type
string
Properties
Nillable
Description
A NAICS code that’s used to further classify an organization by industry.
FifthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
FifthSic
Type
string
Properties
Nillable
Description
A Standard Industrial Classification (SIC) code that’s used to further classify an
organization by industry.
FifthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FifthSic8Desc
Type
string
713
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FifthSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
FipsMsaCode
Type
string
Properties
Nillable
Description
The Federal Information Processing Standards (FIPS) and the Metropolitan
Statistical Area (MSA) codes identify the organization’s location. The MSA codes
are defined by the US Office of Management and Budget.
FipsMsaDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s FIPS MSA code.
FortuneRank
Type
int
Properties
Defaulted on create, Group, Nillable
Description
The numeric value of the company’s Fortune 1000 ranking. A null or blank value
means that the company isn’t ranked as a Fortune 1000 company.
FourthNaics
Type
string
714
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
FourthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
FourthSic
Type
string
Properties
Group, Nillable
Description
A SIC code used to further classify an organization by industry.
FourthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
FourthSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
FourthSicDesc
Type
string
Properties
Nillable
715
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
GeoCodeAccuracy
Type
picklist
Properties
Nillable, Restricted picklist
Description
The level of accuracy of a location’s geographical coordinates compared with its
physical address. Available values include Rooftop level, Street
level, Block level, Census tract level, Mailing address
level, ZIP code level, Geocode could not be assigned,
Places the address in the correct city, Not matched,
State or Province Centroid, Street intersection, PO
BOX location, Non-US rooftop accuracy, County Centroid,
Sub Locality-Street Level, and Locality Centroid
GlobalUltimateBusinessName
Type
string
Properties
Nillable
Description
The primary name of the Global Ultimate, which is the highest entity within an
organization’s corporate structure and may oversee branches and subsidiaries.
GlobalUltimateDunsNumber
Type
string
Properties
Filter, Nillable
Description
The D-U-N-S number of the Global Ultimate, which is the highest-ranking entity
within an organization’s corporate structure and can oversee branches and
subsidiaries.
GlobalUltimateTotalEmployees
Type
double
Properties
Nillable
716
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The total number of employees at the Global Ultimate, which is the highest entity
within an organization’s corporate structure and may oversee branches and
subsidiaries.
ImportExportAgent
Type
picklist
Properties
Nillable, Restricted picklist
Description
Identifies whether a business imports goods or services, exports goods or services,
and/or is an agent for goods.
IncludedInSnP500
Type
string
Properties
Group, Nillable
Description
A true or false value. If true, the company is listed in the S&P 500 Index. If
false, the company isn’t listed in the S&P 500 Index.
Industry
Type
string
Properties
Group, Nillable
Description
A description of the type of industry such as Telecommunications, Agriculture,
or Electronics.
IsOwned
Type
boolean
Properties
Defaulted on create
Description
A true or false value. True, your organization owns the record. False, your
organization doesn’t own the record.
IsParent
Type
boolean
Properties
Defaulted on create,
717
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A true or false value. True, the company is a parent company. False, the company
isn’t a parent company. A parent company owns other companies.
Latitude
Type
string
Properties
Nillable
Description
Used with longitude to specify a precise location, which is used to assess the
Geocode Accuracy.
LegalStatus
Type
picklist
Properties
Nillable, Restricted picklist
Description
Identifies the legal structure of an organization. Available values include
Cooperative, Nonprofit organization, Local government
body, Partnership of unknown type, and Foreign company.
LocationStatus
Type
picklist
Properties
Filter, Nillable, Restricted picklist
Description
Identifies the organizational status of a company. A numeric value represents
each value.
Organizational status
Numeric value
Single location: The business 0
has no branches or subsidiaries.
Headquarters/Parent: A
1
parent company that owns more than
50 percent of another company. When
the company also has branches, it’s the
headquarters.
Branch: A secondary location of a
business.
718
2
Standard Objects
Field Name
DatacloudDandBCompany
Details
Note: Only the numeric value is accepted in an API request.
Longitude
Type
string
Properties
Nillable
Description
Used with latitude to specify a precise location, which is used to assess the
Geocode Accuracy.
MailingCity
Type
string
Properties
Nillable
Description
The city where a company has its mail delivered.
MailingCountry
Type
string
Properties
Nillable
Description
The country where a company has its mail delivered.
MailingState
Type
string
Properties
Nillable
Description
The state where a company has its mail delivered.
MailingStreet
Type
string
Properties
Nillable
Description
The street address where a company has its mail delivered.
MailingZip
Type
string
719
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
The postal zip code for the company.
MarketingPreScreen
Type
picklist
Properties
Nillable, Restricted picklist
Description
The probability that a company pays with a significant delay compared to the
agreed terms. The risk level is based on the standard Commercial Credit Score,
and ranges from low risk to high risk. Available values are High risk of
delinquency, Low risk of delinquency, and Moderate risk
of delinquency.
Important: Use this information for marketing pre-screening purposes
only.
MarketingSegmentationCluster
Type
picklist
Properties
Nillable, Restricted picklist
Description
Twenty-two distinct, mutually exclusive profiles, created as a result of cluster
analysis of Dun & Bradstreet data for US organizations. Available values include
High-Tension Branches of Insurance/Utility
Industries, Rapid-Growth Large Businesses,
Labor-Intensive Giants, Spartans, Main Street USA.
MinorityOwned
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether an organization is owned or controlled by a member of a
minority group.
Name
Type
string
Properties
Filter, Nillable
720
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The primary or registered name of a company.
NationalId
Type
string
Properties
Nillable
Description
The identification number used in some countries for business registration and
tax collection.
NationalIdType
Type
picklist
Properties
Nillable, Restricted picklist
Description
A code value that identifies the type of national identification number that’s used.
OutOfBusiness
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether the company at the specified address has discontinued
operations.
OwnOrRent
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company owns or rents the building it occupies.
ParentOrHqBusinessName
Type
string
Properties
Nillable
Description
The primary name of the parent or headquarters company.
721
Standard Objects
DatacloudDandBCompany
Field Name
Details
ParentOrHqDunsNumber
Type
string
Properties
Filter, Nillable
Description
The D-U-N-S number for the parent or headquarters.
Phone
Type
phone
Properties
Nillable
Description
A company’s primary telephone number.
PremisesMeasure
Type
int
Properties
Group, Nillable
Description
A numeric value for the measurement of the premises.
PremisesMeasureReliability
Type
string
Properties
Group, Nillable
Description
A descriptive accuracy of the measurement such as actual, estimated, or modeled.
PremisesMeasureUnit
Type
string
Properties
Group, Nillable
Description
A descriptive measurement unit such as acres, square meters, or square feet.
PrimaryNaics
Type
string
Properties
Nillable
722
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
The six-digit North American Industry Classification System (NAICS) code is the
standard used by business and government to classify business establishments
according to their economic activity for the purpose of collecting, analyzing, and
publishing statistical data related to the US business economy.
PrimaryNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on its NAICS code.
PrimarySic
Type
string
Properties
Nillable
Description
The four-digit SIC code that’s used to categorize business establishments by
industry.
PrimarySic8
Type
string
Properties
Group, Nillable
Description
The eight-digit Standard Industrial Classification (SIC) code is used to categorize
business establishments by industry. The full list of values can be found at the
Optimizer Resources page maintained by Dun & Bradstreet. Maximum size is 8
characters.
PrimarySic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
PrimarySicDesc
Type
string
723
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A brief description of an organization’s line of business, based on its SIC code.
PriorYearEmployees
Type
int
Properties
Group, Nillable
Description
The total number of employees for the prior year.
PriorYearRevenue
Type
double
Properties
Nillable
Description
The annual revenue for the prior year.
PublicIndicator
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether ownership of the company is public or private.
Revenue
Type
double
Properties
Nillable
Description
The annual revenue of a company in US dollars.
SalesTurnoverGrowthRate
Type
double
Properties
Nillable
Description
The increase in annual revenue from the previous value for an equivalent period
expressed as a decimal percentage.
724
Standard Objects
DatacloudDandBCompany
Field Name
Details
SalesVolume
Type
double
Properties
Nillable
Description
The total annual sales revenue in the headquarters’ local currency. Dun &
Bradstreet tracks revenue data for publicly traded companies, Global Ultimates,
Domestic Ultimates, and some headquarters.
SalesVolumeReliability
Type
picklist
Properties
Nillable, Restricted picklist
Description
The reliability of the SalesVolume figure.
SecondNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
SecondNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
SecondSic
Type
string
Properties
Nillable
Description
A SIC code used to further classify an organization by industry.
SecondSic8
Type
string
725
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SecondSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SecondSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SixthNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
SixthNaicsDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SixthSic
Type
string
Properties
Nillable
726
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A SIC code used to further classify an organization by industry.
SixthSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
SixthSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
SixthSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
SmallBusiness
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether the company is designated a small business as defined by the
Small Business Administration of the US government.
State
Type
string
Properties
Nillable
Description
The state where a company is physically located.
727
Standard Objects
DatacloudDandBCompany
Field Name
Details
StockExchange
Type
string
Properties
Nillable
Description
The corresponding exchange for a company’s stock symbol, for example, NASDAQ
or NYSE.
StockSymbol
Type
string
Properties
Nillable
Description
The abbreviation that’s used to identify publicly traded shares of a particular
stock.
Street
Type
string
Properties
Nillable
Description
The street address where a company is physically located.
Subsidiary
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company is more than 50 percent owned by another
organization.
ThirdNaics
Type
string
Properties
Nillable
Description
A NAICS code used to further classify an organization by industry.
ThirdNaicsDesc
Type
string
728
Standard Objects
Field Name
DatacloudDandBCompany
Details
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding NAICS code.
ThirdSic
Type
string
Properties
Nillable
Description
A SIC code used to further classify an organization by industry.
ThirdSic8
Type
string
Properties
Group, Nillable
Description
An additional SIC code used to further classify an organization by industry.
Maximum size is 8 characters.
ThirdSic8Desc
Type
string
Properties
Group, Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code. Maximum size is 80 characters.
ThirdSicDesc
Type
string
Properties
Nillable
Description
A brief description of an organization’s line of business, based on the
corresponding SIC code.
TradeStyle1
Type
string
Properties
Nillable
729
Standard Objects
Field Name
DatacloudDandBCompany
Details
Description
A name, different from its legal name, that an organization may use for conducting
business. Similar to “Doing business as” or “DBA”.
TradeStyle2
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle3
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle4
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
TradeStyle5
Type
string
Properties
Nillable
Description
A tradestyle used by the organization.
UsTaxId
Type
string
Properties
Nillable
Description
The identification number for the company used by the Internal Revenue Service
(IRS) in the administration of tax laws. Also referred to as Federal Taxpayer
Identification Number.
730
Standard Objects
DatacloudDandBCompany
Field Name
Details
Website
Type
url
Properties
Filter, Group, Nillable
Description
An organization’s primary website address.
WomenOwned
Type
picklist
Properties
Nillable, Restricted picklist
Description
Indicates whether a company is more than 50 percent owned or controlled by
a woman.
YearStarted
Type
string
Properties
Nillable
Description
The year when the company was established or the year when current ownership
or management assumed control of the company.
Zip
Type
string
Properties
Nillable
Description
A five or nine-digit code that’s used to help sort mail.
Usage
Use this object to return D&B Company information. These fields are read-only.
Important: DatacloudDandBCompany can’t be used in Apex test methods, because an external web service call is required to
access it. These calls are not allowed in Apex test methods.
731
Standard Objects
DatacloudOwnedEntity
DatacloudOwnedEntity
Represents fields in the DatacloudOwnedEntity object. The DatacloudOwnedEntity object tracks user-purchased records. This object is
available in API version 30.0 or later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
DataDotComKey
Type
string
Properties
Create, Filter, Sort
Description
The Data.com contact or company record identification number used by the
DatacloudPurchaseUsage object to keep track of purchased records. This is
equivalent to the Data.com record ID for a contact or company.
DatacloudEntityType
Type
picklist
Properties
Create, Filter, Restricted picklist, Sort
Description
The type of Data.com record you want to purchase.
• 0—contact
• 1—company
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
PurchaseType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
732
Standard Objects
Field Name
DatacloudPurchaseUsage
Details
Description
A read only field set by the API to identify the purchase type.
• Added
• Export
• API
PurchaseUsageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The unique identification number for the DatacloudPurchaseUsage object created
by making a REST POST request.
• 0—contact
• 1—company
UserId
Type
reference
Properties
Filter, Group, Sort
Description
A unique identifier for the user making the purchase.
Usage
The Datacloud object that tracks records that are purchased and owned by a specific user.
DatacloudPurchaseUsage
Represents an object used to identify and track Data.com record purchases. This object is available in API version 30.0 or later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
733
Standard Objects
DatacloudPurchaseUsage
Fields
Field Name
Details
DatacloudEntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of Data.com record you want to purchase.
• 0—indicates contact entity type.
• 1—indicates company entity type.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
An optional field. You can add a description for your purchase.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
An optional field used to name your record.
PurchaseType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A read only field set by the API to identify the purchase type.
• Added
• Export
• API
Usage
Type
double
Properties
Filter, Sort
734
Standard Objects
Field Name
DatacloudSocialHandle
Details
Description
A read only field set by the API. It is used to track the points used to purchase
records.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
A read only field set by the API that identifies the user purchasing the records.
UserType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A read only field set by the API with 2 user types.
• Monthly Usage
• List Pool User
Usage
The DatacloudPurchaseUsage object allows you to track Data.com record purchases for CRM users.
DatacloudSocialHandle
Returns normalized URLs with userids for different social media used by Data.com contacts. The DatacloudSocialHandle object is a child
object of the DatacloudContact object.This object is available in API version 30.0 or later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
DatacloudContactId
Type
string
735
Standard Objects
Field Name
DatedConversionRate
Details
Properties
Filter, Nillable, Sort
Description
The unique numeric identifier for a Data.com contact record.
ProviderName
Type
string
Properties
Filter, Nillable, Sort
Description
The name of the social media provider.
SocialId
Type
string
Properties
Filter, Nillable, Sort
Description
The normalized userid for the user on this social media.
Url
Type
url
Properties
Filter, Nillable, Sort
Description
A normalized URL and userid for the website of the social media provider.
Usage
Returns social handles with Data.com contacts from the DatacloudContact object. Social handle fields are read only fields and can’t be
used to filter results.
DatedConversionRate
Represents the dated exchange rates used by an organization for which the multicurrency and the effective dated currency features are
enabled.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
736
Standard Objects
DatedConversionRate
Special Access Rules
Customer Portal users can't access this object.
Fields
Field
Details
ConversionRate
Type
double
Properties
Filter, Update
Description
Required. Conversion rate of this currency type against the corporate currency.
IsoCode
Type
picklist
Properties
Filter, Restricted picklist
Description
Required. ISO code of the currency. Must be one of the valid alphabetic, three-letter currency
ISO codes defined by the ISO 4217 standard, such as USD, GBP, or JPY. Must be unique
within your organization. Label is Currency ISO Code.
NextStartDate
Type
date
Properties
Filter, Nillable
Description
Read only. The date on which the next effective dated exchange rate will start. Effectively
the day after the end date for this exchange rate.
StartDate
Type
date
Properties
Filter
Description
The date on which the effective dated exchange rate starts.
Usage
This object is for multicurrency organizations with advanced currency management enabled. Use this object to define the exchange
rates your organization uses for a date range. This object is not available in single-currency organizations, nor is it available if the
organization does not have advanced currency management enabled.
737
Standard Objects
DcSocialProfile
DcSocialProfile
The DcSocialProfile object is a read-only object accessible only through the Data.com Social Key API. This object is available in
API version 32.0 or later.
Supported Calls
describeSObjects(), query()
Special Access Rules
This is a read-only object that is accessed by only the Data.com Social Key API
.
Fields
Field Name
Details
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the city where the company is located.
CompanyName
Type
string
Properties
Filter, Group, Sort
Description
The name of the company at which the contact works.
ContactId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique numerical identifier for a contact.
Country
Type
string
738
Standard Objects
Field Name
DcSocialProfile
Details
Properties
Filter, Group, Nillable, Sort
Description
A string that represents the standard abbreviation for the country where the
contact works.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
An email address for this contact.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of a contact.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The last name of a contact.
State
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The two-letter standard abbreviation for a state.
Usage
Provides social handle information to the Data.com Social Key API.
739
Standard Objects
DcSocialProfileHandle
DcSocialProfileHandle
The DcSocialProfileHandle object. a child object to DcSocialProfile, is a read-only object accessible only through the
Data.com Social Key API. The DcSocialProfileHandle object is a child object of the DcSocialProfile object.This object
is available in API version 32.0 or later.
Supported Calls
describeSObjects(), query()
Special Access Rules
This is a read-only object that is accessed by only the Data.com Social Key API
Fields
Field Name
Details
DcSocialProfileId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A unique identifier for a contacts social handles.
Handle
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A normalized social handle for a contact.
ProviderName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the social media provider.
Usage
Provides social handle information to the Data.com Social Key API.
740
Standard Objects
DeclinedEventRelation
DeclinedEventRelation
Represents invitees with the status Declined for a given event. This object is available in API versions 29.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
EventId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the event.
RelationId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the invitee.
RespondedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the most recent date and time when the invitee declined an invitation
to the event.
Response
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates the content of the response field. Label is Comment.
Type
Type
string
741
Standard Objects
Division
Field Name
Details
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the invitee is a user, lead or contact, or resource.
Usage
Query invitees who have declined an invitation to an event
SELECT eventId, type, response FROM DeclinedEventRelation WHERE eventid='00UTD000000ZH5LA'
SEE ALSO:
AcceptedEventRelation
UndecidedEventRelation
Division
A logical segment of your organization's data. For example, if your company is organized into different business units, you could create
a division for each business unit, such as “North America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
• Divisions must be enabled for your organization to access this object. To discover whether divisions have been enabled for an
organization, inspect the User or Group object for the DefaultDivision field—if it is present, then divisions have been enabled,
and this field (the field is named Division in objects other than User and Group) will be available in all relevant objects.
• Customer Portal users can’t access this object.
Fields
Field
Details
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
742
Standard Objects
Field
Division
Details
Description
Indicates whether the division is active (true) or not (false). Label is Active.
IsGlobalDivision
Type
boolean
Properties
Defaulted on createFilter
Description
Indicates whether the division is your organization’s global default division (true)
or not (false). Label is Global Division.
Name
Type
string
Properties
Create, Filter, Update
Description
A descriptive name for the division. Limit: 80 characters.
SortOrder
Type
int
Properties
Create, Filter, Nillable, Update
Description
The order in which this division name appears in the Division picklist field when
creating or editing users in the Salesforce user interface.
Usage
The values available for that field are the global division ID for the organization, created when divisions are first enabled, and any other
division IDs that have been created. The division ID associated with a user is populated in the objects owned or created by the user.
You can use the division ID to make searches, reports, and list views run more quickly and return more relevant results if an organization
has very large data sets. For more information, see the Salesforce online help, in the Fields description for the object.
You can use WITH in SOSL to pre-filter results based on division. This is faster than specifying the division in a WHERE clause.
Note: The User object has a Division field that is unrelated to this object. The Division field is a standard text field similar
to Company or Department that has no special properties. Do not confuse it with the DefaultDivision field, which does
relate to this object.
SEE ALSO:
Object Basics
743
Standard Objects
DivisionLocalization
DivisionLocalization
When the Translation Workbench is enabled for your organization, the DivisionLocalization object provides the translation of the label
for a division.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• Your organization must be using Professional, Enterprise, Developer, Unlimited, or Performance Edition and be enabled for the
Translation Workbench.
• To view this object, you must have the “View Setup and Configuration” permission.
Fields
Field
Details
Language
Type
string
Properties
Create, Filter, Nillable, Restricted picklist
Description
The language for this translated label.
NamespacePrefix
Type
string
Properties
Filter, Nillable
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
744
Standard Objects
Field
Document
Details
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
ParentId
Type
reference
Properties
Create, Filter, Nillable
Description
The ID of the Division associated with the label that is being translated.
Value
Type
string
Properties
Create, Filter, Nillable, Update
Description
The actual translated label for the division. Label is Translation.
Usage
Use this object to translate the labels of your divisions into the different languages supported by Salesforce.
Document
Represents a file that a user has uploaded. Unlike Attachment records, documents are not attached to a parent object.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Special Access Rules
You must have the “Edit” permission on documents and the appropriate access to the Folder that contains a document in order to create
or update a document in that Folder.
Fields
Field
Details
AuthorId
Type
reference
745
Standard Objects
Field
Document
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who is responsible for the Document.
Body
Type
base64
Properties
Create, Nillable, Update
Description
Required. Encoded file data. If specified, then do not specify a URL.
BodyLength
Type
int
Properties
Filter, Group, Sort
Description
Size of the file (in bytes).
ContentType
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of content. Label is Mime Type. Limit: 120 characters.
If the Don't allow HTML uploads as attachments or document
records security setting is enabled for your organization, you cannot upload files with
the following file extensions: .htm, .html, .htt, .htx, .mhtm, .mhtml, .shtm,
.shtml, .acgi, .svg.
Description
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the Document. Limit: 255 characters.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
746
Standard Objects
Field
Document
Details
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Document Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
FolderId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
Required. ID of the Folder that contains the document.
IsBodySearchable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the contents of the object can be searched using a SOSL FIND call. The
ALL FIELDS search group includes the content as a searchable field.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsInternalUseOnly
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the object is only available for internal use (true) or not (false). Label
is Internal Use Only.
747
Standard Objects
Document
Field
Details
IsPublic
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the object is available for external use (true) or not (false). Label is
Externally Available.
Keywords
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Keywords. Limit: 255 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the document. Label is Document Name.
NamespacePrefix
Type
string
Properties
Filter, Group, Sort, Nillable
748
Standard Objects
Field
Document
Details
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
Type
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
File type of the Document. In general, the values match the file extension for the type of
Document (such as pdf or jpg). Label is File Extension.
Url
Type
string
Properties
Create, Filter, Nillable, Group, Sort, Update
Description
URL reference to the file (instead of storing it in the database). If specified, do not specify the
Body or BodyLength.
Usage
When creating or updating a document, you can specify a value in either the Body or Url fields, but not both.
Encoded Data
The API sends and receives the binary file data encoded as a base64 data type. Prior to creating a record, clients must encode the binary
file data as base64. Upon receiving an API response, clients must decode the base64 data to binary (this conversion is usually handled
for you by the SOAP client).
749
Standard Objects
DocumentAttachmentMap
Maximum Document Size
You can only create or update documents to a maximum size of 5 MB.
SEE ALSO:
Object Basics
DocumentAttachmentMap
Maps the relationship between an EmailTemplate and its attachment, which is stored as a Document.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
DocumentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the document that this object tracks.
DocumentSequence
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Represents the order that the attachments will be included in the email defined by the
EmailTemplate specified by the DocumentId. Label is Attachment Sequence. The first
attachment is given a value of 0, and each subsequent attachment is given a value
incremented by 1.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
750
Standard Objects
Field
DocumentTag
Details
Description
ID of the EmailTemplate parent. The attachment identified by DocumentId is attached
to the EmailTemplate specified in this field.
Usage
Use this object to map the relationship of an EmailTemplate to its attachments, and to specify the order of the attachments.
SEE ALSO:
EmailTemplate
DocumentTag
Associates a word or short phrase with a Document.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
751
Standard Objects
Field Name
Domain
Details
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
DocumentTag stores the relationship between its parent TagDefinition and the Document being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
Domain
Read-only object that represents a custom Web address assigned to a site in your organization. This object is available in API version
26.0 and later.
To access this object, Force.com Sites or Site.com must be enabled for your organization.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Customer Portal users can’t access this object.
• To view this object, you must have the “View Setup and Configuration” permission.
• Site.com Publisher users have read-only API access to the Domain and DomainSite objects.
752
Standard Objects
Domain
Fields
Field
Description
Domain
Type
string
Properties
Filter, Sort
Description
The branded custom Web address within the global namespace identified by
this domain's type. In the Domain Name System (DNS) global namespace, this
field is the custom Web address that you registered with a third-party domain
name registrar. The custom Web address can be used to access the site of this
domain.
DomainType
Type
picklist
Properties
Filter, Group, Sort
Description
The global namespace that this custom Web address belongs to. This value is
set to DNS for custom Web addresses in the global DNS.
DomainType can have the following values:
• Domain Name System (DNS)
• Facebook Page
OptionsExternalHttps
Type
boolean
Properties
Filter
Description
Indicates whether the domain supports secure connections (true) or not (false)
via a non-Salesforce content delivery network (CDN) or endpoint. The value of
this field is used only if the domain is not pointing to the
yourdomain.your18characterOrgId.live.siteforce.com
CNAME target.
Usage
Use this read-only object to query the domains that are associated with each website in your organization.
753
Standard Objects
DomainSite
DomainSite
Read-only junction object that joins together the Site and Domain objects. This object is available in API version 26.0 and later.
To access this object, Force.com Sites or Site.com must be enabled for your organization.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
• Customer Portal users can’t access this object.
• To view this object, you must have the “View Setup and Configuration” permission.
• Site.com Publisher users have read-only API access to the Domain and DomainSite objects.
Fields
Field
Description
DomainId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the associated Domain.
PathPrefix
Type
string
Properties
Filter, Group, Sort
Description
Shows where a site’s root exists on a domain. Can only be set for custom Web
addresses. Always begins with a /.
SiteId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the associated Site.
754
Standard Objects
DuplicateRecordItem
Usage
Use this read-only object to query or retrieve information about your Force.com site.
DuplicateRecordItem
Represents an individual record that’s part of a duplicate record set. Use this object to create custom report types.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
To access this object, your organization must have Data.com Duplicate Management enabled. Data.com Duplicate Management is
currently available as a beta feature. ContactSalesforce for more information. For users to access this object, they must be given read
and write access by their system administrator.
Fields
Field Name
Details
DuplicateRecordSetId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The duplicate record set that the duplicate record item is assigned to.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The autogenerated name that’s given to the Duplicate Record Item. Label is Duplicate
Record Item Name.
RecordId
Type
reference
Properties
Create, Filter, Group, Sort, Update
755
Standard Objects
DuplicateRecordSet
Field Name
Details
Description
The name of the record as it appears on the record’s detail page.
DuplicateRecordSet
Represents a group of records that have been identified as duplicates. Each duplicate record set contains one or more duplicate record
items. Use this object to create custom report types.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
To access this object, enable Duplicate Management. Users must be given read and write access by a Salesforce admin.
Fields
Field Name
Details
DuplicateRuleId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The duplicate rule that’s used to identify this list of duplicate records.
LastReferencedDate Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
756
Standard Objects
Field Name
DuplicateRule
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this record might
only have been referenced (LastReferencedDate) and not viewed.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The autogenerated name that’s given to the duplicate record set. Label is Duplicate Record
Set Name.
RecordCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of record items in the set.
SobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The object that the duplicate rule and all the record items in the set apply to.
DuplicateRule
Represents a duplicate rule for detecting duplicate records.
Supported Calls
describeSObjects(), query(), retrieve(), search()
757
Standard Objects
DuplicateRule
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The developer name for the duplicate rule.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a duplicate rule is active (true) or not (false). This field is
read only.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language for the duplicate rule.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The label for the duplicate rule.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
758
Standard Objects
Field Name
EmailDomainKey
Details
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
SobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of object the duplicate rule is defined for. For example, account, contact,
or lead.
Usage
DuplicateRule is available to organizations that use duplicate rules.
You can only view details of a duplicate rule using the API. You must use the full Salesforce site to create, edit, and delete duplicate rules.
EmailDomainKey
Represents a domain key for an organization’s domain, used to authenticate outbound email that Salesforce sends on the organization’s
behalf. This object is available in API version 28.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Domain
Type
string
Properties
Create, Filter, Group, Sort, Update
759
Standard Objects
Field Name
EmailDomainKey
Details
Description
The organization’s domain name that the DKIM key is generated for.
DomainMatch
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The specificity of match required on the sending domain name before signing
with this DKIM key. Valid values are:
• DomainOnly—Sign if sending domain matches at the domain level only
(example.com but not mail.example.com)
• SubdomainsOnly—Sign if sending domain matches at the subdomain
level only (mail.example.com but not example.com)
• DomainAndSubdomains—Sign if sending domain matches at the
domain and subdomain levels (example.com and mail.example.com)
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this DKIM key is active (true) or not (false). You can set
IsActive to true on create if you specify an existing key pair.
PrivateKey
Type
textarea
Properties
Create, Nillable, Update
Description
The private portion of the DKIM key pair used to encrypt mail headers from your
domain. Salesforce generates an encrypted PrivateKey if you don’t specify
a value when creating the DKIM key. If you do specify a value, it must be an
existing valid PrivateKey from another EmailDomainKey object.
This field doesn’t contain the actual private key, but a value that represents the
key in our system. Therefore:
• The actual private key can’t be leaked.
• You can’t use the value to do your own email signing.
PublicKey
Type
textarea
760
Standard Objects
Field Name
EmailDomainKey
Details
Properties
Create, Nillable, Update
Description
Part of the domain key pair that mail recipients retrieve to decrypt the DKIM
header and verify your domain. Add the PublicKey value to your domain’s
DNS records before you start signing with this domain key. Otherwise, mail
recipients may reject your email.
Selector
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Text used to distinguish the DKIM key from any other DKIM keys your organization
uses for the specified domain.
Usage
Use this object to define a DomainKeys Identified Mail (DKIM) key, which is used to authenticate outbound email that Salesforce sends
on your organization’s behalf. When you create a DKIM key, Salesforce generates a public and private key pair. You must publish the
public key in the DNS, which tells recipients that you, as the owner of the domain, have authorized the use of this key to sign your mail.
Salesforce uses the private key to create DKIM signature headers on your outgoing email. Then, recipients of the mail, can compare the
signature header with the public key in the DNS to determine that the mail was signed with an authorized key. If your domain also
publishes a Domain-based Message Authentication, Reporting and Conformance (DMARC) policy, recipients can use the DKIM signature
to verify that the mail conforms to DMARC.
For each domain key you create, we recommend this sequence:
1. Insert the Domain, DomainMatch, and Selector.
2. Update your domain’s DNS records.
a. Locate the DNS record at selector._domainkey.domain. For example, mail._domainkey.mail.example.com.
b. Add the PublicKey value, like this: V=DKIM1; p=public_key.
DKIM Signing Outbound Email
a. In addition, you can optionally put the record in testing mode, which instructs recipients to not make decisions based on the
email signature. Add parameter t=y to the DNS entry, like this: V=DKIM1; t=y; p=public_key.
3. Update the key via the API or UI to be active.
Consider the following when using domain keys.
• Make sure you add the public key to your DNS record before you make your key active in Salesforce and start DKIM signing. DKIM
signing is active whenever your DKIM key is in the active state.
• You can’t have more than one active DKIM key per domain name. You might have multiple active DKIM keys if your organization
mails from more than a single domain or if you use subdomains under your organizational domain and have specified domain
matching at the subdomain level.
761
Standard Objects
EmailMessage
• If you want to use the same DKIM key for multiple organizations, you can. Create the key and ensure it’s working for one organization
first. Then using the API or UI create the key in your other organizations by setting the corresponding fields in the new key to the
same values as the original.
• When you insert or update a DKIM key, it’s possible that the change affects existing domain keys. For example, if you’ve set
DomainMatch to DomainAndSubdomains for the example.com domain, and you then set DomainMatch to
SubdomainsOnly for the mail.example.com domain, either key could be used. Here’s how we resolve conflicts in the case when
DKIM keys overlap.
– If two keys are equally specific about matching for the same domain, the new key replaces and deactivates the existing key.
– If a new key is more specific about matching than an existing key, the new key is used and the existing key is modified to inactive.
– If multiple keys have different domains that match the sending domain, the key with the longest domain name is used. In case
of a tie, the most specific key is used. For example, because DomainOnly and SubdomainsOnly are more specific than
DomainAndSubdomains, a new DomainOnly key would change the DomainMatch for an existing
DomainAndSubdomains key to become SubdomainsOnly. In case of a tie, the most specific key is used.
EmailMessage
Represents an email in Salesforce.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Special Access Rules
EmailMessage is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for most
customers.
Customer Portal users have read access to EmailMessage if the value for the ParentID field is associated with a case. Otherwise,
access is determined by sharing access of the associated task.
update() is supported only on records whose Status is Draft. When a record’s Status is not Draft, update() is
supported only for the IsExternallyVisible field and custom fields.
Fields
Field
Details
ActivityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the activity that is associated with the email. Usually represents an open task
that is created for the case owner when a new unread email message is received.
762
Standard Objects
EmailMessage
Field
Details
BccAddress
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
A string array of email addresses for recipients who were sent a blind carbon copy of
the email message. This field should include only email addresses that are not
associated with Contact, Lead, or User records in Salesforce. If the recipient is a contact,
lead, or user, add their ID to the BccIds field instead of adding their email address
to the BccAddress field. Then the email message is automatically associated with
the contact, lead, or user.
BccIds
Type
JunctionIdList
Properties
Create, Update
Description
A string array of IDs for contacts, leads, and users who were sent a blind carbon copy
of the email message. Each ID is linked to an EmailMessageRelation record,
which represents the relationship between an email message and a Contact, Lead,
or User record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
CcAddress
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
A string array of email addresses for recipients who were sent a carbon copy of the
email message. This field should include only email addresses that are not associated
with Contact, Lead, or User records in Salesforce. If the recipient is a contact, lead, or
user, add their ID to the CcIds field instead of adding their email address to the
CcAddress field. Then the email message is automatically associated with the
contact, lead, or user.
CcIds
Type
JunctionIdList
Properties
Create, Update
763
Standard Objects
Field
EmailMessage
Details
Description
A string array of IDs for contacts, leads, and users who were sent a carbon copy of the
email message. Each ID is linked to an EmailMessageRelation record, which
represents the relationship between an email message and a Contact, Lead, or User
record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
ContentDocumentIds
Type
JunctionIdList
Properties
Create, Update
Description
A string array of IDs for content documents, such as files and attachments, that are
associated with an email. Each ID is linked to a ContentDocumentLink record,
which represents the relationship between an email message and a content document
record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
FromAddress
Type
email
Properties
Create, Filter, Nillable, Update
Description
The address that originated the email.
FromName
Type
string
Properties
Create, Filter, Nillable, Update
Description
The sender’s name.
HasAttachment
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the email was sent with an attachment (true) or not (false).
764
Standard Objects
EmailMessage
Field
Details
Headers
Type
textarea
Properties
Create, Nillable, Update
Description
The Internet message headers of the incoming email. Used for debugging and tracing
purposes. Does not apply to outgoing emails.
HtmlBody
Type
textarea
Properties
Create, Nillable, Update
Description
The body of the email in HTML format.
Incoming
Type
boolean
Properties
Create, Defaulted on create, Filter
Description
Indicates whether the email was received (true) or sent (false).
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
IsExternallyVisible
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Update
Description
If the community case feed is enabled, IsExternallyVisible controls the
external visibility of emails in communities. When IsExternallyVisible is
set to true—its default value—email messages are visible to external users in the
case feed.
Only emails with the ParentId field populated are available to be externally visible
in communities.
This field can’t be updated if the email’s Status is set to Draft.
765
Standard Objects
EmailMessage
Field
Details
MessageDate
Type
dateTime
Properties
Create, Filter, Nillable, Update
Description
The date the email was created.
MessageIdentifier
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the email message.
ParentId
Type
ID
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the case that’s associated with the email.
RelatedToId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The RelatedToId represents nonhuman objects such as accounts, opportunities,
campaigns, cases, or custom objects. RelatedToIds are polymorphic. Polymorphic
means a RelatedToId is equivalent to the ID of a related object.
ReplyToEmailMessageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the inbound or outbound EmailMessage the current EmailMessage is a reply to.
It’s not possible to reply to a message whose Status is Draft.
Status
Type
picklist
766
Standard Objects
Field
EmailMessage
Details
Properties
Create, Filter, Restricted picklist, Update
Description
Read only. The status of the email. For example, New, Draft, Unread, Replied,
or Sent.
Subject
Type
string
Properties
Create, Filter, Nillable, Update
Description
The subject line of the email.
ThreadIdentifier
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the email thread the email message belongs to.
TextBody
Type
textarea
Properties
Create, Nillable, Update
Description
The body of the email, in plain text format.
ToAddress
Type
string
Properties
Create, Filter, Nillable, Update
Description
A string array of email addresses for recipients who were sent the email message.
This field should include only email addresses that are not associated with Contact,
Lead, or User records in Salesforce. If the recipient is a contact, lead, or user, add their
ID to the ToIds field instead of adding their email address to the ToAddress
field. Then the email message is automatically associated with the contact, lead, or
user.
ToIds
Type
JunctionIdList
767
Standard Objects
Field
EmailMessageRelation
Details
Properties
Create, Update
Description
A string array of IDs for contacts, leads, and users who were sent the email message.
Each ID is linked to an EmailMessageRelation record, which represents the
relationship between an email message and a Contact, Lead, or User record.
Warning: Adding a JunctionIdList field name to the
fieldsToNull property deletes all related junction records. This action
can’t be undone.
Usage
If your organization uses Email-to-Case, a case is created when an email is sent to one of your company’s addresses. The email, which
is related to the case by the ParentID field, is stored as an EmailMessage record. When users view the email, they see the EmailMessage
record.
If your organization uses Enhanced Email, each email is stored as an EmailMessage record and a Task record. When users view an email,
they see the EmailMessage record.
SEE ALSO:
Case
Object Basics
EmailMessageRelation
Represents the relationship between an email and contacts, leads, and users. This object is available in API version 37.0 and later
Special Access Rules
EmailMessageRelation is only available for organizations that use Email-to-Case or Enhanced Email, which is automatically enabled for
most customers.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
EmailMessageId
Type
reference
768
Standard Objects
Field Name
EmailMessageRelation
Details
Properties
Create, Filter, Group, Sort
Description
The ID of the EmailMessage record.
RelationAddress
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
The email address of the sender or recipient.
Note: If a record relates an email to an existing contact, lead, or user
record in Salesforce, the value of RelationAddress is null.
RelationId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The RecordId of the sender or recipient.
Note: If a record relates an email to an email address that’s not associated
with an existing contact, lead, or user record in Salesforce, the value of
RelationId is null.
RelationObjectType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The API name of the object type of the RecordId in the RelationId field.
It can be a contact, lead, or user.
RelationType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The type of relationship the contact, lead, or user has with the email message.
Possible values include:
• ToAddress
• CcAddress
769
Standard Objects
EmailServicesAddress
Field Name
Details
• BccAddress
• FromAddress
Usage
EmailMessageRelation allows an email to be related to contacts, leads, and users.
EmailServicesAddress
An email service address.
Each email service has one or more email addresses to which users can send messages for processing. An email service only processes
messages it receives at one of its addresses.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AuthorizedSenders
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Configures the email service address to only accept messages from the email addresses or
domains listed in this field. If the email service address receives a message from an unlisted
email address or domain, the email service performs the action specified in the
AuthorizationFailureAction field of its associated email service. Leave this field
blank if you want the email service address to receive email from any email address.
EmailDomainName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A read only field you can query that contains the system-generated domain part of this email
service address. The system generates a unique domain-part for each email service address
to ensure that no two email service addresses are identical.
770
Standard Objects
EmailServicesAddress
Field
Details
FunctionId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the email service for which the email service address receives messages.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this object is active (true) or not (false).
LocalPart
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The local-part of the email service address.
For the local-part of a Salesforce email address, all alphanumeric characters are valid, plus
the following special characters:
! # $ % & amp; ' * / = ? ^ _ + - ` { | } ~ ,
The dot character (.) is also valid as long as it's not the first or last character.
Email addresses aren’t case sensitive.
RunAsUserId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The user whose permissions the email service assumes when processing messages sent to
this address.
771
Standard Objects
EmailServicesFunction
Usage
This object supports the email services feature, which allows you to create automated processes that use Apex classes to process the
contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact
records based on contact information in messages.
SEE ALSO:
EmailServicesFunction
EmailServicesFunction
An email service.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AddressInactiveAction
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages received at an email address that is
inactive.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
ApexClassId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
772
Standard Objects
Field
EmailServicesFunction
Details
Description
Required. The ID of the Apex class that the email service uses to process inbound messages.
This field is required for API version 12.0 and later.
AttachmentOption
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Indicates the types of attachments the email service accepts. One of the following values:
• 0—The email service accepts the message but discards any attachment.
• 1—The email service only accepts the following types of attachments:
– Attachments with a Multipurpose Internet Mail Extension (MIME) type of text.
– Attachments with a MIME type of application/octet-stream and a file name that ends
with either a .vcf or .vcs extension. These are saved as text/x-vcard and text/calendar
MIME types, respectively.
• 2—The email service only accepts binary attachments, such as image, audio, application,
and video files.
• 3—The email service accepts any type of attachment.
AuthenticationFailureAction Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages that fail or do not support any of the
authentication protocols if the IsAuthenticationRequired field is true.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
AuthorizationFailureAction Type
picklist
Properties
Defaulted on create, Group, Sort, Create, Filter, Nillable, Restricted picklist, Update
773
Standard Objects
Field
EmailServicesFunction
Details
Description
Indicates what the email service does with messages received from senders who are not
listed in the AuthorizedSenders field on either the email service or email service
address.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
AuthorizedSenders
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Configures the email service to only accept messages from the email addresses or domains
listed in this field. If the email service receives a message from an unlisted email address or
domain, the email service performs the action specified in the
AuthorizationFailureAction field. Leave this field blank if you want the email
service to receive email from any email address.
ErrorRoutingAddress
Type
email
Properties
Create, Filter, Nillable, Sort, Update
Description
The destination email address for error notification email messages when
IsErrorRoutingEnabled is true.
FunctionInactiveAction
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages it receives when the email service itself
is inactive.
One of the following values:
• 0—The system default is used.
774
Standard Objects
Field
EmailServicesFunction
Details
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
FunctionName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the email service.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this object is active (true) or not (false).
IsAuthenticationRequired Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Configures the email service to verify the legitimacy of the sending server before processing
a message. The email service uses the SPF, SenderId, and DomainKeys protocols to verify the
sender's legitimacy: If the sending server passes at least one of these protocols and does not
fail any, the email service accepts the email. If the server fails a protocol or does not support
any of the protocols, the email service performs the action specified in the
AuthenticationFailureAction field.
IsErrorRoutingEnabled
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
When incoming email messages can’t be processed, indicates whether error notification
email messages are routed to a chosen address or to the senders.
IsTextAttachmentsAsBinary Type
boolean
775
Standard Objects
Field
EmailServicesFunction
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the email service converts text attachments to binary files.
IsTextTruncated
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
This field is deprecated. It is not available as of API version 23.0 and is deprecated and hidden
in versions 17.0 through 22.0. In all API versions, the email service now accepts inbound
email messages up to the 10 MB size limit, without truncating the text. Previously, it indicated
whether the email service truncated and accepted email messages with HTML body text,
plain body text, and text attachments over approximately 100,000 characters (true) or
rejected these email messages and notified the sender (false).
IsTlsRequired
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Configures the email service to use Transport Layer Security (TLS), a protocol for secure email
communication, to ensure the security and authenticity of inbound email.
OverLimitAction
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates what the email service does with messages if the total number of messages
processed by all email services combined has reached the daily limit for your organization.
One of the following values:
• 0—The system default is used.
• 1—The email service returns the message to the sender with a notification that explains
why the message was rejected.
• 2—The email service deletes the message without notifying the sender.
• 3—The email service queues the message for processing in the next 24 hours. If the
message is not processed within 24 hours, the email service returns the message to the
sender with a notification that explains why the message was rejected.
The system calculates the limit by multiplying the number of user licenses by 1,000.
776
Standard Objects
EmailStatus
Usage
This object supports the email services feature, which allows you to create automated processes that use Apex classes to process the
contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact
records based on contact information in messages.
SEE ALSO:
EmailServicesAddress
EmailStatus
Represents the status of email sent.
Supported Calls
describeSObjects()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
EmailTemplateName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the EmailTemplate.
FirstOpenDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date when the email was first opened by recipient. Label is Date Opened.
LastOpenDate
Type
dateTime
Properties
Filter, Nillable, Sort
777
Standard Objects
Field
EmailTemplate
Details
Description
Date when the email was last opened by recipient.
TaskId
Type
reference
Properties
Filter, Group, Sort
Description
The activity (task or event) associated with the email. Label is Activity ID.
TimesOpened
Type
int
Properties
Filter, Group, Sort
Description
Number of times the recipient opened the email.
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
SEE ALSO:
EmailTemplate
EmailTemplate
Represents a template for mass email, or email sent when the activity history related list of a record is modified.
Note: You can’t send a mass email using a Visualforce email template.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
update(), upsert()
778
Standard Objects
EmailTemplate
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
ApiVersion
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The API version for this class. Every class has an API version specified at creation.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
Content of the email. Limit: 384 KB.
BrandTemplateId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the BrandTemplate associated with this email template. The brand template
supplies letterhead information for the email template.
Description
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the template, for example, Promotion Mass Mailing.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
779
Standard Objects
Field
EmailTemplate
Details
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Template Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
Encoding
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Character set encoding for the template.
EntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort,
Description
When UIType is 2 (Lightning Experience) or 3 (Lightning ExperienceSample),
EntityType indicates which entities this template can be used with (for example, an
account, lead, and so on). Valid values are standard object ID prefixes: 001 for account, 003
for contact, 006 for opportunity, and 00Q for lead, 500 for case, and 701 for campaign.
This field has been deprecated in API version 39.0. Use RelatedEntityType instead.
FolderId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the folder that contains the template.
HtmlValue
Type
textarea
Properties
Create, Nillable, Update
Description
This field contains the content of the email message, including HTML coding to render the
email message. Limit: 384 KB.
780
Standard Objects
EmailTemplate
Field
Details
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates that this template is active if true, or inactive if false.
LastUsedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when this EmailTemplate was last used.
Markup
Type
textarea
Properties
Create, Nillable, Update
Description
The Visualforce markup, HTML, Javascript, or any other Web-enabled code that defines the
content of the template.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the template. Label is Email Template Name.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
781
Standard Objects
Field
EmailTemplate
Details
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field cannot be accessed unless the logged-in user has the “Customize Application”
permission.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the template.
RelatedEntityType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort,
Description
When UIType is 2 (Lightning Experience) or 3 (Lightning ExperienceSample),
RelatedEntityType indicates which entities this template can be used with. Valid
values are the entity API name: "Account" for account, "Contact" for contact, "Opportunity"
for opportunity, "Lead" for lead, and so on. The value can be any entity the user has read
access to (including custom entities) but not virtual entities, setup entities, or platform entities.
No restrictions exist at the schema level.
Subject
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
Content of the subject line.
TemplateStyle
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Style of the template, such as formalLetter or freeform.
782
Standard Objects
EmbeddedServiceDetail
Field
Details
TemplateType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Type of template, either HTML, text, or custom templates, or those templates generated by
Visualforce.
TimesUsed
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number of times this template has been used.
UIType
Type
picklist
Properties
Create, Filter, Group, , Restricted picklist, Sort,
Description
Indicates the user interface where this template is usable. Valid values are: 1 (Salesforce
Classic), 2 (Lightning Experience), and 3 (Lightning Experience Sample).
Usage
To retrieve this object, issue a describe call on an object, which returns a query result for each activity since the object was created. You
can't query these records.
SEE ALSO:
Attachment
EmailStatus
DocumentAttachmentMap
EmbeddedServiceDetail
Represents a metadata catalog object that exposes fields from the underlying Embedded Service setup objects defined in each
EmbeddedServiceConfig deployment for guest users. Guest users don’t have direct access to the Embedded Service setup objects.
Available in API version 39.0 and later.
783
Standard Objects
EmbeddedServiceDetail
Supported SOAP Calls
describeSObjects(), query()
Supported REST HTTP Methods
GET
Fields
Field
Details
DurableID
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Developer name for the EmbeddedServiceConfig.
ContrastPrimaryColor
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Value of the ContrastPrimaryColor field in the EmbeddedServiceBranding setup
object.
Font
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Font used in the chat text of the Snap-ins chat widget.
IsPreChatEnabled
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Value of the PreChatEnabled field in the EmbeddedServiceLiveAgent setup object.
NavBarColor
Type
string
784
Standard Objects
Field
Entitlement
Details
Properties
Filter, Group, Nillable, Sort
Description
Value of the NavBarColor field in the EmbeddedServiceBranding setup object.
PrimaryColor
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Value of the PrimaryColor field in the EmbeddedServiceBranding setup object.
SecondaryColor
Type
string
Properties
Filter, Group, Nillable Sort
Description
Value of the SecondaryColor field in the EmbeddedServiceBranding setup object.
Site
Type
string
Properties
Filter, Group, Nillable Sort
Description
Value of the Site field in the EmbeddedServiceConfig setup object.
Entitlement
Represents the customer support an Account or Contact is eligible to receive. This object is available in API version 18.0 and later.
Entitlements may be based on an Asset, Product2, or ServiceContract.
Supported Calls
create(), delete(), describeLayout(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
785
Standard Objects
Entitlement
Fields
Field
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Account associated with the entitlement.
AssetId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the Asset associated with the entitlement. Must be a valid asset ID.
BusinessHoursId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the BusinessHours associated with the entitlement. Must be a valid
business hours ID.
CasesPerEntitlement
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The total number of cases the entitlement supports.
This field is only available if IsPerIncident is true.
ContractLineItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Required. ID of the ContractLineItem associated with the entitlement. Must be a valid
ID.
EndDate
Type
date
786
Standard Objects
Field
Entitlement
Details
Properties
Create, Filter, Nillable, Update
Description
The last day the entitlement is in effect.
IsPerIncident
Type
boolean
Properties
Defaulted on create, Filter, Update
Description
Indicates whether the entitlement is limited to supporting a specific number of cases
(true) or not (false).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null,
this record might only have been referenced (LastReferencedDate) and not
viewed.
Name
Type
string
Properties
Create, Filter, Update
Description
Required. Name of the entitlement.
SvcApptBookingWindowsId
Type
reference
Properties
Create, Filter, Group, Sort, Nillable, Update
787
Standard Objects
Field
Entitlement
Details
Description
The operating hours that the entitlement’s work orders should respect. The label in
the user interface is Service Appointment Booking Windows. Available
only if Field Service Lightning is enabled.
RemainingCases
Type
int
Properties
Create, Filter, Nillable, Update
Description
The number of cases the entitlement can support. This field decreases in value by
one each time a case is created with the entitlement.
This field is only available if IsPerIncident is selected.
ServiceContractId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Required. ID of the ServiceContract associated with the entitlement. Must be a valid
ID.
SlaProcessId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the SlaProcess associated with the entitlement. This field is available in version
19.0 and later.
StartDate
Type
date
Properties
Create, Filter, Nillable, Update
Description
The first date the entitlement is in effect.
Status
Type
picklist
Properties
Filter, Nillable
788
Standard Objects
Field
EntitlementContact
Details
Description
Status of the entitlement, such as Expired.
SvcApptBookingWindows
Type
reference
Properties
Create, Filter, Group, Sort, Nillable, Update
Description
The operating hours of the entitlement. This field is visible only if Field Service
Lightning is enabled.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
The type of entitlement, such as Web or phone support.
Usage
Use this object to query and manage entitlements.
SEE ALSO:
EntitlementContact
EntitlementHistory
SlaProcess
EntitlementContact
Represents a Contact eligible to receive customer support via an Entitlement. This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete()
789
Standard Objects
EntitlementContact
Fields
Field
Details
ContactId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Contact associated with the entitlement. Must be a valid ID.
EntitlementId
Type
reference
Properties
Create, Filter
Description
Required. ID of the Entitlement associated with the entitlement contact. Must be a
valid ID.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Nillable
Description
Required. Name of the entitlement contact.
Usage
Use to query and manage entitlement contacts.
SEE ALSO:
Entitlement
EntitlementHistory
790
Standard Objects
EntitlementFeed
EntitlementFeed
Represents a single feed item in the feed displayed on the detail page for an entitlement. An entitlement feed shows recent changes to
an entitlement record for any fields that are tracked in feeds, and comments and posts about the record. It's a useful way to stay up-to-date
with changes to entitlements. This object is available in API version 23.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Entitlement object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the EntitlementFeed. Required when Type is TextPost.
Optional when Type is ContentPost or LinkPost. This field is the
message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
791
Standard Objects
Field Name
EntitlementFeed
Details
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.
The file uploaded to the feed. Required if Type is ContentPost. Setting
ContentFileName automatically sets Type to ContentPost.
792
Standard Objects
EntitlementFeed
Field Name
Details
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded
to the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded
to the feed. This field is read-only and is automatically determined during insert.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
The ID of the user who added this object to the feed. For example, if a client
application migrates multiple posts and comments from another application
into a feed, InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
793
Standard Objects
Field Name
EntitlementFeed
Details
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as
CreatedDate. If a FeedComment is inserted on the feed item, then
LastModifiedDate becomes the CreatedDate for the FeedComment.
Deleting the FeedComment does not change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most
recent feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
794
Standard Objects
EntitlementFeed
Field Name
Details
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the entitlement record that is tracked in the feed. The feed is displayed on
the detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as an EntitlementFeed object of Type
ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
795
Standard Objects
Field Name
EntitlementFeed
Details
Description
The title of the EntitlementFeed. When the Type is LinkPost, the LinkUrl
is the URL and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of EntitlementFeed item:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
796
Standard Objects
Field Name
EntitlementFeed
Details
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
797
Standard Objects
Field Name
EntitlementHistory
Details
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for an entitlement record.
SEE ALSO:
Entitlement
EntitlementHistory
EntitlementContact
FeedItem
EntitlementHistory
Represents the changes to field values on an Entitlement. This object is available in API version 18.0 and later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
EntitlementId
Type
reference
Properties
Filter
Description
Required. ID of the Entitlement.
Field
Type
picklist
Properties
Filter, Restricted picklist
Description
The name of the field that was changed.
798
Standard Objects
EntitlementTemplate
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable
Description
The latest value of the field before it was changed.
Usage
This object respects field-level security on the parent object.
SEE ALSO:
Entitlement
EntitlementContact
EntitlementTemplate
Represents predefined terms of customer support for a product (Product2). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
All users, even those without the “View Setup and Configuration” user permission, can view entitlement templates via the API.
799
Standard Objects
EntitlementTemplate
Fields
Field
Details
BusinessHoursId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the BusinessHours associated with the entitlement template. Must be a valid
business hours ID.
CasesPerEntitlement
Type
int
Properties
Create, Filter, Nillable, Update
Description
The total number of cases the entitlement template supports.
This field is only available if IsPerIncident is true.
IsPerIncident
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the entitlement template is limited to supporting a specific number
of cases (true) or not (false).
Name
Type
string
Properties
Create, Filter, idLookup, Update
Description
Required. Name of the entitlement template.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
800
Standard Objects
Field
EntitlementTemplate
Details
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
Available in version 34.0 and later.
SlaProcessId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the SlaProcess associated with the entitlement template. This field is available
in API version 19.0 and later.
Term
Type
int
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
Number of days that the entitlement template is valid.
Type
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
The type of entitlement template, such as Web or phone support.
Usage
Use this object to manage entitlement templates.
801
Standard Objects
EntityHistory
EntityHistory
Represents historical information about an object’s changed field values. This object is only available to users with the “View All Data”
permission. This object is unavailable beginning with API version 8.0. Use the object-specific History objects instead: CaseHistory,
ContractHistory, LeadHistory, OpportunityFieldHistory, OpportunityHistory ProcessInstanceHistory, QuantityForecastHistory,
RevenueForecastHistory, or SolutionHistory.
Supported Calls
describeSObjects(), getUpdated(), getDeleted(), query(), retrieve()
Fields
Field
Details
FieldName
Type
picklist
Properties
Filter, Restricted picklist
Description
ID of the standard or custom field.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable
Description
New value of the modified field.
OldValue
Type
anyType
Properties
Nillable
Description
Previous value of the modified field.
802
Standard Objects
EntityMilestone
Field
Details
ParentId
Type
reference
Properties
Filter
Description
ID of the object that contains the field.
ParentSobjectType
Type
picklist
Properties
Filter, Restricted picklist
Description
The kind of object that contains the field.
Usage
In API version 7.0 and later, this object works with Case, Contract, and Solution objects:
• This object is always read-only in the online application.
• When a field is modified, this object records both the old and new field values. There are exceptions to this behavior for certain fields
such as long text areas and multi-select picklists. These fields appear in this object to indicate that the field was changed, but the
old and new values are not recorded.
• Two rows are added to this object when foreign key fields change. One row contains the foreign key object names that display in
the online application. For example, “Jane Doe” is recorded as the name of a contact. The other row contains the actual foreign key
ID that is only returned to and visible from the API.
• Up to a total of twenty fields (standard or custom) can be tracked for a given object.
• In the online application, you can specify which fields are tracked or not tracked at any time.
• As soon as tracking is turned on for a field, all changes to its value are recorded in the database.
• Turning off tracking for a field stops further changes from being recorded, but the history data is not deleted.
• Be advised that deleting a custom field also permanently deletes the history data for that custom field.
EntityMilestone
Represents a required step in a customer support process on a record. The Salesforce user interface uses the term “object milestone.”
This object is available in API version 37.0 and later.
As of Summer ’16, object milestones are supported only for work orders.
Note: Milestones on cases use the CaseMilestone object type.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update()
803
Standard Objects
EntityMilestone
Special Access Rules
Object milestones are accessible only when entitlement management is enabled. You can add milestones to work orders only when
work orders are enabled.
Fields
Field Name
Details
ActualElapsedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
ActualElapsedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
ActualElapsedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
BusinessHoursId
Type
reference
804
Standard Objects
Field Name
EntityMilestone
Details
Properties
Filter, Group, Nillable, Sort
Description
The business hours on the milestone. If business hours aren’t specified, the
entitlement process business hours are used. If business hours are also not
specified on the entitlement process, the business hours on the record are used.
CompletionDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
The date and time the milestone was completed.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for orgs with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
ElapsedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days it took to complete a milestone, including time during which
the milestone was stopped. Automatically calculated to include the business
hours on the record. Elapsed time is calculated only after the Completion Date
field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
ElapsedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours it took to complete a milestone, including time during
which the milestone was stopped. Automatically calculated to include the
business hours on the record. Elapsed time is calculated only after the Completion
Date field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
805
Standard Objects
EntityMilestone
Field Name
Details
ElapsedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes it took to complete a milestone, including time during
which the milestone was stopped. Automatically calculated to include the
business hours on the record. Elapsed time is calculated only after the Completion
Date field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
IsCompleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Icon ( ) that indicates a milestone completion.
IsViolated
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Icon ( ) that indicates a milestone violation.
MilestoneTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the milestone (for instance, First Response).
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
The name of the milestone.
ParentEntityId
Type
reference
806
Standard Objects
Field Name
EntityMilestone
Details
Properties
Filter, Group, Sort
Description
The ID of the record—for example, a work order—that contains the milestone.
StartDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
The date and time that milestone tracking started.
StoppedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days that an agent has been blocked from completing a milestone.
For example, an agent may be waiting for a customer to reply with more
information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
StoppedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours that an agent has been blocked from completing a
milestone. For example, an agent may be waiting for a customer to reply with
more information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
StoppedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
807
Standard Objects
Field Name
EntityMilestone
Details
Description
The number of minutes that an agent has been blocked from completing a
milestone. For example, an agent may be waiting for a customer to reply with
more information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
TargetDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time to complete the milestone.
TargetResponseInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days to complete the milestone. Automatically calculated to
include the business hours on the record.
TargetResponseInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours to complete the milestone. Automatically calculated to
include the business hours on the record.
TargetResponseInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes to complete the milestone. Automatically calculated to
include the business hours on the record.
TimeRemainingInDays
Type
string
808
Standard Objects
Field Name
EntityMilestone
Details
Properties
Group, Nillable, Sort
Description
The days that remain before a milestone violation. Automatically calculated to
include the business hours on the record.
TimeRemainingInHrs
Type
string
Properties
Group, Nillable, Sort
Description
The hours that remain before a milestone violation. Automatically calculated to
include the business hours on the record.
TimeRemainingInMins
Type
string
Properties
Group, Nillable, Sort
Description
The minutes that remain before a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInDays
Type
string
Properties
Group, Nillable, Sort
Description
The days that have elapsed since a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInHrs
Type
string
Properties
Group, Nillable, Sort
Description
The hours that have elapsed since a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInMins
Type
string
Properties
Group, Nillable, Sort
809
Standard Objects
EntitySubscription
Field Name
Details
Description
The minutes that have elapsed since a milestone violation. Automatically
calculated to include the business hours on the record.
Usage
When you create an entitlement process, you select its type based on the type of record that you want the process to run on: Case or
Work Order. Processes created before Summer ’16 use the Case type. When a Work Order entitlement process runs on a work order, the
resulting milestones on the work order are object milestones. Conversely, when a Case entitlement process runs on a case, the resulting
milestones are case milestones, a separate standard object.
Tip: If an entitlement has an entitlement process associated with it, don’t use the entitlement for multiple types of support records.
An entitlement process works only on records that match the process’s type. For example, when a Case entitlement process is
applied to an entitlement, the process runs only on cases associated with that entitlement. If a work order is also associated with
the entitlement, the process doesn’t run on the work order. To ensure that the milestones you set up work as expected, associate
a customer’s work orders and cases with different entitlements.
Customize page layouts, validation rules, and more for object milestones from the Object Milestones node in Setup under Entitlement
Management.
EntitySubscription
Represents a subscription for a user following a record or another user. This object is available in API version 34.0 and later.
A user can subscribe to a record or to another user. Changes to the record and updates from the users are displayed in the Chatter feed
on the user's home page, which is a useful way to stay up-to-date with other users and with changes made to records in Salesforce.
Feeds are available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the community that this file originated from. This field is available in API version 26.0
and later, if Salesforce Communities is enabled for your organization.
810
Standard Objects
EntitySubscription
Field
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the record or user which the user is following.
SubscriberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the User who is following the record or user.
Usage
Consider this when following records and users:
• Users can only follow records that they can see.
• Users can see which records other users are following, unless they don’t have access to the records.
• Administrators and users with the “Modify All Users” permission can configure a user to follow records that the user has read access
to.
• Administrators and users with the “Modify All Users” permission can configure users to stop following records.
• Following topics is available in API version 29.0 and later. For this reason, a topic ID is now a supported value for the ParentId
field.
• If you deactivate a user, any EntitySubscription where the user is associated with the ParentId or SubscriberId field, meaning all
subscriptions both to and from the user, are soft deleted. If the user is reactivated, the subscriptions are restored. However, if you
deactivate multiple users at once and these users follow each other, their subscriptions are hard deleted. In this case, the user-to-user
EntitySubscription is deleted twice (double deleted). Such subscriptions can’t be restored upon user reactivation.
When using query() with EntitySubscription,
• A query must include a LIMIT clause and the limit can’t exceed 1000.
• A query using a WHERE clause can only filter by fields on the EntitySubscription object.
• If user sharing is enabled and the querying user is not an administrator, a SOQL query must be constrained either by the ParentId
or SubscriberId. Otherwise, the query behavior at run time is undefined, meaning the result set can be incomplete or inconsistent
from invocation to invocation. For an unconstrained query, the sharing check limits imposed on a non-adminstrative user are likely
to be exceeded before the query completes, because access checks are run against both parent and subject, for each row of the
result set. We recommend using the Chatter REST API to query EntitySubscription data instead of running a SOQL query.
• Users without the “View All Data” permission
– Need read access on the object associated with the ParentId field to see which users are following records for the object.
– Can use an ORDER BY clause in a query only to order by fields on the EntitySubscription object. For example, if the subscription
relates to an Account record, the query can ORDER BY ParentId, but it can’t ORDER BY Account.Name.
811
Standard Objects
EnvironmentHubMember
– Don’t always get all matching subscriptions when running a query. For these users, a query evaluates visibility criteria on a
maximum of 500 records to reduce the prospect of long-running queries. If a user runs a query to see the CEO's subscriptions,
it might scan a large number of records. The query only returns matches within the first 500 records scanned. It is possible that
there are more subscriptions that are visible to the user, but they are not returned. To mitigate this, we recommend using a
WHERE clause, if possible, to reduce the scope of the query.
Sample—SOQL
The following SOQL query returns subscriptions for all the accounts that a subscriber is following that have more than 10 employees:
SELECT Id
FROM EntitySubscription
WHERE SubscriberId = '005U0000000Rg2CIAS'
AND ParentId IN (
SELECT Id FROM Account
WHERE NumberOfEmployees > 10
)
LIMIT 200
SEE ALSO:
AccountFeed
CaseFeed
ContactFeed
OpportunityFeed
SolutionFeed
EnvironmentHubMember
Represents a member organization in the Environment Hub. This object is available in API version 29.0 and later.
Note: You can only create 20 member orgs per day. If you need to create additional orgs, log a case in the Partner Community.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete()
Fields
Field Name
Details
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
812
Standard Objects
Field Name
EnvironmentHubMember
Details
Description
System field that specifies the date and time when this record was created.
Description
Type
string
Properties
Nillable, Update
Description
A brief description of this organization.
DisplayName
Type
string
Properties
Filter, Group, Nillable,Sort, Update
Description
The name that the user has specified for this member organization.
EnvironmentHubId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
The Organization ID of this member’s Environment Hub organization.
Id
Type
ID
Properties
Defaulted on create, Filter, Group, idLookup, Sort
Description
System field that uniquely identifies this record.
IsFedIdSsoMatchAllowed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if single sign-on has been enabled based on matching Federation ID. The
default value is false.
IsSandbox
Type
boolean
813
Standard Objects
Field Name
EnvironmentHubMember
Details
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if the member organization is a sandbox (true) or not (false). This field
is available in API version 36.0 and later.
MemberEntity
Type
string
Properties
Filter, Group, idLookup, Sort
Description
The unique Organization ID of the member organization for this record.
MemberType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of member organization for this record. Possible values include Branch
Org, Patch Org, Release Org, Sandbox Org, Trialforce
Management Org, and Trialforce Source Org.
Note: Only one member type at a time is stored. Member type is determined
according to this hierarchy: (1) Sandbox, (2) Release, (3) Trialforce Source Org
(TSO), (4) Patch, (5) Branch, and (6) Trialforce Management Org (TMO). For
example, if an org is both a sandbox and a TMO, the value of MemberType is
Sandbox Org.
Name
Type
string
Properties
Defaulted on create, Filter, idLookup, Sort
Description
The name of the member organization for this record.
OrgEdition
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The organization’s edition, for example, Enterprise Edition or Unlimited Edition.
814
Standard Objects
EnvironmentHubMember
Field Name
Details
OrgStatus
Type
picklist
Properties
Filter, Group, Sort, Update
Description
The licensing or creation status of this organization. Possible values include Active,
Demo, Deleted, Free, Inactive, and Trial.
Origin
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The method by which this organization was added to the Environment Hub. Possible
values are Auto Discovered, User Added, and Provisioned.
ServiceProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
The ID of the service provider for this member organization. This field is available in API
version 36.0 and later.
ShouldAddRelatedOrgs
Type
boolean
Properties
Defaulted on create, Update
Description
If related organizations should be automatically connected to the hub when this member
organization is added. The default value is true.
ShouldEnableSSO
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
If SSO should be enabled when this member organization is added. The default value
is false.
SSOMappedUsers
Type
int
815
Standard Objects
Field Name
Event
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
The total number of mapped users in this member organization. This field is available
in API version 36.0 and later.
SsoStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
If single sign-on has been enabled for this organization. Possible values are:
• Enabled—Single sign-on is enabled.
• Disabled—Single sign-on is disabled.
• Pending—Single sign-on is in the process of being enabled.
• Failed—Single sign-on enablement failed. Contact Salesforce support for
assistance.
SsoUsernameFormula
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
The custom formula for matching users in the hub and member organizations.
Usage
Use this object to access and modify settings of member organizations in the Environment Hub.
Event
Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.
Note:
• An EventRelation object can’t be related to a child event, and child events don’t include the invitee related list.
• query(), delete(), and update() aren’t allowed with events related to more than one contact in API versions 25.0
and earlier.
816
Standard Objects
Event
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AcceptedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
Description
A string array of contact or lead IDs who accepted this event. This JunctionIdList is
linked to the AcceptedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Represents the ID of the related Account. The AccountId is determined as follows.
If the value of WhatId is any of the following objects, then Salesforce uses that object’s
AccountId.
• Account
• Opportunity
• Contract
• Custom object that is a child of Account
If the value of the WhatId field is any other object, and the value of the WhoId field is a
Contact object, then Salesforce uses that contact’s AccountId. (If your organization uses
Shared Activities, Salesforce uses the AccountId of the primary contact.)
Otherwise, Salesforce sets the value of the AccountId field to null.
For information on IDs, see ID Field Type.
ActivityDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
817
Standard Objects
Field
Event
Details
Description
Contains the event’s due date if the IsAllDayEvent flag is set to true. This field is a
date field with a timestamp that is always set to midnight in the Coordinated Universal Time
(UTC) time zone. Don’t attempt to alter the timestamp to account for time zone differences.
Label is Due Date Only.
This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to
true.
The value for this field and StartDateTime must match, or one of them must be null.
ActivityDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Contains the event’s due date if the IsAllDayEvent flag is set to false. This field is
a regular Date/Time field with a relevant time portion. The time portion is always transferred
in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a
local time zone for the user or the application, as appropriate. Label is Due Date Time.
This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to
false.
The value for this field and StartDateTime must match, or one of them must be null.
ClientGuid
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The client globally unique identifier identifies the external API client used to create the event.
Label is Client GUID.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
DeclinedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
818
Standard Objects
Field
Event
Details
Description
A string array of contact, lead, or user IDs who declined this event. This JunctionIdList
is linked to the DeclinedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Contains a text description of the event. Limit: 32,000 characters.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
DurationInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the event length, in minutes. Even though this field represents a temporal value,
it is an integer type—not a Date/Time type.
Required in versions 12.0 and earlier if IsAllDayEvent is false.
In versions 13.0 and later, this field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
If the multiday event feature is enabled, then API versions 13.0 and later support values
greater than 1440 for the DurationInMinutes field. API versions 12.0 and earlier can’t
access event objects whose DurationInMinutes is greater than 1440. For more
information, see Multiday Events.
819
Standard Objects
Field
Event
Details
Depending on your API version, errors with the DurationInMinutes and
EndDateTime fields may appear in different places.
• Versions 38.0 and before—Errors always appear in the DurationInMinutes field.
• Versions 39.0 and later—If there’s no value for the DurationInMinutes field,
errors appear in the EndDateTime field. Otherwise, they appear in the
DurationInMinutes field.
EndDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Available in versions 13.0 and later. This field is a regular Date/Time field with a relevant time
portion. The time portion is always transferred in the Coordinated Universal Time (UTC) time
zone. Translate the time portion to or from a local time zone for the user or the application,
as appropriate.
This field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
Depending on your API version, errors with the DurationInMinutes and
EndDateTime fields may appear in different places.
• Versions 38.0 and before—Errors always appear in the DurationInMinutes field.
• Versions 39.0 and later—If there’s no value for the DurationInMinutes field,
errors appear in the EndDateTime field. Otherwise, they appear in the
DurationInMinutes field.
EventSubtype
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Provides standard subtypes to facilitate creating and searching for events. This field isn’t
updateable.
EventWhoIds
Type
JunctionIdList
Properties
Create, Update
820
Standard Objects
Field
Event
Details
Description
A string array of contact or lead IDs used to create many-to-many relationships with a shared
event. EventWhoIds is available when the shared activities setting is enabled. The first
contact or lead ID in the list becomes the primary WhoId if you don’t specify a primary
WhoId.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
GroupEventType
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Read-only. Available in API versions 19.0 and later.
The possible values are:
• 0 (Non–group event)—An event with no invitees.
• 1 (Group event)—An event with invitees.
• 2 (Proposed event)—An event created when a user requests a meeting with a contact,
lead, or person account using the Salesforce user interface. When the user confirms the
meeting, the proposed event becomes a group event. You can’t create, edit, or delete
proposed events in the API.
For more information, see How Cloud Scheduler Works in Salesforce Classic in the Salesforce
help.
IsAllDayEvent
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the ActivityDate field (true) or the ActivityDateTime
field (false) is used to define the date or time of the event. Label is All-Day Event. See
also DurationInMinutes and EndDateTime.
IsArchived
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event has been archived.
IsChild
Type
boolean
821
Standard Objects
Field
Event
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is a child of another event (true) or not (false).
For a child event, you can update IsReminderSet and ReminderDateTime only.
You can query and delete a child event. If the objects related to the child event are different
from those related to the parent event (this difference is possible if you use API version 25.0
or earlier) and one of the objects related to the child event is deleted, the objects related to
the parent event are updated to ensure data integrity.
IsClientManaged
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is managed by an external client. If the value of this field is false,
the event isn’t owned or managed by an external client, and Salesforce can be used to update
it. If the value is true, Salesforce can be used to change only noncritical fields on the event.
Label is Is Client Managed.
IsGroupEvent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is a group event—that is, whether it has invitees (true) or not
(false).
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether users other than the creator of the event can (false) or can’t (true)
see the event details when viewing the event user’s calendar. However, users with the View
All Data or Modify All Data permission can see private events in reports and searches, or
when viewing other users’ calendars. Private events can’t be associated with opportunities,
accounts, cases, campaigns, contracts, leads, or contacts. Label is Private.
IsRecurrence
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
822
Standard Objects
Field
Event
Details
Description
Indicates whether the event is scheduled to repeat itself (true) or only occurs once (false).
This is a read-only field when updating records, but not when creating them. If this field
value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime,
RecurrenceType, and any recurrence fields associated with the given recurrence type
must be populated. Label is Create recurring series of events.
IsReminderSet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the activity is a reminder (true) or not (false).
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether an event associated with an object can be viewed in the Customer Portal
(true) or not (false).
If your organization has enabled Communities, events marked
IsVisibleInSelfService are visible to any external user in the community, as long
as the user has access to the record the event was created on.
This field is available when Customer Portal or partner portal are enabled OR Communities
is enabled and you have Customer Portal or partner portal licenses.
Location
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the location of the event.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Contains the ID of the user who owns the event. Label is Assigned to ID.
823
Standard Objects
Event
Field
Details
RecurrenceActivityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Read-only. Not required on create. Contains the ID of the main record of the recurring event.
Subsequent occurrences have the same value in this field.
RecurrenceDayOfMonth
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the day of the month on which the event repeats.
RecurrenceDayOfWeekMask Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the day or days of the week on which the event repeats. This field contains a bitmask.
The values are as follows:
• Sunday = 1
• Monday = 2
• Tuesday = 4
• Wednesday = 8
• Thursday = 16
• Friday = 32
• Saturday = 64
Multiple days are represented as the sum of their numerical values. For example, Tuesday
and Thursday = 4 + 16 = 20.
RecurrenceEndDateOnly
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the last date on which the event repeats. For multiday recurring events, this is the
day on which the last occurrence starts. This field is a date field with a timestamp that is
always set to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt
to alter the timestamp to account for time zone differences.
824
Standard Objects
Event
Field
Details
RecurrenceInstance
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the frequency of the event’s recurrence. For example, 2nd or 3rd.
RecurrenceInterval
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the interval between recurring events.
RecurrenceMonthOfYear
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the month in which the event repeats.
RecurrenceStartDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the date and time when the recurring event begins. The value must precede the
RecurrenceEndDateOnly. This field is a regular Date/Time field with a relevant time
portion. The time portion is always transferred in the Coordinated Universal Time (UTC) time
zone. Translate the time portion to or from a local time zone for the user or the application,
as appropriate.
RecurrenceTimeZoneSidKey Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the time zone associated with a recurring event. For example, “UTC-8:00” for Pacific
Standard Time.
RecurrenceType
Type
picklist
825
Standard Objects
Field
Event
Details
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how often the event repeats. For example, daily, weekly, or every nth month (where
“nth” is defined in RecurrenceInstance).
ReminderDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to
true. If IsReminderSet is set to false, then the user may have deselected the
reminder checkbox in the Salesforce user interface, or the reminder has already fired at the
time indicated by the value.
ShowAs
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how this event appears when another user views the calendar: Busy, Out of Office,
or Free. Label is Show Time As.
StartDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the start date and time of the event. Available in versions 13.0 and later.
If the Event IsAllDayEvent flag is set to true (indicating that it is an all-day Event), then
the event start date information is contained in the StartDateTime field. This field is a
regular Date/Time field with a relevant time portion. The time portion is always transferred
in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a
local time zone for the user or the application, as appropriate.
If the Event IsAllDayEvent flag is set to false (indicating that it is not an all-day event),
then the event start date information is contained in the StartDateTime field. The time
portion is always transferred in the Coordinated Universal Time (UTC) time zone. You need
to translate the time portion to or from a local time zone for the user or the application, as
appropriate.
If this field has a value, then ActivityDate and ActivityDateTime must either
be null or match the value of this field.
826
Standard Objects
Event
Field
Details
Subject
Type
combobox
Properties
Create, Filter, Nillable, Sort, Update
Description
The subject line of the event, such as Call, Email, or Meeting. Limit: 255 characters.
Type
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Indicates the event type, such as Call, Email, or Meeting.
UndecidedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
Description
A string array of contact, lead, or user IDs who are undecided about this event. This
JunctionIdList is linked to the UndecidedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
WhatCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Available if your organization has enabled Shared Activities. Represents the count of related
EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less.
WhatId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The WhatId represents nonhuman objects such as accounts, opportunities, campaigns,
cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is
equivalent to the ID of a related object. The label is Related To ID.
827
Standard Objects
Event
Field
Details
WhoCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Available to organizations that have Shared Activities enabled. Represents the count of
related EventRelations pertaining to the WhoId.
WhoId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
If Shared Activities is enabled, the value of this field is the ID of the related lead or primary
contact. If you add, update, or remove the WhoId field, you might encounter problems with
triggers, workflows, and data validation rules that are associated with the record. The label
is Name ID.
If the JunctionIdList field is used, all WhoIds are included in the relationship list.
Usage
Use Event to manage calendar appointments.
Querying and Filtering Events
Queries on events will be denied before they time out if they involve amounts of data that are deemed too large. In such cases, the
exception code OPERATION_TOO_LARGE is returned. If you receive OPERATION_TOO_LARGE, refactor your query to return or
scan a smaller amount of data.
When querying for events with a specific due date, you must filter on both the ActivityDateTime and ActivityDate fields.
For example to find all events with a due date of February 14, 2003, you need two filters:
• One filter with the ActivityDate field equal to the Coordinated Universal Time (UTC) time zone on February 14, 2003.
• One filter with the ActivityDateTime field greater than or equal to midnight on February 14, 2003 in the user’s local time
zone AND less than or equal to midnight on February 15, 2003 in the user’s local time zone.
Alternatively, in version 13.0 and later, you can find events with a specific due date by filtering on StartDateTime. For example, to
find all events with a due date of February 14, 2003, filter with the StartDateTime greater than or equal to midnight on February
14, 2003 in the user's local time zone AND less than or equal to midnight on February 15, 2003 in the user's local time zone.
The EventId field of an EventRelation object always points to the master record. An invitee on a group event can query the EventRelation
object to view the master record.
Multiday Events
828
Standard Objects
Event
• Multiday events are available in version 13.0 and later. Also, in earlier versions SOQL queries do not return multiday events.
• Multiday events are enabled through the user interface from Setup by entering Activity Settings in the Quick Find
box, then selecting Activity Settings.
• If the multiday event feature is enabled, then API versions 13.0 and later support values greater than 1440 for the
DurationInMinutes field. API versions 12.0 and earlier can’t access event objects whose DurationInMinutes is greater
than 1440.
• Multiday events can’t exceed 14 days.
Recurring Events
• Recurring events are available in version 7.0 and later.
• After an event is created, it can’t be changed from recurring to nonrecurring or vice versa.
• When you delete a recurring event series through the API, all past and future events in the series are removed. However, when you
delete a recurring event series through the user interface, only future occurrences are removed.
• When creating a recurring event series, the duration of the event must be 24 hours or less (either the DurationInMinutes or
the difference between RecurrenceStartDateTime and EndDateTime must be greater than 24 hours). Once the
recurring event series is created, you can extend the length of individual occurrences beyond 24 hours if Multiday events are enabled;
see Multiday Events.
• If IsRecurrence is true, then RecurrenceStartDateTime, RecurrenceEndDateOnly, RecurrenceType,
and any properties associated with the given recurrence type (see the following table) must be populated.
• When updating a recurring event series, it’s not possible to update the EventRelation for the event series object and the EventRelation
for the series object occurrences at the same time.
The following table describes the usage of recurrence fields. Each recurrence type must have all of its properties set. All unused properties
must be set to null.
RecurrenceType Value
Properties
Example Pattern
RecursDaily
RecurrenceInterval
Every second day
RecursEveryWeekday
RecurrenceDayOfWeekMask
Every weekday - can’t be Saturday or Sunday
RecursMonthly
RecurrenceDayOfMonth
RecurrenceInterval
Every second month, on the third day of the month
RecursMonthlyNth
RecurrenceInterval RecurrenceInstance Every second month, on the last Friday of the month
RecurrenceDayOfWeekMask
RecursWeekly
RecurrenceInterval
RecurrenceDayOfWeekMask
Every three weeks on Wednesday and Friday
RecursYearly
RecurrenceDayOfMonth
RecurrenceMonthOfYear
Every March on the twenty-sixth day of the month
RecursYearlyNth
RecurrenceDayOfWeekMask
The first Saturday in every October
RecurrenceInstanceRecurrenceMonthOfYear
829
Standard Objects
EventFeed
JunctionIdList
To create an event using JuncionIdList, IDs are pulled from the related contacts and both the event and the EventRelation
records are created in one API call. If the EventRelation fails, the event is rolled back because it’s all done in a single API call.
public void createEventNew(Contact[] contacts) {
String[] contactIds = new String[contacts.size()];
for (int i = 0; i < contacts.size(); i++) {
contactIds[i] = contacts[i].getID();
}
Event event = new Event();
event.setSubject("New Event");
event.setEventWhoIds(contactIds);
SaveResult[] results = null;
try {
results = connection.create(new Event[] {
task
});
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
SEE ALSO:
Archived Activities
Object Basics
EventFeed
Represents a single feed item in the feed on an Event. This object is available in API version 20.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
830
Standard Objects
EventFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of EventFeed. Required when Type is TextPost. Optional when Type is
ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
831
Standard Objects
Field
EventFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
832
Standard Objects
Field
EventFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as
CreatedDate. If a FeedComment is inserted on the feed item, then
LastModifiedDate becomes the CreatedDate for the FeedComment.
Deleting the FeedComment does not change the LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most
recent feed item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of the LinkPost.
794
Standard Objects
EntitlementFeed
Field Name
Details
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the entitlement record that is tracked in the feed. The feed is displayed on
the detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as an EntitlementFeed object of Type
ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
795
Standard Objects
Field Name
EntitlementFeed
Details
Description
The title of the EntitlementFeed. When the Type is LinkPost, the LinkUrl
is the URL and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of EntitlementFeed item:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
796
Standard Objects
Field Name
EntitlementFeed
Details
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
797
Standard Objects
Field Name
EntitlementHistory
Details
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for an entitlement record.
SEE ALSO:
Entitlement
EntitlementHistory
EntitlementContact
FeedItem
EntitlementHistory
Represents the changes to field values on an Entitlement. This object is available in API version 18.0 and later.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
EntitlementId
Type
reference
Properties
Filter
Description
Required. ID of the Entitlement.
Field
Type
picklist
Properties
Filter, Restricted picklist
Description
The name of the field that was changed.
798
Standard Objects
EntitlementTemplate
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable
Description
The latest value of the field before it was changed.
Usage
This object respects field-level security on the parent object.
SEE ALSO:
Entitlement
EntitlementContact
EntitlementTemplate
Represents predefined terms of customer support for a product (Product2). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
All users, even those without the “View Setup and Configuration” user permission, can view entitlement templates via the API.
799
Standard Objects
EntitlementTemplate
Fields
Field
Details
BusinessHoursId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the BusinessHours associated with the entitlement template. Must be a valid
business hours ID.
CasesPerEntitlement
Type
int
Properties
Create, Filter, Nillable, Update
Description
The total number of cases the entitlement template supports.
This field is only available if IsPerIncident is true.
IsPerIncident
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the entitlement template is limited to supporting a specific number
of cases (true) or not (false).
Name
Type
string
Properties
Create, Filter, idLookup, Update
Description
Required. Name of the entitlement template.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization
that creates a managed package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using the
namespacePrefix__componentName notation.
800
Standard Objects
Field
EntitlementTemplate
Details
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace
prefix of the organization for all objects that support it. There is an exception if
an object is in an installed managed package. In that case, the object has the
namespace prefix of the installed managed package. This field’s value is the
namespace prefix of the Developer Edition organization of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed managed
package. There is no namespace prefix for all other objects.
Available in version 34.0 and later.
SlaProcessId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the SlaProcess associated with the entitlement template. This field is available
in API version 19.0 and later.
Term
Type
int
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
Number of days that the entitlement template is valid.
Type
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
The type of entitlement template, such as Web or phone support.
Usage
Use this object to manage entitlement templates.
801
Standard Objects
EntityHistory
EntityHistory
Represents historical information about an object’s changed field values. This object is only available to users with the “View All Data”
permission. This object is unavailable beginning with API version 8.0. Use the object-specific History objects instead: CaseHistory,
ContractHistory, LeadHistory, OpportunityFieldHistory, OpportunityHistory ProcessInstanceHistory, QuantityForecastHistory,
RevenueForecastHistory, or SolutionHistory.
Supported Calls
describeSObjects(), getUpdated(), getDeleted(), query(), retrieve()
Fields
Field
Details
FieldName
Type
picklist
Properties
Filter, Restricted picklist
Description
ID of the standard or custom field.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
NewValue
Type
anyType
Properties
Nillable
Description
New value of the modified field.
OldValue
Type
anyType
Properties
Nillable
Description
Previous value of the modified field.
802
Standard Objects
EntityMilestone
Field
Details
ParentId
Type
reference
Properties
Filter
Description
ID of the object that contains the field.
ParentSobjectType
Type
picklist
Properties
Filter, Restricted picklist
Description
The kind of object that contains the field.
Usage
In API version 7.0 and later, this object works with Case, Contract, and Solution objects:
• This object is always read-only in the online application.
• When a field is modified, this object records both the old and new field values. There are exceptions to this behavior for certain fields
such as long text areas and multi-select picklists. These fields appear in this object to indicate that the field was changed, but the
old and new values are not recorded.
• Two rows are added to this object when foreign key fields change. One row contains the foreign key object names that display in
the online application. For example, “Jane Doe” is recorded as the name of a contact. The other row contains the actual foreign key
ID that is only returned to and visible from the API.
• Up to a total of twenty fields (standard or custom) can be tracked for a given object.
• In the online application, you can specify which fields are tracked or not tracked at any time.
• As soon as tracking is turned on for a field, all changes to its value are recorded in the database.
• Turning off tracking for a field stops further changes from being recorded, but the history data is not deleted.
• Be advised that deleting a custom field also permanently deletes the history data for that custom field.
EntityMilestone
Represents a required step in a customer support process on a record. The Salesforce user interface uses the term “object milestone.”
This object is available in API version 37.0 and later.
As of Summer ’16, object milestones are supported only for work orders.
Note: Milestones on cases use the CaseMilestone object type.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update()
803
Standard Objects
EntityMilestone
Special Access Rules
Object milestones are accessible only when entitlement management is enabled. You can add milestones to work orders only when
work orders are enabled.
Fields
Field Name
Details
ActualElapsedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
ActualElapsedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
ActualElapsedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes that it took to complete a milestone. (Elapsed Time) –
(Stopped Time) = (Actual Elapsed Time)
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
BusinessHoursId
Type
reference
804
Standard Objects
Field Name
EntityMilestone
Details
Properties
Filter, Group, Nillable, Sort
Description
The business hours on the milestone. If business hours aren’t specified, the
entitlement process business hours are used. If business hours are also not
specified on the entitlement process, the business hours on the record are used.
CompletionDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
The date and time the milestone was completed.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for orgs with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
ElapsedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days it took to complete a milestone, including time during which
the milestone was stopped. Automatically calculated to include the business
hours on the record. Elapsed time is calculated only after the Completion Date
field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
ElapsedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours it took to complete a milestone, including time during
which the milestone was stopped. Automatically calculated to include the
business hours on the record. Elapsed time is calculated only after the Completion
Date field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
805
Standard Objects
EntityMilestone
Field Name
Details
ElapsedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes it took to complete a milestone, including time during
which the milestone was stopped. Automatically calculated to include the
business hours on the record. Elapsed time is calculated only after the Completion
Date field is populated. (Elapsed Time) – (Stopped Time) = (Actual Elapsed Time).
IsCompleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Icon ( ) that indicates a milestone completion.
IsViolated
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Icon ( ) that indicates a milestone violation.
MilestoneTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the milestone (for instance, First Response).
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
The name of the milestone.
ParentEntityId
Type
reference
806
Standard Objects
Field Name
EntityMilestone
Details
Properties
Filter, Group, Sort
Description
The ID of the record—for example, a work order—that contains the milestone.
StartDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
The date and time that milestone tracking started.
StoppedTimeInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days that an agent has been blocked from completing a milestone.
For example, an agent may be waiting for a customer to reply with more
information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
StoppedTimeInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours that an agent has been blocked from completing a
milestone. For example, an agent may be waiting for a customer to reply with
more information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
StoppedTimeInMins
Type
int
Properties
Filter, Group, Nillable, Sort
807
Standard Objects
Field Name
EntityMilestone
Details
Description
The number of minutes that an agent has been blocked from completing a
milestone. For example, an agent may be waiting for a customer to reply with
more information.
Note: To display this field, select Enable stopped time and actual
elapsed time on the Entitlement Settings page and add the field to the
object milestone page layout.
TargetDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time to complete the milestone.
TargetResponseInDays
Type
double
Properties
Filter, Nillable, Sort
Description
The number of days to complete the milestone. Automatically calculated to
include the business hours on the record.
TargetResponseInHrs
Type
double
Properties
Filter, Nillable, Sort
Description
The number of hours to complete the milestone. Automatically calculated to
include the business hours on the record.
TargetResponseInMins
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of minutes to complete the milestone. Automatically calculated to
include the business hours on the record.
TimeRemainingInDays
Type
string
808
Standard Objects
Field Name
EntityMilestone
Details
Properties
Group, Nillable, Sort
Description
The days that remain before a milestone violation. Automatically calculated to
include the business hours on the record.
TimeRemainingInHrs
Type
string
Properties
Group, Nillable, Sort
Description
The hours that remain before a milestone violation. Automatically calculated to
include the business hours on the record.
TimeRemainingInMins
Type
string
Properties
Group, Nillable, Sort
Description
The minutes that remain before a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInDays
Type
string
Properties
Group, Nillable, Sort
Description
The days that have elapsed since a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInHrs
Type
string
Properties
Group, Nillable, Sort
Description
The hours that have elapsed since a milestone violation. Automatically calculated
to include the business hours on the record.
TimeSinceTargetInMins
Type
string
Properties
Group, Nillable, Sort
809
Standard Objects
EntitySubscription
Field Name
Details
Description
The minutes that have elapsed since a milestone violation. Automatically
calculated to include the business hours on the record.
Usage
When you create an entitlement process, you select its type based on the type of record that you want the process to run on: Case or
Work Order. Processes created before Summer ’16 use the Case type. When a Work Order entitlement process runs on a work order, the
resulting milestones on the work order are object milestones. Conversely, when a Case entitlement process runs on a case, the resulting
milestones are case milestones, a separate standard object.
Tip: If an entitlement has an entitlement process associated with it, don’t use the entitlement for multiple types of support records.
An entitlement process works only on records that match the process’s type. For example, when a Case entitlement process is
applied to an entitlement, the process runs only on cases associated with that entitlement. If a work order is also associated with
the entitlement, the process doesn’t run on the work order. To ensure that the milestones you set up work as expected, associate
a customer’s work orders and cases with different entitlements.
Customize page layouts, validation rules, and more for object milestones from the Object Milestones node in Setup under Entitlement
Management.
EntitySubscription
Represents a subscription for a user following a record or another user. This object is available in API version 34.0 and later.
A user can subscribe to a record or to another user. Changes to the record and updates from the users are displayed in the Chatter feed
on the user's home page, which is a useful way to stay up-to-date with other users and with changes made to records in Salesforce.
Feeds are available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the community that this file originated from. This field is available in API version 26.0
and later, if Salesforce Communities is enabled for your organization.
810
Standard Objects
EntitySubscription
Field
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the record or user which the user is following.
SubscriberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the User who is following the record or user.
Usage
Consider this when following records and users:
• Users can only follow records that they can see.
• Users can see which records other users are following, unless they don’t have access to the records.
• Administrators and users with the “Modify All Users” permission can configure a user to follow records that the user has read access
to.
• Administrators and users with the “Modify All Users” permission can configure users to stop following records.
• Following topics is available in API version 29.0 and later. For this reason, a topic ID is now a supported value for the ParentId
field.
• If you deactivate a user, any EntitySubscription where the user is associated with the ParentId or SubscriberId field, meaning all
subscriptions both to and from the user, are soft deleted. If the user is reactivated, the subscriptions are restored. However, if you
deactivate multiple users at once and these users follow each other, their subscriptions are hard deleted. In this case, the user-to-user
EntitySubscription is deleted twice (double deleted). Such subscriptions can’t be restored upon user reactivation.
When using query() with EntitySubscription,
• A query must include a LIMIT clause and the limit can’t exceed 1000.
• A query using a WHERE clause can only filter by fields on the EntitySubscription object.
• If user sharing is enabled and the querying user is not an administrator, a SOQL query must be constrained either by the ParentId
or SubscriberId. Otherwise, the query behavior at run time is undefined, meaning the result set can be incomplete or inconsistent
from invocation to invocation. For an unconstrained query, the sharing check limits imposed on a non-adminstrative user are likely
to be exceeded before the query completes, because access checks are run against both parent and subject, for each row of the
result set. We recommend using the Chatter REST API to query EntitySubscription data instead of running a SOQL query.
• Users without the “View All Data” permission
– Need read access on the object associated with the ParentId field to see which users are following records for the object.
– Can use an ORDER BY clause in a query only to order by fields on the EntitySubscription object. For example, if the subscription
relates to an Account record, the query can ORDER BY ParentId, but it can’t ORDER BY Account.Name.
811
Standard Objects
EnvironmentHubMember
– Don’t always get all matching subscriptions when running a query. For these users, a query evaluates visibility criteria on a
maximum of 500 records to reduce the prospect of long-running queries. If a user runs a query to see the CEO's subscriptions,
it might scan a large number of records. The query only returns matches within the first 500 records scanned. It is possible that
there are more subscriptions that are visible to the user, but they are not returned. To mitigate this, we recommend using a
WHERE clause, if possible, to reduce the scope of the query.
Sample—SOQL
The following SOQL query returns subscriptions for all the accounts that a subscriber is following that have more than 10 employees:
SELECT Id
FROM EntitySubscription
WHERE SubscriberId = '005U0000000Rg2CIAS'
AND ParentId IN (
SELECT Id FROM Account
WHERE NumberOfEmployees > 10
)
LIMIT 200
SEE ALSO:
AccountFeed
CaseFeed
ContactFeed
OpportunityFeed
SolutionFeed
EnvironmentHubMember
Represents a member organization in the Environment Hub. This object is available in API version 29.0 and later.
Note: You can only create 20 member orgs per day. If you need to create additional orgs, log a case in the Partner Community.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete()
Fields
Field Name
Details
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
812
Standard Objects
Field Name
EnvironmentHubMember
Details
Description
System field that specifies the date and time when this record was created.
Description
Type
string
Properties
Nillable, Update
Description
A brief description of this organization.
DisplayName
Type
string
Properties
Filter, Group, Nillable,Sort, Update
Description
The name that the user has specified for this member organization.
EnvironmentHubId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
The Organization ID of this member’s Environment Hub organization.
Id
Type
ID
Properties
Defaulted on create, Filter, Group, idLookup, Sort
Description
System field that uniquely identifies this record.
IsFedIdSsoMatchAllowed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if single sign-on has been enabled based on matching Federation ID. The
default value is false.
IsSandbox
Type
boolean
813
Standard Objects
Field Name
EnvironmentHubMember
Details
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if the member organization is a sandbox (true) or not (false). This field
is available in API version 36.0 and later.
MemberEntity
Type
string
Properties
Filter, Group, idLookup, Sort
Description
The unique Organization ID of the member organization for this record.
MemberType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of member organization for this record. Possible values include Branch
Org, Patch Org, Release Org, Sandbox Org, Trialforce
Management Org, and Trialforce Source Org.
Note: Only one member type at a time is stored. Member type is determined
according to this hierarchy: (1) Sandbox, (2) Release, (3) Trialforce Source Org
(TSO), (4) Patch, (5) Branch, and (6) Trialforce Management Org (TMO). For
example, if an org is both a sandbox and a TMO, the value of MemberType is
Sandbox Org.
Name
Type
string
Properties
Defaulted on create, Filter, idLookup, Sort
Description
The name of the member organization for this record.
OrgEdition
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The organization’s edition, for example, Enterprise Edition or Unlimited Edition.
814
Standard Objects
EnvironmentHubMember
Field Name
Details
OrgStatus
Type
picklist
Properties
Filter, Group, Sort, Update
Description
The licensing or creation status of this organization. Possible values include Active,
Demo, Deleted, Free, Inactive, and Trial.
Origin
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The method by which this organization was added to the Environment Hub. Possible
values are Auto Discovered, User Added, and Provisioned.
ServiceProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
The ID of the service provider for this member organization. This field is available in API
version 36.0 and later.
ShouldAddRelatedOrgs
Type
boolean
Properties
Defaulted on create, Update
Description
If related organizations should be automatically connected to the hub when this member
organization is added. The default value is true.
ShouldEnableSSO
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
If SSO should be enabled when this member organization is added. The default value
is false.
SSOMappedUsers
Type
int
815
Standard Objects
Field Name
Event
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
The total number of mapped users in this member organization. This field is available
in API version 36.0 and later.
SsoStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Sort, Update
Description
If single sign-on has been enabled for this organization. Possible values are:
• Enabled—Single sign-on is enabled.
• Disabled—Single sign-on is disabled.
• Pending—Single sign-on is in the process of being enabled.
• Failed—Single sign-on enablement failed. Contact Salesforce support for
assistance.
SsoUsernameFormula
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
The custom formula for matching users in the hub and member organizations.
Usage
Use this object to access and modify settings of member organizations in the Environment Hub.
Event
Represents an event in the calendar. In the user interface, event and task records are collectively referred to as activities.
Note:
• An EventRelation object can’t be related to a child event, and child events don’t include the invitee related list.
• query(), delete(), and update() aren’t allowed with events related to more than one contact in API versions 25.0
and earlier.
816
Standard Objects
Event
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
AcceptedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
Description
A string array of contact or lead IDs who accepted this event. This JunctionIdList is
linked to the AcceptedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Represents the ID of the related Account. The AccountId is determined as follows.
If the value of WhatId is any of the following objects, then Salesforce uses that object’s
AccountId.
• Account
• Opportunity
• Contract
• Custom object that is a child of Account
If the value of the WhatId field is any other object, and the value of the WhoId field is a
Contact object, then Salesforce uses that contact’s AccountId. (If your organization uses
Shared Activities, Salesforce uses the AccountId of the primary contact.)
Otherwise, Salesforce sets the value of the AccountId field to null.
For information on IDs, see ID Field Type.
ActivityDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
817
Standard Objects
Field
Event
Details
Description
Contains the event’s due date if the IsAllDayEvent flag is set to true. This field is a
date field with a timestamp that is always set to midnight in the Coordinated Universal Time
(UTC) time zone. Don’t attempt to alter the timestamp to account for time zone differences.
Label is Due Date Only.
This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to
true.
The value for this field and StartDateTime must match, or one of them must be null.
ActivityDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Contains the event’s due date if the IsAllDayEvent flag is set to false. This field is
a regular Date/Time field with a relevant time portion. The time portion is always transferred
in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a
local time zone for the user or the application, as appropriate. Label is Due Date Time.
This field is required in versions 12.0 and earlier if the IsAllDayEvent flag is set to
false.
The value for this field and StartDateTime must match, or one of them must be null.
ClientGuid
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The client globally unique identifier identifies the external API client used to create the event.
Label is Client GUID.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
DeclinedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
818
Standard Objects
Field
Event
Details
Description
A string array of contact, lead, or user IDs who declined this event. This JunctionIdList
is linked to the DeclinedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Contains a text description of the event. Limit: 32,000 characters.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
DurationInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the event length, in minutes. Even though this field represents a temporal value,
it is an integer type—not a Date/Time type.
Required in versions 12.0 and earlier if IsAllDayEvent is false.
In versions 13.0 and later, this field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
If the multiday event feature is enabled, then API versions 13.0 and later support values
greater than 1440 for the DurationInMinutes field. API versions 12.0 and earlier can’t
access event objects whose DurationInMinutes is greater than 1440. For more
information, see Multiday Events.
819
Standard Objects
Field
Event
Details
Depending on your API version, errors with the DurationInMinutes and
EndDateTime fields may appear in different places.
• Versions 38.0 and before—Errors always appear in the DurationInMinutes field.
• Versions 39.0 and later—If there’s no value for the DurationInMinutes field,
errors appear in the EndDateTime field. Otherwise, they appear in the
DurationInMinutes field.
EndDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Available in versions 13.0 and later. This field is a regular Date/Time field with a relevant time
portion. The time portion is always transferred in the Coordinated Universal Time (UTC) time
zone. Translate the time portion to or from a local time zone for the user or the application,
as appropriate.
This field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
Depending on your API version, errors with the DurationInMinutes and
EndDateTime fields may appear in different places.
• Versions 38.0 and before—Errors always appear in the DurationInMinutes field.
• Versions 39.0 and later—If there’s no value for the DurationInMinutes field,
errors appear in the EndDateTime field. Otherwise, they appear in the
DurationInMinutes field.
EventSubtype
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Provides standard subtypes to facilitate creating and searching for events. This field isn’t
updateable.
EventWhoIds
Type
JunctionIdList
Properties
Create, Update
820
Standard Objects
Field
Event
Details
Description
A string array of contact or lead IDs used to create many-to-many relationships with a shared
event. EventWhoIds is available when the shared activities setting is enabled. The first
contact or lead ID in the list becomes the primary WhoId if you don’t specify a primary
WhoId.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
GroupEventType
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Read-only. Available in API versions 19.0 and later.
The possible values are:
• 0 (Non–group event)—An event with no invitees.
• 1 (Group event)—An event with invitees.
• 2 (Proposed event)—An event created when a user requests a meeting with a contact,
lead, or person account using the Salesforce user interface. When the user confirms the
meeting, the proposed event becomes a group event. You can’t create, edit, or delete
proposed events in the API.
For more information, see How Cloud Scheduler Works in Salesforce Classic in the Salesforce
help.
IsAllDayEvent
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the ActivityDate field (true) or the ActivityDateTime
field (false) is used to define the date or time of the event. Label is All-Day Event. See
also DurationInMinutes and EndDateTime.
IsArchived
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event has been archived.
IsChild
Type
boolean
821
Standard Objects
Field
Event
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is a child of another event (true) or not (false).
For a child event, you can update IsReminderSet and ReminderDateTime only.
You can query and delete a child event. If the objects related to the child event are different
from those related to the parent event (this difference is possible if you use API version 25.0
or earlier) and one of the objects related to the child event is deleted, the objects related to
the parent event are updated to ensure data integrity.
IsClientManaged
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is managed by an external client. If the value of this field is false,
the event isn’t owned or managed by an external client, and Salesforce can be used to update
it. If the value is true, Salesforce can be used to change only noncritical fields on the event.
Label is Is Client Managed.
IsGroupEvent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the event is a group event—that is, whether it has invitees (true) or not
(false).
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether users other than the creator of the event can (false) or can’t (true)
see the event details when viewing the event user’s calendar. However, users with the View
All Data or Modify All Data permission can see private events in reports and searches, or
when viewing other users’ calendars. Private events can’t be associated with opportunities,
accounts, cases, campaigns, contracts, leads, or contacts. Label is Private.
IsRecurrence
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
822
Standard Objects
Field
Event
Details
Description
Indicates whether the event is scheduled to repeat itself (true) or only occurs once (false).
This is a read-only field when updating records, but not when creating them. If this field
value is true, then RecurrenceEndDateOnly, RecurrenceStartDateTime,
RecurrenceType, and any recurrence fields associated with the given recurrence type
must be populated. Label is Create recurring series of events.
IsReminderSet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the activity is a reminder (true) or not (false).
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether an event associated with an object can be viewed in the Customer Portal
(true) or not (false).
If your organization has enabled Communities, events marked
IsVisibleInSelfService are visible to any external user in the community, as long
as the user has access to the record the event was created on.
This field is available when Customer Portal or partner portal are enabled OR Communities
is enabled and you have Customer Portal or partner portal licenses.
Location
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Contains the location of the event.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Contains the ID of the user who owns the event. Label is Assigned to ID.
823
Standard Objects
Event
Field
Details
RecurrenceActivityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Read-only. Not required on create. Contains the ID of the main record of the recurring event.
Subsequent occurrences have the same value in this field.
RecurrenceDayOfMonth
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the day of the month on which the event repeats.
RecurrenceDayOfWeekMask Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the day or days of the week on which the event repeats. This field contains a bitmask.
The values are as follows:
• Sunday = 1
• Monday = 2
• Tuesday = 4
• Wednesday = 8
• Thursday = 16
• Friday = 32
• Saturday = 64
Multiple days are represented as the sum of their numerical values. For example, Tuesday
and Thursday = 4 + 16 = 20.
RecurrenceEndDateOnly
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the last date on which the event repeats. For multiday recurring events, this is the
day on which the last occurrence starts. This field is a date field with a timestamp that is
always set to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt
to alter the timestamp to account for time zone differences.
824
Standard Objects
Event
Field
Details
RecurrenceInstance
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the frequency of the event’s recurrence. For example, 2nd or 3rd.
RecurrenceInterval
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the interval between recurring events.
RecurrenceMonthOfYear
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the month in which the event repeats.
RecurrenceStartDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the date and time when the recurring event begins. The value must precede the
RecurrenceEndDateOnly. This field is a regular Date/Time field with a relevant time
portion. The time portion is always transferred in the Coordinated Universal Time (UTC) time
zone. Translate the time portion to or from a local time zone for the user or the application,
as appropriate.
RecurrenceTimeZoneSidKey Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the time zone associated with a recurring event. For example, “UTC-8:00” for Pacific
Standard Time.
RecurrenceType
Type
picklist
825
Standard Objects
Field
Event
Details
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how often the event repeats. For example, daily, weekly, or every nth month (where
“nth” is defined in RecurrenceInstance).
ReminderDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to
true. If IsReminderSet is set to false, then the user may have deselected the
reminder checkbox in the Salesforce user interface, or the reminder has already fired at the
time indicated by the value.
ShowAs
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how this event appears when another user views the calendar: Busy, Out of Office,
or Free. Label is Show Time As.
StartDateTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the start date and time of the event. Available in versions 13.0 and later.
If the Event IsAllDayEvent flag is set to true (indicating that it is an all-day Event), then
the event start date information is contained in the StartDateTime field. This field is a
regular Date/Time field with a relevant time portion. The time portion is always transferred
in the Coordinated Universal Time (UTC) time zone. Translate the time portion to or from a
local time zone for the user or the application, as appropriate.
If the Event IsAllDayEvent flag is set to false (indicating that it is not an all-day event),
then the event start date information is contained in the StartDateTime field. The time
portion is always transferred in the Coordinated Universal Time (UTC) time zone. You need
to translate the time portion to or from a local time zone for the user or the application, as
appropriate.
If this field has a value, then ActivityDate and ActivityDateTime must either
be null or match the value of this field.
826
Standard Objects
Event
Field
Details
Subject
Type
combobox
Properties
Create, Filter, Nillable, Sort, Update
Description
The subject line of the event, such as Call, Email, or Meeting. Limit: 255 characters.
Type
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Indicates the event type, such as Call, Email, or Meeting.
UndecidedEventInviteeIds Type
JunctionIdList
Properties
Create, Update
Description
A string array of contact, lead, or user IDs who are undecided about this event. This
JunctionIdList is linked to the UndecidedEventRelation child relationship.
Warning: Adding a JunctionIdList field name to the fieldsToNull
property deletes all related junction records. This action can’t be undone.
WhatCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Available if your organization has enabled Shared Activities. Represents the count of related
EventRelations pertaining to the WhatId. The count of the WhatId must be 1 or less.
WhatId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The WhatId represents nonhuman objects such as accounts, opportunities, campaigns,
cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is
equivalent to the ID of a related object. The label is Related To ID.
827
Standard Objects
Event
Field
Details
WhoCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Available to organizations that have Shared Activities enabled. Represents the count of
related EventRelations pertaining to the WhoId.
WhoId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
If Shared Activities is enabled, the value of this field is the ID of the related lead or primary
contact. If you add, update, or remove the WhoId field, you might encounter problems with
triggers, workflows, and data validation rules that are associated with the record. The label
is Name ID.
If the JunctionIdList field is used, all WhoIds are included in the relationship list.
Usage
Use Event to manage calendar appointments.
Querying and Filtering Events
Queries on events will be denied before they time out if they involve amounts of data that are deemed too large. In such cases, the
exception code OPERATION_TOO_LARGE is returned. If you receive OPERATION_TOO_LARGE, refactor your query to return or
scan a smaller amount of data.
When querying for events with a specific due date, you must filter on both the ActivityDateTime and ActivityDate fields.
For example to find all events with a due date of February 14, 2003, you need two filters:
• One filter with the ActivityDate field equal to the Coordinated Universal Time (UTC) time zone on February 14, 2003.
• One filter with the ActivityDateTime field greater than or equal to midnight on February 14, 2003 in the user’s local time
zone AND less than or equal to midnight on February 15, 2003 in the user’s local time zone.
Alternatively, in version 13.0 and later, you can find events with a specific due date by filtering on StartDateTime. For example, to
find all events with a due date of February 14, 2003, filter with the StartDateTime greater than or equal to midnight on February
14, 2003 in the user's local time zone AND less than or equal to midnight on February 15, 2003 in the user's local time zone.
The EventId field of an EventRelation object always points to the master record. An invitee on a group event can query the EventRelation
object to view the master record.
Multiday Events
828
Standard Objects
Event
• Multiday events are available in version 13.0 and later. Also, in earlier versions SOQL queries do not return multiday events.
• Multiday events are enabled through the user interface from Setup by entering Activity Settings in the Quick Find
box, then selecting Activity Settings.
• If the multiday event feature is enabled, then API versions 13.0 and later support values greater than 1440 for the
DurationInMinutes field. API versions 12.0 and earlier can’t access event objects whose DurationInMinutes is greater
than 1440.
• Multiday events can’t exceed 14 days.
Recurring Events
• Recurring events are available in version 7.0 and later.
• After an event is created, it can’t be changed from recurring to nonrecurring or vice versa.
• When you delete a recurring event series through the API, all past and future events in the series are removed. However, when you
delete a recurring event series through the user interface, only future occurrences are removed.
• When creating a recurring event series, the duration of the event must be 24 hours or less (either the DurationInMinutes or
the difference between RecurrenceStartDateTime and EndDateTime must be greater than 24 hours). Once the
recurring event series is created, you can extend the length of individual occurrences beyond 24 hours if Multiday events are enabled;
see Multiday Events.
• If IsRecurrence is true, then RecurrenceStartDateTime, RecurrenceEndDateOnly, RecurrenceType,
and any properties associated with the given recurrence type (see the following table) must be populated.
• When updating a recurring event series, it’s not possible to update the EventRelation for the event series object and the EventRelation
for the series object occurrences at the same time.
The following table describes the usage of recurrence fields. Each recurrence type must have all of its properties set. All unused properties
must be set to null.
RecurrenceType Value
Properties
Example Pattern
RecursDaily
RecurrenceInterval
Every second day
RecursEveryWeekday
RecurrenceDayOfWeekMask
Every weekday - can’t be Saturday or Sunday
RecursMonthly
RecurrenceDayOfMonth
RecurrenceInterval
Every second month, on the third day of the month
RecursMonthlyNth
RecurrenceInterval RecurrenceInstance Every second month, on the last Friday of the month
RecurrenceDayOfWeekMask
RecursWeekly
RecurrenceInterval
RecurrenceDayOfWeekMask
Every three weeks on Wednesday and Friday
RecursYearly
RecurrenceDayOfMonth
RecurrenceMonthOfYear
Every March on the twenty-sixth day of the month
RecursYearlyNth
RecurrenceDayOfWeekMask
The first Saturday in every October
RecurrenceInstanceRecurrenceMonthOfYear
829
Standard Objects
EventFeed
JunctionIdList
To create an event using JuncionIdList, IDs are pulled from the related contacts and both the event and the EventRelation
records are created in one API call. If the EventRelation fails, the event is rolled back because it’s all done in a single API call.
public void createEventNew(Contact[] contacts) {
String[] contactIds = new String[contacts.size()];
for (int i = 0; i < contacts.size(); i++) {
contactIds[i] = contacts[i].getID();
}
Event event = new Event();
event.setSubject("New Event");
event.setEventWhoIds(contactIds);
SaveResult[] results = null;
try {
results = connection.create(new Event[] {
task
});
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
SEE ALSO:
Archived Activities
Object Basics
EventFeed
Represents a single feed item in the feed on an Event. This object is available in API version 20.0 and later.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
830
Standard Objects
EventFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of EventFeed. Required when Type is TextPost. Optional when Type is
ContentPost or LinkPost. This field is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
831
Standard Objects
Field
EventFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
832
Standard Objects
Field
EventFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
833
Standard Objects
Field
EventFeed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
834
Standard Objects
Field
EventFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the event record that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
835
Standard Objects
EventFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
836
Standard Objects
Field
EventFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for an event record. You can only delete a feed if you created it, or if you have the “Modify All Data”
permission.
837
Standard Objects
EventLogFile
EventLogFile
Represents event log files for event monitoring. This object is available in API version 32.0 and later.
The event monitoring feature gathers information about your Salesforce org’s operational events, which you can use to analyze usage
trends and user behavior. You can interact with event monitoring data by querying fields on the EventLogFile object (like EventType
and LogDate). To view the underlying event data, query the LogFile field. The EventType determines the schema of this field.
For more information, see Supported Event Types.
Note: Log data schema for each EventType can change. With each new release, use the LogFileFieldNames and
LogFileFieldTypes fields to validate the schema changes. In the unlikely case where no log files are generated for 24
hours, contact Salesforce.
For details about event monitoring, see the Force.com REST API Developer’s Guide .
Special Access Rules
Accessing this object requires View Event Log Files and API Enabled user permissions. Users with View All Data permission can view
event log files.
Supported Calls
query(), retrieve()
Fields
Field
Details
EventType
Type
string
Properties
Filter, Group, Restricted picklist, Sort
Description
The event type—API, Login, Report, URI, and so forth. Use to determine which files were
generated for your org. For the corresponding LogFile schema, see Supported Event
Types.
LogDate
Type
dateTime
Properties
Filter, Sort
Description
The date and time of the log file’s creation.
LogFile
Type
base64
838
Standard Objects
Field
EventLogFile
Details
Description
Encoded file data in .csv format. The EventType field defines the schema for this data.
LogFileContentType
Type
string
Properties
Filter, Group, Sort
Description
The content type of the log file; always .csv.
LogFileFieldNames
Type
string
Properties
Nillable
Description
The ordered list of fields in the log file data.
Note: LogFileFieldNames and LogFileFieldTypes are specific to
each EventType. For example, LogFileFieldNames has a different value
for an API EventType and a Login EventType.
LogFileFieldTypes
Type
string
Properties
Nillable
Description
The ordered list of field types in the log file data (String, Id, and so forth).
Note: LogFileFieldNames and LogFileFieldTypes are specific to
each EventType. For example, LogFileFieldTypes has a different value
for an API EventType and a Login EventType.
LogFileLength
Type
double
Properties
Filter, Sort
Description
The log file length in bytes. You can use this field to plan storage needs for your log files.
Supported Event Types
The EventType field supports the following events.
839
Standard Objects
EventLogFile
• Apex Callout
• Apex Execution
• Apex SOAP
• Apex Trigger
• API
• Asynchronous Report Run
• Bulk API
• Change Set Operation
• Console
• Content Distribution
• Content Document Link
• Content Transfer
• Dashboard
• Document Attachment Downloads
• Lightning Error
• Lightning Interaction
• Lightning Page View
• Lightning Performance
• Login As
• Login
• Logout
• Metadata API Operation
• Multiblock Report
• Package Install
• Queued Execution
• Report
• Report Export
• REST API
• Sandbox
• Sites
• Time-Based Workflow
• Transaction Security
• UI Tracking
• URI
• Visualforce Request
• Wave Change
• Wave Interaction
• Wave Performance
The following tables serve as a reference for each event and its associated fields. Some common fields, such as CPU_TIME and RUN_TIME,
can have null or zero values depending on how the events are generated for a given feature.
840
Standard Objects
EventLogFile
Note: The Login and Logout events are available in supported Salesforce editions at no additional cost. Contact Salesforce to
purchase the remaining event types.
Apex Callout
Apex Callout events contain details about callouts (external requests) during Apex code execution.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
METHOD
Type
String
Description
The HTTP method of the callout.
841
Standard Objects
EventLogFile
Example
GET, POST, PUT, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the callout request body, in bytes.
RESPONSE_SIZE
Type
Number
Description
The size of the callout response, in bytes.
RUN_TIME
Type
Number
Description
Not used for this event type. Use the TIME field instead.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
842
Standard Objects
SUCCESS
EventLogFile
Type
Boolean
Description
1 if the request was successful, and 0 if not.
TIME
Type
Number
Description
The amount of time that the request took in milliseconds (ms).
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The type of Apex callout.
Example
REST or AJAX
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
843
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
URL
Type
String
Description
The callout endpoint URL.
Example
www.salesforce.com
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex Execution
Apex Execution events contain details about Apex classes that are used.
Field
Details
CALLOUT_TIME
Type
Number
Description
The execution time of the external Apex calls.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
844
Standard Objects
EventLogFile
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTRY_POINT
Type
String
Description
The entry point for this Apex execution.
Example
• GeneralCloner.cloneAndInsertRecords
• VF- /apex/CloneUser
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
EXEC_TIME
Type
Number
Description
The end-to-end Apex execution time.
LOGIN_KEY
Type
String
845
Standard Objects
EventLogFile
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_SOQL_QUERIES
Type
Number
Description
The number of SOQL queries that were executed during the
event.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
QUIDDITY
Type
String
Description
The type of outer execution associated with this event.
Example
• A–Old Batch
• C–Scheduled Apex
• E–Inbound Email Service
• F–Future
• H–Apex REST
• I–Invocable Action
• K–Quick Action
• L–Aura
• M–Remote Action
• P–Parallel Batch Apex
• Q–Queuable
• R–Synchronous
• S–Serial Batch Apex
• T–Apex Tests
• V–Visualforce
• W–SOAP Webservices
846
Standard Objects
EventLogFile
• X–Execute Anonymous
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
847
Standard Objects
EventLogFile
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex SOAP
Apex SOAP events contain details about Web Services API calls.
Field
Details
CLASS_NAME
Type
String
Description
The Apex class name. If the class is part of a managed package,
this string includes the package namespace.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
848
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LIMIT_USAGE_PERCENT
Type
Number
Description
The percentage of Apex SOAP calls that were made against
the organization’s limit.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
METHOD_NAME
Type
String
Description
The name of the calling Apex method.
ORGANIZATION_ID
Type
Id
849
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
850
Standard Objects
EventLogFile
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
851
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex Trigger
Apex Trigger events contain details about triggers that fire in an organization.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
852
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
EXEC_TIME
Type
Number
Description
The end-to-end Apex execution time.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
853
Standard Objects
EventLogFile
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TRIGGER_ID
Type
String
Description
The 15-character ID of the trigger that was fired.
TRIGGER_NAME
Type
String
Description
The name of the trigger that was fired.
TRIGGER_TYPE
Type
String
854
Standard Objects
EventLogFile
Description
The type of this trigger.
Possible Values
• AfterInsert
• AfterUpdate
• BeforeInsert
• BeforeUpdate
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
API
API events contain details about your organization’s Force.com Web Services API activity.
Field
Details
855
Standard Objects
API_TYPE
EventLogFile
Type
String
Description
The type of API request.
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_NAME
Type
String
Description
The name of the client that’s using Salesforce services.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
856
Standard Objects
EventLogFile
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
Set
Description
API objects that are accessed.
Example
Account, Opportunity, Contact, and so on.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
857
Standard Objects
METHOD_NAME
EventLogFile
Type
String
Description
The name of the calling Apex method.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the callout request body, in bytes.
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RESPONSE_SIZE
Type
Number
858
Standard Objects
EventLogFile
Description
The size of the callout response, in bytes.
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
QUERY
Type
String
Description
The SOQL query, if one was performed.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
859
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Asynchronous Report Run
Asynchronous Report Run events are created for reporting requests that are scheduled. This category includes dashboard refreshes,
asynchronous reports, schedule reports, and analytics snapshots.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
860
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DASHBOARD_ID
Type
String
Description
The 15-character ID of the dashboard that was run.
DASHBOARD_ID_DERIVED
Type
String
Description
The 18-character case insensitive ID of the dashboard that was
run.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DISPLAY_TYPE
Type
String
Description
The report display type, indicating the run mode of the report.
Possible Values
• D: Dashboard
861
Standard Objects
EventLogFile
• S: Show Details
• H: Hide Details
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_BUCKETS
Type
Number
Description
The number of buckets that were used in the report.
NUMBER_COLUMNS
Type
Number
Description
The number of columns in the report.
NUMBER_EXCEPTION_FILTERS
Type
Number
Description
The number of exception filters that are used in the report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
862
Standard Objects
EventLogFile
Example
00D000000000123
RENDERING_TYPE
Type
String
Description
The report rendering type, describing the format of the report
output.
Possible Values
• W: Web (HTML)
• E: Email
• P: Printable
• X: Excel
• C: Comma-separated values (CSV)
• J: JavaScript Object Notation (JSON)
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
863
Standard Objects
RUN_TIME
EventLogFile
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SORT
Type
String
Description
The sort column and order that was used in the report.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
864
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Bulk API
Bulk API events contain details about Bulk API requests.
Field
Details
BATCH_ID
Type
String
Description
The 15-character ID of the Bulk API batch.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
865
Standard Objects
EventLogFile
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
ENTITY_TYPE
Type
String
Description
The type of entity that the Bulk API used.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
JOB_ID
Type
String
Description
The 15-character ID of the Bulk API job.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MESSAGE
Type
EscapedString
Description
Any success or error message that’s associated with the request.
NUMBER_FAILURES
Type
Number
Description
The number of failures that were returned with the request.
OPERATION_TYPE
Type
String
Description
The type of Bulk API operation that was performed.
866
Standard Objects
ORGANIZATION_ID
EventLogFile
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SUCCESS
Type
Boolean
Description
Whether the batch was successful.
867
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Change Set Operation
Change Set Operation events contain information from change set migrations.
Field
Details
868
Standard Objects
CHANGE_SET_NAME
EventLogFile
Type
String
Description
The name of the change set.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION
Type
String
Description
The operation that’s being performed.
Possible Values
• DEPLOY
• RETRIEVE
869
Standard Objects
EventLogFile
• LIST
• DESCRIBE
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TARGET_ORG_ID
Type
Id
Description
The 15-character ID of the organization that’s receiving the
change set.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
870
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
871
Standard Objects
EventLogFile
Console
Console events contain information about the performance and use of Salesforce Consoles. The Console events are logged whenever
a Console tab is opened with a sidebar component. Outside of that, when Console tabs are opened, a regular view record detail event
is served just like in Salesforce Classic.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
COMPONENT_ID
Type
Id
Description
The 15-character ID of the component.
COMPONENT_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the component.
CONSOLE_ID
Type
Id
Description
The 15-character ID of the console.
CONSOLE_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the console.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
872
Standard Objects
EventLogFile
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RECORD_ID
Type
Id
Description
The 15-character ID of the record that’s associated with the
console.
RECORD_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the record that’s
associated with the console.
RELATED_ENTITY_ID
Type
Id
873
Standard Objects
EventLogFile
Description
The 15-character ID of the record that’s associated with the
delivery distribution.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
874
Standard Objects
EventLogFile
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
875
Standard Objects
EventLogFile
Content Distribution
Content Distribution events contain information about content distributions and deliveries to users.
Field
Details
ACTION
Type
String
Description
The action that’s used when a delivery is viewed.
Possible Values
• VIEW
• INSERT
• UPDATE
DELIVERY_ID
Type
Id
Description
The 15-character ID of the content delivery.
DELIVERY_LOCATION
Type
String
Description
The location of the delivery.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RELATED_ENTITY_ID
Type
Id
Description
The 15-character ID of the record that’s associated with the
delivery distribution.
876
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
VERSION_ID
Type
Id
Description
The 15-character ID of the content version.
Content Document Link
Content Document Link events contain sharing information for content documents.
Field
Details
877
Standard Objects
DOCUMENT_ID
EventLogFile
Type
Id
Description
The 15-character ID of the document that’s being shared.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SHARED_WITH_ENTITY_ID
Type
Id
Description
Who the document was shared with.
SHARING_OPERATION
Type
String
Description
The type of sharing operation on the document.
Possible Values
• INSERT
• UPDATE
• DELETE
878
Standard Objects
SHARING_PERMISSION
EventLogFile
Type
String
Description
What permissions the document was shared with.
Possible Values
• V: Viewer
• C: Collaborator
• I: Inferred—that is, the sharing permissions were inferred
from a relationship between the viewer and document.
For example, a document’s owner has a sharing permission
to the document itself. Or, a document can be a part of a
content collection, and the viewer has sharing permissions
to the collection rather than explicit permissions to the
document directly.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Content Transfer
Content Transfer events contain information about content transfer events, such as downloads, uploads, and previews.
Field
Details
879
Standard Objects
DOCUMENT_ID
EventLogFile
Type
Id
Description
The 15-character ID of the document that’s being shared.
DOCUMENT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the document that’s
being shared.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FILE_PREVIEW_TYPE
Type
String
Description
The content type of the file version.
FILE_TYPE
Type
String
Description
The content type of the file preview.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
880
Standard Objects
SIZE_BYTES
EventLogFile
Type
Number
Description
The size of the file transfer, in bytes.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TRANSACTION_TYPE
Type
String
Description
The operation that was performed.
Possible Values
• VersionDownloadAction and
VersionDownloadApi represent downloads via the
user interface and API respectively.
• VersionRenditionDownload represents a file
preview action.
• saveVersion represents a file that’s being uploaded.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
881
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
VERSION_ID
Type
Id
Description
The 15-character ID of the content version.
VERSION_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the content version.
Dashboard
Dashboard events contain details about dashboards that users view.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DASHBOARD_COMPONENT_ID
Type
Id
Description
The 15-character ID of the dashboard component.
882
Standard Objects
DASHBOARD_ID
EventLogFile
Type
String
Description
The 15-character ID of the dashboard that was run.
DASHBOARD_ID_DERIVED
Type
String
Description
The 18-character case insensitive ID of the dashboard that was
run.
DASHBOARD_TYPE
Type
String
Description
The type of dashboard.
Possible Values
• R: Run as running user
• C: Run as context user
• S: Run as specific user
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
IS_SCHEDULED
Type
Boolean
Description
The value is true if the dashboard is a scheduled dashboard.
IS_SUCCESS
Type
Boolean
Description
1 if the dashboard component ran successfully, 0 if it didn’t.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
883
Standard Objects
EventLogFile
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REPORT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
884
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
885
Standard Objects
EventLogFile
Document Attachment Downloads
Document Attachment Downloads events contain details of document and attachment downloads.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
ENTITY_ID
Type
Id
Description
The 15-character ID of the entity that’s associated with the
document or attachment.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FILE_NAME
Type
String
Description
The name of the file or attachment.
FILE_TYPE
Type
String
Description
The type of the file or attachment.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
886
Standard Objects
EventLogFile
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Login As
Login As events contain details about what a Salesforce admin did while logged in as another user.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
887
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DELEGATED_USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or API. In this case, the user who’s doing the
impersonation.
DELEGATED_USER_ID_DERIVED
Type
Id
Description
The 18-character case-insensitive ID of the user who’s using
Salesforce services through the UI or API. In this case, the user
who’s doing the impersonation.
DELEGATED_USER_NAME
Type
String
Description
The username of the user who’s using Salesforce services
through the UI or API. In this case, the user who’s doing the
impersonation.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
888
Standard Objects
ORGANIZATION_ID
EventLogFile
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
889
Standard Objects
EventLogFile
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Login
Login events contain details about your org’s user login history.
Field
Details
API_TYPE
Type
String
Description
The type of API request.
890
Standard Objects
EventLogFile
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
BROWSER_TYPE
Type
String
Description
The browser used for login.
Example Values
• 10011000: Internet Explorer Desktop 11
• 10011001: Internet Explorer Mobile 11
• 11035000: Firefox Desktop 35
• 11035001: Firefox Mobile 35
• 13050000: Chrome Desktop 50
• 13050001: Chrome Mobile 50
• 14012000: Safari Desktop 12
• 14012001: Safari Mobile 12
CIPHER_SUITE
Type
String
Description
The TLS cipher suite used for the login. Values are
OpenSSL-style cipher suite names, with hyphen delimiters. For
more information, see OpenSSL Cryptography and SSL/TLS
Toolkit.
891
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
LOGIN_STATUS
Type
String
Description
The status of the login attempt. For successful logins, the value
is LOGIN_NO_ERROR. All other values indicate errors or
892
Standard Objects
EventLogFile
authentication issues. For details, see Login Event Type —
LOGIN_STATUS Values on page 988.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
893
Standard Objects
EventLogFile
Example
d7DEq/ANa7nNZZVD
SOURCE_IP
Type
IP
Description
The source IP of the login request.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TLS_PROTOCOL
Type
String
Description
The TLS protocol used for the login.
Example
There are 3 possible values.
• 1.0
• 1.1
• 1.2
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
894
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
USER_NAME
Type
String
Description
The username that’s used for login.
Logout
Logout events contain details of user logouts.
Field
Details
API_TYPE
Type
String
Description
The type of API request.
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
895
Standard Objects
EventLogFile
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
APP_TYPE
Type
Number
Description
The application type that was in use upon logging out.
Example Values
• 1007: SFDC Application
• 1014: Live Agent
• 2501: CTI
• 2514: OAuth
• 3475: SFDC Partner Portal
BROWSER_TYPE
Type
String
Description
The browser used for login.
Example Values
• 10011000: Internet Explorer Desktop 11
• 10011001: Internet Explorer Mobile 11
• 11035000: Firefox Desktop 35
• 11035001: Firefox Mobile 35
• 13050000: Chrome Desktop 50
• 13050001: Chrome Mobile 50
• 14012000: Safari Desktop 12
• 14012001: Safari Mobile 12
CLIENT_IP
Type
IP
896
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_VERSION
Type
Number
Description
The version of the client that was in use upon logging out.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PLATFORM_TYPE
Type
Number
Description
The code for the client platform. If a timeout caused the logout,
this field is null.
Example Values
• 1000: Windows
• 2003: Macintosh/Apple OSX
• 5005: Android
• 5006: iPhone
• 5007: iPad
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
897
Standard Objects
EventLogFile
Example
3nWgxWbDKWWDIk0FKfF5DV
RESOLUTION_TYPE
Type
Number
Description
The screen resolution of the client. If a timeout caused the
logout, this field is null.
SESSION_LEVEL
Type
String
Description
The security level of the session that was used when logging
out.
Possible Values
• 1: Standard Session
• 2: High-Assurance Session
SESSION_TYPE
Type
String
Description
The session type that was used when logging out.
Possible Values
• A: API
• I: APIOnlyUser
• N: ChatterNetworks
• Z: ChatterNetworksAPIOnly
• C: Content
• P: OauthApprovalUI
• O: Oauth2
• T: SiteStudio
• R: SitePreview
• S: SubstituteUser
• B: TempContentExchange
• G: TempOauthAccessTokenFrontdoor
• Y: TempVisualforceExchange
• F: TempUIFrontdoor
• U: UI
• E: UserSite
• V: Visualforce
• W: WDC_API
898
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_INITIATED_LOGOUT
Type
Boolean
Description
The value is 1 if the user intentionally logged out of the
organization by clicking the Logout button. If the user’s session
timed out due to inactivity or another implicit logout action,
the value is 0.
USER_NAME
Type
String
Description
The username that’s used for login.
USER_TYPE
Type
String
Description
The category of user license of the user that logged out.
Possible Values
• S: Standard
• P: Partner
899
Standard Objects
EventLogFile
• p: Customer Portal Manager
• C: Customer Portal User
• O: Power Custom
• o: Custom
• L: Package License Manager
• X: Black Tab User
• N: Salesforce to Salesforce
• G: Guest
• D: External Who
• A: Automated Process
• b: High Volume Portal
• n: CSN Only
• F: Self Service
Metadata API Operation
Metadata API Operation events contain details of Metadata API retrieval and deployment requests.
Field
Details
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
900
Standard Objects
EVENT_TYPE
EventLogFile
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION
Type
String
Description
The operation that’s being performed.
Possible Values
• DEPLOY
• RETRIEVE
• LIST
• DESCRIBE
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
901
Standard Objects
RUN_TIME
EventLogFile
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
902
Standard Objects
USER_ID
EventLogFile
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Multiblock Report
Multiblock Report events contain details about Joined Report reports.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
903
Standard Objects
EVENT_TYPE
EventLogFile
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HAS_CHART
Type
Boolean
Description
True if the report has a chart.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MASTER_REPORT_ID
Type
String
Description
The 15-character ID of the master report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
904
Standard Objects
REQUEST_STATUS
EventLogFile
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
905
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Package Install
Package Install events contain details about package installation in the organization.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
906
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FAILURE_TYPE
Type
String
Description
A general categorization of any error that’s encountered.
IS_MANAGED
Type
Boolean
Description
True if the operation is performed on a managed package.
IS_PUSH
Type
Boolean
Description
True if the package was installed as a result of a push upgrade.
IS_RELEASED
Type
Boolean
Description
True if the operation is performed on a released package.
IS_SUCCESSFUL
Type
Boolean
Description
True if the package was successfully installed.
LOGIN_KEY
Type
String
907
Standard Objects
EventLogFile
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION_TYPE
Type
String
Description
The type of package operation.
Possible Values
• INSTALL
• UPGRADE
• EXPORT
• UNINSTALL
• VALIDATE_PACKAGE
• INIT_EXPORT_PKG_CONTROLLER
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PACKAGE_NAME
Type
String
Description
The name of the package that’s being installed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
908
Standard Objects
EventLogFile
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
909
Standard Objects
EventLogFile
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Queued Execution
Queued Execution events contain details about queued executions—for example, batch Apex.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds that it took to complete the batch
apex request. This field indicates the amount of activity taking
place in the app server layer, allowing you to identify pieces
of Apex or Visualforce code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTRY_POINT
Type
String
910
Standard Objects
Field
EventLogFile
Details
Description
The name of the Apex class that serves as the execution point
for the batch job.
Example
TaskPhoneExtensionBatchUpdate
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
JOB_ID
Type
String
Description
The ID of the batch Apex job.
Example
7073000000lDquo
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
911
Standard Objects
Field
EventLogFile
Details
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
912
Standard Objects
Field
EventLogFile
Details
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Report
Report events contain information about what happened when a user ran a report.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
913
Standard Objects
EventLogFile
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
DISPLAY_TYPE
Type
String
Description
The report display type, indicating the run mode of the report.
Possible Values
• D: Dashboard
• S: Show Details
• H: Hide Details
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_BUCKETS
Type
Number
914
Standard Objects
EventLogFile
Description
The number of buckets that were used in the report.
NUMBER_COLUMNS
Type
Number
Description
The number of columns in the report.
NUMBER_EXCEPTION_FILTERS
Type
Number
Description
The number of exception filters that are used in the report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RENDERING_TYPE
Type
String
Description
The report rendering type, describing the format of the report
output.
Possible Values
• W: Web (HTML)
• E: Email
• P: Printable
• X: Excel
• C: Comma-separated values (CSV)
• J: JavaScript Object Notation (JSON)
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REPORT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the report that was run.
915
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SORT
Type
String
Description
The sort column and order that was used in the report.
TIMESTAMP
Type
String
916
Standard Objects
EventLogFile
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
917
Standard Objects
EventLogFile
Report Export
Report Export events contain details about reports that a user exported.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_INFO
Type
String
Description
Information about the client that’s using Salesforce services.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
918
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
REPORT_DESCRIPTION
Type
String
Description
Information about the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
919
Standard Objects
EventLogFile
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
REST API
REST API events contain details about REST-specific requests.
Field
Details
CLIENT_IP
Type
IP
920
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
Set
Description
API objects that are accessed.
Example
Account, Opportunity, Contact, and so on.
EVENT_TYPE
Type
String
Description
The type of event.
921
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MEDIA_TYPE
Type
String
Description
The media type of the response.
METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
NUMBER_FIELDS
Type
Number
Description
The number of fields or columns, where applicable.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
922
Standard Objects
EventLogFile
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
STATUS_CODE
Type
Number
Description
The HTTP status code for the response.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
923
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_AGENT
Type
Number
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API).
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
924
Standard Objects
EventLogFile
Example
00590000000I1SNIA0
Sandbox
Sandbox events contain details about sandbox copies.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CURRENT_SANDBOX_ORG_ID
Type
Id
Description
The 15-character ID of the current sandbox organization.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PENDING_SANDBOX_ORG_ID
Type
Id
Description
The 15-character ID of the target sandbox org.
REQUEST_ID
Type
String
925
Standard Objects
EventLogFile
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SANDBOX_ID
Type
Id
Description
The 15-character ID of the sandbox organization.
STATUS
Type
String
Description
The status of the sandbox copy.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Sites
Sites events contain details of Site.com requests. Requests can originate from the browser (UI) or the API.
926
Standard Objects
EventLogFile
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HTTP_HEADERS
Type
String
Description
The HTTP headers that were sent in the request.
METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
IS_API
Type
Boolean
927
Standard Objects
EventLogFile
Description
True if this page was an API or Web Services request.
IS_ERROR
Type
Boolean
Description
True if this page was an error page.
IS_FIRST_REQUEST
Type
Boolean
Description
1 if this page is the first Visualforce transaction in the request,
or 0 if it isn't.
IS_GUEST
Type
Boolean
Description
True if this page was a guest (unauthenticated) request.
IS_SECURE
Type
Boolean
Description
True if this request is secure.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PAGE_NAME
Type
String
928
Standard Objects
EventLogFile
Description
The name of the Visualforce page that was requested.
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_TYPE
Type
String
Description
The request type.
Possible Values
• page: a normal request for a page
• content_UI: a content request for a page that
originated in the user interface
• content_apex: a content request initiated by an Apex
call
• PDF_UI: a request for a page in PDF format through the
user interface
929
Standard Objects
EventLogFile
• PDF_apex: a request for PDF format by an Apex call
(usually a Web Service call)
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SITE_ID
Type
Id
Description
The 15-character ID of the Site.com site.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
930
Standard Objects
URI_ID_DERIVED
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Time-Based Workflow
Time-Based Workflow events contain details about queue activity monitoring.
Field
Details
DATA
Type
String
Description
The record details of time queue activity.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOG_GROUP_ID
Type
String
931
Standard Objects
EventLogFile
Description
Marks log records that are committed or rolled back.
NUMBER_OF_RECORDS
Type
Number
Description
The number of processed records.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The type of Apex callout.
932
Standard Objects
EventLogFile
Example
REST or AJAX
Transaction Security
Transaction Security events contain details about policy execution.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVALUATION_TIME_MS
Type
Number
Description
The time in milliseconds used to evaluate the policy.
EVENT_TIMESTAMP
Type
String
Description
The time at which the Transaction Security event was
generated in ISO8601-compatible format
(YYYY-MM-DDTHH:MM:SS.sssZ). This value may be earlier than
TIMESTAMP_DERIVED by the amount of time taken to log the
event.
Example
2015-07-27T11:32:59.555Z
EVENT_TYPE
Type
String
Description
The type of event.
933
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
POLICY_ID
Type
Id
Description
The 15-character ID of the policy being evaluated.
Example
00530000009M943
POLICY_ID_DERIVED
Type
Id
Description
The 18-character case-insensitive ID of the policy being
evaluated.
Example
00590000000I1SNIA0
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
934
Standard Objects
RESULT
EventLogFile
Type
String
Description
The outcome of evaluating the policy.
Example
TRIGGERED or NOT TRIGGERED
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The time the event was logged in ISO8601-compatible format
(YYYY-MM-DDTHH:MM:SS.sssZ). This value may be later
than EVENT_TIMESTAMP by the amount of time between when
the event occurred and when it was logged.
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
935
Standard Objects
EventLogFile
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
UI Tracking
UI Tracking events contain details about user interactions with the mobile UI.
Field
Details
ACTION
Type
EscapedString
Description
The hierarchical user action.
ACTION_LOCATION
Type
String
Description
The name of the component where the user action occurred.
ACTION_TYPE
Type
String
936
Standard Objects
EventLogFile
Description
The database action that’s associated with the user action.
Possible Values
Database actions, including:
• Create
• Update
• Delete
• Convert
APP_NAME
Type
EscapedString
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that's accessed by the user.
BROWSER_VERSION
Type
String
Description
The browser version that's accessed by the user.
CARRIER
Type
String
Description
The name of the cellular service provider.
CLIENT
Type
EscapedString
Description
The context of access.
Example
Phone, tablet, desktop, and so on.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
937
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of the connection.
Possible Values
• WIFI
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HSDPA
• HSUPA
• HRPD
• LTE
DELTA
Type
Number
Description
The elapsed time between the start (START_TIME) and end
(END_TIME) of the event in milliseconds.
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking
events. DEVICE_ID is a generated value that’s created when
the app is initially run after installation.
END_TIME
Type
Number
938
Standard Objects
EventLogFile
Description
The end time of the event in Unix time (milliseconds since
00:00:00 UTC on January 1, 1970).
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOCATION
Type
EscapedString
Description
The hierarchical location.
NETWORK_ID
Type
Id
Description
The network ID of the request.
NUMBER1
Type
Number
Description
The record of a numeric value based on the operation. For
example, the number of results returned by a search.
NUMBER2
Type
Number
Description
The record of a numeric value based on operation, but for
multiple values.
Example
NUMBER1 items selected in a list containing NUMBER2 items.
OBJECT_TYPE
Type
String
Description
The API name of the record in the action.
ORGANIZATION_ID
Type
Id
939
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name.
OS_VERSION
Type
String
Description
The operating system version.
PAGE_OPTION
Type
String
Description
A comma-separated list of additional information about the
current page.
Example
isVisualforce
RECORD_ID
Type
Id
Description
The ID of the record the user accessed.
RECORD_TYPE_ID
Type
Id
Description
The ID of the record type the user accessed.
REFERRER
Type
EscapedString
Description
The HTTP referrer header.
REQUEST_METHOD
Type
String
Description
The HTTP request method.
940
Standard Objects
SDK_APP_NAME
EventLogFile
Type
String
Description
The name of the mobile SDK application that’s installed on the
device.
Example
Salesforce1
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Example
Native, hybrid, and so on.
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version.
Example
5.0
SDK_MODEL
Type
String
Description
The model of the mobile SDK application that’s installed on
the device.
Example
Salesforce1
SDK_VERSION
Type
String
Description
The mobile SDK version.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all
UI Tracking events within a session.
941
Standard Objects
EventLogFile
Example
[C@2f71c8e1
SIGNAL_STRENGTH
Type
Number
Description
The cellular signal strength.
START_TIME
Type
Number
Description
The start time of the event in Unix time (milliseconds since
00:00:00 UTC on January 1, 1970).
STATUS
Type
Boolean
Description
Indicates whether an error was logged. Information is logged
in data.
TARGET
Type
EscapedString
Description
The request target.
TARGET2
Type
EscapedString
Description
Additional information for the request target.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
942
Standard Objects
EventLogFile
Example
2015-07-27T11:32:59.555Z
UNIQUE_PAGE_ID
Type
String
Description
The unique request ID for all the requests from 1 page.
USAGE_TIMESTAMP
Type
String
Description
The time when the usage occurred. Format: YYYYMMDDHHMM
SS.sss.
USER_AGENT
Type
Escaped String
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API) as a
string.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
USER_TYPE
Type
String
Description
The user license of the user who’s accessing Salesforce services
through the UI or the API.
943
Standard Objects
EventLogFile
Possible Values
• S: Standard
• P: Partner
• p: Customer Portal Manager
• C: Customer Portal User
• O: Power Custom
• o: Custom
• L: Package License Manager
• X: Black Tab User
• N: Salesforce to Salesforce
• G: Guest
• D: External Who
• A: Automated Process
• b: High Volume Portal
• n: CSN Only
• F: Self Service
URI
URI events contain details about user interaction with the web browser UI.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
944
Standard Objects
EventLogFile
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REFERRER_URI
Type
String
Description
The referring URI of the page that’s receiving the request.
945
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
946
Standard Objects
TIMESTAMP_DERIVED
EventLogFile
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Visualforce Request
VISUALFORCE__REQUEST_EVENT events contain details of Visualforce requests. Requests can originate from the browser (UI) or
the API.
Field
Details
947
Standard Objects
CLIENT_IP
EventLogFile
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONTROLLER_TYPE
Type
Number
Description
The type of controller that’s used by the requested Visualforce
page.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
948
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HTTP_METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
IS_AJAX_REQUEST
Type
Boolean
Description
The value is true if the request is a partial page request.
IS_FIRST_REQUEST
Type
Boolean
Description
1 if this page is the first Visualforce transaction in the request,
or 0 if it isn't.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MANAGED_PACKAGE_NAMESPACE
Type
String
Description
If the page is part of a managed package, the namespace of
that package.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PAGE_NAME
Type
String
949
Standard Objects
EventLogFile
Description
The name of the Visualforce page that was requested.
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the request body, in bytes.
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_TYPE
Type
String
Description
The request type.
Possible Values
• page: a normal request for a page
950
Standard Objects
EventLogFile
• content_UI: a content request for a page that
originated in the user interface
• content_apex: a content request initiated by an Apex
call
• PDF_UI: a request for a page in PDF format through the
user interface
• PDF_apex: a request for PDF format by an Apex call
(usually a Web Service call)
RESPONSE_SIZE
Type
Number
Description
The size of the response, in bytes.
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
951
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_AGENT
Type
Number
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API).
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
VIEW_STATE_SIZE
Type
Number
Description
The size of the Visualforce view state, in bytes.
Wave Change
Wave Change events represent route or page changes made in the Salesforce Wave Analytics user interface.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
952
Standard Objects
EventLogFile
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
IS_NEW
Type
Boolean
Description
If the change routes to a new page, the value of this field is
true. If it routes to an existing page, this field is false.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
953
Standard Objects
REOPEN_COUNT
EventLogFile
Type
Number
Description
If IS_NEW is false, the number of times that an existing page
opens.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
954
Standard Objects
TYPE
EventLogFile
Type
String
Description
The Wave object type.
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave. Use this field to
determine which log lines originated from a particular session.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Wave Interaction
Wave Interaction events track user interactions with the Wave Analytics user interface made via the browser.
Field
Details
955
Standard Objects
CLIENT_IP
EventLogFile
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUM_CLICKS
Type
Number
Description
The number of clicks performed on a page in the Wave user
interface.
NUM_SESSIONS
Type
Number
Description
The number of times a user returned to a particular page.
ORGANIZATION_ID
Type
Id
956
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
READ_TIME
Type
Number
Description
The amount of time a user spent on a particular tab.
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
957
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TOTAL_TIME
Type
Number
Description
The total amount of time a tab was open in milliseconds.
TYPE
Type
String
Description
The Wave object type.
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
958
Standard Objects
USER_ID_DERIVED
EventLogFile
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Wave Performance
Wave Performance events help you track trends in your Wave Analytics performance.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
EPT
Type
Number
Description
The experienced page time in milliseconds.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
959
Standard Objects
LOGIN_KEY
EventLogFile
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NAME
Type
String
Description
The asset title or query string.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
QUERY_ID
Type
String
Description
The ID of the Wave query.
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
960
Standard Objects
EventLogFile
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TAB_ID
Type
String
Description
The ID of the particular Wave tab in the user interface.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The Wave object type.
UI_RENDER_TIME
Type
String
Description
The amount of time that it took for the user interface to render.
961
Standard Objects
URI
Lightning Error Event Type
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Lightning Error Event Type
Lightning Error events represent errors that occurred during user interactions with Lightning Experience. This event type is available in
the EventLogFile object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
962
Standard Objects
Lightning Error Event Type
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
963
Standard Objects
Field
Lightning Error Event Type
Details
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
964
Standard Objects
Lightning Error Event Type
Field
Details
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. If the user reloads a page,
it starts a new session.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
965
Standard Objects
Lightning Error Event Type
Field
Details
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When a user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
966
Standard Objects
Lightning Error Event Type
Field
Details
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
Description
Event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of error.
Example
Error, warning, information
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
967
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Interaction Event Type
Lightning Interaction events track user interactions with Lightning Experience. This event type is available in the EventLogFile object in
API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
968
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
969
Standard Objects
Lightning Interaction Event Type
Field
Details
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
970
Standard Objects
Lightning Interaction Event Type
Field
Details
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
GRANDPARENT_UI_ELEMENT
Type
String
Description
Grandparent scope of the page element where the event occurred.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_CONTEXT
Type
String
Description
Context of the page where the event occurred.
PAGE_ENTITY_ID
Type
Id
Description
The unique entity identifier of the event.
Example
0013000000I3zJAAAZ
971
Standard Objects
Lightning Interaction Event Type
Field
Details
PAGE_ENTITY_TYPE
Type
String
Description
The entity type of the event.
Example
Task, contacts
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
PARENT_UI_ELEMENT
Type
String
Description
Parent scope of the page element where the event occurred.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
972
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TARGET_UI_ELEMENT
Type
String
Description
The target page element where the event occurred.
Example
label bBody truncate, tabitem-link
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
973
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, the browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
974
Standard Objects
Field
Lightning Page View Event Type
Details
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Page View Event Type
Lightning Page View events represent information about the page on which the event occurred in Lightning Experience. This event
type is available in the EventLogFile object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
975
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
976
Standard Objects
Lightning Page View Event Type
Field
Details
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
EPT
Type
Number
977
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The effective page time indicating how long it took for the page to load.
GRANDPARENT_UI_ELEMENT
Type
String
Description
The grandparent scope of the page element where the event occurred.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_CONTEXT
Type
String
Description
The context of the page where the event occurred.
PAGE_ENTITY_ID
Type
Id
Description
The unique entity identifier of the event.
Example
0013000000I3zJAAAZ
PAGE_ENTITY_TYPE
Type
String
978
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The entity type of the event.
Example
Task, contacts
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
PARENT_UI_ELEMENT
Type
String
Description
The parent scope of the page element where the event occurred.
PREVPAGE_CONTEXT
Type
String
Description
The context of the previous page where the event occurred.
PREVPAGE_ENTITY_ID
Type
Id
Description
The unique previous page entity identifier of the event.
PREVPAGE_ENTITY_TYPE
Type
String
Description
The previous page entity type of the event.
Example
Task, contacts
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
979
Standard Objects
Lightning Page View Event Type
Field
Details
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TARGET_UI_ELEMENT
Type
String
Description
The target page element where the event occurred.
Example
label bBody truncate, tabitem-link
980
Standard Objects
Lightning Page View Event Type
Field
Details
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, the browser,
application, or API) as a string.
USER_ID
Type
String
981
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Performance Event Type
Lightning Performance events track trends in your Lightning Experience performance. This event type is available in the EventLogFile
object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
982
Standard Objects
Lightning Performance Event Type
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
983
Standard Objects
Field
Lightning Performance Event Type
Details
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
984
Standard Objects
Lightning Performance Event Type
Field
Details
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
REQUEST_ID
Type
String
985
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TIMESTAMP
Type
String
986
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SOURCE
Type
String
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
987
Standard Objects
Field
Login Event Type — LOGIN_STATUS Values
Details
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Login Event Type — LOGIN_STATUS Values
When users attempt to log in to your org, the success or failure of their login attempts is tracked in event log file data. Specifically, the
LOGIN_STATUS field in the Login event type contains the result of these login attempts. The data in LOGIN_STATUS can help you
determine whether your users’ login attempts were successful. This field is available in the Login event type in the EventLogFile object
in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
API Error Code
Details (If Available)
LOGIN_CHALLENGE_ISSUED
Failed: Computer activation required
LOGIN_CHALLENGE_PENDING
Failed: Computer activation pending
LOGIN_DATA_DOWNLOAD_ONLY
LOGIN_END_SESSION_TXN_SECURITY_POLICY
LOGIN_ERROR_APPEXCHANGE_DOWN
Unable to process your login request
LOGIN_ERROR_ASYNC_USER_CREATE
988
Standard Objects
API Error Code
Login Event Type — LOGIN_STATUS Values
Details (If Available)
LOGIN_ERROR_AVANTGO_DISABLED
LOGIN_ERROR_AVANTGO_TRIAL_EXP
LOGIN_ERROR_CLIENT_NO_ACCESS
LOGIN_ERROR_CLIENT_REQ_UPDATE
Failed: Client update required
LOGIN_ERROR_CSS_FROZEN
LOGIN_ERROR_CSS_PW_LOCKOUT
LOGIN_ERROR_DUPLICATE_USERNAME
LOGIN_ERROR_EXPORT_RESTRICTED
Restricted country
LOGIN_ERROR_GLOBAL_BLOCK_DOMAIN
Restricted domain
LOGIN_ERROR_HT_DOWN
LOGIN_ERROR_HTP_METHD_INVALID
Failed: Invalid HTTP method
LOGIN_ERROR_INSECURE_LOGIN
Failed: Login over insecure channel
LOGIN_ERROR_INVALID_GATEWAY
Invalid gateway
LOGIN_ERROR_INVALID_ID_FIELD
LOGIN_ERROR_INVALID_PASSWORD
Invalid password
LOGIN_ERROR_INVALID_USERNAME
Invalid login
LOGIN_ERROR_LOGINS_EXCEEDED
Maximum logins exceeded
LOGIN_ERROR_MUST_USE_API_TOKEN
Failed: API security token required
LOGIN_ERROR_MUTUAL_AUTHENTICATION
Mutual authentication failed
LOGIN_ERROR_NETWORK_INACTIVE
Invalid - community offline
LOGIN_ERROR_NO_HT_ACCESS
LOGIN_ERROR_NO_NETWORK_ACCESS
No community access
LOGIN_ERROR_NO_NETWORK_INFO
LOGIN_ERROR_NO_PORTAL_ACCESS
Invalid profile association
LOGIN_ERROR_NO_SET_COOKIES
LOGIN_ERROR_OFFLINE_DISABLED
Offline disabled
LOGIN_ERROR_OFFLINE_TRIAL_EXP
Offline trial expired
LOGIN_ERROR_ORG_CLOSED
Organization closed
LOGIN_ERROR_ORG_DOMAIN_ONLY
Restricted domain
LOGIN_ERROR_ORG_IN_MAINTENANCE
Organization is in maintenance
989
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_ERROR_ORG_INACTIVE
Organization is inactive
LOGIN_ERROR_ORG_IS_DOT_ORG
Organization is a DOT
LOGIN_ERROR_ORG_LOCKOUT
Organization locked
LOGIN_ERROR_ORG_SIGNING_UP
LOGIN_ERROR_ORG_SUSPENDED
Organization suspended
LOGIN_ERROR_OUTLOOK_DISABLED
Outlook integration disabled
LOGIN_ERROR_PAGE_REQUIRES_LOGIN
LOGIN_ERROR_PASSWORD_EMPTY
LOGIN_ERROR_PASSWORD_LOCKOUT
Password lockout
LOGIN_ERROR_PORTAL_INACTIVE
Invalid - Portal disabled
LOGIN_ERROR_RATE_EXCEEDED
Login rate exceeded
LOGIN_ERROR_RESTRICTED_DOMAIN
Restricted IP
LOGIN_ERROR_RESTRICTED_TIME
Restricted time
LOGIN_ERROR_SESSION_TIMEOUT
LOGIN_ERROR_SSO_PWD_INVALID
Invalid password
LOGIN_ERROR_SSO_SVC_DOWN
Your company's authentication service is down
LOGIN_ERROR_SSO_URL_INVALID
The Single Sign-On Gateway URL is invalid
LOGIN_ERROR_STORE
LOGIN_ERROR_STORE_DOWN
LOGIN_ERROR_SWITCH_SFDC_INSTANCE
LOGIN_ERROR_SWITCH_SFDC_LOGIN
LOGIN_ERROR_SYNCOFFLINE_DISBLD
Failed: Mobile disabled
LOGIN_ERROR_SYSTEM_DOWN
LOGIN_ERROR_UNKNOWN_ERROR
Login invalid
LOGIN_ERROR_USER_API_ONLY
Failed: API-only user
LOGIN_ERROR_USER_FROZEN
User is frozen
LOGIN_ERROR_USER_INACTIVE
User is inactive
LOGIN_ERROR_USER_NON_MOBILE
Failed: Mobile license required
LOGIN_ERROR_USER_STORE_ACCESS
LOGIN_ERROR_USERNAME_EMPTY
990
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_ERROR_WIRELESS_DISABLED
Wireless disabled
LOGIN_ERROR_WIRELESS_TRIAL_EXP
Wireless trial expired
LOGIN_LIGHTNING_LOGIN
Lightning Login required
LOGIN_NO_ERROR
LOGIN_OAUTH_API_DISABLED
Failed: OAuth API access disabled
LOGIN_OAUTH_CONSUMER_DELETED
Failed: Consumer Deleted
LOGIN_OAUTH_DS_NOT_EXPECTED
Failed: Activation secret not expected
LOGIN_OAUTH_EXCEED_GET_AT_LMT
Failed: Get Access Token Limit Exceeded
LOGIN_OAUTH_INVALID_CODE_CHALLENGE
Failed: Invalid Code Challenge
LOGIN_OAUTH_INVALID_CODE_VERIFIER
Failed: Invalid Code Verifier
LOGIN_OAUTH_INVALID_DEVICE
Failed: Device Id missing or not registered
LOGIN_OAUTH_INVALID_DS
Failed: Activation secret invalid
LOGIN_OAUTH_INVALID_DSIG
Failed: Signature Invalid
LOGIN_OAUTH_INVALID_IP
Failed: IP Address Not Allowed
LOGIN_OAUTH_INVALID_NONCE
Failed: Invalid Nonce
LOGIN_OAUTH_INVALID_SIG_METHOD
Failed: Invalid Signature Method
LOGIN_OAUTH_INVALID_TIMESTAMP
Failed: Invalid Timestamp
LOGIN_OAUTH_INVALID_TOKEN
Failed: Invalid Token
LOGIN_OAUTH_INVALID_VERIFIER
Failed: Invalid Verifier
LOGIN_OAUTH_INVALID_VERSION
Failed: Version Not Supported
LOGIN_OAUTH_MISSING_DS
Activation secret missing
LOGIN_OAUTH_NO_CALLBACK_URL
Failed: Invalid Callback URL
LOGIN_OAUTH_NO_CONSUMER
Missing Consumer Key Parameter
LOGIN_OAUTH_NO_TOKEN
Missing OAuth Token Parameter
LOGIN_OAUTH_NONCE_REPLAY
Failed: Nonce Replay Detected
LOGIN_OAUTH_PACKAGE_MISSING
Package for this consumer is not installed in your organization
LOGIN_OAUTH_PACKAGE_OLD
Installed package for this consumer is out of date
LOGIN_OAUTH_UNEXPECTED_PARAM
Failed: Unexpected parameter
LOGIN_ORG_TRIAL_EXP
Trial Expired
LOGIN_READONLY_CANNOT_VALIDATE
991
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_SAML_INVALID_AUDIENCE
Failed: Audience Invalid
LOGIN_SAML_INVALID_CONFIG
Failed: Configuration Error/Perm Disabled
LOGIN_SAML_INVALID_FORMAT
Failed: Assertion Invalid
LOGIN_SAML_INVALID_IN_RES_TO
Failed: InResponseTo Invalid
LOGIN_SAML_INVALID_ISSUER
Failed: Issuer Mismatched
LOGIN_SAML_INVALID_ORG_ID
Failed: Invalid Organization Id
LOGIN_SAML_INVALID_PORTAL_ID
Failed: Invalid Portal Id
LOGIN_SAML_INVALID_RECIPIENT
Failed: Recipient Mismatched
LOGIN_SAML_INVALID_SESSION_LEVEL
LOGIN_SAML_INVALID_SIGNATURE
Failed: Signature Invalid
LOGIN_SAML_INVALID_SITE_URL
Failed: Invalid Site URL
LOGIN_SAML_INVALID_STATUS
Failed: Status Invalid
LOGIN_SAML_INVALID_SUB_CONFIRM
Failed: Subject Confirmation Error
LOGIN_SAML_INVALID_TIMESTAMP
Failed: Assertion Expired
LOGIN_SAML_INVALID_USERNAME
Failed: Username Or SSO Id Invalid
LOGIN_SAML_INVALID_VERSION
LOGIN_SAML_MISMATCH_CERT
Failed: Signature Invalid/Configured Certificate Mismatch
LOGIN_SAML_MISSING_ORG_ID
Failed: Missing Organization Id for Portal login
LOGIN_SAML_MISSING_PORTAL_ID
Failed: Missing Portal Id
LOGIN_SAML_PROVISION_ERROR
Failed: SAML Provision Error
LOGIN_SAML_REPLAY_ATTEMPTED
Failed: Replay Detected
LOGIN_SAML_SITE_INACTIVE
Failed: Specified Site is Inactive
LOGIN_TWOFACTOR_REQ
Two-factor required
Usage
Use LOGIN_STATUS to determine whether your users’ login attempts were successful. For example, you can determine whether a
departed employee attempted to log in successfully or unsuccessfully.
992
Standard Objects
EventRelation
SEE ALSO:
EventLogFile
EventRelation
Represents a person (a user, lead, or contact) or a resource (such as a conference room) invited to an event. This object lets you add or
remove invitees from an event and use the API to manage invitees’ responses to invitations. If Shared Activities is enabled, EventRelation
can also represent other objects that are related to an event. EventRelation does not support triggers, workflow, or data validation rules.
EventRelation allows a variable number of relationships and handles deleted events differently, depending on whether Shared Activities
is enabled.
If Shared Activities Is Enabled
• An event can be related to up to 50 contacts or one lead.
• An event can be related to a lead, contact, resource, account, or opportunity.
• An event can be related to a custom object that has the HasActivities attribute set to true.
• If you delete an event, then relations between the event and any specified contacts, leads, and other records are also deleted.
• If you delete the EventRelation record representing a relation then the corresponding relation field may be cleared on the event.
• If you delete the EventRelation record representing the WhoId on an event, then another Who, if any, from the event’s
EventWhoIds field will be promoted to the WhoId.
• If you restore a deleted event, relations between the event and any specified contacts, leads, and records are also restored. The
WhoId, WhatId, and AccountId field values are recalculated using the field values on EventRelation.
If Shared Activities Isn’t Enabled
• An event can be related to only one contact or lead, referenced in the event WhoId field. EventRelations will only be invitees
(contacts, users, and resources).
• An event can also be related to one or more users or resources, represented in the EventWhoIds field on the event.
Whether or not Shared Activities is enabled, an event can be related to one other kind of record, such as an account, an opportunity, or
a custom object.
Note:
• With API versions 26.0 and later, the EventRelation object replaces the EventAttendee object, and the EventAttendee object
is no longer visible. You can still query the EventAttendee object using packages that support API versions 25.0 and earlier, or
by using Apex.
• An EventRelation object can’t be created for a child event.
• EventRelation includes deactivated users.
• In API versions 25.0 and earlier, you can’t use query(), delete(), or update() with events related to more than one
contact.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), queryAll(),
retrieve(), update(), upsert()
993
Standard Objects
EventRelation
Fields
Field
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the Account ID of the relation. For information on IDs, see ID Field Type.
AccountId is visible when Shared Activities is enabled.
EventId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Contains the ID of the event. This value can’t be changed after it’s been specified.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
IsInvitee
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the relation is an invitee.
• IsInvitee is visible while Shared Activities is being enabled, after it has been
enabled, and while it is being disabled.
• IsInvitee defaults to true while Shared Activities is being enabled, after
it has been enabled, and while it is being disabled if IsInvitee, IsParent,
and IsWhat are not set. This configuration ensures compatibility when Shared
Activities isn’t enabled and EventRelation represents event invitees only.
• IsInvitee defaults to false when Shared Activities is enabled if
IsParent is set to true.
IsParent
Type
boolean
994
Standard Objects
Field
EventRelation
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
IsParent is visible only when Shared Activities is enabled. When false, indicates
that the relation is an invitee (a contact, lead, or user). When true, indicates that
the relation is a Who or What, as determined by IsWhat field.
IsWhat
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
IsWhat is visible only when Shared Activities is enabled. The value is relevant only
if IsParent is true. When IsWhat is true, the relation specified by
RelationId is a What (an account, opportunity, custom object, etc.). When
IsWhat is false, the relation specified by RelationId is a Who (a contact,
lead, or user).
RelationId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Contains the ID of the person (User, Contact, or Lead) or the resource invited to an
event. When Shared Activities is enabled, RelationId can also contain the ID of
an account, opportunity, or other object related to an event.
This value can’t be changed after it’s been specified.
RespondedDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the most recent date and time when the invitee responded to an invitation
to an event.
Response
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
995
Standard Objects
Field
EventRelation
Details
Description
Contains optional text that the invitee can enter when responding to an invitation
to an event.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the invitee status with one of the following values:
• New: Invitee has received the invitation but hasn’t yet responded. This value is
the default.
• Declined: Invitee has declined the invitation.
• Accepted: Invitee has accepted the invitation.
Note: Uninvited and Maybe aren’t currently supported.
Usage
• Invitee related lists display slightly different content. In Salesforce1, the invitee related list includes invitees only, whereas in the full
site, it also includes the event owner. To reproduce the full site functionality in Salesforce1, use the following API queries.
If you use Shared Activities in your Salesforce org, use this query:
SELECT RelationId FROM EventRelation WHERE isInvitee = true AND eventId='[Event_Id]'
where Event_Id is the child event’s ID.
If you don’t use Shared Activities, use this query:
SELECT RelationId FROM EventRelation WHERE eventId='[Event_Id]'
These queries get the main event’s relations and display them for the given child event. To further filter the results, add a WHERE
clause.
Send email notifications
To send email notifications for a given event, query EventRelation for the event, iterate through the list, examine the status, and send
email notifications to every person who accepted the invitation.
Determine what events a given invitee is attending
To determine all the events that a particular person is attending during a given time period (for example, next week), you can have
a client application query the Event object for a given date range, iterate through the results, and, for each event, query the
EventRelation object to determine whether the particular person (RelationId) has accepted an invitation to that event.
Create an invitee if Shared Activities is enabled (or during the process of enabling it or rolling back)
If the invitee is already a contact or lead, update IsInvitee to true.
If the invitee is not already a contact or lead, create an EventRelation object for the invitee with IsInvitee set to true.
996
Standard Objects
EventRelation
Create an invitee if Shared Activities is not enabled
Create an EventRelation object for the invitee.
Query relations to a contact or a lead
List Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
834
Standard Objects
Field
EventFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the event record that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
835
Standard Objects
EventFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
836
Standard Objects
Field
EventFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
Usage
Use this object to track changes for an event record. You can only delete a feed if you created it, or if you have the “Modify All Data”
permission.
837
Standard Objects
EventLogFile
EventLogFile
Represents event log files for event monitoring. This object is available in API version 32.0 and later.
The event monitoring feature gathers information about your Salesforce org’s operational events, which you can use to analyze usage
trends and user behavior. You can interact with event monitoring data by querying fields on the EventLogFile object (like EventType
and LogDate). To view the underlying event data, query the LogFile field. The EventType determines the schema of this field.
For more information, see Supported Event Types.
Note: Log data schema for each EventType can change. With each new release, use the LogFileFieldNames and
LogFileFieldTypes fields to validate the schema changes. In the unlikely case where no log files are generated for 24
hours, contact Salesforce.
For details about event monitoring, see the Force.com REST API Developer’s Guide .
Special Access Rules
Accessing this object requires View Event Log Files and API Enabled user permissions. Users with View All Data permission can view
event log files.
Supported Calls
query(), retrieve()
Fields
Field
Details
EventType
Type
string
Properties
Filter, Group, Restricted picklist, Sort
Description
The event type—API, Login, Report, URI, and so forth. Use to determine which files were
generated for your org. For the corresponding LogFile schema, see Supported Event
Types.
LogDate
Type
dateTime
Properties
Filter, Sort
Description
The date and time of the log file’s creation.
LogFile
Type
base64
838
Standard Objects
Field
EventLogFile
Details
Description
Encoded file data in .csv format. The EventType field defines the schema for this data.
LogFileContentType
Type
string
Properties
Filter, Group, Sort
Description
The content type of the log file; always .csv.
LogFileFieldNames
Type
string
Properties
Nillable
Description
The ordered list of fields in the log file data.
Note: LogFileFieldNames and LogFileFieldTypes are specific to
each EventType. For example, LogFileFieldNames has a different value
for an API EventType and a Login EventType.
LogFileFieldTypes
Type
string
Properties
Nillable
Description
The ordered list of field types in the log file data (String, Id, and so forth).
Note: LogFileFieldNames and LogFileFieldTypes are specific to
each EventType. For example, LogFileFieldTypes has a different value
for an API EventType and a Login EventType.
LogFileLength
Type
double
Properties
Filter, Sort
Description
The log file length in bytes. You can use this field to plan storage needs for your log files.
Supported Event Types
The EventType field supports the following events.
839
Standard Objects
EventLogFile
• Apex Callout
• Apex Execution
• Apex SOAP
• Apex Trigger
• API
• Asynchronous Report Run
• Bulk API
• Change Set Operation
• Console
• Content Distribution
• Content Document Link
• Content Transfer
• Dashboard
• Document Attachment Downloads
• Lightning Error
• Lightning Interaction
• Lightning Page View
• Lightning Performance
• Login As
• Login
• Logout
• Metadata API Operation
• Multiblock Report
• Package Install
• Queued Execution
• Report
• Report Export
• REST API
• Sandbox
• Sites
• Time-Based Workflow
• Transaction Security
• UI Tracking
• URI
• Visualforce Request
• Wave Change
• Wave Interaction
• Wave Performance
The following tables serve as a reference for each event and its associated fields. Some common fields, such as CPU_TIME and RUN_TIME,
can have null or zero values depending on how the events are generated for a given feature.
840
Standard Objects
EventLogFile
Note: The Login and Logout events are available in supported Salesforce editions at no additional cost. Contact Salesforce to
purchase the remaining event types.
Apex Callout
Apex Callout events contain details about callouts (external requests) during Apex code execution.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
METHOD
Type
String
Description
The HTTP method of the callout.
841
Standard Objects
EventLogFile
Example
GET, POST, PUT, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the callout request body, in bytes.
RESPONSE_SIZE
Type
Number
Description
The size of the callout response, in bytes.
RUN_TIME
Type
Number
Description
Not used for this event type. Use the TIME field instead.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
842
Standard Objects
SUCCESS
EventLogFile
Type
Boolean
Description
1 if the request was successful, and 0 if not.
TIME
Type
Number
Description
The amount of time that the request took in milliseconds (ms).
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The type of Apex callout.
Example
REST or AJAX
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
843
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
URL
Type
String
Description
The callout endpoint URL.
Example
www.salesforce.com
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex Execution
Apex Execution events contain details about Apex classes that are used.
Field
Details
CALLOUT_TIME
Type
Number
Description
The execution time of the external Apex calls.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
844
Standard Objects
EventLogFile
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTRY_POINT
Type
String
Description
The entry point for this Apex execution.
Example
• GeneralCloner.cloneAndInsertRecords
• VF- /apex/CloneUser
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
EXEC_TIME
Type
Number
Description
The end-to-end Apex execution time.
LOGIN_KEY
Type
String
845
Standard Objects
EventLogFile
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_SOQL_QUERIES
Type
Number
Description
The number of SOQL queries that were executed during the
event.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
QUIDDITY
Type
String
Description
The type of outer execution associated with this event.
Example
• A–Old Batch
• C–Scheduled Apex
• E–Inbound Email Service
• F–Future
• H–Apex REST
• I–Invocable Action
• K–Quick Action
• L–Aura
• M–Remote Action
• P–Parallel Batch Apex
• Q–Queuable
• R–Synchronous
• S–Serial Batch Apex
• T–Apex Tests
• V–Visualforce
• W–SOAP Webservices
846
Standard Objects
EventLogFile
• X–Execute Anonymous
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
847
Standard Objects
EventLogFile
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex SOAP
Apex SOAP events contain details about Web Services API calls.
Field
Details
CLASS_NAME
Type
String
Description
The Apex class name. If the class is part of a managed package,
this string includes the package namespace.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
848
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LIMIT_USAGE_PERCENT
Type
Number
Description
The percentage of Apex SOAP calls that were made against
the organization’s limit.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
METHOD_NAME
Type
String
Description
The name of the calling Apex method.
ORGANIZATION_ID
Type
Id
849
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
850
Standard Objects
EventLogFile
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
851
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Apex Trigger
Apex Trigger events contain details about triggers that fire in an organization.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
852
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
EXEC_TIME
Type
Number
Description
The end-to-end Apex execution time.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
853
Standard Objects
EventLogFile
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TRIGGER_ID
Type
String
Description
The 15-character ID of the trigger that was fired.
TRIGGER_NAME
Type
String
Description
The name of the trigger that was fired.
TRIGGER_TYPE
Type
String
854
Standard Objects
EventLogFile
Description
The type of this trigger.
Possible Values
• AfterInsert
• AfterUpdate
• BeforeInsert
• BeforeUpdate
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
API
API events contain details about your organization’s Force.com Web Services API activity.
Field
Details
855
Standard Objects
API_TYPE
EventLogFile
Type
String
Description
The type of API request.
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_NAME
Type
String
Description
The name of the client that’s using Salesforce services.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
856
Standard Objects
EventLogFile
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
Set
Description
API objects that are accessed.
Example
Account, Opportunity, Contact, and so on.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
857
Standard Objects
METHOD_NAME
EventLogFile
Type
String
Description
The name of the calling Apex method.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the callout request body, in bytes.
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RESPONSE_SIZE
Type
Number
858
Standard Objects
EventLogFile
Description
The size of the callout response, in bytes.
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
QUERY
Type
String
Description
The SOQL query, if one was performed.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
859
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Asynchronous Report Run
Asynchronous Report Run events are created for reporting requests that are scheduled. This category includes dashboard refreshes,
asynchronous reports, schedule reports, and analytics snapshots.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
860
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DASHBOARD_ID
Type
String
Description
The 15-character ID of the dashboard that was run.
DASHBOARD_ID_DERIVED
Type
String
Description
The 18-character case insensitive ID of the dashboard that was
run.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DISPLAY_TYPE
Type
String
Description
The report display type, indicating the run mode of the report.
Possible Values
• D: Dashboard
861
Standard Objects
EventLogFile
• S: Show Details
• H: Hide Details
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_BUCKETS
Type
Number
Description
The number of buckets that were used in the report.
NUMBER_COLUMNS
Type
Number
Description
The number of columns in the report.
NUMBER_EXCEPTION_FILTERS
Type
Number
Description
The number of exception filters that are used in the report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
862
Standard Objects
EventLogFile
Example
00D000000000123
RENDERING_TYPE
Type
String
Description
The report rendering type, describing the format of the report
output.
Possible Values
• W: Web (HTML)
• E: Email
• P: Printable
• X: Excel
• C: Comma-separated values (CSV)
• J: JavaScript Object Notation (JSON)
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
863
Standard Objects
RUN_TIME
EventLogFile
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SORT
Type
String
Description
The sort column and order that was used in the report.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
864
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Bulk API
Bulk API events contain details about Bulk API requests.
Field
Details
BATCH_ID
Type
String
Description
The 15-character ID of the Bulk API batch.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
865
Standard Objects
EventLogFile
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
ENTITY_TYPE
Type
String
Description
The type of entity that the Bulk API used.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
JOB_ID
Type
String
Description
The 15-character ID of the Bulk API job.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MESSAGE
Type
EscapedString
Description
Any success or error message that’s associated with the request.
NUMBER_FAILURES
Type
Number
Description
The number of failures that were returned with the request.
OPERATION_TYPE
Type
String
Description
The type of Bulk API operation that was performed.
866
Standard Objects
ORGANIZATION_ID
EventLogFile
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SUCCESS
Type
Boolean
Description
Whether the batch was successful.
867
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Change Set Operation
Change Set Operation events contain information from change set migrations.
Field
Details
868
Standard Objects
CHANGE_SET_NAME
EventLogFile
Type
String
Description
The name of the change set.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION
Type
String
Description
The operation that’s being performed.
Possible Values
• DEPLOY
• RETRIEVE
869
Standard Objects
EventLogFile
• LIST
• DESCRIBE
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TARGET_ORG_ID
Type
Id
Description
The 15-character ID of the organization that’s receiving the
change set.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
870
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
871
Standard Objects
EventLogFile
Console
Console events contain information about the performance and use of Salesforce Consoles. The Console events are logged whenever
a Console tab is opened with a sidebar component. Outside of that, when Console tabs are opened, a regular view record detail event
is served just like in Salesforce Classic.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
COMPONENT_ID
Type
Id
Description
The 15-character ID of the component.
COMPONENT_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the component.
CONSOLE_ID
Type
Id
Description
The 15-character ID of the console.
CONSOLE_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the console.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
872
Standard Objects
EventLogFile
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RECORD_ID
Type
Id
Description
The 15-character ID of the record that’s associated with the
console.
RECORD_ID_DERIVED
Type
Id
Description
The 18-character, case-insensitive ID of the record that’s
associated with the console.
RELATED_ENTITY_ID
Type
Id
873
Standard Objects
EventLogFile
Description
The 15-character ID of the record that’s associated with the
delivery distribution.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
874
Standard Objects
EventLogFile
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
875
Standard Objects
EventLogFile
Content Distribution
Content Distribution events contain information about content distributions and deliveries to users.
Field
Details
ACTION
Type
String
Description
The action that’s used when a delivery is viewed.
Possible Values
• VIEW
• INSERT
• UPDATE
DELIVERY_ID
Type
Id
Description
The 15-character ID of the content delivery.
DELIVERY_LOCATION
Type
String
Description
The location of the delivery.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RELATED_ENTITY_ID
Type
Id
Description
The 15-character ID of the record that’s associated with the
delivery distribution.
876
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
VERSION_ID
Type
Id
Description
The 15-character ID of the content version.
Content Document Link
Content Document Link events contain sharing information for content documents.
Field
Details
877
Standard Objects
DOCUMENT_ID
EventLogFile
Type
Id
Description
The 15-character ID of the document that’s being shared.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SHARED_WITH_ENTITY_ID
Type
Id
Description
Who the document was shared with.
SHARING_OPERATION
Type
String
Description
The type of sharing operation on the document.
Possible Values
• INSERT
• UPDATE
• DELETE
878
Standard Objects
SHARING_PERMISSION
EventLogFile
Type
String
Description
What permissions the document was shared with.
Possible Values
• V: Viewer
• C: Collaborator
• I: Inferred—that is, the sharing permissions were inferred
from a relationship between the viewer and document.
For example, a document’s owner has a sharing permission
to the document itself. Or, a document can be a part of a
content collection, and the viewer has sharing permissions
to the collection rather than explicit permissions to the
document directly.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Content Transfer
Content Transfer events contain information about content transfer events, such as downloads, uploads, and previews.
Field
Details
879
Standard Objects
DOCUMENT_ID
EventLogFile
Type
Id
Description
The 15-character ID of the document that’s being shared.
DOCUMENT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the document that’s
being shared.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FILE_PREVIEW_TYPE
Type
String
Description
The content type of the file version.
FILE_TYPE
Type
String
Description
The content type of the file preview.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
880
Standard Objects
SIZE_BYTES
EventLogFile
Type
Number
Description
The size of the file transfer, in bytes.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TRANSACTION_TYPE
Type
String
Description
The operation that was performed.
Possible Values
• VersionDownloadAction and
VersionDownloadApi represent downloads via the
user interface and API respectively.
• VersionRenditionDownload represents a file
preview action.
• saveVersion represents a file that’s being uploaded.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
881
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
VERSION_ID
Type
Id
Description
The 15-character ID of the content version.
VERSION_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the content version.
Dashboard
Dashboard events contain details about dashboards that users view.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DASHBOARD_COMPONENT_ID
Type
Id
Description
The 15-character ID of the dashboard component.
882
Standard Objects
DASHBOARD_ID
EventLogFile
Type
String
Description
The 15-character ID of the dashboard that was run.
DASHBOARD_ID_DERIVED
Type
String
Description
The 18-character case insensitive ID of the dashboard that was
run.
DASHBOARD_TYPE
Type
String
Description
The type of dashboard.
Possible Values
• R: Run as running user
• C: Run as context user
• S: Run as specific user
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
IS_SCHEDULED
Type
Boolean
Description
The value is true if the dashboard is a scheduled dashboard.
IS_SUCCESS
Type
Boolean
Description
1 if the dashboard component ran successfully, 0 if it didn’t.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
883
Standard Objects
EventLogFile
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REPORT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
884
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
885
Standard Objects
EventLogFile
Document Attachment Downloads
Document Attachment Downloads events contain details of document and attachment downloads.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
ENTITY_ID
Type
Id
Description
The 15-character ID of the entity that’s associated with the
document or attachment.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FILE_NAME
Type
String
Description
The name of the file or attachment.
FILE_TYPE
Type
String
Description
The type of the file or attachment.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
886
Standard Objects
EventLogFile
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Login As
Login As events contain details about what a Salesforce admin did while logged in as another user.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
887
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DELEGATED_USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or API. In this case, the user who’s doing the
impersonation.
DELEGATED_USER_ID_DERIVED
Type
Id
Description
The 18-character case-insensitive ID of the user who’s using
Salesforce services through the UI or API. In this case, the user
who’s doing the impersonation.
DELEGATED_USER_NAME
Type
String
Description
The username of the user who’s using Salesforce services
through the UI or API. In this case, the user who’s doing the
impersonation.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
888
Standard Objects
ORGANIZATION_ID
EventLogFile
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
889
Standard Objects
EventLogFile
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Login
Login events contain details about your org’s user login history.
Field
Details
API_TYPE
Type
String
Description
The type of API request.
890
Standard Objects
EventLogFile
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
BROWSER_TYPE
Type
String
Description
The browser used for login.
Example Values
• 10011000: Internet Explorer Desktop 11
• 10011001: Internet Explorer Mobile 11
• 11035000: Firefox Desktop 35
• 11035001: Firefox Mobile 35
• 13050000: Chrome Desktop 50
• 13050001: Chrome Mobile 50
• 14012000: Safari Desktop 12
• 14012001: Safari Mobile 12
CIPHER_SUITE
Type
String
Description
The TLS cipher suite used for the login. Values are
OpenSSL-style cipher suite names, with hyphen delimiters. For
more information, see OpenSSL Cryptography and SSL/TLS
Toolkit.
891
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
LOGIN_STATUS
Type
String
Description
The status of the login attempt. For successful logins, the value
is LOGIN_NO_ERROR. All other values indicate errors or
892
Standard Objects
EventLogFile
authentication issues. For details, see Login Event Type —
LOGIN_STATUS Values on page 988.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
893
Standard Objects
EventLogFile
Example
d7DEq/ANa7nNZZVD
SOURCE_IP
Type
IP
Description
The source IP of the login request.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TLS_PROTOCOL
Type
String
Description
The TLS protocol used for the login.
Example
There are 3 possible values.
• 1.0
• 1.1
• 1.2
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
894
Standard Objects
EventLogFile
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
USER_NAME
Type
String
Description
The username that’s used for login.
Logout
Logout events contain details of user logouts.
Field
Details
API_TYPE
Type
String
Description
The type of API request.
Possible Values
• D: Apex Class
• E: SOAP Enterprise
• I: SOAP Cross Instance
• L: Live Agent
• M: SOAP Metadata
• O: Old SOAP
895
Standard Objects
EventLogFile
• P: SOAP Partner
• R: REST API
• S: SOAP Apex
• T: SOAP Tooling
• X: XmlRPC
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
APP_TYPE
Type
Number
Description
The application type that was in use upon logging out.
Example Values
• 1007: SFDC Application
• 1014: Live Agent
• 2501: CTI
• 2514: OAuth
• 3475: SFDC Partner Portal
BROWSER_TYPE
Type
String
Description
The browser used for login.
Example Values
• 10011000: Internet Explorer Desktop 11
• 10011001: Internet Explorer Mobile 11
• 11035000: Firefox Desktop 35
• 11035001: Firefox Mobile 35
• 13050000: Chrome Desktop 50
• 13050001: Chrome Mobile 50
• 14012000: Safari Desktop 12
• 14012001: Safari Mobile 12
CLIENT_IP
Type
IP
896
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_VERSION
Type
Number
Description
The version of the client that was in use upon logging out.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PLATFORM_TYPE
Type
Number
Description
The code for the client platform. If a timeout caused the logout,
this field is null.
Example Values
• 1000: Windows
• 2003: Macintosh/Apple OSX
• 5005: Android
• 5006: iPhone
• 5007: iPad
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
897
Standard Objects
EventLogFile
Example
3nWgxWbDKWWDIk0FKfF5DV
RESOLUTION_TYPE
Type
Number
Description
The screen resolution of the client. If a timeout caused the
logout, this field is null.
SESSION_LEVEL
Type
String
Description
The security level of the session that was used when logging
out.
Possible Values
• 1: Standard Session
• 2: High-Assurance Session
SESSION_TYPE
Type
String
Description
The session type that was used when logging out.
Possible Values
• A: API
• I: APIOnlyUser
• N: ChatterNetworks
• Z: ChatterNetworksAPIOnly
• C: Content
• P: OauthApprovalUI
• O: Oauth2
• T: SiteStudio
• R: SitePreview
• S: SubstituteUser
• B: TempContentExchange
• G: TempOauthAccessTokenFrontdoor
• Y: TempVisualforceExchange
• F: TempUIFrontdoor
• U: UI
• E: UserSite
• V: Visualforce
• W: WDC_API
898
Standard Objects
TIMESTAMP
EventLogFile
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_INITIATED_LOGOUT
Type
Boolean
Description
The value is 1 if the user intentionally logged out of the
organization by clicking the Logout button. If the user’s session
timed out due to inactivity or another implicit logout action,
the value is 0.
USER_NAME
Type
String
Description
The username that’s used for login.
USER_TYPE
Type
String
Description
The category of user license of the user that logged out.
Possible Values
• S: Standard
• P: Partner
899
Standard Objects
EventLogFile
• p: Customer Portal Manager
• C: Customer Portal User
• O: Power Custom
• o: Custom
• L: Package License Manager
• X: Black Tab User
• N: Salesforce to Salesforce
• G: Guest
• D: External Who
• A: Automated Process
• b: High Volume Portal
• n: CSN Only
• F: Self Service
Metadata API Operation
Metadata API Operation events contain details of Metadata API retrieval and deployment requests.
Field
Details
API_VERSION
Type
String
Description
The version of the API that’s being used.
Example
36.0
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
900
Standard Objects
EVENT_TYPE
EventLogFile
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION
Type
String
Description
The operation that’s being performed.
Possible Values
• DEPLOY
• RETRIEVE
• LIST
• DESCRIBE
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
901
Standard Objects
RUN_TIME
EventLogFile
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
902
Standard Objects
USER_ID
EventLogFile
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Multiblock Report
Multiblock Report events contain details about Joined Report reports.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
903
Standard Objects
EVENT_TYPE
EventLogFile
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HAS_CHART
Type
Boolean
Description
True if the report has a chart.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MASTER_REPORT_ID
Type
String
Description
The 15-character ID of the master report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
904
Standard Objects
REQUEST_STATUS
EventLogFile
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
905
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Package Install
Package Install events contain details about package installation in the organization.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
906
Standard Objects
CPU_TIME
EventLogFile
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
FAILURE_TYPE
Type
String
Description
A general categorization of any error that’s encountered.
IS_MANAGED
Type
Boolean
Description
True if the operation is performed on a managed package.
IS_PUSH
Type
Boolean
Description
True if the package was installed as a result of a push upgrade.
IS_RELEASED
Type
Boolean
Description
True if the operation is performed on a released package.
IS_SUCCESSFUL
Type
Boolean
Description
True if the package was successfully installed.
LOGIN_KEY
Type
String
907
Standard Objects
EventLogFile
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
OPERATION_TYPE
Type
String
Description
The type of package operation.
Possible Values
• INSTALL
• UPGRADE
• EXPORT
• UNINSTALL
• VALIDATE_PACKAGE
• INIT_EXPORT_PKG_CONTROLLER
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PACKAGE_NAME
Type
String
Description
The name of the package that’s being installed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
908
Standard Objects
EventLogFile
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
909
Standard Objects
EventLogFile
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Queued Execution
Queued Execution events contain details about queued executions—for example, batch Apex.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds that it took to complete the batch
apex request. This field indicates the amount of activity taking
place in the app server layer, allowing you to identify pieces
of Apex or Visualforce code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTRY_POINT
Type
String
910
Standard Objects
Field
EventLogFile
Details
Description
The name of the Apex class that serves as the execution point
for the batch job.
Example
TaskPhoneExtensionBatchUpdate
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
JOB_ID
Type
String
Description
The ID of the batch Apex job.
Example
7073000000lDquo
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
911
Standard Objects
Field
EventLogFile
Details
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
912
Standard Objects
Field
EventLogFile
Details
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Report
Report events contain information about what happened when a user ran a report.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
913
Standard Objects
EventLogFile
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
DISPLAY_TYPE
Type
String
Description
The report display type, indicating the run mode of the report.
Possible Values
• D: Dashboard
• S: Show Details
• H: Hide Details
ENTITY_NAME
Type
String
Description
The name of the object affected by the trigger.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUMBER_BUCKETS
Type
Number
914
Standard Objects
EventLogFile
Description
The number of buckets that were used in the report.
NUMBER_COLUMNS
Type
Number
Description
The number of columns in the report.
NUMBER_EXCEPTION_FILTERS
Type
Number
Description
The number of exception filters that are used in the report.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RENDERING_TYPE
Type
String
Description
The report rendering type, describing the format of the report
output.
Possible Values
• W: Web (HTML)
• E: Email
• P: Printable
• X: Excel
• C: Comma-separated values (CSV)
• J: JavaScript Object Notation (JSON)
REPORT_ID
Type
Id
Description
The 15-character ID of the report that was run.
REPORT_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the report that was run.
915
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SORT
Type
String
Description
The sort column and order that was used in the report.
TIMESTAMP
Type
String
916
Standard Objects
EventLogFile
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
917
Standard Objects
EventLogFile
Report Export
Report Export events contain details about reports that a user exported.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CLIENT_INFO
Type
String
Description
Information about the client that’s using Salesforce services.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
918
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
REPORT_DESCRIPTION
Type
String
Description
Information about the report that was run.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
919
Standard Objects
EventLogFile
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
REST API
REST API events contain details about REST-specific requests.
Field
Details
CLIENT_IP
Type
IP
920
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
ENTITY_NAME
Type
Set
Description
API objects that are accessed.
Example
Account, Opportunity, Contact, and so on.
EVENT_TYPE
Type
String
Description
The type of event.
921
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MEDIA_TYPE
Type
String
Description
The media type of the response.
METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
NUMBER_FIELDS
Type
Number
Description
The number of fields or columns, where applicable.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
922
Standard Objects
EventLogFile
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
ROWS_PROCESSED
Type
Number
Description
The number of rows that were processed in the request.
Example
150
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
STATUS_CODE
Type
Number
Description
The HTTP status code for the response.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
923
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_AGENT
Type
Number
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API).
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
924
Standard Objects
EventLogFile
Example
00590000000I1SNIA0
Sandbox
Sandbox events contain details about sandbox copies.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CURRENT_SANDBOX_ORG_ID
Type
Id
Description
The 15-character ID of the current sandbox organization.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PENDING_SANDBOX_ORG_ID
Type
Id
Description
The 15-character ID of the target sandbox org.
REQUEST_ID
Type
String
925
Standard Objects
EventLogFile
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SANDBOX_ID
Type
Id
Description
The 15-character ID of the sandbox organization.
STATUS
Type
String
Description
The status of the sandbox copy.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
Sites
Sites events contain details of Site.com requests. Requests can originate from the browser (UI) or the API.
926
Standard Objects
EventLogFile
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HTTP_HEADERS
Type
String
Description
The HTTP headers that were sent in the request.
METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
IS_API
Type
Boolean
927
Standard Objects
EventLogFile
Description
True if this page was an API or Web Services request.
IS_ERROR
Type
Boolean
Description
True if this page was an error page.
IS_FIRST_REQUEST
Type
Boolean
Description
1 if this page is the first Visualforce transaction in the request,
or 0 if it isn't.
IS_GUEST
Type
Boolean
Description
True if this page was a guest (unauthenticated) request.
IS_SECURE
Type
Boolean
Description
True if this request is secure.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PAGE_NAME
Type
String
928
Standard Objects
EventLogFile
Description
The name of the Visualforce page that was requested.
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_TYPE
Type
String
Description
The request type.
Possible Values
• page: a normal request for a page
• content_UI: a content request for a page that
originated in the user interface
• content_apex: a content request initiated by an Apex
call
• PDF_UI: a request for a page in PDF format through the
user interface
929
Standard Objects
EventLogFile
• PDF_apex: a request for PDF format by an Apex call
(usually a Web Service call)
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
SITE_ID
Type
Id
Description
The 15-character ID of the Site.com site.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
930
Standard Objects
URI_ID_DERIVED
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Time-Based Workflow
Time-Based Workflow events contain details about queue activity monitoring.
Field
Details
DATA
Type
String
Description
The record details of time queue activity.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOG_GROUP_ID
Type
String
931
Standard Objects
EventLogFile
Description
Marks log records that are committed or rolled back.
NUMBER_OF_RECORDS
Type
Number
Description
The number of processed records.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The type of Apex callout.
932
Standard Objects
EventLogFile
Example
REST or AJAX
Transaction Security
Transaction Security events contain details about policy execution.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVALUATION_TIME_MS
Type
Number
Description
The time in milliseconds used to evaluate the policy.
EVENT_TIMESTAMP
Type
String
Description
The time at which the Transaction Security event was
generated in ISO8601-compatible format
(YYYY-MM-DDTHH:MM:SS.sssZ). This value may be earlier than
TIMESTAMP_DERIVED by the amount of time taken to log the
event.
Example
2015-07-27T11:32:59.555Z
EVENT_TYPE
Type
String
Description
The type of event.
933
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
POLICY_ID
Type
Id
Description
The 15-character ID of the policy being evaluated.
Example
00530000009M943
POLICY_ID_DERIVED
Type
Id
Description
The 18-character case-insensitive ID of the policy being
evaluated.
Example
00590000000I1SNIA0
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
934
Standard Objects
RESULT
EventLogFile
Type
String
Description
The outcome of evaluating the policy.
Example
TRIGGERED or NOT TRIGGERED
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The time the event was logged in ISO8601-compatible format
(YYYY-MM-DDTHH:MM:SS.sssZ). This value may be later
than EVENT_TIMESTAMP by the amount of time between when
the event occurred and when it was logged.
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
935
Standard Objects
EventLogFile
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
UI Tracking
UI Tracking events contain details about user interactions with the mobile UI.
Field
Details
ACTION
Type
EscapedString
Description
The hierarchical user action.
ACTION_LOCATION
Type
String
Description
The name of the component where the user action occurred.
ACTION_TYPE
Type
String
936
Standard Objects
EventLogFile
Description
The database action that’s associated with the user action.
Possible Values
Database actions, including:
• Create
• Update
• Delete
• Convert
APP_NAME
Type
EscapedString
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that's accessed by the user.
BROWSER_VERSION
Type
String
Description
The browser version that's accessed by the user.
CARRIER
Type
String
Description
The name of the cellular service provider.
CLIENT
Type
EscapedString
Description
The context of access.
Example
Phone, tablet, desktop, and so on.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
937
Standard Objects
EventLogFile
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of the connection.
Possible Values
• WIFI
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HSDPA
• HSUPA
• HRPD
• LTE
DELTA
Type
Number
Description
The elapsed time between the start (START_TIME) and end
(END_TIME) of the event in milliseconds.
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking
events. DEVICE_ID is a generated value that’s created when
the app is initially run after installation.
END_TIME
Type
Number
938
Standard Objects
EventLogFile
Description
The end time of the event in Unix time (milliseconds since
00:00:00 UTC on January 1, 1970).
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOCATION
Type
EscapedString
Description
The hierarchical location.
NETWORK_ID
Type
Id
Description
The network ID of the request.
NUMBER1
Type
Number
Description
The record of a numeric value based on the operation. For
example, the number of results returned by a search.
NUMBER2
Type
Number
Description
The record of a numeric value based on operation, but for
multiple values.
Example
NUMBER1 items selected in a list containing NUMBER2 items.
OBJECT_TYPE
Type
String
Description
The API name of the record in the action.
ORGANIZATION_ID
Type
Id
939
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name.
OS_VERSION
Type
String
Description
The operating system version.
PAGE_OPTION
Type
String
Description
A comma-separated list of additional information about the
current page.
Example
isVisualforce
RECORD_ID
Type
Id
Description
The ID of the record the user accessed.
RECORD_TYPE_ID
Type
Id
Description
The ID of the record type the user accessed.
REFERRER
Type
EscapedString
Description
The HTTP referrer header.
REQUEST_METHOD
Type
String
Description
The HTTP request method.
940
Standard Objects
SDK_APP_NAME
EventLogFile
Type
String
Description
The name of the mobile SDK application that’s installed on the
device.
Example
Salesforce1
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Example
Native, hybrid, and so on.
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version.
Example
5.0
SDK_MODEL
Type
String
Description
The model of the mobile SDK application that’s installed on
the device.
Example
Salesforce1
SDK_VERSION
Type
String
Description
The mobile SDK version.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all
UI Tracking events within a session.
941
Standard Objects
EventLogFile
Example
[C@2f71c8e1
SIGNAL_STRENGTH
Type
Number
Description
The cellular signal strength.
START_TIME
Type
Number
Description
The start time of the event in Unix time (milliseconds since
00:00:00 UTC on January 1, 1970).
STATUS
Type
Boolean
Description
Indicates whether an error was logged. Information is logged
in data.
TARGET
Type
EscapedString
Description
The request target.
TARGET2
Type
EscapedString
Description
Additional information for the request target.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
942
Standard Objects
EventLogFile
Example
2015-07-27T11:32:59.555Z
UNIQUE_PAGE_ID
Type
String
Description
The unique request ID for all the requests from 1 page.
USAGE_TIMESTAMP
Type
String
Description
The time when the usage occurred. Format: YYYYMMDDHHMM
SS.sss.
USER_AGENT
Type
Escaped String
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API) as a
string.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
USER_TYPE
Type
String
Description
The user license of the user who’s accessing Salesforce services
through the UI or the API.
943
Standard Objects
EventLogFile
Possible Values
• S: Standard
• P: Partner
• p: Customer Portal Manager
• C: Customer Portal User
• O: Power Custom
• o: Custom
• L: Package License Manager
• X: Black Tab User
• N: Salesforce to Salesforce
• G: Guest
• D: External Who
• A: Automated Process
• b: High Volume Portal
• n: CSN Only
• F: Self Service
URI
URI events contain details about user interaction with the web browser UI.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
944
Standard Objects
EventLogFile
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
REFERRER_URI
Type
String
Description
The referring URI of the page that’s receiving the request.
945
Standard Objects
REQUEST_ID
EventLogFile
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
946
Standard Objects
TIMESTAMP_DERIVED
EventLogFile
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
USER_ID_DERIVED
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
Visualforce Request
VISUALFORCE__REQUEST_EVENT events contain details of Visualforce requests. Requests can originate from the browser (UI) or
the API.
Field
Details
947
Standard Objects
CLIENT_IP
EventLogFile
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONTROLLER_TYPE
Type
Number
Description
The type of controller that’s used by the requested Visualforce
page.
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
DB_BLOCKS
Type
Number
Description
Indicates how much activity is occurring in the database. A
high value for this field suggests that adding indexes or filters
on your queries would benefit performance.
DB_CPU_TIME
Type
Number
Description
Allows you to monitor trends in database uptime.
DB_TOTAL_TIME
Type
Number
Description
The time in nanoseconds for a database round trip. Compare
this field to CPU_TIME to determine whether performance
issues are occurring in the database layer or in your own code.
EVENT_TYPE
Type
String
Description
The type of event.
948
Standard Objects
EventLogFile
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
HTTP_METHOD
Type
String
Description
The HTTP method of the request—GET, POST, PUT, and so on.
IS_AJAX_REQUEST
Type
Boolean
Description
The value is true if the request is a partial page request.
IS_FIRST_REQUEST
Type
Boolean
Description
1 if this page is the first Visualforce transaction in the request,
or 0 if it isn't.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
MANAGED_PACKAGE_NAMESPACE
Type
String
Description
If the page is part of a managed package, the namespace of
that package.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
PAGE_NAME
Type
String
949
Standard Objects
EventLogFile
Description
The name of the Visualforce page that was requested.
QUERY
Type
String
Description
The SOQL query, if one was performed.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
REQUEST_SIZE
Type
Number
Description
The size of the request body, in bytes.
REQUEST_STATUS
Type
String
Description
The status of the request for a page view or user interface
action.
Possible Values
• S: Success
• F: Failure
• U: Undefined
• A: Authorization Error
• R: Redirect
• N: Not Found
REQUEST_TYPE
Type
String
Description
The request type.
Possible Values
• page: a normal request for a page
950
Standard Objects
EventLogFile
• content_UI: a content request for a page that
originated in the user interface
• content_apex: a content request initiated by an Apex
call
• PDF_UI: a request for a page in PDF format through the
user interface
• PDF_apex: a request for PDF format by an Apex call
(usually a Web Service call)
RESPONSE_SIZE
Type
Number
Description
The size of the response, in bytes.
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
951
Standard Objects
URI
EventLogFile
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_AGENT
Type
Number
Description
The numeric code for the type of client used to make the
request (for example, the browser, application, or API).
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
VIEW_STATE_SIZE
Type
Number
Description
The size of the Visualforce view state, in bytes.
Wave Change
Wave Change events represent route or page changes made in the Salesforce Wave Analytics user interface.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
952
Standard Objects
EventLogFile
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
IS_NEW
Type
Boolean
Description
If the change routes to a new page, the value of this field is
true. If it routes to an existing page, this field is false.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
953
Standard Objects
REOPEN_COUNT
EventLogFile
Type
Number
Description
If IS_NEW is false, the number of times that an existing page
opens.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
954
Standard Objects
TYPE
EventLogFile
Type
String
Description
The Wave object type.
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave. Use this field to
determine which log lines originated from a particular session.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Wave Interaction
Wave Interaction events track user interactions with the Wave Analytics user interface made via the browser.
Field
Details
955
Standard Objects
CLIENT_IP
EventLogFile
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CPU_TIME
Type
Number
Description
The CPU time in milliseconds used to complete the request.
This field indicates the amount of activity taking place in the
app server layer, highlighting pieces of Apex or Visualforce
code that need refactoring.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
LOGIN_KEY
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NUM_CLICKS
Type
Number
Description
The number of clicks performed on a page in the Wave user
interface.
NUM_SESSIONS
Type
Number
Description
The number of times a user returned to a particular page.
ORGANIZATION_ID
Type
Id
956
Standard Objects
EventLogFile
Description
The 15-character ID of the organization.
Example
00D000000000123
READ_TIME
Type
Number
Description
The amount of time a user spent on a particular tab.
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
957
Standard Objects
EventLogFile
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TOTAL_TIME
Type
Number
Description
The total amount of time a tab was open in milliseconds.
TYPE
Type
String
Description
The Wave object type.
URI
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
958
Standard Objects
USER_ID_DERIVED
EventLogFile
Type
Id
Description
The 18-character case insensitive ID of the user who’s using
Salesforce services through the UI or the API.
Example
00590000000I1SNIA0
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Wave Performance
Wave Performance events help you track trends in your Wave Analytics performance.
Field
Details
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
EPT
Type
Number
Description
The experienced page time in milliseconds.
EVENT_TYPE
Type
String
Description
The type of event.
Example
ReportExport, URI, UITracking, API, RestApi, and so on.
959
Standard Objects
LOGIN_KEY
EventLogFile
Type
String
Description
The string that ties together all events in a given user’s login
session. It starts with a login event and ends with either a
logout event or the user session expiring.
Example
GeJCsym5eyvtEK2I
NAME
Type
String
Description
The asset title or query string.
ORGANIZATION_ID
Type
Id
Description
The 15-character ID of the organization.
Example
00D000000000123
QUERY_ID
Type
String
Description
The ID of the Wave query.
RECORD_ID
Type
String
Description
The Salesforce ID of the Wave object.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain
one or more events. Each event in a given transaction has the
same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
RUN_TIME
Type
Number
960
Standard Objects
EventLogFile
Description
The amount of time that the request took in milliseconds.
SESSION_KEY
Type
String
Description
The string that ties together all events for a particular activity
session. For example, URI events while the user is interacting
with an Accounts page.
Example
d7DEq/ANa7nNZZVD
TAB_ID
Type
String
Description
The ID of the particular Wave tab in the user interface.
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
TIMESTAMP_DERIVED
Type
Datetime
Description
The access time of Salesforce services in ISO8601-compatible
format (YYYY-MM-DDTHH:MM:SS.sssZ)
Example
2015-07-27T11:32:59.555Z
TYPE
Type
String
Description
The Wave object type.
UI_RENDER_TIME
Type
String
Description
The amount of time that it took for the user interface to render.
961
Standard Objects
URI
Lightning Error Event Type
Type
String
Description
The URI of the page that’s receiving the request.
Example
/home/home.jsp
URI_ID_DERIVED
Type
ID
Description
The 18-character case insensitive ID of the URI of the page
that’s receiving the request.
USER_ID
Type
Id
Description
The 15-character ID of the user who’s using Salesforce services
through the UI or the API.
Example
00530000009M943
WAVE_SESSION_ID
Type
String
Description
The ID of a particular session of Wave.
WAVE_TIMESTAMP
Type
Number
Description
The time at which this log line was generated.
Lightning Error Event Type
Lightning Error events represent errors that occurred during user interactions with Lightning Experience. This event type is available in
the EventLogFile object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
962
Standard Objects
Lightning Error Event Type
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
963
Standard Objects
Field
Lightning Error Event Type
Details
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
964
Standard Objects
Lightning Error Event Type
Field
Details
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. If the user reloads a page,
it starts a new session.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
965
Standard Objects
Lightning Error Event Type
Field
Details
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When a user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
966
Standard Objects
Lightning Error Event Type
Field
Details
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
Description
Event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of error.
Example
Error, warning, information
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
967
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Interaction Event Type
Lightning Interaction events track user interactions with Lightning Experience. This event type is available in the EventLogFile object in
API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
968
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
969
Standard Objects
Lightning Interaction Event Type
Field
Details
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
970
Standard Objects
Lightning Interaction Event Type
Field
Details
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
GRANDPARENT_UI_ELEMENT
Type
String
Description
Grandparent scope of the page element where the event occurred.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_CONTEXT
Type
String
Description
Context of the page where the event occurred.
PAGE_ENTITY_ID
Type
Id
Description
The unique entity identifier of the event.
Example
0013000000I3zJAAAZ
971
Standard Objects
Lightning Interaction Event Type
Field
Details
PAGE_ENTITY_TYPE
Type
String
Description
The entity type of the event.
Example
Task, contacts
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
PARENT_UI_ELEMENT
Type
String
Description
Parent scope of the page element where the event occurred.
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
972
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TARGET_UI_ELEMENT
Type
String
Description
The target page element where the event occurred.
Example
label bBody truncate, tabitem-link
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
973
Standard Objects
Field
Lightning Interaction Event Type
Details
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, the browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
974
Standard Objects
Field
Lightning Page View Event Type
Details
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Page View Event Type
Lightning Page View events represent information about the page on which the event occurred in Lightning Experience. This event
type is available in the EventLogFile object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
975
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
976
Standard Objects
Lightning Page View Event Type
Field
Details
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
EPT
Type
Number
977
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The effective page time indicating how long it took for the page to load.
GRANDPARENT_UI_ELEMENT
Type
String
Description
The grandparent scope of the page element where the event occurred.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_CONTEXT
Type
String
Description
The context of the page where the event occurred.
PAGE_ENTITY_ID
Type
Id
Description
The unique entity identifier of the event.
Example
0013000000I3zJAAAZ
PAGE_ENTITY_TYPE
Type
String
978
Standard Objects
Field
Lightning Page View Event Type
Details
Description
The entity type of the event.
Example
Task, contacts
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
PARENT_UI_ELEMENT
Type
String
Description
The parent scope of the page element where the event occurred.
PREVPAGE_CONTEXT
Type
String
Description
The context of the previous page where the event occurred.
PREVPAGE_ENTITY_ID
Type
Id
Description
The unique previous page entity identifier of the event.
PREVPAGE_ENTITY_TYPE
Type
String
Description
The previous page entity type of the event.
Example
Task, contacts
REQUEST_ID
Type
String
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
979
Standard Objects
Lightning Page View Event Type
Field
Details
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TARGET_UI_ELEMENT
Type
String
Description
The target page element where the event occurred.
Example
label bBody truncate, tabitem-link
980
Standard Objects
Lightning Page View Event Type
Field
Details
TIMESTAMP
Type
String
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SEQUENCE_NUM
Type
Number
Description
An auto-incremented sequence number of the current event since the session started.
UI_EVENT_SOURCE
Type
String
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, the browser,
application, or API) as a string.
USER_ID
Type
String
981
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Lightning Performance Event Type
Lightning Performance events track trends in your Lightning Experience performance. This event type is available in the EventLogFile
object in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
982
Standard Objects
Lightning Performance Event Type
Fields
Field
Details
APP_NAME
Type
String
Description
The name of the application that the user accessed.
BROWSER_NAME
Type
String
Description
The name of the browser that the user accessed.
Example
Chrome, IE, Safari, Gecko
BROWSER_VERSION
Type
String
Description
The version of the browser that the user accessed in major.minor version format.
Some browsers don’t provide a minor version.
CLIENT_ID
Type
String
Description
The API client ID.
CLIENT_IP
Type
IP
Description
The IP address of the client that’s using Salesforce services.
Example
96.43.144.26
CONNECTION_TYPE
Type
String
Description
The type of connection.
Possible Values
• CDMA1x
• CDMA
• EDGE
• EVDO0
983
Standard Objects
Field
Lightning Performance Event Type
Details
• EVDOA
• EVDOB
• GPRS
• HRPD
• HSDPA
• HSUPA
• LTE
• WIFI
DEVICE_ID
Type
String
Description
The unique identifier used to identify a device when tracking events. DEVICE_ID is a
generated value that’s created when the mobile app is initially run after installation.
DEVICE_MODEL
Type
String
Description
The name of the device model.
Example
iPad, iPhone
DEVICE_PLATFORM
Type
String
Description
The type of application experience in name:experience:form format.
Possible Values
Name
• APP_BUILDER
• CUSTOM
• S1
• SFX
Experience
• BROWSER
• HYBRID
Form
• DESKTOP
• PHONE
• TABLET
984
Standard Objects
Lightning Performance Event Type
Field
Details
DEVICE_SESSION_ID
Type
Id
Description
The unique identifier of the user’s session based on page load time. When the user reloads
a page, a new session is started.
Example
321a1ddfaf924803a075f1e69fc87bc06f53ccd0
DURATION
Type
Number
Description
The duration in milliseconds since the page start time.
ORGANIZATION_ID
Type
String
Description
The 15-character ID of the org.
Example
00D000000000123
OS_NAME
Type
String
Description
The operating system name, derived from USER_AGENT.
Example
Android, iOS, OSX, Windows
OS_VERSION
Type
String
Description
The operating system version, derived from USER_AGENT.
PAGE_START_TIME
Type
Number
Description
The time when the page was initially loaded, measured in milliseconds.
Example
1471564788642
REQUEST_ID
Type
String
985
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each
event in a given transaction has the same REQUEST_ID.
Example
3nWgxWbDKWWDIk0FKfF5DV
SDK_APP_TYPE
Type
String
Description
The mobile SDK application type.
Possible Values
• HYBRID
• HYBRIDLOCAL
• HYBRIDREMOTE
• NATIVE
• REACTNATIVE
SDK_APP_VERSION
Type
String
Description
The mobile SDK application version number.
Example
5.0
SDK_VERSION
Type
String
Description
The mobile SDK version number.
Example
2.1.0
SESSION_ID
Type
String
Description
The user’s unique session ID. You can use the ID to identify all events in Lightning Experience
within a session. When the user logs out and logs in again, a new session is started.
Example
cdd09305cb6babf34059e27f70e47f1b11dec868
TIMESTAMP
Type
String
986
Standard Objects
Field
Lightning Performance Event Type
Details
Description
The access time of Salesforce services.
Example
20130715233322.670
UI_EVENT_SOURCE
Type
String
Description
The event source of the error.
Example
AuraError
UI_EVENT_TIMESTAMP
Type
Number
Description
The time at which this event occurred, measured in milliseconds.
Example
1479769912796
UI_EVENT_TYPE
Type
String
Description
The type of interaction.
Example
User, system, error
USER_AGENT
Type
String
Description
The numeric code for the type of client used to make the request (for example, browser,
application, or API) as a string.
USER_ID
Type
String
Description
The 15-character ID of the user accessing Salesforce services through the UI or API.
Example
00530000009M943
USER_TYPE
Type
String
987
Standard Objects
Field
Login Event Type — LOGIN_STATUS Values
Details
Description
The category of user license of the user accessing Salesforce services through the UI or API.
Possible Values
• A: Automated Process
• b: High Volume Portal
• C: Customer Portal User
• D: External Who
• F: Self Service
• G: Guest
• L: Package License Manager
• N: Salesforce to Salesforce
• n: CSN Only
• O: Power Custom
• o: Custom
• P: Partner
• p: Customer Portal Manager
• S: Standard
• X: Black Tab User
SEE ALSO:
EventLogFile
Login Event Type — LOGIN_STATUS Values
When users attempt to log in to your org, the success or failure of their login attempts is tracked in event log file data. Specifically, the
LOGIN_STATUS field in the Login event type contains the result of these login attempts. The data in LOGIN_STATUS can help you
determine whether your users’ login attempts were successful. This field is available in the Login event type in the EventLogFile object
in API version 39.0 and later.
For details about querying EventLogFile and learning more about event monitoring, see the Force.com REST API Developer’s Guide.
API Error Code
Details (If Available)
LOGIN_CHALLENGE_ISSUED
Failed: Computer activation required
LOGIN_CHALLENGE_PENDING
Failed: Computer activation pending
LOGIN_DATA_DOWNLOAD_ONLY
LOGIN_END_SESSION_TXN_SECURITY_POLICY
LOGIN_ERROR_APPEXCHANGE_DOWN
Unable to process your login request
LOGIN_ERROR_ASYNC_USER_CREATE
988
Standard Objects
API Error Code
Login Event Type — LOGIN_STATUS Values
Details (If Available)
LOGIN_ERROR_AVANTGO_DISABLED
LOGIN_ERROR_AVANTGO_TRIAL_EXP
LOGIN_ERROR_CLIENT_NO_ACCESS
LOGIN_ERROR_CLIENT_REQ_UPDATE
Failed: Client update required
LOGIN_ERROR_CSS_FROZEN
LOGIN_ERROR_CSS_PW_LOCKOUT
LOGIN_ERROR_DUPLICATE_USERNAME
LOGIN_ERROR_EXPORT_RESTRICTED
Restricted country
LOGIN_ERROR_GLOBAL_BLOCK_DOMAIN
Restricted domain
LOGIN_ERROR_HT_DOWN
LOGIN_ERROR_HTP_METHD_INVALID
Failed: Invalid HTTP method
LOGIN_ERROR_INSECURE_LOGIN
Failed: Login over insecure channel
LOGIN_ERROR_INVALID_GATEWAY
Invalid gateway
LOGIN_ERROR_INVALID_ID_FIELD
LOGIN_ERROR_INVALID_PASSWORD
Invalid password
LOGIN_ERROR_INVALID_USERNAME
Invalid login
LOGIN_ERROR_LOGINS_EXCEEDED
Maximum logins exceeded
LOGIN_ERROR_MUST_USE_API_TOKEN
Failed: API security token required
LOGIN_ERROR_MUTUAL_AUTHENTICATION
Mutual authentication failed
LOGIN_ERROR_NETWORK_INACTIVE
Invalid - community offline
LOGIN_ERROR_NO_HT_ACCESS
LOGIN_ERROR_NO_NETWORK_ACCESS
No community access
LOGIN_ERROR_NO_NETWORK_INFO
LOGIN_ERROR_NO_PORTAL_ACCESS
Invalid profile association
LOGIN_ERROR_NO_SET_COOKIES
LOGIN_ERROR_OFFLINE_DISABLED
Offline disabled
LOGIN_ERROR_OFFLINE_TRIAL_EXP
Offline trial expired
LOGIN_ERROR_ORG_CLOSED
Organization closed
LOGIN_ERROR_ORG_DOMAIN_ONLY
Restricted domain
LOGIN_ERROR_ORG_IN_MAINTENANCE
Organization is in maintenance
989
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_ERROR_ORG_INACTIVE
Organization is inactive
LOGIN_ERROR_ORG_IS_DOT_ORG
Organization is a DOT
LOGIN_ERROR_ORG_LOCKOUT
Organization locked
LOGIN_ERROR_ORG_SIGNING_UP
LOGIN_ERROR_ORG_SUSPENDED
Organization suspended
LOGIN_ERROR_OUTLOOK_DISABLED
Outlook integration disabled
LOGIN_ERROR_PAGE_REQUIRES_LOGIN
LOGIN_ERROR_PASSWORD_EMPTY
LOGIN_ERROR_PASSWORD_LOCKOUT
Password lockout
LOGIN_ERROR_PORTAL_INACTIVE
Invalid - Portal disabled
LOGIN_ERROR_RATE_EXCEEDED
Login rate exceeded
LOGIN_ERROR_RESTRICTED_DOMAIN
Restricted IP
LOGIN_ERROR_RESTRICTED_TIME
Restricted time
LOGIN_ERROR_SESSION_TIMEOUT
LOGIN_ERROR_SSO_PWD_INVALID
Invalid password
LOGIN_ERROR_SSO_SVC_DOWN
Your company's authentication service is down
LOGIN_ERROR_SSO_URL_INVALID
The Single Sign-On Gateway URL is invalid
LOGIN_ERROR_STORE
LOGIN_ERROR_STORE_DOWN
LOGIN_ERROR_SWITCH_SFDC_INSTANCE
LOGIN_ERROR_SWITCH_SFDC_LOGIN
LOGIN_ERROR_SYNCOFFLINE_DISBLD
Failed: Mobile disabled
LOGIN_ERROR_SYSTEM_DOWN
LOGIN_ERROR_UNKNOWN_ERROR
Login invalid
LOGIN_ERROR_USER_API_ONLY
Failed: API-only user
LOGIN_ERROR_USER_FROZEN
User is frozen
LOGIN_ERROR_USER_INACTIVE
User is inactive
LOGIN_ERROR_USER_NON_MOBILE
Failed: Mobile license required
LOGIN_ERROR_USER_STORE_ACCESS
LOGIN_ERROR_USERNAME_EMPTY
990
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_ERROR_WIRELESS_DISABLED
Wireless disabled
LOGIN_ERROR_WIRELESS_TRIAL_EXP
Wireless trial expired
LOGIN_LIGHTNING_LOGIN
Lightning Login required
LOGIN_NO_ERROR
LOGIN_OAUTH_API_DISABLED
Failed: OAuth API access disabled
LOGIN_OAUTH_CONSUMER_DELETED
Failed: Consumer Deleted
LOGIN_OAUTH_DS_NOT_EXPECTED
Failed: Activation secret not expected
LOGIN_OAUTH_EXCEED_GET_AT_LMT
Failed: Get Access Token Limit Exceeded
LOGIN_OAUTH_INVALID_CODE_CHALLENGE
Failed: Invalid Code Challenge
LOGIN_OAUTH_INVALID_CODE_VERIFIER
Failed: Invalid Code Verifier
LOGIN_OAUTH_INVALID_DEVICE
Failed: Device Id missing or not registered
LOGIN_OAUTH_INVALID_DS
Failed: Activation secret invalid
LOGIN_OAUTH_INVALID_DSIG
Failed: Signature Invalid
LOGIN_OAUTH_INVALID_IP
Failed: IP Address Not Allowed
LOGIN_OAUTH_INVALID_NONCE
Failed: Invalid Nonce
LOGIN_OAUTH_INVALID_SIG_METHOD
Failed: Invalid Signature Method
LOGIN_OAUTH_INVALID_TIMESTAMP
Failed: Invalid Timestamp
LOGIN_OAUTH_INVALID_TOKEN
Failed: Invalid Token
LOGIN_OAUTH_INVALID_VERIFIER
Failed: Invalid Verifier
LOGIN_OAUTH_INVALID_VERSION
Failed: Version Not Supported
LOGIN_OAUTH_MISSING_DS
Activation secret missing
LOGIN_OAUTH_NO_CALLBACK_URL
Failed: Invalid Callback URL
LOGIN_OAUTH_NO_CONSUMER
Missing Consumer Key Parameter
LOGIN_OAUTH_NO_TOKEN
Missing OAuth Token Parameter
LOGIN_OAUTH_NONCE_REPLAY
Failed: Nonce Replay Detected
LOGIN_OAUTH_PACKAGE_MISSING
Package for this consumer is not installed in your organization
LOGIN_OAUTH_PACKAGE_OLD
Installed package for this consumer is out of date
LOGIN_OAUTH_UNEXPECTED_PARAM
Failed: Unexpected parameter
LOGIN_ORG_TRIAL_EXP
Trial Expired
LOGIN_READONLY_CANNOT_VALIDATE
991
Standard Objects
Login Event Type — LOGIN_STATUS Values
API Error Code
Details (If Available)
LOGIN_SAML_INVALID_AUDIENCE
Failed: Audience Invalid
LOGIN_SAML_INVALID_CONFIG
Failed: Configuration Error/Perm Disabled
LOGIN_SAML_INVALID_FORMAT
Failed: Assertion Invalid
LOGIN_SAML_INVALID_IN_RES_TO
Failed: InResponseTo Invalid
LOGIN_SAML_INVALID_ISSUER
Failed: Issuer Mismatched
LOGIN_SAML_INVALID_ORG_ID
Failed: Invalid Organization Id
LOGIN_SAML_INVALID_PORTAL_ID
Failed: Invalid Portal Id
LOGIN_SAML_INVALID_RECIPIENT
Failed: Recipient Mismatched
LOGIN_SAML_INVALID_SESSION_LEVEL
LOGIN_SAML_INVALID_SIGNATURE
Failed: Signature Invalid
LOGIN_SAML_INVALID_SITE_URL
Failed: Invalid Site URL
LOGIN_SAML_INVALID_STATUS
Failed: Status Invalid
LOGIN_SAML_INVALID_SUB_CONFIRM
Failed: Subject Confirmation Error
LOGIN_SAML_INVALID_TIMESTAMP
Failed: Assertion Expired
LOGIN_SAML_INVALID_USERNAME
Failed: Username Or SSO Id Invalid
LOGIN_SAML_INVALID_VERSION
LOGIN_SAML_MISMATCH_CERT
Failed: Signature Invalid/Configured Certificate Mismatch
LOGIN_SAML_MISSING_ORG_ID
Failed: Missing Organization Id for Portal login
LOGIN_SAML_MISSING_PORTAL_ID
Failed: Missing Portal Id
LOGIN_SAML_PROVISION_ERROR
Failed: SAML Provision Error
LOGIN_SAML_REPLAY_ATTEMPTED
Failed: Replay Detected
LOGIN_SAML_SITE_INACTIVE
Failed: Specified Site is Inactive
LOGIN_TWOFACTOR_REQ
Two-factor required
Usage
Use LOGIN_STATUS to determine whether your users’ login attempts were successful. For example, you can determine whether a
departed employee attempted to log in successfully or unsuccessfully.
992
Standard Objects
EventRelation
SEE ALSO:
EventLogFile
EventRelation
Represents a person (a user, lead, or contact) or a resource (such as a conference room) invited to an event. This object lets you add or
remove invitees from an event and use the API to manage invitees’ responses to invitations. If Shared Activities is enabled, EventRelation
can also represent other objects that are related to an event. EventRelation does not support triggers, workflow, or data validation rules.
EventRelation allows a variable number of relationships and handles deleted events differently, depending on whether Shared Activities
is enabled.
If Shared Activities Is Enabled
• An event can be related to up to 50 contacts or one lead.
• An event can be related to a lead, contact, resource, account, or opportunity.
• An event can be related to a custom object that has the HasActivities attribute set to true.
• If you delete an event, then relations between the event and any specified contacts, leads, and other records are also deleted.
• If you delete the EventRelation record representing a relation then the corresponding relation field may be cleared on the event.
• If you delete the EventRelation record representing the WhoId on an event, then another Who, if any, from the event’s
EventWhoIds field will be promoted to the WhoId.
• If you restore a deleted event, relations between the event and any specified contacts, leads, and records are also restored. The
WhoId, WhatId, and AccountId field values are recalculated using the field values on EventRelation.
If Shared Activities Isn’t Enabled
• An event can be related to only one contact or lead, referenced in the event WhoId field. EventRelations will only be invitees
(contacts, users, and resources).
• An event can also be related to one or more users or resources, represented in the EventWhoIds field on the event.
Whether or not Shared Activities is enabled, an event can be related to one other kind of record, such as an account, an opportunity, or
a custom object.
Note:
• With API versions 26.0 and later, the EventRelation object replaces the EventAttendee object, and the EventAttendee object
is no longer visible. You can still query the EventAttendee object using packages that support API versions 25.0 and earlier, or
by using Apex.
• An EventRelation object can’t be created for a child event.
• EventRelation includes deactivated users.
• In API versions 25.0 and earlier, you can’t use query(), delete(), or update() with events related to more than one
contact.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), queryAll(),
retrieve(), update(), upsert()
993
Standard Objects
EventRelation
Fields
Field
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the Account ID of the relation. For information on IDs, see ID Field Type.
AccountId is visible when Shared Activities is enabled.
EventId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Contains the ID of the event. This value can’t be changed after it’s been specified.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
IsInvitee
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the relation is an invitee.
• IsInvitee is visible while Shared Activities is being enabled, after it has been
enabled, and while it is being disabled.
• IsInvitee defaults to true while Shared Activities is being enabled, after
it has been enabled, and while it is being disabled if IsInvitee, IsParent,
and IsWhat are not set. This configuration ensures compatibility when Shared
Activities isn’t enabled and EventRelation represents event invitees only.
• IsInvitee defaults to false when Shared Activities is enabled if
IsParent is set to true.
IsParent
Type
boolean
994
Standard Objects
Field
EventRelation
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
IsParent is visible only when Shared Activities is enabled. When false, indicates
that the relation is an invitee (a contact, lead, or user). When true, indicates that
the relation is a Who or What, as determined by IsWhat field.
IsWhat
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
IsWhat is visible only when Shared Activities is enabled. The value is relevant only
if IsParent is true. When IsWhat is true, the relation specified by
RelationId is a What (an account, opportunity, custom object, etc.). When
IsWhat is false, the relation specified by RelationId is a Who (a contact,
lead, or user).
RelationId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Contains the ID of the person (User, Contact, or Lead) or the resource invited to an
event. When Shared Activities is enabled, RelationId can also contain the ID of
an account, opportunity, or other object related to an event.
This value can’t be changed after it’s been specified.
RespondedDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Indicates the most recent date and time when the invitee responded to an invitation
to an event.
Response
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
995
Standard Objects
Field
EventRelation
Details
Description
Contains optional text that the invitee can enter when responding to an invitation
to an event.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the invitee status with one of the following values:
• New: Invitee has received the invitation but hasn’t yet responded. This value is
the default.
• Declined: Invitee has declined the invitation.
• Accepted: Invitee has accepted the invitation.
Note: Uninvited and Maybe aren’t currently supported.
Usage
• Invitee related lists display slightly different content. In Salesforce1, the invitee related list includes invitees only, whereas in the full
site, it also includes the event owner. To reproduce the full site functionality in Salesforce1, use the following API queries.
If you use Shared Activities in your Salesforce org, use this query:
SELECT RelationId FROM EventRelation WHERE isInvitee = true AND eventId='[Event_Id]'
where Event_Id is the child event’s ID.
If you don’t use Shared Activities, use this query:
SELECT RelationId FROM EventRelation WHERE eventId='[Event_Id]'
These queries get the main event’s relations and display them for the given child event. To further filter the results, add a WHERE
clause.
Send email notifications
To send email notifications for a given event, query EventRelation for the event, iterate through the list, examine the status, and send
email notifications to every person who accepted the invitation.
Determine what events a given invitee is attending
To determine all the events that a particular person is attending during a given time period (for example, next week), you can have
a client application query the Event object for a given date range, iterate through the results, and, for each event, query the
EventRelation object to determine whether the particular person (RelationId) has accepted an invitation to that event.
Create an invitee if Shared Activities is enabled (or during the process of enabling it or rolling back)
If the invitee is already a contact or lead, update IsInvitee to true.
If the invitee is not already a contact or lead, create an EventRelation object for the invitee with IsInvitee set to true.
996
Standard Objects
EventRelation
Create an invitee if Shared Activities is not enabled
Create an EventRelation object for the invitee.
Query relations to a contact or a lead
List whoRelations = [SELECT Id, Relation.Name FROM
EventRelation WHERE EventId = '00UD0000005zijD' AND isParent = true AND isWhat =
false];
Query invitee relations
List inviteeRelations = [SELECT Id, Relation.Name FROM
EventRelation WHERE EventId = '00UD0000005zijD' AND isInvitee = true];
Update an invitee relation to a contact or lead invitee relation
EventRelation er = [SELECT Id FROM EventRelation WHERE EventId =
'00UD0000005zijD' AND isInvitee = true and isParent = false LIMIT 1];
er.isParent = true;
update er;
Update a contact or lead relation to a contact or lead invitee relation
EventRelation er = [SELECT Id FROM EventRelation WHERE EventId =
'00UD0000005zijD' AND isParent = true and isInvitee = false LIMIT 1];
er.isInvitee = true;
update er;
Insert a contact or lead relation
EventRelation er = new EventRelation(EventId = '00UD0000005zijH',
RelationId = '003D000000Q8aeV', isParent = true, isInvitee = false);
insert er;
Insert an invitee relation
If isParent, isWhat and IsInvitee are not set, and RelationId is a contact, lead, user, or calendar, IsInvitee
defaults to true. This means if an EventRelation isn’t specifically inserted as a relation to a contact or lead, it’s treated as an Invitee
relation by default.
EventRelation er = new EventRelation(EventId = '00UD0000005zijH',
RelationId = '003D000000Q8adV');
insert er;
Reproduce invitee related list functionality in Salesforce1
Invitee related lists display slightly different content in Salesforce1 and the full site. In Salesforce1, the invitee related list includes
invitees only, whereas in the full site, it also includes the event owner.
If you use Shared Activities in your Salesforce org, use the following query to reproduce the full site functionality in Salesforce1:
SELECT RelationId FROM EventRelation WHERE isInvitee = true AND eventId='[Event_Id]'
where Event_Id is the child event’s ID.
If you don’t use Shared Activities, use this query:
SELECT RelationId FROM EventRelation WHERE eventId='[Event_Id]'
997
Standard Objects
EventTag
These queries get the main event’s relations and display them for the given child event. To further filter the results, add a WHERE
clause.
SEE ALSO:
Event
EventWhoRelation
Object Basics
EventTag
Associates a word or short phrase with an Event.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
998
Standard Objects
EventWhoRelation
Field Name
Details
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
EventTag stores the relationship between its parent TagDefinition and the Event being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
EventWhoRelation
Represents the relationship between an event and a lead or contacts. This derived object is a filtered version of the EventRelation on
page 993 object; that is, IsParent is true and IsWhat is false. It doesn’t represent relationships to invitees or to accounts, opportunities,
or other objects. This object is available in API versions 29.0 and later.
EventWhoRelation allows a variable number of relationships: one lead or up to 50 contacts. Available only if you’ve enabled Shared
Activities for your organization.
Note: EventWhoRelation objects aren’t created for child events.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
EventId
Type
reference
Properties
Filter, Group, Nillable, Sort
999
Standard Objects
Field Name
ExternalDataSource
Details
Description
Indicates the ID of the event.
RelationId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the contacts or lead related to the event.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Indicates whether the person related to the event is a contact or lead.
Usage
Apex example that queries relations to a contact or lead
List whoRelations = [SELECT Id, Relation.Name FROM
EventWhoRelation WHERE EventId = '00UD0000005zijD'];
SEE ALSO:
Event
EventRelation
ExternalDataSource
Represents an external data source, which defines connection details for integration with data and content that are stored outside the
Salesforce org. This object is available in API version 27.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
1000
Standard Objects
ExternalDataSource
Fields
Field Name
Details
AuthProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Salesforce ID of the authentication provider, which defines the service that provides the login
process and approves access to the external system.
Only users with the “Customize Application” and “Manage AuthProviders” permissions can
view this field.
This field is available in API version 39.0 and later.
CustomConfiguration
Type
textarea
Properties
Nillable
Description
A JSON-encoded configuration string that defines parameters specific to the type of external
data source.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With this
field, a developer can change the object’s name in a managed package and the changes are
reflected in a subscriber’s organization.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
Endpoint
Type
textarea
Properties
Nillable
1001
Standard Objects
Field Name
ExternalDataSource
Details
Description
The URL of the external system, or if that URL is defined in a named credential, the named
credential URL.
A named credential URL contains the scheme callout:, the name of the named credential,
and an optional path. For example: callout:My_Named_Credential/some_path.
You can append a query string to a named credential URL. Use a question mark (?) as the
separator between the named credential URL and the query string. For example:
callout:My_Named_Credential/some_path?format=json.
isWritable
Type
boolean
Properties
Defaulted on create, Filter, Group, Query, Sort
Description
Lets the Force.com platform and users in this org create, update, and delete records for
external objects associated with the external data source. The external object data is stored
outside the org. By default, external objects are read only.
Available only for Salesforce Connect external data sources. Available in API version 35.0 and
later. However, with the cross-org adapter for Salesforce Connect, you can set this field to
true only in API version 39.0 and later.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Master label for the external data source. This internal label doesn’t get translated.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
1002
Standard Objects
Field Name
ExternalDataSource
Details
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
PrincipalType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Specifies whether the org uses one set (NamedUser), multiple sets (PerUser), or no
(Anonymous) credentials to access the external system. Each set of credentials corresponds
to a login account on the external system. Corresponds to Identity Type in the user
interface.
Protocol
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Specifies whether to use OAuth, password authentication, or no authentication to access the
external system.
Some types of external data sources support only one value.
• For cloud-based Files Connect external systems, select Oauth 2.0.
• For on-premises systems, select Password Authentication.
• For Simple URL data sources, select No Authentication.
Repository
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Used for SharePoint Online. An optional name of the repository in the data source. Not
applicable to all data source types.
Type
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Specifies the adapter that connects to the external system.
1003
Standard Objects
ExternalDataUserAuth
Usage
Define an external data source to connect to data or content that’s stored outside the Salesforce org. Then create external objects, which
map to the external system’s data and behave similarly to custom objects.
SEE ALSO:
ExternalDataUserAuth
NamedCredential
ExternalDataUserAuth
Stores authentication settings for a Salesforce user to access an external system. The external system must be defined in an external data
source or a named credential that’s configured to use per-user authentication. This object is available in API version 27.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
AuthProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Salesforce ID of the authentication provider, which defines the service that
provides the login process and approves access to the external system.
Only users with the “Customize Application” and “Manage AuthProviders”
permissions can view this field.
This field is available in API version 39.0 and later.
ExternalDataSourceId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Salesforce ID of the external data source or named credential that defines the
external system.
Password
Type
encrypted string
1004
Standard Objects
Field Name
ExternalDataUserAuth
Details
Properties
Create, Nillable, Update
Description
Password portion of the credentials for the Salesforce user to access the external
system.
Protocol
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether to use OAuth, password authentication, or no authentication
when the user accesses the external system.
UserId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
ID of the Salesforce user who’s accessing the external system.
Username
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Username portion of the credentials for the Salesforce user to access the external
system.
Usage
These authentication settings enable a Salesforce user to access an external system. The external system is defined in Salesforce as one
of the following.
• External data source—Provides access to external objects, whose data is stored outside the Salesforce organization.
• Named credential—Enables the user’s actions to trigger authenticated callouts to the endpoint that’s specified in the named
credential.
1005
Standard Objects
FeedAttachment
If you grant users access to the external data source or named credential via permission sets or profiles, those users can manage their
own authentication settings. See “Store Authentication Settings for External Systems” in the Salesforce Help.
SEE ALSO:
ExternalDataSource
NamedCredential
FeedAttachment
Represents an attachment to a feed item, such as a file attachment or a link. Use FeedAttachment to add various attachments to one
feed item. This object is available in API version 36.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
• You can read, create, update, or delete a FeedAttachment only if you have the corresponding access to the associated FeedItem.
• Inline images aren’t creatable, updatable, or deletable through SOAP API.
Fields
Field Name
Details
FeedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated feed entity that contains this attachment. Currently, the
only feed entity supported is FeedItem.
RecordId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the record that this feed attachment contains. For inline images,
RecordId is a ContentVersion ID. For content attachments, RecordId is a
ContentDocument ID.
Title
Type
string
1006
Standard Objects
Field Name
FeedAttachment
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The title of this feed attachment. When Type is Link, Title value is the
label for the attachment link. Otherwise, Title value isn’t used.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The type of this feed attachment. Valid values are:
• Content—A content attachment.
• FeedEntity—A feed entity, for example, a post that is shared. Available
in API version 39 and later in Lightning Experience.
• InlineImage—An inline image. The system creates an inline image
attachment when an image is added to the body of the associated FeedItem.
You can’t add an inline image directly by using FeedAttachment.
• Link—A link.
Value
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The string value of this FeedAttachment. This field is optional. If the feed
attachment is a Link FeedAttachment, the value is the link URL string.
Usage
• This Apex example shows how to add an attachment to a Lead using API version 36.0 and later. First, post a feed item.
//create and insert post
FeedItem post = new FeedItem();
post.Body = 'HelloThere';
post.ParentId = 'ID_OF_LEAD_ENTITY';
post.Title = 'FileName';
insert post;
Then insert the attachment.
//create and associate a content attachment to the post
FeedAttachment feedAttachment = new FeedAttachment();
feedAttachment.FeedEntityId = post.Id;
1007
Standard Objects
FeedComment
feedAttachment.RecordId = 'ID_OF_CONTENT_VERSION';
feedAttachment.Title = 'FileName';
feedAttachment.Type = 'CONTENT';
insert feedAttachment;
• You can only create one link attachment (FeedAttachment of type Link) per feed item.
• If the feed item type is one of the following, you can add content or link feed attachments to a FeedItem.
– AdvancedTextPost
– TextPost
– ContentPost
– LinkPost
– QuestionPost
• When a FeedAttachment is added or removed from a feed item, Salesforce updates the type of the feed item to its most appropriate
value, as follows.
– If all content feed attachments are removed from a feed item of type ContentPost, the type of this feed item is updated to
TextPost.
– Conversely, if a content feed attachment is added to a feed item of type TextPost, the type of this feed item is updated to
ContentPost.
– If all link feed attachments are removed from a feed item of type LinkPost, the type of this feed item is updated to TextPost.
– Conversely, if a link feed attachment is added to a feed item of type TextPost, the type of this feed item is updated to
LinkPost.
– The type of all other feed items, such as QuestionPost or AdvancedTextPost feed items, doesn’t change when any
feed attachments are added or removed.
– If a content feed attachment is added to a feed item of type LinkPost, the feed item type is updated to ContentPost.
– If all content attachments are removed from a feed item of type ContentPost, but there's also a link attachment, the feed
item type is updated to LinkPost.
• Those without administrator privileges can’t retrieve a FeedAttachment by its ID in a SOQL query. They can retrieve attachments by
specifying the associated FeedEntityId, as follows:
SELECT Id FROM FeedAttachment WHERE FeedEntityId = 'some_feedItem_id'
• Alternatively, retrieve attachments by using a SOQL query on FeedItem with a subquery on the FeedAttachments child relationship,
as follows.
SELECT Body, (SELECT RecordId, Title, Type, Value FROM FeedAttachments)
FROM FeedItem
WHERE Id = 'some_feedItem_id'
• FeedAttachment is not a triggerable object. You can access feed attachments in FeedItem update triggers by retrieving them through
a SOQL query. For a trigger example, and to learn about trigger considerations for FeedAttachment, see Triggers for Chatter Objects
in the Apex Developer Guide.
FeedComment
Represents a comment added to a feed by a user. This object is available in API version 18.0 and later.
1008
Standard Objects
FeedComment
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), search(), update(), upsert()
Special Access Rules
Note the following when working with feed comments.
• You must have read access to the feed’s parent type to see a FeedComment record.
• You must have access to the feed to add a comment.
• If the comment is related to a user record, the user can delete the comment. For example, if John Smith makes a comment about
Sasha Jones, Sasha can delete the comment.
• If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available
on CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s
author and creation date. The fields can’t be updated after migration.
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the object associated with the feed and delete permission on the parent feed
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
Fields
Field
Details
CommentBody
Type
textarea
Properties
Create, Filter, Sort, Update
Description
The text in the comment.
CommentType
Type
reference
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of comment:
• ContentComment—an uploaded file on a comment
• TextComment—a direct text entry on a comment
1009
Standard Objects
Field
FeedComment
Details
Before API version 24.0, a text entry was required on a comment. As of version 24.0, a text
entry is optional if the CommentType is ContentComment.
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the feed containing the comment.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the feed CommentBody contains rich text. Set IsRichText to
true if you post a rich text feed comment using the SOAP API. Otherwise, the comment
is rendered as plain text.
Rich text supports the following HTML tags:
• 
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() 1010
Standard Objects
Field
FeedComment
Details
The 1010
Standard Objects
Field
FeedComment
Details
The![]() tag is accessible only through the API and must reference files in Salesforce
similar to this example: tag is accessible only through the API and must reference files in Salesforce
similar to this example: Note: This attribute is available as of API version 38.0. In API version 38.0 and later,
the system replaces special characters in rich text with escaped HTML. In API version
37.0 and prior, all rich text appears as a plain-text representation.
LastEditById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the user who last edited the feed comment.
LastEditDate
Type
datetime
Properties
Create, Filter, Nillable, Sort
Description
The date the feed comment was last edited.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of a record associated with the feed comment. For example, if you are commenting on a
change to a field on Account, ParentId is set to the account ID.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentComment. This field is null
for all comments except ContentComment.
For example, set this field to an existing ContentVersion and post it to a comment as a
FeedComment object of CommentTypeContentComment.
Revision
Type
int
Properties
Create, Filter, Group, Nillable, Sort
1011
Standard Objects
Field
FeedComment
Details
Description
The number of times the comment was revised.
Status
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed comment is published and visible to all who have access to the
parent feed item. To make changes to a comment’s status, the comment’s parent feed item
must be in a published state. This field is available in API version 38.0 and later.
Possible values are:
• Published—The comment is visible to all who have access to the parent feed item.
• PendingReview—The comment is visible to its author and to users who can see
the parent feed item and have “ViewAllData” or “CanApproveFeedPostAndComment”
permission. The comment can be deleted by its author and users who can see the
comment and have "CanApproveFeedPostAndComment" or "ModifyAllData" permission.
If the parent feed item is published, the comment can be edited by its author and users
who can see the comment and have "CanApproveFeedPostAndComment" or
"ModifyAllData" permission. Comment status can be changed from Published to
PendingReview and from PendingReview to Published by users who have
"CanApproveFeedPostAndComment" or "ModifyAllData" permission.
Some actions are blocked when a feed comment is pending review:
– Select as Best—When a feed comment that is marked as best answer becomes
unpublished, it’s removed as the best answer. If the comment is published, its best
answer status is not restored.
– Like and unlike
SystemModstamp
Type
dateTime
Properties
Defaulted on create, Filter
Description
Date and time when a user or automated process (such as a trigger) last modified this record.
SystemModstamp is a read-only system field, available in FeedComment as of API version
37.0.
Usage
• As of API version 23.0 and later, if you have “View All Data” permission, you can query FeedComment records directly without an ID
filter. If you don’t have “View All Data” permission, you can’t query FeedComment records directly, with or without an ID filter.
1012
Standard Objects
FeedItem
For example, the following query returns general information about a feed:
SELECT ID, CreatedDate, CreatedById, CreatedBy.FirstName,
CreatedBy.LastName, ParentId, Parent.Name, Body
FROM FeedItem
WHERE CreatedDate > LAST_MONTH
ORDER BY CreatedDate DESC, Id DESC
• You can search for text in comments using SOSL. For example, the following Java class uses search() to find the string “foo” in
any field of a record:
public void searchSample() {
try {
SearchResult sr = connection.search("find {foo} in all fields " +
"returning feedcomment(Id, FeedItemId, CommentBody)");
// Put the results into an array of SearchRecords
SearchRecord[] records = sr.getSearchRecords();
// Check the length of the returned array of records to see
// if the search found anything
if (records != null && records.length > 0) {
System.out.println("Found " + records.length + " comments: ");
// Display each comment
for (SearchRecord record : records) {
FeedComment comment = (FeedComment) record.getRecord();
System.out.println(comment.getId() + ": " +
comment.getCommentBody());
}
} else {
System.out.println("No records were found for the search.");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
• If you use an Apex trigger to modify the Body of a FeedComment object, all mentions hyperlinks are converted to plain text. The
mentioned users don't get email notifications.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
SEE ALSO:
NewsFeed
UserProfileFeed
FeedItem
FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This object
is available in API version 21.0 and later. This object replaces FeedPost.
1013
Standard Objects
FeedItem
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
update(), upsert()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
Only users with the “Modify All Data” permission can delete a FeedItem of Type TrackedChange.
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
Fields
Field Name
Details
BestCommentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The Id of the comment marked as best answer on a question post.
Body
Type
textarea
Properties
Create, Nillable, Sort, Update on page 72
Description
The content of the FeedItem. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
Tip: See the IsRichText field for a list of HTML tags supported in the
body of rich text posts.
CommentCount
Type
int
1014
Standard Objects
Field Name
FeedItem
Details
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Create, Nillable
Description
Available in API version 35.0 and earlier only. This field is required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Create, Nillable, Sort
Description
Available in API version 35.0 and earlier only. The description of the file specified
in ContentData.
1015
Standard Objects
FeedItem
Field Name
Details
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is required if Type is
ContentPost. The name of the file uploaded to the feed. Setting
ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is the size of the file (in
bytes) uploaded to the feed. This field is read-only and is automatically determined
during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is the MIME type of the
file uploaded to the feed. This field is read-only and is automatically determined
during insert.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for
backward compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of
changes in an FeedItem: changes to tracked fields, text posts, link posts, and
content posts.
HasContent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1016
Standard Objects
Field Name
FeedItem
Details
Description
Indicates whether the feed item has content.
HasFeedEntity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item has a feed entity, for example, a post, as an
attachment. Available in API version 39 and later when sharing a feed entity in
Lightning Experience.
HasLink
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item has a link attached.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the
Recycle Bin (true) or not (false).
IsRichText
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
1017
Standard Objects
Field Name
FeedItem
Details
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: This attribute is available as of API version 38.0. In API version 38.0 and later,
the system replaces special characters in rich text with escaped HTML. In API version
37.0 and prior, all rich text appears as a plain-text representation.
LastEditById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the user who last edited the feed comment.
LastEditDate
Type
datetime
Properties
Create, Filter, Nillable, Sort
Description
The date the feed comment was last edited.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of a record associated with the feed comment. For example, if you are commenting on a
change to a field on Account, ParentId is set to the account ID.
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentComment. This field is null
for all comments except ContentComment.
For example, set this field to an existing ContentVersion and post it to a comment as a
FeedComment object of CommentTypeContentComment.
Revision
Type
int
Properties
Create, Filter, Group, Nillable, Sort
1011
Standard Objects
Field
FeedComment
Details
Description
The number of times the comment was revised.
Status
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed comment is published and visible to all who have access to the
parent feed item. To make changes to a comment’s status, the comment’s parent feed item
must be in a published state. This field is available in API version 38.0 and later.
Possible values are:
• Published—The comment is visible to all who have access to the parent feed item.
• PendingReview—The comment is visible to its author and to users who can see
the parent feed item and have “ViewAllData” or “CanApproveFeedPostAndComment”
permission. The comment can be deleted by its author and users who can see the
comment and have "CanApproveFeedPostAndComment" or "ModifyAllData" permission.
If the parent feed item is published, the comment can be edited by its author and users
who can see the comment and have "CanApproveFeedPostAndComment" or
"ModifyAllData" permission. Comment status can be changed from Published to
PendingReview and from PendingReview to Published by users who have
"CanApproveFeedPostAndComment" or "ModifyAllData" permission.
Some actions are blocked when a feed comment is pending review:
– Select as Best—When a feed comment that is marked as best answer becomes
unpublished, it’s removed as the best answer. If the comment is published, its best
answer status is not restored.
– Like and unlike
SystemModstamp
Type
dateTime
Properties
Defaulted on create, Filter
Description
Date and time when a user or automated process (such as a trigger) last modified this record.
SystemModstamp is a read-only system field, available in FeedComment as of API version
37.0.
Usage
• As of API version 23.0 and later, if you have “View All Data” permission, you can query FeedComment records directly without an ID
filter. If you don’t have “View All Data” permission, you can’t query FeedComment records directly, with or without an ID filter.
1012
Standard Objects
FeedItem
For example, the following query returns general information about a feed:
SELECT ID, CreatedDate, CreatedById, CreatedBy.FirstName,
CreatedBy.LastName, ParentId, Parent.Name, Body
FROM FeedItem
WHERE CreatedDate > LAST_MONTH
ORDER BY CreatedDate DESC, Id DESC
• You can search for text in comments using SOSL. For example, the following Java class uses search() to find the string “foo” in
any field of a record:
public void searchSample() {
try {
SearchResult sr = connection.search("find {foo} in all fields " +
"returning feedcomment(Id, FeedItemId, CommentBody)");
// Put the results into an array of SearchRecords
SearchRecord[] records = sr.getSearchRecords();
// Check the length of the returned array of records to see
// if the search found anything
if (records != null && records.length > 0) {
System.out.println("Found " + records.length + " comments: ");
// Display each comment
for (SearchRecord record : records) {
FeedComment comment = (FeedComment) record.getRecord();
System.out.println(comment.getId() + ": " +
comment.getCommentBody());
}
} else {
System.out.println("No records were found for the search.");
}
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
• If you use an Apex trigger to modify the Body of a FeedComment object, all mentions hyperlinks are converted to plain text. The
mentioned users don't get email notifications.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
SEE ALSO:
NewsFeed
UserProfileFeed
FeedItem
FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This object
is available in API version 21.0 and later. This object replaces FeedPost.
1013
Standard Objects
FeedItem
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
update(), upsert()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
Only users with the “Modify All Data” permission can delete a FeedItem of Type TrackedChange.
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
Fields
Field Name
Details
BestCommentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The Id of the comment marked as best answer on a question post.
Body
Type
textarea
Properties
Create, Nillable, Sort, Update on page 72
Description
The content of the FeedItem. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
Tip: See the IsRichText field for a list of HTML tags supported in the
body of rich text posts.
CommentCount
Type
int
1014
Standard Objects
Field Name
FeedItem
Details
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the
CreatedBy field contains the ID of the system administrator. The
ConnectionId contains the ID of the PartnerNetworkConnection. Available
if Salesforce to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Create, Nillable
Description
Available in API version 35.0 and earlier only. This field is required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Create, Nillable, Sort
Description
Available in API version 35.0 and earlier only. The description of the file specified
in ContentData.
1015
Standard Objects
FeedItem
Field Name
Details
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is required if Type is
ContentPost. The name of the file uploaded to the feed. Setting
ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is the size of the file (in
bytes) uploaded to the feed. This field is read-only and is automatically determined
during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 35.0 and earlier only. This field is the MIME type of the
file uploaded to the feed. This field is read-only and is automatically determined
during insert.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for
backward compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of
changes in an FeedItem: changes to tracked fields, text posts, link posts, and
content posts.
HasContent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1016
Standard Objects
Field Name
FeedItem
Details
Description
Indicates whether the feed item has content.
HasFeedEntity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item has a feed entity, for example, a post, as an
attachment. Available in API version 39 and later when sharing a feed entity in
Lightning Experience.
HasLink
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item has a link attached.
InsertedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the
Recycle Bin (true) or not (false).
IsRichText
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
1017
Standard Objects
Field Name
FeedItem
Details
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastEditById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the user who last edited the feed item.
LastEditDate
Type
datetime
Properties
Create, Filter, Nillable, Sort
Description
The date the feed item was last edited.
LikeCount
Type
int
1018
Standard Objects
Field Name
FeedItem
Details
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the object type to which the FeedItem object is related. For example, set
this field to a UserId to post to someone’s profile feed, or an AccountId
to post to a specific account.
1019
Standard Objects
FeedItem
Field Name
Details
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com
thanks posts, it’s the ID of the WorkThanks object associated with a
RypplePost. This field is typically null for all posts except ContentPost
and RypplePost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of Type ContentPost.
Revision
Type
int
Properties
Create, Filter, Group, Nillable, Sort
Description
The revision number of the feed item.
Status
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is published and visible to all who have access
to the feed. This field is available in API version 37.0 and later.
Possible values are:
• Published—The feed item is visible to all who have access to the feed.
• PendingReview—The feed item is visible to its author and to users who
can see the item and have “ViewAllData” or
“CanApproveFeedPostAndComment” permission. The feed item can be
deleted and edited by its author and users who can see the item and have
"CanApproveFeedPostAndComment" or "ModifyAllData" permission.
Some actions are blocked when a feed item is pending review:
– Comment
– Like/unlike
– Bookmark
– Share
Title
Type
string
1020
Standard Objects
Field Name
FeedItem
Details
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is
the URL and this field is the link name. The Title field can be updated on posts
of Type QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and
TextPost, don’t create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
1021
Standard Objects
Field Name
FeedItem
Details
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
1022
Standard Objects
Field Name
FeedItem
Details
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
• This Apex example shows how to add an attachment to a Lead using API version 36.0 and later. First, post a feed item.
//create and insert post
FeedItem post = new FeedItem();
post.Body = 'HelloThere';
post.ParentId = 'ID_OF_LEAD_ENTITY';
post.Title = 'FileName';
insert post;
Then insert the attachment.
//create and associate a content attachment to the post
FeedAttachment feedAttachment = new FeedAttachment();
feedAttachment.FeedEntityId = post.Id;
feedAttachment.RecordId = 'ID_OF_CONTENT_VERSION';
feedAttachment.Title = 'FileName';
feedAttachment.Type = 'CONTENT';
insert feedAttachment;
• If you are using API version 23.0 or later and have “View All Data” permission, you can directly query for a FeedItem. The following
example returns the 20 most recent feed items.
SELECT ID, CreatedDate, CreatedById, CreatedBy.FirstName, CreatedBy.LastName, ParentId,
Parent.Name, Body,
(SELECT ID, FieldName, OldValue, NewValue FROM FeedTrackedChanges ORDER BY ID DESC)
FROM FeedItem
WHERE CreatedDate > LAST_MONTH
ORDER BY CreatedDate DESC
• If you are using an earlier API version than version 23.0, query FeedItem objects through a feed (such as AccountFeed or
OpportunityFeed). The following example returns all feed items for a given account, ordered by date descending:
SELECT Id, Type, FeedItem.Body
FROM AccountFeed
WHERE ParentId = AccountId ORDER BY CreatedDate DESC
Note: Provide the ParentId for API version 22.0 and earlier.
1023
Standard Objects
FeedLike
• A FeedItem of type UserStatus is automatically created when a user adds a post to update the status. You can’t explicitly create
a FeedItem of type UserStatus.
• The FeedItem object doesn’t support aggregate functions in queries.
• If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available
on CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s
author and creation date. The fields can’t be updated after migration.
• The size limit for an attachment on a profile or news feed is 25 MB.
• The size limit for an attachment on a record feed is 5 MB.
• You can’t use the content fields to update or delete the content.
• You can’t filter or update the content fields.
• Deleting a FeedItem via the API also deletes the associated content. Likewise, undeleting a FeedItem restores associated content.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
• After uploading to a feed, it is possible for an attachment or document to be deleted, marked private, or hidden by sharing rules. In
this case, all content fields in a FeedItem object appear as null in a SOQL query.
• You can’t explicitly create or delete a FeedTrackedChange record.
• If you insert a FeedItem or FeedComment of Type ContentPost on a User or Group to create a file, the NetworkScope
field value of the FeedItem is passed to the file.
• If you use an Apex trigger to modify the Body of a FeedItem object, all mentions hyperlinks are converted to plain text. The
mentioned users don’t get email notifications.
• If you insert rich text into the feed item body, make sure that the case of the opening and closing HTML tags matches. For example,
This is bold text generates an error.
• To check file sharing with Apex triggers, write triggers on ContentDocumentLink instead of FeedItem. For a ContentDocumentLink
trigger example, see ContentDocumentLink.
• In API version 36.0 and later, use FeedAttachment to attach one or more content items to a FeedItem. As a result of multiple
attachment support through FeedAttachment, all fields related to content attachments have been removed. These fields are:
ContentData, ContentDescription, ContentFileName, ContentSize, and ContentType.
FeedLike
Indicates that a user has liked a feed item. This object is available in API version 21.0 and later.
FeedLike records represent likes on posts and not likes on comments. Likes on comments can’t be queried via the API. A FeedLike is a
child object of an associated FeedItem, FeedTrackedChange, or object feed, such as AccountFeed.
Supported Calls
create(), delete(), describeSObjects()
Special Access Rules
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
1024
Standard Objects
FeedPollChoice
Fields
Field Name
Details
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the feed item that the user liked.
FeedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The Id of a feed item or feed comment the user liked.
If the user liked a comment, FeedEntityId is set to the ID of the comment. If the user liked a
feed item, FeedEntityId is set to the ID of the feed item.
FeedEntityId is an optional field. The default value is the ID of the feed item.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
Usage
You can't query FeedLike records directly. They can only be queried via the entity feed, such as AccountFeed.
FeedLike records represent likes on posts and not likes on comments. Likes on comments can’t be queried via the API.
FeedPollChoice
Shows the choices for a poll posted in the feed. This object is available in API version 29.0 and later.
Supported Calls
query(), retrieve()
1025
Standard Objects
FeedPollChoice
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
Fields
Field Name
Details
ChoiceBody
Type
string
Properties
Group
Description
A choice in the poll.
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the feed item for the poll.
Position
Type
int
Properties
Group, Sort
Description
Shows the position of the poll choice.
Usage
Use this object to query all of the choices associated with a particular poll. To view how people voted on the poll, see the FeedPollVote
object.
1026
Standard Objects
FeedPollVote
FeedPollVote
Shows how users voted on a poll posted in the feed. This object is available in API version 29.0 and later.
Supported Calls
query(), retrieve()
Fields
Field Name
Details
ChoiceId
Type
reference
Properties
Filter, Group
Description
Indicates which choice a user selected on a poll posted in a feed.
FeedItemId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the feed item for the poll.
Usage
Use this object to query how users voted on a particular poll.
FeedPost
FeedPost represents the following types of changes in a record feed, such as AccountFeed: text posts, link posts, and content posts. This
object is available in API version 18.0 through 21.0. FeedPost is no longer available in later versions. Starting with API version 21.0, use
FeedItem to represent text posts, link posts, and content posts in feeds.
Supported Calls
create(), delete(), describeSObjects(), search()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
1027
Standard Objects
FeedPost
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Only users with the “Modify All Data” permission can delete a FeedItem of Type TrackedChange.
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
Fields
Field
Details
Body
Type
string
Properties
Create, Filter, Nillable, Sort
Description
The content of the FeedPost. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
ContentData
Type
base64
Properties
Create, Nillable
Description
This field is required if Type is ContentPost. Encoded file data in any format,
and can’t be 0 bytes. Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
string
Properties
Create, Nillable, Sort
Description
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
1028
Standard Objects
Field
FeedPost
Details
Description
This field is required if Type is ContentPost. The name of the file uploaded to
the feed. Setting ContentFileName automatically sets Type to
ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
This field is the size of the file (in bytes) uploaded to the feed. This field is read-only
and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
This field is the MIME type of the file uploaded to the feed. This field is read-only and
is automatically determined during insert.
FeedItemId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the feed containing the FeedPost.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1029
Standard Objects
Field
FeedPost
Details
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not
(false). This field is a standard system field.
LinkUrl
Type
url
Properties
Create, Filter, Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the object type to which the FeedPost is related. For example, set this field to a
UserId to post to someone’s profile feed, or an AccountId to post to a specific
account.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
The title of the FeedPost. When the Type is LinkPost, the Body is the URL and
the Title is the label for the link.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
The type of FeedPost:
• UserStatus—automatically generated when a user updates their status
• TrackedChange—ignore
• TextPost—a direct text entry on a feed
• LinkPost—a URL posting on a feed
• ContentPost—an uploaded file on a feed
Note: If you set Type to ContentPost, you must specify
ContentData and ContentFileName.
1030
Standard Objects
FeedRevision
Usage
• You can’t directly query for a FeedPost. FeedPosts are always associated with a feed item, so you can query for them through the
feeds. The following example returns all feed items for a given account, ordered by date descending:
SELECT Id, Type, FeedPost.Body
FROM AccountFeed
WHERE ParentId = AccountId ORDER BY CreatedDate DESC
• A FeedPost of type UserStatus is automatically created when a user adds a post to update the current status. You can’t explicitly
create a FeedPost of type UserStatus.
• The size limit for an attachment on a profile, news, or record feed is 2 GB.
• You can’t use the content fields to update or delete the content.
• You can’t filter or update the content fields.
• Deleting a FeedPost via the API also deletes the associated content and FeedPost objects. Likewise, undeleting a FeedPost restores
associated content and FeedPost objects.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
• After uploading to a feed, it is possible for an attachment or document to be deleted, marked private, or hidden by sharing rules. In
this case, all content fields in FeedPost appear as null in a SOQL query.
• You can’t explicitly create or delete a FeedTrackedChange record.
FeedRevision
Holds the revision history of a specific feed item or comment, including a list of attributes that changed for each revision. This object is
available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Action
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Holds the type of modification to the underlying feed item or comment attribute.
Action can have the value Changed.
EditedAttribute
Type
picklist
1031
Standard Objects
Field Name
FeedRevision
Details
Properties
Filter, Group, Nillable, Sort
Description
Identifies the part of the feed item or comment which was modified. A single
revision can have many edited attributes.
FeedEntityId
Type
reference
Properties
Filter, Group, Sort
Description
Identifies the modified feed item or comment.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not
(false). This field is a standard system field.
IsValueRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LastEditById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the user who last edited the feed item.
LastEditDate
Type
datetime
Properties
Create, Filter, Nillable, Sort
Description
The date the feed item was last edited.
LikeCount
Type
int
1018
Standard Objects
Field Name
FeedItem
Details
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Create, Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the object type to which the FeedItem object is related. For example, set
this field to a UserId to post to someone’s profile feed, or an AccountId
to post to a specific account.
1019
Standard Objects
FeedItem
Field Name
Details
RelatedRecordId
Type
reference
Properties
Create, Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. For Work.com
thanks posts, it’s the ID of the WorkThanks object associated with a
RypplePost. This field is typically null for all posts except ContentPost
and RypplePost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of Type ContentPost.
Revision
Type
int
Properties
Create, Filter, Group, Nillable, Sort
Description
The revision number of the feed item.
Status
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is published and visible to all who have access
to the feed. This field is available in API version 37.0 and later.
Possible values are:
• Published—The feed item is visible to all who have access to the feed.
• PendingReview—The feed item is visible to its author and to users who
can see the item and have “ViewAllData” or
“CanApproveFeedPostAndComment” permission. The feed item can be
deleted and edited by its author and users who can see the item and have
"CanApproveFeedPostAndComment" or "ModifyAllData" permission.
Some actions are blocked when a feed item is pending review:
– Comment
– Like/unlike
– Bookmark
– Share
Title
Type
string
1020
Standard Objects
Field Name
FeedItem
Details
Properties
Create, Group, Nillable, Sort, Update
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is
the URL and this field is the link name. The Title field can be updated on posts
of Type QuestionPost.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem. Except for ContentPost, LinkPost, and
TextPost, don’t create FeedItem types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
1021
Standard Objects
Field Name
FeedItem
Details
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
1022
Standard Objects
Field Name
FeedItem
Details
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
• This Apex example shows how to add an attachment to a Lead using API version 36.0 and later. First, post a feed item.
//create and insert post
FeedItem post = new FeedItem();
post.Body = 'HelloThere';
post.ParentId = 'ID_OF_LEAD_ENTITY';
post.Title = 'FileName';
insert post;
Then insert the attachment.
//create and associate a content attachment to the post
FeedAttachment feedAttachment = new FeedAttachment();
feedAttachment.FeedEntityId = post.Id;
feedAttachment.RecordId = 'ID_OF_CONTENT_VERSION';
feedAttachment.Title = 'FileName';
feedAttachment.Type = 'CONTENT';
insert feedAttachment;
• If you are using API version 23.0 or later and have “View All Data” permission, you can directly query for a FeedItem. The following
example returns the 20 most recent feed items.
SELECT ID, CreatedDate, CreatedById, CreatedBy.FirstName, CreatedBy.LastName, ParentId,
Parent.Name, Body,
(SELECT ID, FieldName, OldValue, NewValue FROM FeedTrackedChanges ORDER BY ID DESC)
FROM FeedItem
WHERE CreatedDate > LAST_MONTH
ORDER BY CreatedDate DESC
• If you are using an earlier API version than version 23.0, query FeedItem objects through a feed (such as AccountFeed or
OpportunityFeed). The following example returns all feed items for a given account, ordered by date descending:
SELECT Id, Type, FeedItem.Body
FROM AccountFeed
WHERE ParentId = AccountId ORDER BY CreatedDate DESC
Note: Provide the ParentId for API version 22.0 and earlier.
1023
Standard Objects
FeedLike
• A FeedItem of type UserStatus is automatically created when a user adds a post to update the status. You can’t explicitly create
a FeedItem of type UserStatus.
• The FeedItem object doesn’t support aggregate functions in queries.
• If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available
on CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s
author and creation date. The fields can’t be updated after migration.
• The size limit for an attachment on a profile or news feed is 25 MB.
• The size limit for an attachment on a record feed is 5 MB.
• You can’t use the content fields to update or delete the content.
• You can’t filter or update the content fields.
• Deleting a FeedItem via the API also deletes the associated content. Likewise, undeleting a FeedItem restores associated content.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
• After uploading to a feed, it is possible for an attachment or document to be deleted, marked private, or hidden by sharing rules. In
this case, all content fields in a FeedItem object appear as null in a SOQL query.
• You can’t explicitly create or delete a FeedTrackedChange record.
• If you insert a FeedItem or FeedComment of Type ContentPost on a User or Group to create a file, the NetworkScope
field value of the FeedItem is passed to the file.
• If you use an Apex trigger to modify the Body of a FeedItem object, all mentions hyperlinks are converted to plain text. The
mentioned users don’t get email notifications.
• If you insert rich text into the feed item body, make sure that the case of the opening and closing HTML tags matches. For example,
This is bold text generates an error.
• To check file sharing with Apex triggers, write triggers on ContentDocumentLink instead of FeedItem. For a ContentDocumentLink
trigger example, see ContentDocumentLink.
• In API version 36.0 and later, use FeedAttachment to attach one or more content items to a FeedItem. As a result of multiple
attachment support through FeedAttachment, all fields related to content attachments have been removed. These fields are:
ContentData, ContentDescription, ContentFileName, ContentSize, and ContentType.
FeedLike
Indicates that a user has liked a feed item. This object is available in API version 21.0 and later.
FeedLike records represent likes on posts and not likes on comments. Likes on comments can’t be queried via the API. A FeedLike is a
child object of an associated FeedItem, FeedTrackedChange, or object feed, such as AccountFeed.
Supported Calls
create(), delete(), describeSObjects()
Special Access Rules
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
1024
Standard Objects
FeedPollChoice
Fields
Field Name
Details
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the feed item that the user liked.
FeedEntityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The Id of a feed item or feed comment the user liked.
If the user liked a comment, FeedEntityId is set to the ID of the comment. If the user liked a
feed item, FeedEntityId is set to the ID of the feed item.
FeedEntityId is an optional field. The default value is the ID of the feed item.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
Usage
You can't query FeedLike records directly. They can only be queried via the entity feed, such as AccountFeed.
FeedLike records represent likes on posts and not likes on comments. Likes on comments can’t be queried via the API.
FeedPollChoice
Shows the choices for a poll posted in the feed. This object is available in API version 29.0 and later.
Supported Calls
query(), retrieve()
1025
Standard Objects
FeedPollChoice
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
• “Manage Unlisted Groups”
Only users with this permission can delete items in unlisted groups.
Fields
Field Name
Details
ChoiceBody
Type
string
Properties
Group
Description
A choice in the poll.
FeedItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the feed item for the poll.
Position
Type
int
Properties
Group, Sort
Description
Shows the position of the poll choice.
Usage
Use this object to query all of the choices associated with a particular poll. To view how people voted on the poll, see the FeedPollVote
object.
1026
Standard Objects
FeedPollVote
FeedPollVote
Shows how users voted on a poll posted in the feed. This object is available in API version 29.0 and later.
Supported Calls
query(), retrieve()
Fields
Field Name
Details
ChoiceId
Type
reference
Properties
Filter, Group
Description
Indicates which choice a user selected on a poll posted in a feed.
FeedItemId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the feed item for the poll.
Usage
Use this object to query how users voted on a particular poll.
FeedPost
FeedPost represents the following types of changes in a record feed, such as AccountFeed: text posts, link posts, and content posts. This
object is available in API version 18.0 through 21.0. FeedPost is no longer available in later versions. Starting with API version 21.0, use
FeedItem to represent text posts, link posts, and content posts in feeds.
Supported Calls
create(), delete(), describeSObjects(), search()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
1027
Standard Objects
FeedPost
• “Modify All Data”
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Only users with the “Modify All Data” permission can delete a FeedItem of Type TrackedChange.
If the logged-in user has the “Insert System Field Values for Chatter Feeds” user permission, the create field property is available on
CreatedBy and CreatedDate system fields. During migration, the logged-in user can set these fields to the original post’s author
and creation date. The fields can’t be updated after migration.
Fields
Field
Details
Body
Type
string
Properties
Create, Filter, Nillable, Sort
Description
The content of the FeedPost. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in
the feed.
ContentData
Type
base64
Properties
Create, Nillable
Description
This field is required if Type is ContentPost. Encoded file data in any format,
and can’t be 0 bytes. Setting this field automatically sets Type to ContentPost.
ContentDescription
Type
string
Properties
Create, Nillable, Sort
Description
The description of the file specified in ContentData.
ContentFileName
Type
string
Properties
Create, Group, Nillable, Sort
1028
Standard Objects
Field
FeedPost
Details
Description
This field is required if Type is ContentPost. The name of the file uploaded to
the feed. Setting ContentFileName automatically sets Type to
ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
This field is the size of the file (in bytes) uploaded to the feed. This field is read-only
and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
This field is the MIME type of the file uploaded to the feed. This field is read-only and
is automatically determined during insert.
FeedItemId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the feed containing the FeedPost.
InsertedById
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1029
Standard Objects
Field
FeedPost
Details
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not
(false). This field is a standard system field.
LinkUrl
Type
url
Properties
Create, Filter, Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the object type to which the FeedPost is related. For example, set this field to a
UserId to post to someone’s profile feed, or an AccountId to post to a specific
account.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
The title of the FeedPost. When the Type is LinkPost, the Body is the URL and
the Title is the label for the link.
Type
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
The type of FeedPost:
• UserStatus—automatically generated when a user updates their status
• TrackedChange—ignore
• TextPost—a direct text entry on a feed
• LinkPost—a URL posting on a feed
• ContentPost—an uploaded file on a feed
Note: If you set Type to ContentPost, you must specify
ContentData and ContentFileName.
1030
Standard Objects
FeedRevision
Usage
• You can’t directly query for a FeedPost. FeedPosts are always associated with a feed item, so you can query for them through the
feeds. The following example returns all feed items for a given account, ordered by date descending:
SELECT Id, Type, FeedPost.Body
FROM AccountFeed
WHERE ParentId = AccountId ORDER BY CreatedDate DESC
• A FeedPost of type UserStatus is automatically created when a user adds a post to update the current status. You can’t explicitly
create a FeedPost of type UserStatus.
• The size limit for an attachment on a profile, news, or record feed is 2 GB.
• You can’t use the content fields to update or delete the content.
• You can’t filter or update the content fields.
• Deleting a FeedPost via the API also deletes the associated content and FeedPost objects. Likewise, undeleting a FeedPost restores
associated content and FeedPost objects.
Note: This object is hard deleted. It isn’t sent to the Recycle Bin.
• After uploading to a feed, it is possible for an attachment or document to be deleted, marked private, or hidden by sharing rules. In
this case, all content fields in FeedPost appear as null in a SOQL query.
• You can’t explicitly create or delete a FeedTrackedChange record.
FeedRevision
Holds the revision history of a specific feed item or comment, including a list of attributes that changed for each revision. This object is
available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Action
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Holds the type of modification to the underlying feed item or comment attribute.
Action can have the value Changed.
EditedAttribute
Type
picklist
1031
Standard Objects
Field Name
FeedRevision
Details
Properties
Filter, Group, Nillable, Sort
Description
Identifies the part of the feed item or comment which was modified. A single
revision can have many edited attributes.
FeedEntityId
Type
reference
Properties
Filter, Group, Sort
Description
Identifies the modified feed item or comment.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not
(false). This field is a standard system field.
IsValueRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
1032
Standard Objects
Field Name
FeedRevision
Details
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
OriginNetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the community in which a user modified the feed item or comment.
This field is only available, if Salesforce Communities is enabled for your
organization.
Revision
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The revision number of the feed item or comment.
Value
Type
textarea
Properties
Nillable
Description
Identifies the value of the EditedAttribute field before the update.
Usage
This object tracks the changes made to a feed item or feed comment and stores a list of attributes that changed for each revision.
• To query the FeedRevision object, users need the “View All Data” permission or supply a WHERE clause on the FeedEntityId.
1033
Standard Objects
FeedTrackedChange
FeedTrackedChange
Represents an individual field change or set of field changes. A FeedTrackedChange is a child object of a record feed, such as AccountFeed
This object is available in API version 18.0 and later..
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
CurrencyIsoCode
Type
picklist
Properties
Defaulted on create, Group, Restricted picklist, Sort
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
currency code for the field, if FieldName is a currency field.
FeedItemId
Type
reference
Properties
Group, Sort, Filter
Description
ID of the parent feed that tracks the field change.
FieldName
Type
string
Properties
Group, Sort
Description
The name of the field that was changed.
Note: This field also tracks other events that are not related to an individual field for
a parent feed. These events occur as the parent record advances through its pipeline.
For example, a value of leadConverted indicates that a lead has been converted
to an opportunity. For a full list of values, see Tracking of Special Events.
NewValue
Type
anyType
Properties
Nillable, Sort
1034
Standard Objects
Field
FeedTrackedChange
Details
Description
The new value of the field that was changed.
OldCurrencyIsoCode
Type
string
Properties
Group, Nillable, Sort
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
currency code for the OldValue field, if FieldName is a currency field.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The last value of the field before it was changed.
Usage
A user can subscribe to a record or to another user. Changes to the record and updates from the users are displayed in the Chatter feed
on the user's home page, which is a useful way to stay up-to-date with other users and with changes made to records in Salesforce.
Feeds are available in API version 18.0 and later.
If you move a custom field to the Recycle Bin, all FeedTrackedChange records that track historical changes to the custom field are
automatically deleted and are not restored if the custom-field is undeleted.
The following sections outline the difference between standard feeds and custom feeds.
Standard Feeds
A standard feed is a record feed, such as AccountFeed. FeedTrackedChange records for standard feeds can only be queried via the parent
feed object.
Note the following when working with standard feed items:
• Feed items for standard feeds are read only in the API.
• A FeedTrackedChange record is visible when you have read access on the record feed, and when the field in the FeedTrackedChange
is visible in the field-level security settings.
Custom Feeds
If you want more control over the information provided in a record feed, such as AccountFeed, you can create a custom feed. A custom
feed can replace or augment an existing record feed. For example, you might want to:
1035
Standard Objects
FeedTrackedChange
• Disable the standard account record feed and use an Apex trigger to generate FeedTrackedChange records for the events that you
want to track in the feed instead.
• Augment the standard contact record feed by writing an API client that inserts feed items for events that are not tracked in the
standard feed.
Tracking of Special Events
The FieldName field also tracks other events that are not related to an individual field for a parent feed. These events occur as the
parent record advances through its pipeline. For example, a value of leadConverted indicates that a lead has been converted to
an opportunity.
Valid values for the FieldName field for multiple objects:
• created
• ownerAccepted
• ownerAssignment
Additional valid values for the FieldName field for individual objects:
Account
• accountCreatedFromLead
• accountMerged
• accountUpdatedByLead
• personAccountUpdatedByLead
Case
• closed
• ownerEscalated
Contact
• contactCreatedFromLead
• contactMerged
• contactUpdatedByLead
Contract
• contractActivation
• contractApproval
• contractConversion
• contractExpiration
• contractTermination
Lead
• leadConverted
• leadMerged
1036
Standard Objects
FieldHistoryArchive
Opportunity
• opportunityCreatedFromLead
SEE ALSO:
NewsFeed
UserProfileFeed
FieldHistoryArchive
Represents field history values for all objects that retain field history. FieldHistoryArchive is a BigObject, available only to users
with the “Retain Field History” permission. This object is available in API version 29.0 and later.
Each instance of the FieldHistoryArchive object represents a single change in the value of a field. FieldHistoryArchive
stores history for both standard and custom fields.
The Field field returns the name of the field unless the parent field or object is deleted, in which case it returns the field ID. You can
use the ID to retrieve the old field and object name from the FieldNameAfterArchival and ParentNameAfterArchival
fields, respectively.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
ArchiveFieldName
Type
string
Properties
Nillable
Description
The name of the field at the time the data was archived. If the field name changed,
the name is sometimes not the same for all records related to a single field.
ArchiveParentName
Type
string
Properties
Nillable
Description
The name of the parent object at the time the data was archived. If the object
name changed, the name is sometimes not the same for all records related to a
single field.
1037
Standard Objects
FieldHistoryArchive
Field Name
Details
ArchiveParentType
Type
string
Properties
Nillable
Description
The type of the field at the time the data was archived. If the field type changed,
the type is sometimes not the same for all records related to a single field.
ArchiveTimestamp
Type
dateTime
Properties
Nillable
Description
The date and time at which the data was archived.
CreatedById
Type
reference
Properties
Nillable
Description
The user ID of the user who created the original record.
CreatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The date and time at which the original record was created.
Field
Type
picklist
Properties
Filter, Nillable, Restricted picklist
Description
The name of the field that was changed. If the field is deleted from the parent
object, the Field field contains the field ID instead.
FieldHistoryType
Type
picklist
Properties
Nillable, Sort, Restricted picklist
1038
Standard Objects
Field Name
FieldHistoryArchive
Details
Description
The name of the object that contains the field history (for example, Account).
Id
Type
ID
Properties
Defaulted on create, Filter, idLookup
Description
The ID of the archived record. It’s useful to have a field’s ID for fields that you’ve
deleted. (Field names aren’t retained in history when you delete fields from
Salesforce.)
NewValue
Type
anyType
Properties
Nillable
Description
The new value of the modified field.
OldValue
Type
anyType
Properties
Nillable
Description
The previous value of the modified field.
ParentId
Type
reference
Properties
Filter, Nillable, Sort
Description
The ID of the object that contains the field (the parent object).
Usage
When sorting fields, order them as follows:
1. FieldHistoryType ASC
2. ParentID ASC
3. CreatedDate DESC
1039
Standard Objects
FieldPermissions
FieldPermissions
Represents the enabled field permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
To grant a user access to a field, associate a FieldPermissions record with a PermissionSet that’s assigned to a user. FieldPermissions
records are only supported in PermissionSet, not in Profile.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Field
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The field’s API name. This name must be prefixed with the SobjectType. For example,
Merchandise__c.Description__c
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The Id of the field’s parent PermissionSet.
PermissionsEdit
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, users assigned to the parent PermissionSet can edit this field. Requires
PermissionsRead for the same field to be true.
PermissionsRead
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
1040
Standard Objects
Field Name
FieldPermissions
Details
Description
If true, users assigned to the parent PermissionSet can view this field. A FieldPermissions
record must have at minimum PermissionsRead set to true, or it will be deleted.
SobjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object’s API name. For example, Merchandise__c.
Usage
FieldPermissions work similarly to ObjectPermissions. However, FieldPermissions includes a Field attribute to return the name of the
field.
For example, the following query returns all FieldPermissions records that have at least the “Read” permission. The results includes the
field, object, and permission set names.
SELECT SobjectType, Field, PermissionsRead, Parent.Name
FROM FieldPermissions
WHERE PermissionsRead = True
Include the field’s parent object when querying FieldPermissions. For example, to find all rows that match the Account object’s Type
field, create the following query:
SELECT Id, SobjectType, Field
FROM FieldPermissions
WHERE Field = 'Account.Type' AND SobjectType = 'Account'
Both SobjectType and Field must be included in the SELECT line of the query. You must also provide the full API name of
the field in the form of SobjectType.Field when querying for a field.
Note: When using the FieldPermission object to download records, depending on the SOQL query you use, you might not receive
all expected records. Results might also appear incomplete. However, all records do download; fields that don't support field
security and rows for entities not visible to the org. are hidden.
Special Properties for Field Permissions
The auto-number and formula fields have special rules for how field permissions work. Both have FieldPermissions records, but inserting
and updating is limited to PermissionsRead. PermissionsEdit isn’t allowed for either field type, since these fields must be
read-only for users.
The following field types don’t return a FieldPermissions record because they are assumed to always be readable.
• Id
• CreatedById
• CreatedDate
1041
Standard Objects
FieldPermissions
• IsDeleted
• LastModifiedById
• LastModifiedDate
• SystemModStamp
The following field types don’t return a FieldPermissions record because they are assumed to always be readable and writable.
• OwnerId
• Master-detail custom (relationship) fields
• Universally required custom fields
As a result, the following query returns no records, even though users do have some access to some of the fields.
SELECT Field, SobjectType, PermissionsRead
FROM FieldPermissions
WHERE Field='Id'
To determine if a field can return a FieldPermissions record, you can call a describeSObject() on the field. For example,
describeSObject('Merchandise__c'), returns all the properties of the Merchandise custom object, including field properties.
If you’re using a field whose permissionable property is false (such as any of the field types listed in this section), you can’t
query, insert, update, or delete any field permissions records, because none exist.
Working with Custom Activity Fields
While tasks and events are considered separate objects, they share a common set of activity custom fields. As a result, when a custom
task field is created, a custom event field is also created, and vice versa. You can display the custom field on the event layout, task layout,
or both event and task layouts.
Although custom activity fields are shared between tasks and events, you’ll see separate FieldPermissions records for the task and event.
However, changes made to one field permission record are automatically made to the other. For example, if you create a custom activity
field, assign field permissions to it in a permission set, and run the following query, the query will return two records with the same
permission value.
SELECT Field, Id, ParentId, PermissionsEdit, PermissionsRead, SobjectType
FROM FieldPermissions
WHERE SobjectType = 'event' OR SobjectType ='task'
If you then update one of the records with a different set of field permission values and run the query again, the same permission values
for both records are returned.
Nesting Field Permissions
You can nest FieldPermissions in a PermissionSet query. For example, the following returns any permission sets where “Edit Read Only
Fields” is true. Additionally, the result set will include both the “Read” and “Edit” field permission on the Merchandise object. This is
done by nesting the SOQL with a field permission query using the relationship name for field permissions: FieldPerms.
SELECT PermissionsEditReadonlyFields,
(SELECT SobjectType, Field, PermissionsRead, PermissionsEdit
FROM FieldPerms
WHERE SobjectType = 'Merchandise__c')
FROM PermissionSet
WHERE PermissionsEditReadonlyFields = true
1042
Standard Objects
FiscalYearSettings
As a result, it’s possible to traverse the relationship between the PermissionSet and any child related objects (in this case, FieldPermissions).
You can do this from the PermissionSet object by using the child relationship (ObjectPerms, FieldPerms, and so on) or from
the child object by referencing the PermissionSet with Parent.permission_set_attribute.
It’s important to consider when to use a conditional WHERE statement to restrict the result set. To query based on an attribute on the
permission set object, nest the SOQL with the child relationship. However, to query based on an attribute on the child object, you must
reference the permission set parent attribute in your query.
The following two queries return the same columns with different results, based on whether you use the child relationship or parent
notation.
SELECT PermissionsEditReadonlyFields,
(SELECT SobjectType, Field, PermissionsRead, PermissionsEdit
FROM FieldPerms
WHERE SobjectType = 'Merchandise__c')
FROM PermissionSet
WHERE PermissionsEditReadonlyFields = true
versus:
SELECT SobjectType, Field, PermissionsRead, PermissionsEdit, Parent.Name,
Parent.PermissionsEditReadonlyFields
FROM FieldPermissions
WHERE SObjectType='Merchandise__c'
SEE ALSO:
PermissionSet
ObjectPermissions
FiscalYearSettings
Settings to define a custom or standard fiscal year for your organization. This object has a parent-child relationship with the Period object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
Description
Type
string
Properties
Filter, Group, Nillable, Sort
1043
Standard Objects
Field
FiscalYearSettings
Details
Description
Description of the setting.
EndDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
End date of the fiscal year.
IsStandardYear
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the fiscal year is a standard calendar year (true) or a custom fiscal year
(false).
Name
Type
string
Properties
Filter, Group, Sort
Description
A name for the fiscal year. Limit: 80 characters.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the associated fiscal period.
PeriodLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for fiscal periods.
PeriodPrefix
Type
picklist
1044
Standard Objects
Field
FiscalYearSettings
Details
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The prefix of fiscal periods. For example, if p is the prefix, then the first period is “P1.”
QuarterLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for fiscal quarters.
QuarterPrefix
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The prefix of fiscal quarters. For example, if “Q” is the prefix, then the fourth quarter would
be “Q4.”
StartDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Start date of the fiscal year.
WeekLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for weeks.
WeekStartDay
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The name of the day that starts the week, for example Monday or Sunday
1045
Standard Objects
FlexQueueItem
Field
Details
YearType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates one of two types of fiscal years, Standard or Custom. Standard denotes the standard
Gregorian calendar, while Custom means a fiscal year with a custom structure.
SEE ALSO:
Period
Object Basics
FlexQueueItem
Represents an asynchronous Apex job in the Apex flex queue. Provides information about the job type and flex queue position of the
AsyncApexJob. This object is available in API version 36.0 and later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Description
AsyncApexJobId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of an AsyncApexJob that’s waiting in the flex queue.
FlexQueueItemId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The primary key for this FlexQueueItem.
1046
Standard Objects
FlexQueueItem
Field Name
Description
JobPosition
Type
int
Properties
Filter, Group, Sort
Description
The position in the flex queue of the waiting job. The highest-priority job in the
queue is at position 0.
JobType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of the job. Valid values are:
• ApexToken
• BatchApex
• BatchApexWorker
• Future
• Queueable
• ScheduledApex
• SharingRecalculation
• TestRequest
• TestWorker
Currently, queries are supported only on BatchApex jobs.
Usage
To find the position of an AsyncApexJob in the flex queue, query JobPosition. For example:
SELECT JobPosition FROM FlexQueueItem WHERE JobType = 'BatchApex' AND AsyncApexJobId =
'707xx000000DABC'
To find the job at a given position, query AsyncApexJobId. For example:
SELECT AsyncApexJobId FROM FlexQueueItem WHERE JobType = 'BatchApex' AND JobPosition = '2'
To find all batch jobs in the flex queue, query JobType. To get other information about the jobs, include AsyncApexJob in your query.
For example:
SELECT JobType, JobPosition, AsyncApexJob.ApexClass.Name, AsyncApexJob.CreatedDate,
AsyncApexJob.CreatedBy FROM FlexQueueItem WHERE JobType='BatchApex' AND
AsyncApexJob.ApexClass.Name LIKE '%'BatchAJob'%' ORDER BY JobPosition DESC
1047
Standard Objects
FlowInterview
FlowInterview
Represents a flow interview. A flow interview is a running instance of a flow.
Supported Calls
delete(), describeLayout(), getDeleted(), getUpdated(), query(), retrieve(), describeSObject()
Special Access Rules
To delete a flow interview, you must have the “Manage Force.com Flow” user permission. All other calls require the “Run Flows” user
permission or the Force.com Flow User field enabled on the user detail page.
Fields
Field Name
Details
CurrentElement
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The flow element at which the interview is currently paused or waiting.
InterviewLabel
Type
string
Properties
Filter, Nillable, Sort
Description
Label for the interview. This label helps users and administrators differentiate
interviews from the same flow.
In the user interface, this label appears in the Paused Flow Interviews component
on the user’s Home tab and in the Paused and Waiting Interviews list on the flow
management page.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name for the interview.
OwnerId
Type
ID
1048
Standard Objects
Field Name
FlowInterviewOwnerSharingRule
Details
Properties
Filter, Group, Sort
Description
The ID of the user who owns the interview. Only this user or an admin can resume
the interview.
PauseLabel
Type
string
Properties
Filter, Nillable, Sort
Description
Information about why the interview was paused. This string is entered by the
user who paused the flow interview. Label is Why Paused
FlowInterviewOwnerSharingRule
Represents the rules for sharing a FlowInterview with users other than the owner. This object is available in API version 33.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
1049
Standard Objects
Field
FlowInterviewOwnerSharingRule
Details
Description
A description of the sharing rule. Maximum size is 1000 characters.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group.
Name
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group that’s given access.
1050
Standard Objects
FlowInterviewShare
Usage
Use this object to manage the sharing rules for FlowInterview records. Sharing rules don’t affect who can resume the FlowInterview.
Only the owner or a flow admin can resume a FlowInterview. General sharing uses this object.
FlowInterviewShare
Represents a sharing entry on a FlowInterview. This object is available in API version 33.0 and later.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Level of access that the User or Group has to the FlowInterview. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the FlowInterview associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default).
1051
Standard Objects
Field
Folder
Details
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the FlowInterview with them.
• Owner—The User is the owner of the FlowInterview.
• Rule—The User or Group has access via a FlowInterview sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the User or Group that has been given access to the FlowInterview. This field can't be
updated.
Usage
This object lets you determine which users and groups can view and edit FlowInterview records owned by other users. However, it
doesn’t let you determine who can resume the FlowInterview. Only the owner or a flow admin can resume a FlowInterview.
Folder
Represents a repository for a Document, EmailTemplate, Report, or Dashboard. Only one type of item can be contained in a folder.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• You must have the “Modify All Data” permission to create, update, or delete document folders and email template folders.
• Customer Portal users can’t access this object.
• To query this object, no special permissions are needed.
• As of API version 35.0, when a folder is shared with a role, it is only visible to users in that role. Superior roles in the role hierarchy
don’t gain visibility.
• If analytics folder sharing is turned on, then users need these permissions to create and manage report folders and dashboard folders:
– “Create Dashboard Folders”
– “Create Report Folders”
1052
Standard Objects
Folder
Fields
Field
Details
AccessType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. Indicates who can access the Folder. Available values include:
• Hidden—Folder is hidden from everyone.
• Public—Folder is accessible by all users.
• Shared—Folder is accessible only by a User in a particular Group or UserRole. The API
doesn’t allow you to view, insert, or update which group or Role the Folder is shared
with.
Note: If analytics folder sharing is turned on for your organization, then this field is
present but not used.
DeveloperName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Folder Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
IsReadonly
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this Folder is read-only (true) or editable (false). Label is Read
Only.
Note: If analytics folder sharing is turned on for your organization, then this field is
present but not used.
1053
Standard Objects
Folder
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the folder as it appears in the user interface. Label is Document Folder Label.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field can’t be accessed unless the logged-in user has the “Customize Application”
permission.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Required. Type of objects contained in the Folder. This field can’t be updated. Available values
include:
• Dashboard
• Document
• Email template
• Report
1054
Standard Objects
FolderedContentDocument
Usage
Only one type of item can be contained in a folder, either Document, EmailTemplate, Report, or Dashboard.
SEE ALSO:
Object Basics
FolderedContentDocument
Represents the relationship between a parent and child ContentFolderItem in a ContentWorkspace.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the ContentDocument that can be in a folder.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
File size of the ContentDocument.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the ContentDocument.
FileType
Type
string
1055
Standard Objects
Field Name
ForecastingAdjustment
Details
Properties
Filter, Group, Nillable, Sort
Description
File type of the ContentDocument.
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the FolderedContentDocument is a folder, rather than a file.
ParentContentFolderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the ContentFoldr the ContentDocument resides in.
Title
Type
string
Properties
Filter, Group, Sort
Description
Name of the file or folder in a ContentFolder.
ForecastingAdjustment
This object represents an individual sales manager’s adjustment for a subordinate’s forecast via a ForecastingItem. Available in API
versions 26 and greater. This object is separate from the ForecastingOwnerAdjustment object, which represents forecast users’ adjustments
of their own forecasts.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
1056
Standard Objects
ForecastingAdjustment
Fields
Field Name
Details
AdjustedAmount
Type
double
Properties
Create, Filter, Sort, Update
Description
The revenue amount of an individual forecast item, after an adjustment.
AdjustedQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity amount of an individual forecast item, after an adjustment. This
field is available in API version 28 and later.
AdjustmentNote
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A text note providing information about the adjustment. The maximum length
is 140 characters. This field does not appear in reports.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The currency code of the adjustment. If omitted, the default is the importing
user’s personal currency.
ForecastCategoryName
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The category within the sales cycle that an opportunity is assigned to based on
its opportunity stage. The standard forecast categories are Pipeline, Best Case,
1057
Standard Objects
Field Name
ForecastingAdjustment
Details
Commit, Omitted, and Closed. You can customize forecast category names. The
forecast categories display information for that specific category; for example,
Best Case only reflects amounts in the Best Case category.
ForecastingItemCategory
Type
picklist
Properties
Create, Filter, Group, Sort
Description
This field indicates which type of forecast rollup the manager adjustment belongs
to. Depending on whether your organization uses individual forecast category
rollups or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
When inserting manager adjustments, the values you insert for
ForecastCategoryName and ForecastingItemCategory must
be compatible with each other. In organizations using cumulative forecast rollups,
the ForecastCategoryName is nillable. These are the valid pairs.
1058
Standard Objects
Field Name
ForecastingAdjustment
Details
Individual forecast category rollups:
• ForecastCategoryName: BestCase,
ForecastingItemCategory: BestCaseOnly
• ForecastCategoryName: Commit,
ForecastingItemCategory: CommitOnly
Cumulative forecast category rollups:
• ForecastCategoryName: null, ForecastingItemCategory:
BestCaseForecast
• ForecastCategoryName: null, ForecastingItemCategory:
CommitForecast
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the related ForecastingType.
ForecastingItemId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingItem.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
1059
Standard Objects
ForecastingAdjustment
Field Name
Details
OwnerId
Type
reference
Properties
Create,Defaulted on create, Filter, Group, Sort
Description
The ID of the forecast owner.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the adjustment. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The Product Family for the adjustment. Read only. This field is available in API
version 29 and later.
StartDate
Type
date
Properties
Create, Filter, Group, Sort
Description
The start of the adjustment, expressed as month and year. The date can include
any day in a given month. Stored using the first date of the month.
Usage
Use this object to obtain a manager’s adjustment detail for a specified ForecastingItem. The ForecastingAdjustment object itself is visible
to all users, but only forecast managers and users above them in the forecast hierarchy can read or write ForecastingAdjustment records.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
1060
Standard Objects
ForecastingFact
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingFact
ForecastingItem
ForecastingQuota
ForecastingFact
This is a read-only object linking a ForecastingItem with its opportunities, such as opportunities that share the same owner or forecast
category and have a closing date within the period of the forecasting item. Available in API versions 26 and greater.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ForecastCategoryName
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A forecast category is the category within the sales cycle to which an opportunity
is assigned based on its opportunity stage. The standard forecast categories are
Pipeline, Best Case, Commit, Omitted, and Closed. You can customize the forecast
category names.
ForecastedObjectId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the Split ID of the forecasted OpportunitySplit object if the forecast data
source is opportunity splits or the OpportunityLineItem ID of the forecasted
opportunity if the data source is product families. If the data source is product
families and the opportunity has no line item, this field is Null. If the forecast data
source is opportunities, this field is Null. This field is available in API version 29
and later. Read only.
1061
Standard Objects
ForecastingFact
Field Name
Details
ForecastingItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ForecastingItem.
ForecastingTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the related ForecastingType.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
The opportunity ID.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the opportunity owner.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the forecast.
Usage
Use this object to get information about opportunities linked to forecasting items.
1062
Standard Objects
ForecastingItem
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
s
SEE ALSO:
ForecastingAdjustment
ForecastingItem
ForecastingQuota
ForecastingItem
This is a read-only object used for individual forecast amounts. Users see amounts based on their perspectives and forecast roles. The
amounts users see include one of the following when forecasting in revenue: AmountWithoutAdjustments,
AmountWithoutManagerAdjustment, ForecastAmount, OwnerOnlyAmount. The amounts users see include one of
the following when forecasting in quantity: QuantityWithoutAdjustments, QuantityWithoutManagerAdjustment,
ForecastQuantity, OwnerOnlyQuantity. Available in API versions 26 and greater.
Additionally, note that users:
• with the “View All Forecasts” permission have access to all ForecastingItem fields.
• without the “View All Forecasts” permission have access to all fields for their own subordinates.
Other users can see the ForecastingItem object, but not its records.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
AmountWithoutAdjustments
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s owned revenue opportunities and the person's
subordinates’ opportunities, without adjustments. Subordinates include everyone
reporting up to a person in the forecast hierarchy. This amount is visible only on
reports.
1063
Standard Objects
Field Name
ForecastingItem
Details
AmountWithoutManagerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast number as seen by the forecast owner. This is the sum of the owner’s
revenue opportunities and the owner’s subordinates’ opportunities, including
adjustments made by the forecast owner on the owner's or subordinates’
forecasts. It doesn’t include adjustments made by forecast managers above the
owner in the forecast hierarchy.
AmountWithoutOwnerAdjustment
Type
double
Properties
Filter, Sort, Nillable
Description
The forecast amount as seen by the forecast owner without the owner's
adjustment. This is the sum of the subordinate's opportunities, including
adjustments made by their manager or by the subordinate themselves, plus the
rollup of the owner's own opportunities. It doesn’t include adjustments made by
the forecast owner.
ForecastAmount
Type
double
Properties
Filter, Sort, Nillable
Description
The revenue forecast from the forecast manager’s perspective and the sum of
the owner’s and subordinates’ opportunities, including all forecast adjustments.
ForecastCategoryName
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
A forecast category is the category within the sales cycle to which an opportunity
is assigned based on its opportunity stage. The standard forecast categories are
Pipeline, Best Case, Commit, Omitted, and Closed. You can customize the forecast
category names.
ForecastQuantity
Type
double
1064
Standard Objects
Field Name
ForecastingItem
Details
Properties
Filter, Sort, Nillable
Description
The quantity forecast from the forecast manager’s perspective and the sum of
the owner’s and subordinates’ opportunities, including all forecast adjustments.
This field is available in API version 28 and later.
ForecastingItemCategory
Type
picklist
Properties
Filter, Group, Sort
Description
This field indicates which type of forecast rollup the forecasting item belongs to.
Depending on whether your organization uses individual forecast category rollups
or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
1065
Standard Objects
ForecastingItem
Field Name
Details
ForecastingTypeId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingType.
HasAdjustment
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag that indicates if the forecasting item includes a manager adjustment. This
flag is true only when the item includes an adjustment and the user performing
the query has read access to the adjustment.
HasOwnerAdjustment
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag that indicates if the forecasting item includes an owner adjustment. This
flag is true only when the item includes an adjustment and the user performing
the query has read access to the adjustment. Available in API versions 33 and
greater.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
1066
Standard Objects
ForecastingItem
Field Name
Details
IsUpToDate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag indicating whether or not a specific forecasting item reflects current
information. For example, if users are making adjustments which are in process,
the item won’t be up-to-date.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the forecast owner.
OwnerOnlyAmount
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s revenue opportunities, without adjustments.
OwnerOnlyQuantity
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s quantity opportunities, without adjustments. This field is
available in API version 28 and later.
ParentForecastingItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ForecastingItem that the current item rolls up to.
PeriodId
Type
reference
1067
Standard Objects
Field Name
ForecastingItem
Details
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the forecast.
ProductFamily
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The product family of the forecast item. This field is available in API version 29
and later. Read only.
QuantityWithoutAdjustments
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s owned quantity opportunities and also his or her
subordinates’ opportunities, without adjustments. Subordinates include everyone
reporting up to a person in the forecast hierarchy. This field is available in API
version 28 and later.
QuantityWithoutManagerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast number as seen by the forecast owner. This is the sum of the owner’s
quantity opportunities and subordinates’ opportunities, including adjustments
made on the subordinates’ forecasts. It doesn’t include adjustments made by
forecast managers above the owner in the forecast hierarchy. This field is available
in API version 28 and later.
QuantityWithoutOwnerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast quantity as seen by the forecast owner without the owner's
adjustment. This is the sum of the subordinate's opportunities, including
1068
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
adjustments made by their manager or by the subordinate themselves, plus the
rollup of the owner's own opportunities. It doesn’t include adjustments made by
the forecast owner. This field is available in API version 38.0 and later.
Usage
Use this object to obtain individual forecast amounts, either with or without adjustments, based on a user’s perspective and forecast
role. The ForecastingItem object is visible to all users, but only forecast managers and users above them in the forecast hierarchy can
read or write ForecastingAdjustment records.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingAdjustment
ForecastingFact
ForecastingQuota
ForecastingOwnerAdjustment
This object represents an individual forecast user’s adjustment of their own forecast via a ForecastingItem. Available in API versions 33
and greater. This object is separate from the ForecastingAdjustment object, which represents managers’ adjustments of subordinates’
forecasts.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
update(), upsert()
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1069
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
Description
The currency code of the adjustment. If omitted, the default is the importing
user’s personal currency.
ForecastCategoryName
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The category within the sales cycle that an opportunity is assigned to based on
its opportunity stage. The standard forecast categories are Pipeline, Best Case,
Commit, Omitted, and Closed. You can customize forecast category names. The
forecast categories display information for that specific category; for example,
Best Case only reflects amounts in the Best Case category.
ForecastingItemCategory
Type
picklist
Properties
Create, Filter, Group, Sort
Description
This field indicates which type of forecast rollup the owner adjustment belongs
to. Depending on whether your organization uses individual forecast category
rollups or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
1070
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
When inserting owner adjustments, the values you insert for
ForecastCategoryName and ForecastingItemCategory must
be compatible with each other. In organizations using cumulative forecast rollups,
the ForecastCategoryName is nillable. These are the valid pairs.
Individual forecast category rollups:
• ForecastCategoryName: BestCase,
ForecastingItemCategory: BestCaseOnly
• ForecastCategoryName: Commit,
ForecastingItemCategory: CommitOnly
Cumulative forecast category rollups:
• ForecastCategoryName: null, ForecastingItemCategory:
BestCaseForecast
• ForecastCategoryName: null, ForecastingItemCategory:
CommitForecast
ForecastingItemId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingItem.
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the related ForecastingType.
ForecastOwnerId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
1071
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
Description
The ID of the forecast owner.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true.
OwnerAdjustedAmount
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
The revenue amount of an individual forecast item, after an adjustment.
OwnerAdjustedQuantity
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The quantity amount of an individual forecast item, after an adjustment.
OwnerAdjustmentNote
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A text note providing information about the adjustment. The maximum length
is 140 characters. This field does not appear in reports.
1072
Standard Objects
ForecastingQuota
Field Name
Details
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the adjustment. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The Product Family for the adjustment. Read only.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort
Description
The start of the adjustment, expressed as month and year. The date can include
any day in a given month. Stored using the first date of the month.
Usage
Use this object to obtain a user’s adjustment detail for a specified ForecastingItem in their own forecast.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
ForecastingQuota
This object represents an individual user’s quota for a specified time period. The “Manage Quotas” user permission is required for creating,
updating, or deleting quotas. (Users can only edit their subordinates’ quotas, not their own.) The “View All Forecasts” permission is
required to View any user's forecast, regardless of the forecast role hierarchy. Available in API versions 25 and greater. Forecast managers
can view the forecasts of subordinates who report to them in the forecast hierarchy.
Note: This information only applies to Collaborative Forecasts.
1073
Standard Objects
ForecastingQuota
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The currency code of the quota. If omitted, the default is the importing user’s
personal currency.
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the related ForecastingType.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
PeriodId
Type
reference
1074
Standard Objects
Field Name
ForecastingQuota
Details
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the quota. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The product family for the quota. This field is available in API version 29 and later.
QuotaAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The revenue quota amount for an individual user and for a specific period.
QuotaOwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID that identifies the quota owner.
QuotaQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity quota amount for an individual user and for a specific period. This
field is available in API version 28 and later.
StartDate
Type
date
Properties
Create, Filter, Group, Sort, Update
1075
Standard Objects
Field Name
ForecastingType
Details
Description
The start of the quota, expressed as month and year. The date can include any
day in a given month. Stored using the first date of the month.
Usage
Use this object to get an individual user’s quota for a specified time period.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingAdjustment
ForecastingFact
ForecastingItem
ForecastingType
This object is used to identify the forecast type associated with ForecastingAdjustment, ForecastingOwnerAdjustment,
ForecastingQuota, ForecastingFact, and ForecastingItem objects. Available in API versions 30.0 and greater.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The name of the forecasting type. Allowed values include:
• OpportunityRevenue : Opportunities - Revenue
1076
Standard Objects
Field Name
ForecastingType
Details
• OpportunityQuantity : Opportunities - Quantity
• OpportunitySplitRevenue : Opportunity Revenue Splits - Revenue
• OpportunityOverlayRevenue : Opportunity Overlay Splits - Revenue
• OpportunityLineItemRevenue : Product Families - Revenue
• OpportunityLineItemQuantity : Product Families - Quantity
• The name of a custom opportunity split type that has been enabled as a
forecast type. Custom split types are based on currency fields, which can
contain revenue amounts only.
The DeveloperName is called name in the Metadata API and Forecasting
Type in custom reports.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is currently enabled in the organization.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is based on the revenue measurement.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is based on the quantity measurement.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the forecasting type.
1077
Standard Objects
ForecastingUserPreference
Field Name
Details
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Master label for this Forecasting Type value. This display value is the internal label
that does not get translated.
Usage
Use this object to identify the forecast type of ForecastingAdjustment, ForecastingQuota, ForecastingFact, and
ForecastingItem objects.
ForecastingUserPreference
Represents the forecasting selections that a user has made, such as display options, date range, forecasting type, and currency.
Note: This information applies to Collaborative Forecasts and not to Customizable Forecasts.
Supported Calls
create(), describeSObjects(), query(), update(), upsert()
Fields
Field Name
Details
ExternalId
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A unique system-generated numerical identifier for the user.
ForecastingDisplayedTypeId
Type
reference
Properties
Create, Group, Sort, Update
Description
An identifier for the forecasting type that’s displayed.
1078
Standard Objects
ForecastingUserPreference
Field Name
Details
ForecastingPeriodDuration
Type
int
Properties
Create, Group, Nillable, Sort, Update
Description
How long the forecasting period lasts.
ForecastingPeriodType
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
The forecasting period’s type. Valid values include: Month, Quarter, Week, or Year
ForecastingStartPeriod
Type
int
Properties
Create, Group, Nillable, Sort, Update
Description
The date when the forecasting period begins.
ForecastingViewCurrency
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The currency shown on the forecasts page.
IsForecastingHideZeroRows
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows zero-value rows.
IsForecastingShowQuantity
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
1079
Standard Objects
Field Name
ForecastShare
Details
Description
Whether the forecasts page shows forecast quantity.
IsHideForecastingGuidedTour
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows the guided tour.
IsHideForecastingQuotaColumn
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows a quota column.
IsShowForecastingQuotaAttainment Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows quota attainment information (Salesforce
Classic only).
ForecastShare
Represents the sharing of a customizable forecast at a given role and territory.
Note: This information applies to Customizable Forecasting and not Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Customer Portal users can’t access this object.
1080
Standard Objects
ForecastShare
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A value (Read, Edit, or All) that represents the type of sharing being allowed.
CanSubmit
Type
boolean
Properties
Filter, Group, Sort
Description
Indicates whether the user or group can submit forecasts (True) or not (False).
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API versions
32.0 and later with the correct organization-wide sharing settings.
Valid values include:
•
Manual—The User or Group has access because a User has manually shared
the forecast with them.
•
UserOrGroupId
Owner—The User is the owner of the forecast.
Type
reference
Properties
Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
UserRoleId
Type
reference
Properties
Filter, Group, Sort
1081
Standard Objects
Field
Goal
Details
Description
ID of the UserRole associated with this object.
Usage
This object allows you to determine which users and groups can view or submit forecasts owned by other users.
Goal
The Goal object represents the components of a goal such as its name, description, and status.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Name
Details
CompletionDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The completion date of the goal.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the goal. The maximum length is 65,535 characters.
DueDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date the goal is due.
1082
Standard Objects
Goal
Field Name
Details
ImageUrl
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL for the goal image. The image must be stored in Documents and set as
externally available. Applicable only to Goal objects of Type: Goal.
IsKeyCompanyGoal
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the goal is a key company goal.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed a record that is related to
this goal.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed this goal. If this value is
null, this record might have been only referenced (LastReferencedDate)
and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the goal. The maximum length is 255 characters.
OwnerId
Type
reference
1083
Standard Objects
Field Name
GoalFeed
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the goal.
Progress
Type
percent
Properties
Filter, Nillable, Sort
Description
The progress of the goal measured as a percentage.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The start date of the goal.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The status of the goal.
Possible values:
• Draft
• Published
• Completed
• Canceled
• Not Completed
GoalFeed
Represents a single feed item in the feed displayed for a Goal record. The goal feed shows changes to a goal for fields that are tracked
in feeds, posts, and comments about the goal.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1084
Standard Objects
GoalFeed
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the FeedItem. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The numbers of FeedComments associated with this feed item.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
1085
Standard Objects
Field Name
GoalFeed
Details
Description
Available in API version 36.0 and earlier only. The file uploaded to the feed.
Required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The size of the file (in bytes)
uploaded to the feed.
ContentType
Type
string
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The MIME type of the file
uploaded to the feed.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if a client
application migrates posts and comments from another application into a feed,
then InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
OriginNetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the community in which a user modified the feed item or comment.
This field is only available, if Salesforce Communities is enabled for your
organization.
Revision
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The revision number of the feed item or comment.
Value
Type
textarea
Properties
Nillable
Description
Identifies the value of the EditedAttribute field before the update.
Usage
This object tracks the changes made to a feed item or feed comment and stores a list of attributes that changed for each revision.
• To query the FeedRevision object, users need the “View All Data” permission or supply a WHERE clause on the FeedEntityId.
1033
Standard Objects
FeedTrackedChange
FeedTrackedChange
Represents an individual field change or set of field changes. A FeedTrackedChange is a child object of a record feed, such as AccountFeed
This object is available in API version 18.0 and later..
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
CurrencyIsoCode
Type
picklist
Properties
Defaulted on create, Group, Restricted picklist, Sort
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
currency code for the field, if FieldName is a currency field.
FeedItemId
Type
reference
Properties
Group, Sort, Filter
Description
ID of the parent feed that tracks the field change.
FieldName
Type
string
Properties
Group, Sort
Description
The name of the field that was changed.
Note: This field also tracks other events that are not related to an individual field for
a parent feed. These events occur as the parent record advances through its pipeline.
For example, a value of leadConverted indicates that a lead has been converted
to an opportunity. For a full list of values, see Tracking of Special Events.
NewValue
Type
anyType
Properties
Nillable, Sort
1034
Standard Objects
Field
FeedTrackedChange
Details
Description
The new value of the field that was changed.
OldCurrencyIsoCode
Type
string
Properties
Group, Nillable, Sort
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
currency code for the OldValue field, if FieldName is a currency field.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The last value of the field before it was changed.
Usage
A user can subscribe to a record or to another user. Changes to the record and updates from the users are displayed in the Chatter feed
on the user's home page, which is a useful way to stay up-to-date with other users and with changes made to records in Salesforce.
Feeds are available in API version 18.0 and later.
If you move a custom field to the Recycle Bin, all FeedTrackedChange records that track historical changes to the custom field are
automatically deleted and are not restored if the custom-field is undeleted.
The following sections outline the difference between standard feeds and custom feeds.
Standard Feeds
A standard feed is a record feed, such as AccountFeed. FeedTrackedChange records for standard feeds can only be queried via the parent
feed object.
Note the following when working with standard feed items:
• Feed items for standard feeds are read only in the API.
• A FeedTrackedChange record is visible when you have read access on the record feed, and when the field in the FeedTrackedChange
is visible in the field-level security settings.
Custom Feeds
If you want more control over the information provided in a record feed, such as AccountFeed, you can create a custom feed. A custom
feed can replace or augment an existing record feed. For example, you might want to:
1035
Standard Objects
FeedTrackedChange
• Disable the standard account record feed and use an Apex trigger to generate FeedTrackedChange records for the events that you
want to track in the feed instead.
• Augment the standard contact record feed by writing an API client that inserts feed items for events that are not tracked in the
standard feed.
Tracking of Special Events
The FieldName field also tracks other events that are not related to an individual field for a parent feed. These events occur as the
parent record advances through its pipeline. For example, a value of leadConverted indicates that a lead has been converted to
an opportunity.
Valid values for the FieldName field for multiple objects:
• created
• ownerAccepted
• ownerAssignment
Additional valid values for the FieldName field for individual objects:
Account
• accountCreatedFromLead
• accountMerged
• accountUpdatedByLead
• personAccountUpdatedByLead
Case
• closed
• ownerEscalated
Contact
• contactCreatedFromLead
• contactMerged
• contactUpdatedByLead
Contract
• contractActivation
• contractApproval
• contractConversion
• contractExpiration
• contractTermination
Lead
• leadConverted
• leadMerged
1036
Standard Objects
FieldHistoryArchive
Opportunity
• opportunityCreatedFromLead
SEE ALSO:
NewsFeed
UserProfileFeed
FieldHistoryArchive
Represents field history values for all objects that retain field history. FieldHistoryArchive is a BigObject, available only to users
with the “Retain Field History” permission. This object is available in API version 29.0 and later.
Each instance of the FieldHistoryArchive object represents a single change in the value of a field. FieldHistoryArchive
stores history for both standard and custom fields.
The Field field returns the name of the field unless the parent field or object is deleted, in which case it returns the field ID. You can
use the ID to retrieve the old field and object name from the FieldNameAfterArchival and ParentNameAfterArchival
fields, respectively.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
ArchiveFieldName
Type
string
Properties
Nillable
Description
The name of the field at the time the data was archived. If the field name changed,
the name is sometimes not the same for all records related to a single field.
ArchiveParentName
Type
string
Properties
Nillable
Description
The name of the parent object at the time the data was archived. If the object
name changed, the name is sometimes not the same for all records related to a
single field.
1037
Standard Objects
FieldHistoryArchive
Field Name
Details
ArchiveParentType
Type
string
Properties
Nillable
Description
The type of the field at the time the data was archived. If the field type changed,
the type is sometimes not the same for all records related to a single field.
ArchiveTimestamp
Type
dateTime
Properties
Nillable
Description
The date and time at which the data was archived.
CreatedById
Type
reference
Properties
Nillable
Description
The user ID of the user who created the original record.
CreatedDate
Type
dateTime
Properties
Nillable, Sort
Description
The date and time at which the original record was created.
Field
Type
picklist
Properties
Filter, Nillable, Restricted picklist
Description
The name of the field that was changed. If the field is deleted from the parent
object, the Field field contains the field ID instead.
FieldHistoryType
Type
picklist
Properties
Nillable, Sort, Restricted picklist
1038
Standard Objects
Field Name
FieldHistoryArchive
Details
Description
The name of the object that contains the field history (for example, Account).
Id
Type
ID
Properties
Defaulted on create, Filter, idLookup
Description
The ID of the archived record. It’s useful to have a field’s ID for fields that you’ve
deleted. (Field names aren’t retained in history when you delete fields from
Salesforce.)
NewValue
Type
anyType
Properties
Nillable
Description
The new value of the modified field.
OldValue
Type
anyType
Properties
Nillable
Description
The previous value of the modified field.
ParentId
Type
reference
Properties
Filter, Nillable, Sort
Description
The ID of the object that contains the field (the parent object).
Usage
When sorting fields, order them as follows:
1. FieldHistoryType ASC
2. ParentID ASC
3. CreatedDate DESC
1039
Standard Objects
FieldPermissions
FieldPermissions
Represents the enabled field permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
To grant a user access to a field, associate a FieldPermissions record with a PermissionSet that’s assigned to a user. FieldPermissions
records are only supported in PermissionSet, not in Profile.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Field
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The field’s API name. This name must be prefixed with the SobjectType. For example,
Merchandise__c.Description__c
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The Id of the field’s parent PermissionSet.
PermissionsEdit
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, users assigned to the parent PermissionSet can edit this field. Requires
PermissionsRead for the same field to be true.
PermissionsRead
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
1040
Standard Objects
Field Name
FieldPermissions
Details
Description
If true, users assigned to the parent PermissionSet can view this field. A FieldPermissions
record must have at minimum PermissionsRead set to true, or it will be deleted.
SobjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object’s API name. For example, Merchandise__c.
Usage
FieldPermissions work similarly to ObjectPermissions. However, FieldPermissions includes a Field attribute to return the name of the
field.
For example, the following query returns all FieldPermissions records that have at least the “Read” permission. The results includes the
field, object, and permission set names.
SELECT SobjectType, Field, PermissionsRead, Parent.Name
FROM FieldPermissions
WHERE PermissionsRead = True
Include the field’s parent object when querying FieldPermissions. For example, to find all rows that match the Account object’s Type
field, create the following query:
SELECT Id, SobjectType, Field
FROM FieldPermissions
WHERE Field = 'Account.Type' AND SobjectType = 'Account'
Both SobjectType and Field must be included in the SELECT line of the query. You must also provide the full API name of
the field in the form of SobjectType.Field when querying for a field.
Note: When using the FieldPermission object to download records, depending on the SOQL query you use, you might not receive
all expected records. Results might also appear incomplete. However, all records do download; fields that don't support field
security and rows for entities not visible to the org. are hidden.
Special Properties for Field Permissions
The auto-number and formula fields have special rules for how field permissions work. Both have FieldPermissions records, but inserting
and updating is limited to PermissionsRead. PermissionsEdit isn’t allowed for either field type, since these fields must be
read-only for users.
The following field types don’t return a FieldPermissions record because they are assumed to always be readable.
• Id
• CreatedById
• CreatedDate
1041
Standard Objects
FieldPermissions
• IsDeleted
• LastModifiedById
• LastModifiedDate
• SystemModStamp
The following field types don’t return a FieldPermissions record because they are assumed to always be readable and writable.
• OwnerId
• Master-detail custom (relationship) fields
• Universally required custom fields
As a result, the following query returns no records, even though users do have some access to some of the fields.
SELECT Field, SobjectType, PermissionsRead
FROM FieldPermissions
WHERE Field='Id'
To determine if a field can return a FieldPermissions record, you can call a describeSObject() on the field. For example,
describeSObject('Merchandise__c'), returns all the properties of the Merchandise custom object, including field properties.
If you’re using a field whose permissionable property is false (such as any of the field types listed in this section), you can’t
query, insert, update, or delete any field permissions records, because none exist.
Working with Custom Activity Fields
While tasks and events are considered separate objects, they share a common set of activity custom fields. As a result, when a custom
task field is created, a custom event field is also created, and vice versa. You can display the custom field on the event layout, task layout,
or both event and task layouts.
Although custom activity fields are shared between tasks and events, you’ll see separate FieldPermissions records for the task and event.
However, changes made to one field permission record are automatically made to the other. For example, if you create a custom activity
field, assign field permissions to it in a permission set, and run the following query, the query will return two records with the same
permission value.
SELECT Field, Id, ParentId, PermissionsEdit, PermissionsRead, SobjectType
FROM FieldPermissions
WHERE SobjectType = 'event' OR SobjectType ='task'
If you then update one of the records with a different set of field permission values and run the query again, the same permission values
for both records are returned.
Nesting Field Permissions
You can nest FieldPermissions in a PermissionSet query. For example, the following returns any permission sets where “Edit Read Only
Fields” is true. Additionally, the result set will include both the “Read” and “Edit” field permission on the Merchandise object. This is
done by nesting the SOQL with a field permission query using the relationship name for field permissions: FieldPerms.
SELECT PermissionsEditReadonlyFields,
(SELECT SobjectType, Field, PermissionsRead, PermissionsEdit
FROM FieldPerms
WHERE SobjectType = 'Merchandise__c')
FROM PermissionSet
WHERE PermissionsEditReadonlyFields = true
1042
Standard Objects
FiscalYearSettings
As a result, it’s possible to traverse the relationship between the PermissionSet and any child related objects (in this case, FieldPermissions).
You can do this from the PermissionSet object by using the child relationship (ObjectPerms, FieldPerms, and so on) or from
the child object by referencing the PermissionSet with Parent.permission_set_attribute.
It’s important to consider when to use a conditional WHERE statement to restrict the result set. To query based on an attribute on the
permission set object, nest the SOQL with the child relationship. However, to query based on an attribute on the child object, you must
reference the permission set parent attribute in your query.
The following two queries return the same columns with different results, based on whether you use the child relationship or parent
notation.
SELECT PermissionsEditReadonlyFields,
(SELECT SobjectType, Field, PermissionsRead, PermissionsEdit
FROM FieldPerms
WHERE SobjectType = 'Merchandise__c')
FROM PermissionSet
WHERE PermissionsEditReadonlyFields = true
versus:
SELECT SobjectType, Field, PermissionsRead, PermissionsEdit, Parent.Name,
Parent.PermissionsEditReadonlyFields
FROM FieldPermissions
WHERE SObjectType='Merchandise__c'
SEE ALSO:
PermissionSet
ObjectPermissions
FiscalYearSettings
Settings to define a custom or standard fiscal year for your organization. This object has a parent-child relationship with the Period object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
Description
Type
string
Properties
Filter, Group, Nillable, Sort
1043
Standard Objects
Field
FiscalYearSettings
Details
Description
Description of the setting.
EndDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
End date of the fiscal year.
IsStandardYear
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the fiscal year is a standard calendar year (true) or a custom fiscal year
(false).
Name
Type
string
Properties
Filter, Group, Sort
Description
A name for the fiscal year. Limit: 80 characters.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the associated fiscal period.
PeriodLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for fiscal periods.
PeriodPrefix
Type
picklist
1044
Standard Objects
Field
FiscalYearSettings
Details
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The prefix of fiscal periods. For example, if p is the prefix, then the first period is “P1.”
QuarterLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for fiscal quarters.
QuarterPrefix
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The prefix of fiscal quarters. For example, if “Q” is the prefix, then the fourth quarter would
be “Q4.”
StartDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Start date of the fiscal year.
WeekLabelScheme
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The numbering scheme used for weeks.
WeekStartDay
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The name of the day that starts the week, for example Monday or Sunday
1045
Standard Objects
FlexQueueItem
Field
Details
YearType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Indicates one of two types of fiscal years, Standard or Custom. Standard denotes the standard
Gregorian calendar, while Custom means a fiscal year with a custom structure.
SEE ALSO:
Period
Object Basics
FlexQueueItem
Represents an asynchronous Apex job in the Apex flex queue. Provides information about the job type and flex queue position of the
AsyncApexJob. This object is available in API version 36.0 and later.
Supported Calls
describeSObjects(), query()
Fields
Field Name
Description
AsyncApexJobId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of an AsyncApexJob that’s waiting in the flex queue.
FlexQueueItemId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The primary key for this FlexQueueItem.
1046
Standard Objects
FlexQueueItem
Field Name
Description
JobPosition
Type
int
Properties
Filter, Group, Sort
Description
The position in the flex queue of the waiting job. The highest-priority job in the
queue is at position 0.
JobType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of the job. Valid values are:
• ApexToken
• BatchApex
• BatchApexWorker
• Future
• Queueable
• ScheduledApex
• SharingRecalculation
• TestRequest
• TestWorker
Currently, queries are supported only on BatchApex jobs.
Usage
To find the position of an AsyncApexJob in the flex queue, query JobPosition. For example:
SELECT JobPosition FROM FlexQueueItem WHERE JobType = 'BatchApex' AND AsyncApexJobId =
'707xx000000DABC'
To find the job at a given position, query AsyncApexJobId. For example:
SELECT AsyncApexJobId FROM FlexQueueItem WHERE JobType = 'BatchApex' AND JobPosition = '2'
To find all batch jobs in the flex queue, query JobType. To get other information about the jobs, include AsyncApexJob in your query.
For example:
SELECT JobType, JobPosition, AsyncApexJob.ApexClass.Name, AsyncApexJob.CreatedDate,
AsyncApexJob.CreatedBy FROM FlexQueueItem WHERE JobType='BatchApex' AND
AsyncApexJob.ApexClass.Name LIKE '%'BatchAJob'%' ORDER BY JobPosition DESC
1047
Standard Objects
FlowInterview
FlowInterview
Represents a flow interview. A flow interview is a running instance of a flow.
Supported Calls
delete(), describeLayout(), getDeleted(), getUpdated(), query(), retrieve(), describeSObject()
Special Access Rules
To delete a flow interview, you must have the “Manage Force.com Flow” user permission. All other calls require the “Run Flows” user
permission or the Force.com Flow User field enabled on the user detail page.
Fields
Field Name
Details
CurrentElement
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The flow element at which the interview is currently paused or waiting.
InterviewLabel
Type
string
Properties
Filter, Nillable, Sort
Description
Label for the interview. This label helps users and administrators differentiate
interviews from the same flow.
In the user interface, this label appears in the Paused Flow Interviews component
on the user’s Home tab and in the Paused and Waiting Interviews list on the flow
management page.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name for the interview.
OwnerId
Type
ID
1048
Standard Objects
Field Name
FlowInterviewOwnerSharingRule
Details
Properties
Filter, Group, Sort
Description
The ID of the user who owns the interview. Only this user or an admin can resume
the interview.
PauseLabel
Type
string
Properties
Filter, Nillable, Sort
Description
Information about why the interview was paused. This string is entered by the
user who paused the flow interview. Label is Why Paused
FlowInterviewOwnerSharingRule
Represents the rules for sharing a FlowInterview with users other than the owner. This object is available in API version 33.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
1049
Standard Objects
Field
FlowInterviewOwnerSharingRule
Details
Description
A description of the sharing rule. Maximum size is 1000 characters.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group.
Name
Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group that’s given access.
1050
Standard Objects
FlowInterviewShare
Usage
Use this object to manage the sharing rules for FlowInterview records. Sharing rules don’t affect who can resume the FlowInterview.
Only the owner or a flow admin can resume a FlowInterview. General sharing uses this object.
FlowInterviewShare
Represents a sharing entry on a FlowInterview. This object is available in API version 33.0 and later.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Level of access that the User or Group has to the FlowInterview. The possible values are:
• Read
• Edit
• All This value is not valid for creating or deleting records.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the FlowInterview associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write to this field when its value is either
omitted or set to Manual (default).
1051
Standard Objects
Field
Folder
Details
Valid values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the FlowInterview with them.
• Owner—The User is the owner of the FlowInterview.
• Rule—The User or Group has access via a FlowInterview sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the User or Group that has been given access to the FlowInterview. This field can't be
updated.
Usage
This object lets you determine which users and groups can view and edit FlowInterview records owned by other users. However, it
doesn’t let you determine who can resume the FlowInterview. Only the owner or a flow admin can resume a FlowInterview.
Folder
Represents a repository for a Document, EmailTemplate, Report, or Dashboard. Only one type of item can be contained in a folder.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
• You must have the “Modify All Data” permission to create, update, or delete document folders and email template folders.
• Customer Portal users can’t access this object.
• To query this object, no special permissions are needed.
• As of API version 35.0, when a folder is shared with a role, it is only visible to users in that role. Superior roles in the role hierarchy
don’t gain visibility.
• If analytics folder sharing is turned on, then users need these permissions to create and manage report folders and dashboard folders:
– “Create Dashboard Folders”
– “Create Report Folders”
1052
Standard Objects
Folder
Fields
Field
Details
AccessType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. Indicates who can access the Folder. Available values include:
• Hidden—Folder is hidden from everyone.
• Public—Folder is accessible by all users.
• Shared—Folder is accessible only by a User in a particular Group or UserRole. The API
doesn’t allow you to view, insert, or update which group or Role the Folder is shared
with.
Note: If analytics folder sharing is turned on for your organization, then this field is
present but not used.
DeveloperName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Label is Folder Unique Name.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
IsReadonly
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this Folder is read-only (true) or editable (false). Label is Read
Only.
Note: If analytics folder sharing is turned on for your organization, then this field is
present but not used.
1053
Standard Objects
Folder
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the folder as it appears in the user interface. Label is Document Folder Label.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition organization that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the namespace prefix
of the organization for all objects that support it. There is an exception if an object is in
an installed managed package. In that case, the object has the namespace prefix of the
installed managed package. This field’s value is the namespace prefix of the Developer
Edition organization of the package developer.
• In organizations that are not Developer Edition organizations, NamespacePrefix
is only set for objects that are part of an installed managed package. There is no
namespace prefix for all other objects.
This field can’t be accessed unless the logged-in user has the “Customize Application”
permission.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Required. Type of objects contained in the Folder. This field can’t be updated. Available values
include:
• Dashboard
• Document
• Email template
• Report
1054
Standard Objects
FolderedContentDocument
Usage
Only one type of item can be contained in a folder, either Document, EmailTemplate, Report, or Dashboard.
SEE ALSO:
Object Basics
FolderedContentDocument
Represents the relationship between a parent and child ContentFolderItem in a ContentWorkspace.
Supported Calls
describeSObjects()
Fields
Field Name
Details
ContentDocumentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the ContentDocument that can be in a folder.
ContentSize
Type
int
Properties
Filter, Group, Nillable, Sort
Description
File size of the ContentDocument.
FileExtension
Type
string
Properties
Filter, Group, Nillable, Sort
Description
File extension of the ContentDocument.
FileType
Type
string
1055
Standard Objects
Field Name
ForecastingAdjustment
Details
Properties
Filter, Group, Nillable, Sort
Description
File type of the ContentDocument.
IsFolder
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates that the FolderedContentDocument is a folder, rather than a file.
ParentContentFolderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the ContentFoldr the ContentDocument resides in.
Title
Type
string
Properties
Filter, Group, Sort
Description
Name of the file or folder in a ContentFolder.
ForecastingAdjustment
This object represents an individual sales manager’s adjustment for a subordinate’s forecast via a ForecastingItem. Available in API
versions 26 and greater. This object is separate from the ForecastingOwnerAdjustment object, which represents forecast users’ adjustments
of their own forecasts.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
1056
Standard Objects
ForecastingAdjustment
Fields
Field Name
Details
AdjustedAmount
Type
double
Properties
Create, Filter, Sort, Update
Description
The revenue amount of an individual forecast item, after an adjustment.
AdjustedQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity amount of an individual forecast item, after an adjustment. This
field is available in API version 28 and later.
AdjustmentNote
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A text note providing information about the adjustment. The maximum length
is 140 characters. This field does not appear in reports.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The currency code of the adjustment. If omitted, the default is the importing
user’s personal currency.
ForecastCategoryName
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The category within the sales cycle that an opportunity is assigned to based on
its opportunity stage. The standard forecast categories are Pipeline, Best Case,
1057
Standard Objects
Field Name
ForecastingAdjustment
Details
Commit, Omitted, and Closed. You can customize forecast category names. The
forecast categories display information for that specific category; for example,
Best Case only reflects amounts in the Best Case category.
ForecastingItemCategory
Type
picklist
Properties
Create, Filter, Group, Sort
Description
This field indicates which type of forecast rollup the manager adjustment belongs
to. Depending on whether your organization uses individual forecast category
rollups or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
When inserting manager adjustments, the values you insert for
ForecastCategoryName and ForecastingItemCategory must
be compatible with each other. In organizations using cumulative forecast rollups,
the ForecastCategoryName is nillable. These are the valid pairs.
1058
Standard Objects
Field Name
ForecastingAdjustment
Details
Individual forecast category rollups:
• ForecastCategoryName: BestCase,
ForecastingItemCategory: BestCaseOnly
• ForecastCategoryName: Commit,
ForecastingItemCategory: CommitOnly
Cumulative forecast category rollups:
• ForecastCategoryName: null, ForecastingItemCategory:
BestCaseForecast
• ForecastCategoryName: null, ForecastingItemCategory:
CommitForecast
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the related ForecastingType.
ForecastingItemId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingItem.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
1059
Standard Objects
ForecastingAdjustment
Field Name
Details
OwnerId
Type
reference
Properties
Create,Defaulted on create, Filter, Group, Sort
Description
The ID of the forecast owner.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the adjustment. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The Product Family for the adjustment. Read only. This field is available in API
version 29 and later.
StartDate
Type
date
Properties
Create, Filter, Group, Sort
Description
The start of the adjustment, expressed as month and year. The date can include
any day in a given month. Stored using the first date of the month.
Usage
Use this object to obtain a manager’s adjustment detail for a specified ForecastingItem. The ForecastingAdjustment object itself is visible
to all users, but only forecast managers and users above them in the forecast hierarchy can read or write ForecastingAdjustment records.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
1060
Standard Objects
ForecastingFact
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingFact
ForecastingItem
ForecastingQuota
ForecastingFact
This is a read-only object linking a ForecastingItem with its opportunities, such as opportunities that share the same owner or forecast
category and have a closing date within the period of the forecasting item. Available in API versions 26 and greater.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ForecastCategoryName
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A forecast category is the category within the sales cycle to which an opportunity
is assigned based on its opportunity stage. The standard forecast categories are
Pipeline, Best Case, Commit, Omitted, and Closed. You can customize the forecast
category names.
ForecastedObjectId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the Split ID of the forecasted OpportunitySplit object if the forecast data
source is opportunity splits or the OpportunityLineItem ID of the forecasted
opportunity if the data source is product families. If the data source is product
families and the opportunity has no line item, this field is Null. If the forecast data
source is opportunities, this field is Null. This field is available in API version 29
and later. Read only.
1061
Standard Objects
ForecastingFact
Field Name
Details
ForecastingItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ForecastingItem.
ForecastingTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the related ForecastingType.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
The opportunity ID.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the opportunity owner.
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the forecast.
Usage
Use this object to get information about opportunities linked to forecasting items.
1062
Standard Objects
ForecastingItem
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
s
SEE ALSO:
ForecastingAdjustment
ForecastingItem
ForecastingQuota
ForecastingItem
This is a read-only object used for individual forecast amounts. Users see amounts based on their perspectives and forecast roles. The
amounts users see include one of the following when forecasting in revenue: AmountWithoutAdjustments,
AmountWithoutManagerAdjustment, ForecastAmount, OwnerOnlyAmount. The amounts users see include one of
the following when forecasting in quantity: QuantityWithoutAdjustments, QuantityWithoutManagerAdjustment,
ForecastQuantity, OwnerOnlyQuantity. Available in API versions 26 and greater.
Additionally, note that users:
• with the “View All Forecasts” permission have access to all ForecastingItem fields.
• without the “View All Forecasts” permission have access to all fields for their own subordinates.
Other users can see the ForecastingItem object, but not its records.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
AmountWithoutAdjustments
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s owned revenue opportunities and the person's
subordinates’ opportunities, without adjustments. Subordinates include everyone
reporting up to a person in the forecast hierarchy. This amount is visible only on
reports.
1063
Standard Objects
Field Name
ForecastingItem
Details
AmountWithoutManagerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast number as seen by the forecast owner. This is the sum of the owner’s
revenue opportunities and the owner’s subordinates’ opportunities, including
adjustments made by the forecast owner on the owner's or subordinates’
forecasts. It doesn’t include adjustments made by forecast managers above the
owner in the forecast hierarchy.
AmountWithoutOwnerAdjustment
Type
double
Properties
Filter, Sort, Nillable
Description
The forecast amount as seen by the forecast owner without the owner's
adjustment. This is the sum of the subordinate's opportunities, including
adjustments made by their manager or by the subordinate themselves, plus the
rollup of the owner's own opportunities. It doesn’t include adjustments made by
the forecast owner.
ForecastAmount
Type
double
Properties
Filter, Sort, Nillable
Description
The revenue forecast from the forecast manager’s perspective and the sum of
the owner’s and subordinates’ opportunities, including all forecast adjustments.
ForecastCategoryName
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
A forecast category is the category within the sales cycle to which an opportunity
is assigned based on its opportunity stage. The standard forecast categories are
Pipeline, Best Case, Commit, Omitted, and Closed. You can customize the forecast
category names.
ForecastQuantity
Type
double
1064
Standard Objects
Field Name
ForecastingItem
Details
Properties
Filter, Sort, Nillable
Description
The quantity forecast from the forecast manager’s perspective and the sum of
the owner’s and subordinates’ opportunities, including all forecast adjustments.
This field is available in API version 28 and later.
ForecastingItemCategory
Type
picklist
Properties
Filter, Group, Sort
Description
This field indicates which type of forecast rollup the forecasting item belongs to.
Depending on whether your organization uses individual forecast category rollups
or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
1065
Standard Objects
ForecastingItem
Field Name
Details
ForecastingTypeId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingType.
HasAdjustment
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag that indicates if the forecasting item includes a manager adjustment. This
flag is true only when the item includes an adjustment and the user performing
the query has read access to the adjustment.
HasOwnerAdjustment
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag that indicates if the forecasting item includes an owner adjustment. This
flag is true only when the item includes an adjustment and the user performing
the query has read access to the adjustment. Available in API versions 33 and
greater.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
1066
Standard Objects
ForecastingItem
Field Name
Details
IsUpToDate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
A flag indicating whether or not a specific forecasting item reflects current
information. For example, if users are making adjustments which are in process,
the item won’t be up-to-date.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the forecast owner.
OwnerOnlyAmount
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s revenue opportunities, without adjustments.
OwnerOnlyQuantity
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s quantity opportunities, without adjustments. This field is
available in API version 28 and later.
ParentForecastingItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the ForecastingItem that the current item rolls up to.
PeriodId
Type
reference
1067
Standard Objects
Field Name
ForecastingItem
Details
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the forecast.
ProductFamily
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The product family of the forecast item. This field is available in API version 29
and later. Read only.
QuantityWithoutAdjustments
Type
double
Properties
Filter, Sort, Nillable
Description
The sum of a person’s owned quantity opportunities and also his or her
subordinates’ opportunities, without adjustments. Subordinates include everyone
reporting up to a person in the forecast hierarchy. This field is available in API
version 28 and later.
QuantityWithoutManagerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast number as seen by the forecast owner. This is the sum of the owner’s
quantity opportunities and subordinates’ opportunities, including adjustments
made on the subordinates’ forecasts. It doesn’t include adjustments made by
forecast managers above the owner in the forecast hierarchy. This field is available
in API version 28 and later.
QuantityWithoutOwnerAdjustment Type
double
Properties
Filter, Sort, Nillable
Description
The forecast quantity as seen by the forecast owner without the owner's
adjustment. This is the sum of the subordinate's opportunities, including
1068
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
adjustments made by their manager or by the subordinate themselves, plus the
rollup of the owner's own opportunities. It doesn’t include adjustments made by
the forecast owner. This field is available in API version 38.0 and later.
Usage
Use this object to obtain individual forecast amounts, either with or without adjustments, based on a user’s perspective and forecast
role. The ForecastingItem object is visible to all users, but only forecast managers and users above them in the forecast hierarchy can
read or write ForecastingAdjustment records.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingAdjustment
ForecastingFact
ForecastingQuota
ForecastingOwnerAdjustment
This object represents an individual forecast user’s adjustment of their own forecast via a ForecastingItem. Available in API versions 33
and greater. This object is separate from the ForecastingAdjustment object, which represents managers’ adjustments of subordinates’
forecasts.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
update(), upsert()
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1069
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
Description
The currency code of the adjustment. If omitted, the default is the importing
user’s personal currency.
ForecastCategoryName
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
The category within the sales cycle that an opportunity is assigned to based on
its opportunity stage. The standard forecast categories are Pipeline, Best Case,
Commit, Omitted, and Closed. You can customize forecast category names. The
forecast categories display information for that specific category; for example,
Best Case only reflects amounts in the Best Case category.
ForecastingItemCategory
Type
picklist
Properties
Create, Filter, Group, Sort
Description
This field indicates which type of forecast rollup the owner adjustment belongs
to. Depending on whether your organization uses individual forecast category
rollups or cumulative forecast rollups, you have these possible values for the
ForecastingItemCategory field.
Individual forecast category rollups:
• PipelineOnly - Rollup from Pipeline opportunities only.
• BestCaseOnly - Rollup from Best Case opportunities only. Adjustable.
• CommitOnly - Rollup from Commit opportunities only. Adjustable.
Cumulative forecast rollups:
• OpenPipeline - Rollup from Pipeline + Best Case + Commit opportunities.
• BestCaseForecast - Rollup from Best Case + Commit + Closed
opportunities. Adjustable.
• CommitForecast - Rollup from Commit + Closed opportunities.
Adjustable.
Either cumulative or individual forecast category rollups:
• ClosedOnly - Rollup from Closed opportunities only.
The ForecastingItemCategory field differs from the
ForecastCategoryName field.
• The ForecastCategoryName field represents the forecast category
of the underlying opportunities rolling up to forecast amounts. In organizations
using cumulative forecast rollups, the ForecastCategoryName field
1070
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
can be null because the cumulative forecast amounts include opportunities
from multiple forecast categories.
• The new ForecastingItemCategory field represents the type of
rollup a forecast amount or adjustment is from. In organizations using
individual forecast category columns, it contains the individual forecast rollup
categories. In organizations using cumulative forecast rollups, it contains the
cumulative rollup categories.
When inserting owner adjustments, the values you insert for
ForecastCategoryName and ForecastingItemCategory must
be compatible with each other. In organizations using cumulative forecast rollups,
the ForecastCategoryName is nillable. These are the valid pairs.
Individual forecast category rollups:
• ForecastCategoryName: BestCase,
ForecastingItemCategory: BestCaseOnly
• ForecastCategoryName: Commit,
ForecastingItemCategory: CommitOnly
Cumulative forecast category rollups:
• ForecastCategoryName: null, ForecastingItemCategory:
BestCaseForecast
• ForecastCategoryName: null, ForecastingItemCategory:
CommitForecast
ForecastingItemId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the related ForecastingItem.
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the related ForecastingType.
ForecastOwnerId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
1071
Standard Objects
Field Name
ForecastingOwnerAdjustment
Details
Description
The ID of the forecast owner.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true.
OwnerAdjustedAmount
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
The revenue amount of an individual forecast item, after an adjustment.
OwnerAdjustedQuantity
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The quantity amount of an individual forecast item, after an adjustment.
OwnerAdjustmentNote
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A text note providing information about the adjustment. The maximum length
is 140 characters. This field does not appear in reports.
1072
Standard Objects
ForecastingQuota
Field Name
Details
PeriodId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the adjustment. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The Product Family for the adjustment. Read only.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort
Description
The start of the adjustment, expressed as month and year. The date can include
any day in a given month. Stored using the first date of the month.
Usage
Use this object to obtain a user’s adjustment detail for a specified ForecastingItem in their own forecast.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
ForecastingQuota
This object represents an individual user’s quota for a specified time period. The “Manage Quotas” user permission is required for creating,
updating, or deleting quotas. (Users can only edit their subordinates’ quotas, not their own.) The “View All Forecasts” permission is
required to View any user's forecast, regardless of the forecast role hierarchy. Available in API versions 25 and greater. Forecast managers
can view the forecasts of subordinates who report to them in the forecast hierarchy.
Note: This information only applies to Collaborative Forecasts.
1073
Standard Objects
ForecastingQuota
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The currency code of the quota. If omitted, the default is the importing user’s
personal currency.
ForecastingTypeId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the related ForecastingType.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a revenue amount. If false, then
IsQuantity must be true. This field is available in API version 28 and later.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
True indicates that the adjustment is made in a quantity amount. If false, then
IsAmount must be true. This field is available in API version 28 and later.
PeriodId
Type
reference
1074
Standard Objects
Field Name
ForecastingQuota
Details
Properties
Filter, Group, Nillable, Sort
Description
Period ID for the quota. Read only.
ProductFamily
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort
Description
The product family for the quota. This field is available in API version 29 and later.
QuotaAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The revenue quota amount for an individual user and for a specific period.
QuotaOwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID that identifies the quota owner.
QuotaQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity quota amount for an individual user and for a specific period. This
field is available in API version 28 and later.
StartDate
Type
date
Properties
Create, Filter, Group, Sort, Update
1075
Standard Objects
Field Name
ForecastingType
Details
Description
The start of the quota, expressed as month and year. The date can include any
day in a given month. Stored using the first date of the month.
Usage
Use this object to get an individual user’s quota for a specified time period.
Note: Beginning with API version 30.0, organizations can have more than one forecasting type enabled. The
ForecastingQuota, ForecastingAdjustment, ForecastingOwnerAdjustment, ForecastingItem,
and ForecastingFact objects can all have records with different ForecastingTypeId values. Use the ForecastingType
object to determine the ID for each forecast type and then filter ForecastingQuota, ForecastingAdjustment,
ForecastingItem, or ForecastingFact records as necessary.
SEE ALSO:
ForecastingAdjustment
ForecastingFact
ForecastingItem
ForecastingType
This object is used to identify the forecast type associated with ForecastingAdjustment, ForecastingOwnerAdjustment,
ForecastingQuota, ForecastingFact, and ForecastingItem objects. Available in API versions 30.0 and greater.
Note: This information only applies to Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The name of the forecasting type. Allowed values include:
• OpportunityRevenue : Opportunities - Revenue
1076
Standard Objects
Field Name
ForecastingType
Details
• OpportunityQuantity : Opportunities - Quantity
• OpportunitySplitRevenue : Opportunity Revenue Splits - Revenue
• OpportunityOverlayRevenue : Opportunity Overlay Splits - Revenue
• OpportunityLineItemRevenue : Product Families - Revenue
• OpportunityLineItemQuantity : Product Families - Quantity
• The name of a custom opportunity split type that has been enabled as a
forecast type. Custom split types are based on currency fields, which can
contain revenue amounts only.
The DeveloperName is called name in the Metadata API and Forecasting
Type in custom reports.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is currently enabled in the organization.
IsAmount
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is based on the revenue measurement.
IsQuantity
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the forecasting type is based on the quantity measurement.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the forecasting type.
1077
Standard Objects
ForecastingUserPreference
Field Name
Details
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Master label for this Forecasting Type value. This display value is the internal label
that does not get translated.
Usage
Use this object to identify the forecast type of ForecastingAdjustment, ForecastingQuota, ForecastingFact, and
ForecastingItem objects.
ForecastingUserPreference
Represents the forecasting selections that a user has made, such as display options, date range, forecasting type, and currency.
Note: This information applies to Collaborative Forecasts and not to Customizable Forecasts.
Supported Calls
create(), describeSObjects(), query(), update(), upsert()
Fields
Field Name
Details
ExternalId
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A unique system-generated numerical identifier for the user.
ForecastingDisplayedTypeId
Type
reference
Properties
Create, Group, Sort, Update
Description
An identifier for the forecasting type that’s displayed.
1078
Standard Objects
ForecastingUserPreference
Field Name
Details
ForecastingPeriodDuration
Type
int
Properties
Create, Group, Nillable, Sort, Update
Description
How long the forecasting period lasts.
ForecastingPeriodType
Type
picklist
Properties
Create, Group, Nillable, Restricted picklist, Sort, Update
Description
The forecasting period’s type. Valid values include: Month, Quarter, Week, or Year
ForecastingStartPeriod
Type
int
Properties
Create, Group, Nillable, Sort, Update
Description
The date when the forecasting period begins.
ForecastingViewCurrency
Type
string
Properties
Create, Group, Nillable, Sort, Update
Description
The currency shown on the forecasts page.
IsForecastingHideZeroRows
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows zero-value rows.
IsForecastingShowQuantity
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
1079
Standard Objects
Field Name
ForecastShare
Details
Description
Whether the forecasts page shows forecast quantity.
IsHideForecastingGuidedTour
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows the guided tour.
IsHideForecastingQuotaColumn
Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows a quota column.
IsShowForecastingQuotaAttainment Type
boolean
Properties
Create, Defaulted on create, Group, Sort, Update
Description
Whether the forecasts page shows quota attainment information (Salesforce
Classic only).
ForecastShare
Represents the sharing of a customizable forecast at a given role and territory.
Note: This information applies to Customizable Forecasting and not Collaborative Forecasts.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Customer Portal users can’t access this object.
1080
Standard Objects
ForecastShare
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
AccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
A value (Read, Edit, or All) that represents the type of sharing being allowed.
CanSubmit
Type
boolean
Properties
Filter, Group, Sort
Description
Indicates whether the user or group can submit forecasts (True) or not (False).
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API versions
32.0 and later with the correct organization-wide sharing settings.
Valid values include:
•
Manual—The User or Group has access because a User has manually shared
the forecast with them.
•
UserOrGroupId
Owner—The User is the owner of the forecast.
Type
reference
Properties
Filter, Group, Sort
Description
The ID representing the User or Group being granted access.
UserRoleId
Type
reference
Properties
Filter, Group, Sort
1081
Standard Objects
Field
Goal
Details
Description
ID of the UserRole associated with this object.
Usage
This object allows you to determine which users and groups can view or submit forecasts owned by other users.
Goal
The Goal object represents the components of a goal such as its name, description, and status.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Name
Details
CompletionDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The completion date of the goal.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the goal. The maximum length is 65,535 characters.
DueDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date the goal is due.
1082
Standard Objects
Goal
Field Name
Details
ImageUrl
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL for the goal image. The image must be stored in Documents and set as
externally available. Applicable only to Goal objects of Type: Goal.
IsKeyCompanyGoal
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the goal is a key company goal.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed a record that is related to
this goal.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed this goal. If this value is
null, this record might have been only referenced (LastReferencedDate)
and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the goal. The maximum length is 255 characters.
OwnerId
Type
reference
1083
Standard Objects
Field Name
GoalFeed
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the goal.
Progress
Type
percent
Properties
Filter, Nillable, Sort
Description
The progress of the goal measured as a percentage.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The start date of the goal.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The status of the goal.
Possible values:
• Draft
• Published
• Completed
• Canceled
• Not Completed
GoalFeed
Represents a single feed item in the feed displayed for a Goal record. The goal feed shows changes to a goal for fields that are tracked
in feeds, posts, and comments about the goal.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1084
Standard Objects
GoalFeed
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the FeedItem. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The numbers of FeedComments associated with this feed item.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
1085
Standard Objects
Field Name
GoalFeed
Details
Description
Available in API version 36.0 and earlier only. The file uploaded to the feed.
Required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The size of the file (in bytes)
uploaded to the feed.
ContentType
Type
string
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The MIME type of the file
uploaded to the feed.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if a client
application migrates posts and comments from another application into a feed,
then InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
1086
Standard Objects
Field Name
GoalFeed
Details
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the goal record that is tracked in the feed. The feed is displayed on the detail
page for this record.
RelatedRecordId
Type
reference
1087
Standard Objects
Field Name
GoalFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null
for all posts except ContentPost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of TypeContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and
TextPost, don’t create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
1088
Standard Objects
Field Name
GoalFeed
Details
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply only
to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article
to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status of
a case.
• ChatTranscriptPost—generated event when Live Agent transcript is
saved to a case.
• EmailMessageEvent—generated event when an email related to a case
object is sent or received.
• FacebookPost—generated when a Facebook post is created from a case.
Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
1089
Standard Objects
GoalHistory
GoalHistory
This read-only object contains historical information about changes that have been made to the Goal object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
GoalId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the goal.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
1090
Standard Objects
GoalLink
GoalLink
Represents the relationship between two goals. This is a many-to-many relationship, meaning that each goal can link to many other
goals.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Fields
Field Name
Details
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The auto-generated name of the goal link.
ParentGoalId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the parent goal.
SubgoalId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the subgoal.
GoalShare
Represents a sharing entry on a Goal object.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
1091
Standard Objects
GoalShare
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The user’s or group’s level of access to the goal. The possible values are:
• Read Only
• Read/Write
• Owner
This field must be set to an access level that is higher than the organization’s
default access level for goals.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the goal that is associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Valid values include:
• Owner: User is the owner of the Goal or is in a user role above the Goal owner
in the role hierarchy.
• Manual: User or group has access because a user with “All” access manually
shared the Goal with the user or group.
• Rule: User or group has access via a Goal sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
1092
Standard Objects
Field Name
GoogleDoc
Details
Description
ID of the user or group that was given access to the Goal. This field can’t be
updated.
GoogleDoc
Represents a link to a Google Document. This object is available in API version 14.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Special Access Rules
This object is available in All Editions except Database.com for Google Apps Premier Edition accounts. See the Salesforce online help
for more information.
Fields
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the Google document.
Owner
Type
reference
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
The ID of the user who currently owns this Google Document. Default value is the
user logged in to the API to perform the create.
ParentId
Type
reference
Properties
Create, Filter
1093
Standard Objects
Field
Group
Details
Description
Required. ID of the attachment's parent object. The following objects are supported
as parents of Google documents: Account, Asset, Campaign, Case, Contact, Contract,
Custom Objects, Lead, Opportunity, Product2, and Solution.
Url
Type
string
Properties
Create, Filter, Nillable, Update
Description
The URL of the Google document.
Group
A set of User records.
Groups are sets of users. They can contain individual users, other groups, the users in a particular role or territory, or the users in a particular
role or territory plus all of the users below that role or territory in the hierarchy.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), search(), retrieve(),
update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
DefaultDivision
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
This record’s default division. Only applicable if divisions are enabled for your organization.
DeveloperName
Type
string
1094
Standard Objects
Field
Group
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter,
not include spaces, not end with an underscore, and not contain two consecutive
underscores. In managed packages, this field prevents naming conflicts on package
installations. With this field, a developer can change the object’s name in a managed
package and the changes are reflected in a subscriber’s organization. Corresponds to
Group Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
DoesIncludeBosses
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the managers have access (true) or do not have access (false) to
records shared with members of the group. This field is only available for public groups.
This field is available in API version 18.0 and later.
DoesSendEmailToMembers
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the email is sent (true) or not sent (false) to the group members.
The email is sent to queue members as well.
Email
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Email address for a group of type Case. Applies only for a case queue.
Name
Type
string
1095
Standard Objects
Field
Group
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the group. Corresponds to Label on the user interface.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who owns the group.
QueueRoutingConfig
Type
reference
Properties
Create, Delete, Query, Retrieve, Update
Description
The ID of the queue routing configuration associated with the queue.
RelatedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Represents the ID of the associated groups. For Groups of type “Role,” the ID of the
associated UserRole. The RelatedId field is polymorphic.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Required. Type of the Group. One of the following values:
• Regular—Standard Public Group. When you create() a Group, its type must
be Regular, unless a partner portal is enabled for the organization, in which case
the type can be Regular or PRMOrganization.
• Role—Public Group that includes all of the User records in a particular UserRole.
• RoleAndSubordinates—Public Group that includes all of the User records in
a particular UserRole and all of the User records in any subordinateUserRole.
• Organization—Public Group that includes all of the User records in the
organization. This Group is read-only.
1096
Standard Objects
Field
GroupMember
Details
• Case—Public group of users, members of a queue that can own a Case.
• Lead—Public group of users, members of a queue that can own a Lead.
• Manager—Public group that includes a user’s direct and indirect managers. This
Group is read-only.
• ManagerAndSubordinatesInternal—Public Group that includes a user
and the user’s direct and indirect reports. This Group is read-only.
• PRMOrganization—Public Group that includes all of the partners in an
organization that has the partner portal feature enabled.
• Queue—Public Group that includes all of the User records that are members of a
queue.
• Territory—Public Group that includes all of the User records in an organization
that has the territory feature enabled.
• TerritoryAndSubordinates—Public Group that includes all of the User
records in a particular UserRole and all of the User records in any subordinateUserRole.
• Collaboration—Chatter group.
Only Regular, Case, and Lead can be used when creating a group. The other
values are reserved.
Usage
Unlike users, this object can be deleted. Any User can access this object—no special permissions are needed.
Only public groups are accessible via the API. Personal groups are not available.
In API version 39.0 and later, you can query a Group using Related.Name to retrieve the Group’s name. Related.Name is
supported for public groups, user roles, territories, manager groups, and user names.
In API version 13.0 and later, if you delete a public group, it will be deleted even if it has been used in sharing, consistent with the behavior
for UserRole. In versions before 13.0, such sharing prevents the record from being deleted.
SEE ALSO:
GroupMember
Object Basics
GroupMember
Represents a User or Group that is a member of a public group.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1097
Standard Objects
HashtagDefinition
Special Access Rules
Customer Portal users cannot access this object.
Fields
Field
Details
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Group.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the User or Group that is a direct member of the group.
Usage
A record exists for every User or Group who is a direct member of a public group whose Type field is set to Regular. User records that
are indirect members of Regular public groups are not listed as group members. A User can be an indirect member of a group if he or
she is in a UserRole above the direct group member in the hierarchy, or if he or she is a member of a group that is included as a subgroup
in that group.
If you attempt to create a record that matches an existing record, system simply returns the existing record.
SEE ALSO:
Object Basics
HashtagDefinition
HashtagDefinition represents hashtag (#) topics in public Chatter posts and comments. Public posts and comments include those on
profiles and in public groups, but not those on records or in private groups. This object is available in API version 26.0 and later.
Important: Starting in Spring ’16, API access to HashtagDefinition is disabled across all API versions. Any integrations relying on
API queries to this object stop working. You can continue to use hashtags in posts and comments, and the hashtags continue to
create corresponding topics. We recommend that you redirect all API queries and reports using the HashtagDefinition object to
use the Topic object instead. For more information, see Retiring the Legacy HashtagDefinition Object—FAQs.
1098
Standard Objects
HashtagDefinition
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
HashtagCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times a hashtag topic is used.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The string of characters following the hashtag (#) in a hashtag topic.
NameNorm
Type
string
Properties
Filter, Nillable, Sort
Description
The string of characters following the hashtag (#) in a hashtag topic, normalized
to remove capitalization and punctuation.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the community to which the HashtagDefinition belongs. This field
is available only if Salesforce Communities is enabled in your organization.
1099
Standard Objects
Holiday
Usage
Use this object to identify public hashtag topics and see how often they’re used.
SEE ALSO:
Topic
Holiday
Represents a period of time during which your customer support team is unavailable. Business hours and escalation rules associated
with business hours are suspended during any holidays with which they are affiliated.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
All users, even those without the “View Setup and Configuration” user permission, can view holidays via the API.
Fields
Field
Details
ActivityDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If the Holiday IsAllDay flag is set to true (indicating that it is an all-day holiday), then
the holiday due date information is contained in the ActivityDate field. This field is a
date field with a timestamp that is always set to midnight in the Coordinated Universal Time
(UTC) time zone. The timestamp is not relevant, and you should not attempt to alter it to
account for any time zone differences.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the holiday.
1100
Standard Objects
Holiday
Field
Details
EndTimeInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The end time of the holiday in minutes.
IsAllDay
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the duration of the holiday is all day (true) or not (false).
IsRecurrence
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the holiday is scheduled to repeat itself (true) or only occurs once
(false). This is a read only field on update, but not on create. If this field value is true,
then any recurrence fields associated with the given recurrence type must be populated.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the holiday.
RecurrenceDayOfMonth
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The day of the month on which the holiday repeats.
RecurrenceDayOfWeekMask Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
1101
Standard Objects
Field
Holiday
Details
Description
The day or days of the week on which the holiday repeats. This field contains a bitmask. For
each day of the week, the values are as follows:
• Sunday = 1
• Monday = 2
• Tuesday = 4
• Wednesday = 8
• Thursday = 16
• Friday = 32
• Saturday = 64
Multiple days are represented as the sum of their numerical values. For example, Tuesday
and Thursday = 4 + 16 = 20.
RecurrenceEndDateOnly
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The last date on which the holiday repeats. For multiday recurring events, this is the day on
which the last occurrence starts.
RecurrenceInstance
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The frequency of the recurring holiday. For example, 2nd or 3rd.
RecurrenceInterval
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The interval between recurring holidays.
RecurrenceMonthOfYear
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The month of the year on which the event repeats.
1102
Standard Objects
Idea
Field
Details
RecurrenceStartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date when the recurring holiday begins. Must be a date and time before
RecurrenceEndDateOnly.
RecurrenceType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how often the holiday repeats. For example, daily, weekly, or every Nth month
(where “Nth” is defined in RecurrenceInstance).
StartTimeInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The start time of the holiday in minutes.
Usage
Use this object to view and update holidays, which specify dates and times at which associated business hours and escalation rules are
suspended.
Idea
Represents an idea on which users are allowed to comment and vote, for example, a suggestion for an enhancement to an existing
product or process. This object is available in API version 12 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Note: For other standard objects, the describeLayout() call returns the recordTypeMappings section that contains
the layout ID and picklist values for each record type. However, the recordTypeMappings section and the fields it includes
are not available for the Idea object.
When performing a SOSL search on Idea objects, IdeaComment objects are also searched.
1103
Standard Objects
Idea
Fields
Field
Details
AttachmentBody
Type
base64
Properties
Create, Nillable, Update
Description
File data for the attachment. This field is available in API version 28.0 and later.
AttachmentContentType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Type of the attachment. This field is available in API version 28.0 and later.
AttachmentLength
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the attachment in bytes. This field is available in API version 28.0 and later.
AttachmentName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the attachment. This field is available in API version 28.0 and later.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the Idea.
Categories
Type
multipicklist
1104
Standard Objects
Field
Idea
Details
Properties
Create, Filter, Nillable, Update
Description
Customizable multi-select picklist used to organize Ideas into logical groupings.
Note: This field is only available if your organization has the Categories field
enabled. This field is enabled by default in organizations created after API version 14
was released. If the Categories field is enabled, API versions 13 and earlier do
not have access to either the Categories or Category fields.
Category
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Customizable picklist of values used to organize Ideas into logical groupings.
Note: This field is not available if your organization has the multi-select
Categories field enabled.
CommunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The zone ID associated with the idea. Once you create an idea, you can’t change the zone
ID associated with that idea.
Note: API version 12 does not support zone ID. If you create an idea in version 12,
your idea is automatically posted to the oldest zone that you have permission to
access.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo. This field is available in API version 28.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
1105
Standard Objects
Field
Idea
Details
Description
Name of the user who posted the idea or commented on the idea.
This field is available in API version 28.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo. This field is available in API version 28.0 and later.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
IdeaThemeID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Identifies the idea theme associated with the idea.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsHtml
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1106
Standard Objects
Field
Idea
Details
Description
Read-only. If this value is true, your organization has the Ideas HTML editor enabled, and
the Idea Body may contain HTML. If this value is false, the HTML editor is disabled and
the Idea Body only contains regular text.
IsMerged
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read only. Indicates whether the idea has been merged with a parent idea (true) or not
(false). You can’t vote for or add comments to a merged idea.
Note: In API version 27, IsMerged replaces IsLocked. Existing formula fields
that use IsLocked must be edited to use IsMerged.
LastCommentDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time the last comment (child IdeaComment object) was added.
LastCommentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Read only. The ID of the last comment (child IdeaComment object).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
1107
Standard Objects
Field
Idea
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
NumComments
Type
int
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The number of comments (child IdeaComment objects) that users have submitted for the
given idea.
ParentIdeaId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID associated with this idea's parent idea. When multiple ideas are merged together,
one idea becomes the parent (master) of the other ideas. The ParentIdeaId is
automatically set when you merge ideas.
RecordTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the record type assigned to this object.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values used to specify the status of an idea.
Title
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The descriptive title of the idea.
1108
Standard Objects
IdeaComment
Field
Details
VoteScore
Type
double
Properties
Filter, Nillable, Sort
Description
The internal score of the Idea, used to sort Ideas on the Popular tab in the application user
interface. The internal algorithm that determines the score gives older votes less weight than
newer votes, simulating exponential decay. The score itself does not display in the application
user interface.
Note: Unlike other fields of type double, you can't use a SOQL aggregate function
with this field.
VoteTotal
Type
double
Properties
Filter, Nillable, Sort
Description
An Idea's total number of points. Each vote a user makes is worth ten points, therefore the
value of this field is ten times the number of votes an idea has received.
Note: Unlike other fields of type double, you can't use a SOQL aggregate function
with this field.
Note: If you are importing Idea data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use this object to track ideas, which are written suggestions on which users can vote and comment.
SEE ALSO:
IdeaComment
Vote
IdeaComment
Represents a comment that a user has submitted in response to an idea.
1109
Standard Objects
IdeaComment
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Note: When performing a SOSL search on IdeaComment objects, Idea objects are also searched.
Fields
Field
Field Type
CommentBody
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Body of the submitted comment.
CommunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The zone ID associated with the idea. Once you create an idea, you can’t change the zone
ID associated with that idea.
Note: API version 12 does not support zone ID. If you create an idea in version 12,
your idea is automatically posted to the oldest zone that you have permission to
access.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo. This field is available in API version 28.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the idea or commented on the idea. This field is available in
API version 28.0 and later.
1110
Standard Objects
IdeaComment
Field
Field Type
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo. This field is available in API version 28.0 and later.
IdeaId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the idea on which this comment was made.
IsHtml
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only. If this value is true, your organization has the Ideas HTML editor enabled, and
the CommentBody field may contain HTML. If this value is false, the HTML editor is
disabled and the CommentBody field only contains regular text.
UpVotes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Total number of up votes for the question.
Note: If you import these records, and need to set the value for an audit field, such as CreatedDate, contact Salesforce. Audit
fields are automatically updated during API operations unless you request to set these fields yourself.
Usage
Use this object to track comments on ideas, which are users' text responses to ideas.
SEE ALSO:
Idea
Vote
1111
Standard Objects
IdeaReputation
IdeaReputation
Represents a collection of statistics and scores derived from a user’s activity within an Ideas zone or internal organization. This object is
available in API version 28.0 and later.
Supported Calls
query(), retrieve(),
Fields
Field
Details
CommentCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of comments a user has created in a zone or the internal organization. This
number excludes comments the user creates on his or her own idea.
CommentsReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of comments a user has received in a zone or the internal organization.
ContextId
Type
reference
Properties
Filter, Group, Namepointing, Nillable, Sort
Description
The ID of the zone or internal organization.
DownVotesGivenCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes a user has given in a zone or the internal organization.
1112
Standard Objects
IdeaReputation
Field
Details
DownVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes a user has received in a zone or the internal organization.
IdeaCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of ideas a user has created in a zone or the internal organization.
ReputationLevel
Type
string
Properties
Nillable
Description
The reputation level that a user has achieved based on their score in a zone or within an
organization.
Score
Type
double
Properties
Filter, Nillable, Sort
Description
The total score of a user’s activity within a zone or within an organization.
UpVotesGivenCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes a user has given in a zone or the internal organization. This number
doesn’t include the default vote the system applies when the user creates the idea.
UpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
1113
Standard Objects
Field
IdeaReputationLevel
Details
Description
The number of up votes a user has received in a zone or the internal organization.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
The user ID associated with the reputation.
Usage
Use to query a user’s reputation within a zone.
IdeaReputationLevel
Represents a reputation level within an Ideas zone or internal organization and is used by the system to calculate reputation. You can
create up to 25 levels per zone or internal organization. This object is available in API version 28.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ContextId
Type
reference
Properties
Create, Filter, Group, Namepointing, Sort, Update
Description
The ID of the zone or internal organization.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
1114
Standard Objects
Field Name
IdeaTheme
Details
Description
Name of the reputation level. The name must be unique within the zone or
internal organization. Maximum size is 50 characters.
Threshold
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Minimum number of points for this level. The threshold must be unique within
the zone or internal organization and must be greater than or equal to zero.
Usage
Use to create or edit reputation levels for an Ideas zone or internal organization.
IdeaTheme
Represents an invitation to community members to submit ideas that are focused on a specific topic. This object is available in API
version 26 and later.
Supported Calls
create(), delete(), describeLayout(), query(), retrieve(), search(), undelete(), update(),
Fields
Field Name
Details
Categories
Type
multipicklist
Properties
Create, Filter, Nillable, Update
Description
Customizable multi-select picklist used to organize ideas and idea themes into
logical groupings.
CommunityId
Type
reference
1115
Standard Objects
Field Name
IdeaTheme
Details
Properties
Create, Filter, Group, Nillable, Sort,
Description
The zone ID associated with the idea theme.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains
the ISO code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the idea theme.
EndDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date marking the end of the idea theme.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
StartDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date that the idea theme begins.
1116
Standard Objects
KnowledgeableUser
Field Name
Details
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values used to specify the status of the idea theme.
Title
Type
string
Properties
Create, Filter, Group, idLookup, Namefield, Sort, Update
Description
Title of the idea theme.
Usage
Use the object to track ideas that are submitted to an idea theme.
KnowledgeableUser
Represents a user identified as knowledgeable about a specific topic, and ranks them relative to other knowledgeable users. This object
is available in API version 31.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community the topic exists in. This field is available only if Salesforce
Communities is enabled for your organization.
1117
Standard Objects
KnowledgeArticle
Field Name
Details
RawRank
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Rank of this user’s knowledge on the topic relative to other users.
TopicId
Type
reference
Properties
Filter, Group, Sort
Description
Unique ID for the topic in Salesforce.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
Unique ID for the user in Salesforce.
KnowledgeArticle
Provides read-only access to an article and the ability to delete the master article. This object is available in API version 19.0 and later.
Unlike KnowledgeArticleVersion, the ID of a KnowledgeArticle record is identical irrespective of the article's version (status). For more
information on articles and article types, see “Work with Articles and Translations” and “Knowledge Article Types” in the Salesforce online
help.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Special Access Rules
A user must have the “View Articles” permission enabled. Salesforce Knowledge users, unlike Customer Portal and partner portal users,
must also be granted the Knowledge User feature license.
1118
Standard Objects
KnowledgeArticle
Fields
Field Name
Details
ArchivedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user who archived the article.
ArchivedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was archived.
ArticleNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The unique number automatically assigned to the article when it's created. You can't
change the format or value for this field.
CaseAssociationCount
Type
int
Properties
Filter, Group, Sort
Description
The number of cases attached to the article.
FirstPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was first published.
LastPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
1119
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
The date when the article was last published.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null,
this record might only have been referenced (LastReferencedDate) and not
viewed.
MasterLanguage
Type
picklist
Properties
Filter, Restricted picklist
Description
The article's original language. Only accessible if your knowledge base supports
multiple languages.
Usage
Use this object to query or retrieve articles. KnowledgeArticle can be used in a SOQL clause, but doesn’t provide access to the fields from
the article. Provides read-only access to an article and the ability to delete the master article.
SEE ALSO:
Articles
Data Categories
KnowledgeArticleVersion
KnowledgeArticleVersion
Provides a global view of standard article fields across all article types depending on their version. This object is available in API version
18.0 and later.
1120
Standard Objects
KnowledgeArticleVersion
Use this object to:
• Query or search generically across multiple article types.
• Filter on a specific version.
• Update standard fields, those fields that are updateable, in draft versions.
When you query on the archived article, the results include both the article and the article’s archived versions.
Note: You can’t update draft translations with the API.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), and
update().
Note:
• You can only update draft versions.
• To create, update, or delete a Knowledge article version, use the call on ArticleType_kav, where ArticleType is the name of the
article’s type. For example, to delete, use ArticleType_kav.delete().
Special Access Rules
A user must have the “View Articles” permission enabled. Salesforce Knowledge users, unlike Customer Portal and partner portal users,
must also be granted the Knowledge User feature license to view and edit article versions.
Fields
Field Name
Details
ArchivedById
Type
reference
Properties
Filter, Nillable
Description
The ID of the user who archived the article.
ArchivedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was archived.
ArticleNumber
Type
string
1121
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Properties
Autonumber, Defaulted on create, Filter
Description
The unique number automatically assigned to the article when it's created. You can't
change the format or value for this field.
ArticleType
Type
string
Properties
Defaulted on create,Filter
Description
Indicates the API Name of the article type. The ArticleType is assigned to the
article when it's created. You can't change the value of this field. This field is available
in API version 26.0 and later.
FirstPublishedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was first published.
IsLatestVersion
Type
boolean
Properties
Defaulted on create, Group, Filter, Sort
Description
Indicates whether the article is the most current version. (true) or not (false).
This field can be true on the online or published version, a draft version in the
master language, a draft version in a translation, and the latest archived version.
However, you can’t filter by (PublishState=’Online’) and (IsLatestVersion=false) because
the online version is also the latest version. This field is available in API version 24.0
and later.
IsMasterLanguage
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the article has one or more translations associated with it (true)
or not (false). Only accessible if your knowledge base supports multiple languages.
1122
Standard Objects
KnowledgeArticleVersion
Field Name
Details
IsOutOfDate
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the source article has been updated since this translated version
was created (true) or not (false). Only accessible if your knowledge base supports
multiple languages.
IsVisibleInApp
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the Articles tab (true) or not
(false).
IsVisibleInCsp
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the Customer Portal (true) or
not (false).
IsVisibleInPkb
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the public knowledge base (true)
or not (false).
IsVisibleInPrm
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the partner portal (true) or not
(false).
1123
Standard Objects
KnowledgeArticleVersion
Field Name
Details
KnowledgeArticleId
Type
reference
Properties
Filter
Description
The ID of the article independent from its version. The value for this field is retrieved
from the Id field of the KnowledgeArticle object.
Language
Type
picklist
Properties
Filter, Restricted picklist
Description
The language that the article is written in, such as French or Chinese
(Traditional).
Querying or searching articles in SOQL or SOSL requires that you specify the
Language field in the WHERE clause. The language must be the same for all article
types.
LastPublishedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was last published.
MasterVersionId
Type
reference
Properties
Filter, Nillable
Description
ID of the source article, if the article is the translation of a source article. Only accessible
if your knowledge base supports multiple languages.
OwnerId
Type
reference
Properties
Filter
Description
The ID of the article's owner.
1124
Standard Objects
KnowledgeArticleVersion
Field Name
Details
PublishStatus
Type
picklist
Properties
Defaulted on create, Filter, Restricted picklist
Description
The publication status for the article:
• Draft: any draft articles.
• Online: articles published in Salesforce Knowledge.
• Archived: archived articles.
A user must have the “Manage Articles” permission enabled to use Online.
Querying or searching articles in SOQL or SOSL requires that you specify either the
PublishStatus or the Id field in the WHERE clause. You can search for only
one publication status per article type in a single SOSL query. When searching for
articles with a PublishStatus of Archived, also check that
IsLatestVersion equals false in your WHERE clause.
SourceId
Type
reference
Properties
Filter, Nillable
Description
ID of the source from which the article was created (Case or Reply).
Summary
Type
textarea
Properties
Filter, Nillable
Description
Summary of the article. Maximum size is 1000 characters.
Title
Type
string
Properties
Defaulted on create, Filter, idLookup
Description
Required. Article's title. Maximum size is 255 characters.
TranslationCompletedDate
Type
dateTime
Properties
Filter, Nillable
1125
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
Date and time when the article was last translated. Only accessible if your knowledge
base supports multiple languages.
TranslationExportedDate
Type
dateTime
Properties
Filter, Nillable
Description
Date and time when the article was last exported for translation. Only accessible if
your knowledge base supports multiple languages.
TranslationImportedDate
Type
dateTime
Properties
Filter, Nillable
Description
Date and time when the article was last imported for translation. Only accessible if
your knowledge base supports multiple languages.
UrlName
Type
string
Properties
Filter
Description
Required. Represents the article's URL. Can contain alphanumeric characters and
hyphens but can't begin or end with a hyphen. UrlName is case-sensitive and its
maximum size is 255 characters.
ValidationStatus
Type
picklist
Properties
Filter, Group
Description
Shows whether the content of the article has been validated. Default values are
Validated and Not Validated. This field is available in API version 24.0 or
later.
VersionNumber
Type
int
Properties
None
1126
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
The number assigned to a version of an article. This field is available in API version
24.0 and later.
Usage
Use this object to query, retrieve, or search for articles across all article types depending on their version. You can update draft master
articles. Additionally, you can delete articles that are not drafts. Client applications can use KnowledgeArticleVersion with
describeDataCategoryGroups() and describeDataCategoryGroupStructures() to return the category
groups and the category structure associated with Salesforce Knowledge.
Alternatively, client applications can use the article type API Name followed by __kav to query, retrieve, or search for articles for a
specific article type.
To access an article independent of its version, use the KnowledgeArticle object.
SOQL Samples
The following SOQL clause uses KnowledgeArticleVersion to query all published articles from all article types complying with the
classification specified in the WITH DATA CATEGORY clause:
SELECT Title, Summary
FROM KnowledgeArticleVersion
WHERE PublishStatus='Online'
AND Language = 'en_US'
WITH DATA CATEGORY Geography__c ABOVE_OR_BELOW europe__c AND Product__c BELOW All__c
The following SOQL clause uses the article type API Name to limit the query to all draft articles from the Offer__kav article type:
SELECT Id, Title
FROM Offer__kav
WHERE PublishStatus='Draft'
AND Language = 'en_US'
WITH DATA CATEGORY Geography__c AT (france__c,usa__c) AND Product__c ABOVE dsl__c
The following SOQL clause uses KnowledgeArticleVersion to query the Ids of all archived versions of a particular article:
SELECT Id
FROM KnowledgeArticleVersion
WHERE PublishStatus='Archived'
AND IsLatestVersion=false
AND KnowledgeArticleId='kA1D00000001PQ6KAM'
SOQL and SOSL with KnowledgeArticleVersion
• Always filter on a single value of PublishStatus unless the query filters on one or more primary key IDs. To support security,
only users with the “Manage Articles” permission see articles whose PublishStatus value is Draft.
• Archived article versions are stored in the articletype_kav object. To query archived article versions, specify the article Id and set
IsLatestVersion='0'.
1127
Standard Objects
KnowledgeArticleVersionHistory
• Always filter on a single value of Language. However, in SOQL, you can filter on more than one Language if there is a filter on
Id or KnowledgeArticleId.
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleViewStat
KnowledgeArticleVoteStat
KnowledgeArticleVersionHistory
Enables read-only access to the full history of an article. This object is available in API version 25.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
This object respects field, entity, and record-level security. You must have at least “Read” permission on the article type or the field to
access its history. For data category security, Salesforce determines access based on the categorization of the online version of an article.
If there is no online version, then security is applied based on the archived version, followed by the security of the draft version.
Fields
Field Name
Details
EventType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of event that is tracked in the history table.
FieldName
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Name of the tracked field.
1128
Standard Objects
KnowledgeArticleVersionHistory
Field Name
Details
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language that the article is written in, such as French or Chinese
(Traditional). Querying or searching articles in SOQL or SOSL requires
that you specify the Language field in the WHERE clause. The language must
be the same for all article types.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The most recent value of the field before it was changed.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the article.
ParentSobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of object that contains the field.
VersionId
Type
reference
1129
Standard Objects
Field Name
KnowledgeArticleViewStat
Details
Properties
Filter, Group, Nillable, Sort
Description
The ID assigned to a version of the article.
VersionNumber
Type
int
Properties
Filter, Group, Sort
Description
The number assigned to a version of an article. This field is available in API version
24.0 and later.
Usage
Use this object to query events in the history of an article. For example, you can retrieve the number of edits a particular user has made
to an article, how many times the article has been published, and so on.
KnowledgeArticleViewStat
Provides statistics on the number of views for the specified article across all article types. This object is read-only and available in API
version 20 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Users must have access to the published version of an article to retrieve its views. For more information on published article version, see
the PublishStatus field in KnowledgeArticleVersion.
Fields
Field Name
Details
Channel
Type
picklist
Properties
Filter, Restricted picklist
1130
Standard Objects
Field Name
KnowledgeArticleViewStat
Details
Description
The channel where the article is viewed:
• AllChannels for article views across all channels.
• App for the internal Salesforce Knowledge application.
• Pkb for article views in public knowledge base.
• Csp for Customer Portal.
• Prm for article view in partner portal.
NormalizedScore
Type
double
Properties
Filter, Nillable
Description
Article's weighted views in the selected channel. The article with most views has a
score of 100. Other article views are then calculated relative to this highest view score.
For example, if the best read article has 2000 views and another has 1000. The first
one gets a score of 100 while the second gets 50.
ParentId
Type
reference
Properties
Filter
Description
ID of the viewed article. This corresponds to a KnowledgeArticle record.
ViewCount
Type
int
Properties
Filter, Group, Sort
Description
The number of unique views an article has received in the selected channel. An article
with a high number of views may not always have a high normalized score. The
normalized score for an article is calculated based on views over time, with more
recent views earning a higher score. This field is available in API version 27.0 and later.
Usage
Use this object to query or retrieve statistics for article views.
Alternatively, client applications can use the article type API Name followed by __ViewStat to query or retrieve most viewed
articles from a specific article type.
1131
Standard Objects
KnowledgeArticleVoteStat
SOQL Samples
The following SOQL clause uses KnowledgeArticleViewStat to query all the article views in Salesforce Knowledge and return the related
articles:
SELECT Id, NormalizedScore, Parent.Id
FROM KnowledgeArticleViewStat where Channel = 'App'
ORDER BY NormalizedScore
Use the following clause to restrict your query to Offer articles for the Offer article type:
SELECT Id, NormalizedScore, Parent.Id
FROM Offer__ViewStat where Channel = 'App'
ORDER BY NormalizedScore
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleVersion
KnowledgeArticleVoteStat
KnowledgeArticleVoteStat
Provides the weighted rating for the specified article on a scale of 1 to 5 across all article types. This object is read-only and available in
API version 20 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Users must have access to the published version of an article to retrieve its votes. For more information on published article version, see
the PublishStatus field in KnowledgeArticleVersion
Fields
Field Name
Details
Channel
Type
picklist
Properties
Filter, Restricted picklist
Description
The channel where the article is rated:
1132
Standard Objects
Field Name
KnowledgeArticleVoteStat
Details
• AllChannels for article views across all channels.
• App for the internal Salesforce Knowledge application.
• Pkb for article views in public knowledge base.
• Csp for Customer Portal.
• Prm for article view in partner portal.
NormalizedScore
Type
double
Properties
Filter, Nillable
Description
Article's weighted score on a scale of 1 to 5. A higher score means more votes. Articles
without recent votes trend towards an average rating of three stars.
ParentId
Type
reference
Properties
Filter
Description
The rated article. This corresponds to a KnowledgeArticle record.
Usage
Use this object to query or retrieve the rating for an article.
Alternatively, client applications can use the article type API Name followed by __VoteStat to query or retrieve the rating for an
article for a specific article type.
SOQL Samples
See KnowledgeArticleViewStat.
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleVersion
KnowledgeArticleViewStat
1133
Standard Objects
Lead
Lead
Represents a prospect or potential Opportunity.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), merge(),
query(), retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields for details on
compound address fields.
AnnualRevenue
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Annual revenue for the company of the lead.
City
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
City for the address of the lead.
CleanStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the record’s clean status as compared with Data.com. Values are: Matched,
Different, Acknowledged, NotFound, Inactive, Pending, SelectMatch,
or Skipped.
1134
Standard Objects
Field
Lead
Details
Several values for CleanStatus display with different labels on the lead record detail
page.
• Matched displays as In Sync
• Acknowledged displays as Reviewed
• Pending displays as Not Compared
Company
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Company of the lead.
Note: If person account record types have been enabled, and if the value of
Company is null, the lead converts to a person account.
CompanyDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit number
assigned to every business location in the Dun&Bradstreet database that has a unique,
separate, and distinct operation. D-U-N-S numbers are used by industries and organizations
around the world as a global standard for business identification and tracking. Maximum
size is 9 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
ConnectionReceivedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Group, Nillable, Sort
1135
Standard Objects
Field
Lead
Details
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ConvertedAccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Account into which the Lead has been converted.
ConvertedContactId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Contact into which the Lead has been converted.
ConvertedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Date on which this Lead was converted.
ConvertedOpportunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Opportunity into which the Lead has been converted.
Country
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Country for the address of the lead.
1136
Standard Objects
Lead
Field
Details
CountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the lead’s address.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the lead.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Email
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Email address for the lead.
EmailBouncedDate
Type
dateTime
1137
Standard Objects
Field
Lead
Details
Properties
Filter, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the lead bounced, the date and
time the bounce occurred.
EmailBouncedReason
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the lead bounced, the reason the
bounce occurred.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Fax number for the lead.
FirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
First name of the lead. Limited to 40 characters.
HasOptedOutOfEmail
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the lead has opted out of email (true) or not (false). Label is Email
Opt Out.
GeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
1138
Standard Objects
Field
Lead
Details
Description
Accuracy level of the geocode for the address on this object. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
Industry
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Industry the lead works in.
IsConverted
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
Indicates whether the Lead has been converted (true) or not (false). Label is Converted.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsUnreadByOwner
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, lead has been assigned, but not yet viewed. See Unread Leads for more information.
Label is Unread By Owner.
Jigsaw
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
References the ID of a contact in Data.com. If a lead has a value in this field, it means that a
contact was imported as a lead from Data.com. If the contact (converted to a lead) was not
1139
Standard Objects
Field
Lead
Details
imported from Data.com, the field value is null. Maximum size is 20 characters. Available in
API version 22.0 and later. Label is Data.com Key.
Important: The Jigsawfield is exposed in the API to support troubleshooting for
import errors and reimporting of corrected data. Do not modify the value in the
Jigsaw field.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Last name of the lead. Limited to 80 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Latitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
1140
Standard Objects
Field
Lead
Details
Description
Used with Longitude to specify the precise geolocation of an address. Acceptable values
are numbers between –90 and 90 with up to 15 decimal places. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
Longitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with Latitude to specify the precise geolocation of an address. Acceptable values
are numbers between –180 and 180 with up to 15 decimal places. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Source from which the lead was obtained.
MasterRecordId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
If this object was deleted as the result of a merge, this field contains the ID of the record that
was kept. If this object was deleted for any other reason, or has not been deleted, the value
is null.
Note: When using Apex triggers to determine which record was deleted in a merge
event, this field’s value is the ID of the record that was kept only in Trigger.old.
In Trigger.new, the value is null.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Middle name of the lead. Maximum size is 40 characters. Contact Salesforce Customer Support
to enable this field.
1141
Standard Objects
Lead
Field
Details
MobilePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Mobile phone number for the lead.
Name
Type
string
Properties
Filter, Group, Sort
Description
Concatenation of FirstName, MiddleName, LastName, and Suffix. Maximum
size is 121 characters.
NumberOfEmployees
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Number of employees at the lead’s company. Label is Employees.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the lead.
PartnerAccountId
Type
reference
Properties
Filter, Nillable
Description
ID of the partner account for the partner user that owns this lead. Available only if Partner
Relationship Management is enabled OR Communities is enabled and you have partner
portal licenses.
Note: If you are uploading leads using API version 15.0 or earlier, and one of the
leads in the batch has a partner user as the owner, the Partner Account field
on all leads in the batch is set to that partner user’s account regardless of whether
the partner user is the owner. In version 16.0, the Partner Account field is set
1142
Standard Objects
Field
Lead
Details
to the appropriate account for the partner user that owns the lead. If the owner of
the lead is not a partner user, this field remains blank.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Phone number for the lead.
PhotoUrl
Type
url
Properties
Filter, Group, Sort
Description
Path to be combined with the URL of a Salesforce instance (for example,
https://yourInstance.salesforce.com/) to generate a URL to request the social network
profile image associated with the lead. Generated URL returns an HTTP redirect (code 302)
to the social network profile image for the lead.
Blank if Social Accounts and Contacts isn't enabled for the organization or if Social Accounts
and Contacts has been disabled for the requesting user.
PostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Postal code for the address of the lead. Label is Zip/Postal Code.
Rating
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Rating of the lead.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
1143
Standard Objects
Lead
Field
Details
Salutation
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Salutation for the lead.
ScoreIntelligenceId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the intelligent field record that contains lead score.
State
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
State for the address of the lead.
StateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the lead’s address.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Status code for this converted lead. Status codes are defined in Status and represented
in the API by the LeadStatus object.
Street
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
1144
Standard Objects
Field
Lead
Details
Description
Street number and name for the address of the lead.
Suffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name suffix of the lead. Maximum size is 40 characters. Contact Salesforce Customer Support
to enable this field.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Title for the lead, for example CFO or CEO.
Website
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Website for the lead.
Note: If you import Lead data and need to set the value for an audit field, such as CreatedDate, contact Salesforce. Audit
fields are automatically updated during API operations unless you request to set these fields yourself..
Converted Leads
Leads have a special state to indicate that they have been converted into an Account, Contact, and optionally, an Opportunity. Your
client application can convert leads via the convertLead() call. Users can also convert leads through the user interface. Once a
lead has been converted, it is read-only. You can’t update or delete a converted lead. However, you can query converted lead records.
Leads have several fields that indicate their converted status. These special fields are set when converting the lead in the user interface.
• ConvertedAccountId
• ConvertedContactId
• ConvertedDate
• ConvertedOpportunityId
• IsConverted
• Status
1145
Standard Objects
Lead
Note: If person account record types have been enabled, and if the value of Company is null, the lead converts to a person
account.
Unread Leads
Leads have a special state to indicate that they have not been viewed or edited by the lead owner. In the user interface, this is helpful
for users to know which leads have been assigned to them but which they have not touched yet. IsUnreadByOwner is true if
the lead owner has not yet viewed or edited the lead, and false if the lead owner has viewed or edited the lead at least once.
Lead Status Picklist
Each Status value corresponds to either a converted or unconverted status in the lead status picklist, as defined in the user interface.
To obtain the lead status values in the picklist, a client application can query LeadStatus.
You can’t convert a lead via the API by changing Status to one of the converted lead status values. When you convert qualified leads
into an account, contact, and opportunity, you can select one of the converted status types for the lead. Leads with a converted status
type are no longer available in the Leads tab, although you can include them in reports.
Usage
To update a Lead or to convert one with convertLead(), your client application must log in with the “Edit” permission on leads.
When you create, update, or upsert a lead, your client application can have the lead automatically assigned to one or more User records
based on assignment rules that have been configured in the user interface.
To use this feature, your client application needs to set either of the following options (but not both) in the AssignmentRuleHeader used
in create or update:
Field
Field Type
Details
assignmentRuleId
reference
ID of the assignment rule to use. Can be an inactive assignment rule. If unspecified
and useDefaultRule is true, then the default assignment rule is used.
To find the ID for a given assignment rule, query the AssignmentRule object
(specifying RuleType="leadAssignment"), iterate through the returned
AssignmentRule records, find the one you want to use, retrieve its ID, and then
specify its ID in this field in the AssignmentRuleHeader.
useDefaultRule
boolean
Specifies whether to use the default rule for rule-based assignment (true) or
not (false). Default rules are assigned in the user interface.
Java Sample
The following Java sample shows how to automatically assign a newly created lead.
package wsc;
import
import
import
import
com.sforce.soap.enterprise.Connector;
com.sforce.soap.enterprise.EnterpriseConnection;
com.sforce.ws.ConnectionException;
com.sforce.ws.ConnectorConfig;
1146
Standard Objects
import
import
import
import
Lead
com.sforce.soap.enterprise.sobject.Lead;
com.sforce.soap.enterprise.QueryResult;
com.sforce.soap.enterprise.SaveResult;
com.sforce.soap.enterprise.sobject.SObject;
public class LeadAssignment {
static final String USERNAME = "REPLACE USER NAME";
static final String PASSWORD = "REPLACE PASSWORD";
static EnterpriseConnection connection;
static LeadAssignment _leadAssignment;
// Main
public static void main(String[] args)
{
// Establish connection and login
ConnectorConfig config = new ConnectorConfig();
config.setUsername(USERNAME);
config.setPassword(PASSWORD);
try {
connection = Connector.newConnection(config);
System.out.println("Logged in, endpoint: " + config.getAuthEndpoint());
} catch (ConnectionException e1) {
e1.printStackTrace();
}
// Create lead
_leadAssignment = new LeadAssignment();
try {
_leadAssignment.CreateLead();
} catch (Exception e) {
e.printStackTrace();
}
// Logout
try {
connection.logout();
System.out.println("Logged out");
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
public void CreateLead() throws ConnectionException
{
// Create a new Lead and assign various properties
Lead lead = new Lead();
lead.setFirstName("Joe");
lead.setLastName("Smith");
lead.setCompany("ABC Corporation");
lead.setLeadSource("API");
// The lead assignment rule will assign any new leads that
1147
Standard Objects
Lead
// have "API" as the LeadSource to a particular user
// In this sample we will look for a particular rule and if found
// use the id for the lead assignment. If it is not found we will
// instruct the call to use the current default rule. You can't use
// both of these values together.
QueryResult qr = connection.query("SELECT Id FROM AssignmentRule WHERE Name = " +
"'Mass Mail Campaign' AND SobjectType = 'Lead'");
if (qr.getSize() == 0) {
connection.setAssignmentRuleHeader(null, true);
} else {
connection.setAssignmentRuleHeader(qr.getRecords()[0].getId(), false);
}
// Every operation that results in a new or updated lead will
// use the specified rule until the header is removed from the
// connection.
SaveResult[] sr = connection.create(new SObject[] {lead});
for (int i=0;i Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the goal record that is tracked in the feed. The feed is displayed on the detail
page for this record.
RelatedRecordId
Type
reference
1087
Standard Objects
Field Name
GoalFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null
for all posts except ContentPost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of TypeContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and
TextPost, don’t create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
1088
Standard Objects
Field Name
GoalFeed
Details
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply only
to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an article
to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status of
a case.
• ChatTranscriptPost—generated event when Live Agent transcript is
saved to a case.
• EmailMessageEvent—generated event when an email related to a case
object is sent or received.
• FacebookPost—generated when a Facebook post is created from a case.
Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
1089
Standard Objects
GoalHistory
GoalHistory
This read-only object contains historical information about changes that have been made to the Goal object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
GoalId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the goal.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
1090
Standard Objects
GoalLink
GoalLink
Represents the relationship between two goals. This is a many-to-many relationship, meaning that each goal can link to many other
goals.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), undelete(), update(), upsert()
Fields
Field Name
Details
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The auto-generated name of the goal link.
ParentGoalId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the parent goal.
SubgoalId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the subgoal.
GoalShare
Represents a sharing entry on a Goal object.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
1091
Standard Objects
GoalShare
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The user’s or group’s level of access to the goal. The possible values are:
• Read Only
• Read/Write
• Owner
This field must be set to an access level that is higher than the organization’s
default access level for goals.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the goal that is associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Valid values include:
• Owner: User is the owner of the Goal or is in a user role above the Goal owner
in the role hierarchy.
• Manual: User or group has access because a user with “All” access manually
shared the Goal with the user or group.
• Rule: User or group has access via a Goal sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
1092
Standard Objects
Field Name
GoogleDoc
Details
Description
ID of the user or group that was given access to the Goal. This field can’t be
updated.
GoogleDoc
Represents a link to a Google Document. This object is available in API version 14.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Special Access Rules
This object is available in All Editions except Database.com for Google Apps Premier Edition accounts. See the Salesforce online help
for more information.
Fields
Field
Details
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the Google document.
Owner
Type
reference
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
The ID of the user who currently owns this Google Document. Default value is the
user logged in to the API to perform the create.
ParentId
Type
reference
Properties
Create, Filter
1093
Standard Objects
Field
Group
Details
Description
Required. ID of the attachment's parent object. The following objects are supported
as parents of Google documents: Account, Asset, Campaign, Case, Contact, Contract,
Custom Objects, Lead, Opportunity, Product2, and Solution.
Url
Type
string
Properties
Create, Filter, Nillable, Update
Description
The URL of the Google document.
Group
A set of User records.
Groups are sets of users. They can contain individual users, other groups, the users in a particular role or territory, or the users in a particular
role or territory plus all of the users below that role or territory in the hierarchy.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), search(), retrieve(),
update(), upsert()
Special Access Rules
Customer Portal users can’t access this object.
Fields
Field
Details
DefaultDivision
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
This record’s default division. Only applicable if divisions are enabled for your organization.
DeveloperName
Type
string
1094
Standard Objects
Field
Group
Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter,
not include spaces, not end with an underscore, and not contain two consecutive
underscores. In managed packages, this field prevents naming conflicts on package
installations. With this field, a developer can change the object’s name in a managed
package and the changes are reflected in a subscriber’s organization. Corresponds to
Group Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
DoesIncludeBosses
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the managers have access (true) or do not have access (false) to
records shared with members of the group. This field is only available for public groups.
This field is available in API version 18.0 and later.
DoesSendEmailToMembers
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the email is sent (true) or not sent (false) to the group members.
The email is sent to queue members as well.
Email
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Email address for a group of type Case. Applies only for a case queue.
Name
Type
string
1095
Standard Objects
Field
Group
Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of the group. Corresponds to Label on the user interface.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who owns the group.
QueueRoutingConfig
Type
reference
Properties
Create, Delete, Query, Retrieve, Update
Description
The ID of the queue routing configuration associated with the queue.
RelatedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Represents the ID of the associated groups. For Groups of type “Role,” the ID of the
associated UserRole. The RelatedId field is polymorphic.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Required. Type of the Group. One of the following values:
• Regular—Standard Public Group. When you create() a Group, its type must
be Regular, unless a partner portal is enabled for the organization, in which case
the type can be Regular or PRMOrganization.
• Role—Public Group that includes all of the User records in a particular UserRole.
• RoleAndSubordinates—Public Group that includes all of the User records in
a particular UserRole and all of the User records in any subordinateUserRole.
• Organization—Public Group that includes all of the User records in the
organization. This Group is read-only.
1096
Standard Objects
Field
GroupMember
Details
• Case—Public group of users, members of a queue that can own a Case.
• Lead—Public group of users, members of a queue that can own a Lead.
• Manager—Public group that includes a user’s direct and indirect managers. This
Group is read-only.
• ManagerAndSubordinatesInternal—Public Group that includes a user
and the user’s direct and indirect reports. This Group is read-only.
• PRMOrganization—Public Group that includes all of the partners in an
organization that has the partner portal feature enabled.
• Queue—Public Group that includes all of the User records that are members of a
queue.
• Territory—Public Group that includes all of the User records in an organization
that has the territory feature enabled.
• TerritoryAndSubordinates—Public Group that includes all of the User
records in a particular UserRole and all of the User records in any subordinateUserRole.
• Collaboration—Chatter group.
Only Regular, Case, and Lead can be used when creating a group. The other
values are reserved.
Usage
Unlike users, this object can be deleted. Any User can access this object—no special permissions are needed.
Only public groups are accessible via the API. Personal groups are not available.
In API version 39.0 and later, you can query a Group using Related.Name to retrieve the Group’s name. Related.Name is
supported for public groups, user roles, territories, manager groups, and user names.
In API version 13.0 and later, if you delete a public group, it will be deleted even if it has been used in sharing, consistent with the behavior
for UserRole. In versions before 13.0, such sharing prevents the record from being deleted.
SEE ALSO:
GroupMember
Object Basics
GroupMember
Represents a User or Group that is a member of a public group.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1097
Standard Objects
HashtagDefinition
Special Access Rules
Customer Portal users cannot access this object.
Fields
Field
Details
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the Group.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the User or Group that is a direct member of the group.
Usage
A record exists for every User or Group who is a direct member of a public group whose Type field is set to Regular. User records that
are indirect members of Regular public groups are not listed as group members. A User can be an indirect member of a group if he or
she is in a UserRole above the direct group member in the hierarchy, or if he or she is a member of a group that is included as a subgroup
in that group.
If you attempt to create a record that matches an existing record, system simply returns the existing record.
SEE ALSO:
Object Basics
HashtagDefinition
HashtagDefinition represents hashtag (#) topics in public Chatter posts and comments. Public posts and comments include those on
profiles and in public groups, but not those on records or in private groups. This object is available in API version 26.0 and later.
Important: Starting in Spring ’16, API access to HashtagDefinition is disabled across all API versions. Any integrations relying on
API queries to this object stop working. You can continue to use hashtags in posts and comments, and the hashtags continue to
create corresponding topics. We recommend that you redirect all API queries and reports using the HashtagDefinition object to
use the Topic object instead. For more information, see Retiring the Legacy HashtagDefinition Object—FAQs.
1098
Standard Objects
HashtagDefinition
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
HashtagCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of times a hashtag topic is used.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The string of characters following the hashtag (#) in a hashtag topic.
NameNorm
Type
string
Properties
Filter, Nillable, Sort
Description
The string of characters following the hashtag (#) in a hashtag topic, normalized
to remove capitalization and punctuation.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the community to which the HashtagDefinition belongs. This field
is available only if Salesforce Communities is enabled in your organization.
1099
Standard Objects
Holiday
Usage
Use this object to identify public hashtag topics and see how often they’re used.
SEE ALSO:
Topic
Holiday
Represents a period of time during which your customer support team is unavailable. Business hours and escalation rules associated
with business hours are suspended during any holidays with which they are affiliated.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Special Access Rules
Customer Portal users can’t access this object.
All users, even those without the “View Setup and Configuration” user permission, can view holidays via the API.
Fields
Field
Details
ActivityDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If the Holiday IsAllDay flag is set to true (indicating that it is an all-day holiday), then
the holiday due date information is contained in the ActivityDate field. This field is a
date field with a timestamp that is always set to midnight in the Coordinated Universal Time
(UTC) time zone. The timestamp is not relevant, and you should not attempt to alter it to
account for any time zone differences.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the holiday.
1100
Standard Objects
Holiday
Field
Details
EndTimeInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The end time of the holiday in minutes.
IsAllDay
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the duration of the holiday is all day (true) or not (false).
IsRecurrence
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the holiday is scheduled to repeat itself (true) or only occurs once
(false). This is a read only field on update, but not on create. If this field value is true,
then any recurrence fields associated with the given recurrence type must be populated.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the holiday.
RecurrenceDayOfMonth
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The day of the month on which the holiday repeats.
RecurrenceDayOfWeekMask Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
1101
Standard Objects
Field
Holiday
Details
Description
The day or days of the week on which the holiday repeats. This field contains a bitmask. For
each day of the week, the values are as follows:
• Sunday = 1
• Monday = 2
• Tuesday = 4
• Wednesday = 8
• Thursday = 16
• Friday = 32
• Saturday = 64
Multiple days are represented as the sum of their numerical values. For example, Tuesday
and Thursday = 4 + 16 = 20.
RecurrenceEndDateOnly
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The last date on which the holiday repeats. For multiday recurring events, this is the day on
which the last occurrence starts.
RecurrenceInstance
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The frequency of the recurring holiday. For example, 2nd or 3rd.
RecurrenceInterval
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The interval between recurring holidays.
RecurrenceMonthOfYear
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The month of the year on which the event repeats.
1102
Standard Objects
Idea
Field
Details
RecurrenceStartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The date when the recurring holiday begins. Must be a date and time before
RecurrenceEndDateOnly.
RecurrenceType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how often the holiday repeats. For example, daily, weekly, or every Nth month
(where “Nth” is defined in RecurrenceInstance).
StartTimeInMinutes
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The start time of the holiday in minutes.
Usage
Use this object to view and update holidays, which specify dates and times at which associated business hours and escalation rules are
suspended.
Idea
Represents an idea on which users are allowed to comment and vote, for example, a suggestion for an enhancement to an existing
product or process. This object is available in API version 12 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Note: For other standard objects, the describeLayout() call returns the recordTypeMappings section that contains
the layout ID and picklist values for each record type. However, the recordTypeMappings section and the fields it includes
are not available for the Idea object.
When performing a SOSL search on Idea objects, IdeaComment objects are also searched.
1103
Standard Objects
Idea
Fields
Field
Details
AttachmentBody
Type
base64
Properties
Create, Nillable, Update
Description
File data for the attachment. This field is available in API version 28.0 and later.
AttachmentContentType
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Type of the attachment. This field is available in API version 28.0 and later.
AttachmentLength
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Size of the attachment in bytes. This field is available in API version 28.0 and later.
AttachmentName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the attachment. This field is available in API version 28.0 and later.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the Idea.
Categories
Type
multipicklist
1104
Standard Objects
Field
Idea
Details
Properties
Create, Filter, Nillable, Update
Description
Customizable multi-select picklist used to organize Ideas into logical groupings.
Note: This field is only available if your organization has the Categories field
enabled. This field is enabled by default in organizations created after API version 14
was released. If the Categories field is enabled, API versions 13 and earlier do
not have access to either the Categories or Category fields.
Category
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Customizable picklist of values used to organize Ideas into logical groupings.
Note: This field is not available if your organization has the multi-select
Categories field enabled.
CommunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The zone ID associated with the idea. Once you create an idea, you can’t change the zone
ID associated with that idea.
Note: API version 12 does not support zone ID. If you create an idea in version 12,
your idea is automatically posted to the oldest zone that you have permission to
access.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo. This field is available in API version 28.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
1105
Standard Objects
Field
Idea
Details
Description
Name of the user who posted the idea or commented on the idea.
This field is available in API version 28.0 and later.
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo. This field is available in API version 28.0 and later.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
IdeaThemeID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Identifies the idea theme associated with the idea.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsHtml
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1106
Standard Objects
Field
Idea
Details
Description
Read-only. If this value is true, your organization has the Ideas HTML editor enabled, and
the Idea Body may contain HTML. If this value is false, the HTML editor is disabled and
the Idea Body only contains regular text.
IsMerged
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read only. Indicates whether the idea has been merged with a parent idea (true) or not
(false). You can’t vote for or add comments to a merged idea.
Note: In API version 27, IsMerged replaces IsLocked. Existing formula fields
that use IsLocked must be edited to use IsMerged.
LastCommentDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time the last comment (child IdeaComment object) was added.
LastCommentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Read only. The ID of the last comment (child IdeaComment object).
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
1107
Standard Objects
Field
Idea
Details
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
NumComments
Type
int
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
The number of comments (child IdeaComment objects) that users have submitted for the
given idea.
ParentIdeaId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID associated with this idea's parent idea. When multiple ideas are merged together,
one idea becomes the parent (master) of the other ideas. The ParentIdeaId is
automatically set when you merge ideas.
RecordTypeId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the record type assigned to this object.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values used to specify the status of an idea.
Title
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The descriptive title of the idea.
1108
Standard Objects
IdeaComment
Field
Details
VoteScore
Type
double
Properties
Filter, Nillable, Sort
Description
The internal score of the Idea, used to sort Ideas on the Popular tab in the application user
interface. The internal algorithm that determines the score gives older votes less weight than
newer votes, simulating exponential decay. The score itself does not display in the application
user interface.
Note: Unlike other fields of type double, you can't use a SOQL aggregate function
with this field.
VoteTotal
Type
double
Properties
Filter, Nillable, Sort
Description
An Idea's total number of points. Each vote a user makes is worth ten points, therefore the
value of this field is ten times the number of votes an idea has received.
Note: Unlike other fields of type double, you can't use a SOQL aggregate function
with this field.
Note: If you are importing Idea data and need to set the value for an audit field, such as CreatedDate, contact Salesforce.
Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use this object to track ideas, which are written suggestions on which users can vote and comment.
SEE ALSO:
IdeaComment
Vote
IdeaComment
Represents a comment that a user has submitted in response to an idea.
1109
Standard Objects
IdeaComment
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Note: When performing a SOSL search on IdeaComment objects, Idea objects are also searched.
Fields
Field
Field Type
CommentBody
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
Body of the submitted comment.
CommunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The zone ID associated with the idea. Once you create an idea, you can’t change the zone
ID associated with that idea.
Note: API version 12 does not support zone ID. If you create an idea in version 12,
your idea is automatically posted to the oldest zone that you have permission to
access.
CreatorFullPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s profile photo. This field is available in API version 28.0 and later.
CreatorName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the user who posted the idea or commented on the idea. This field is available in
API version 28.0 and later.
1110
Standard Objects
IdeaComment
Field
Field Type
CreatorSmallPhotoUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL of the user’s thumbnail photo. This field is available in API version 28.0 and later.
IdeaId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the idea on which this comment was made.
IsHtml
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only. If this value is true, your organization has the Ideas HTML editor enabled, and
the CommentBody field may contain HTML. If this value is false, the HTML editor is
disabled and the CommentBody field only contains regular text.
UpVotes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Total number of up votes for the question.
Note: If you import these records, and need to set the value for an audit field, such as CreatedDate, contact Salesforce. Audit
fields are automatically updated during API operations unless you request to set these fields yourself.
Usage
Use this object to track comments on ideas, which are users' text responses to ideas.
SEE ALSO:
Idea
Vote
1111
Standard Objects
IdeaReputation
IdeaReputation
Represents a collection of statistics and scores derived from a user’s activity within an Ideas zone or internal organization. This object is
available in API version 28.0 and later.
Supported Calls
query(), retrieve(),
Fields
Field
Details
CommentCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of comments a user has created in a zone or the internal organization. This
number excludes comments the user creates on his or her own idea.
CommentsReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of comments a user has received in a zone or the internal organization.
ContextId
Type
reference
Properties
Filter, Group, Namepointing, Nillable, Sort
Description
The ID of the zone or internal organization.
DownVotesGivenCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes a user has given in a zone or the internal organization.
1112
Standard Objects
IdeaReputation
Field
Details
DownVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of down votes a user has received in a zone or the internal organization.
IdeaCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of ideas a user has created in a zone or the internal organization.
ReputationLevel
Type
string
Properties
Nillable
Description
The reputation level that a user has achieved based on their score in a zone or within an
organization.
Score
Type
double
Properties
Filter, Nillable, Sort
Description
The total score of a user’s activity within a zone or within an organization.
UpVotesGivenCount
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of up votes a user has given in a zone or the internal organization. This number
doesn’t include the default vote the system applies when the user creates the idea.
UpVotesReceivedCount
Type
int
Properties
Filter, Group, Nillable, Sort
1113
Standard Objects
Field
IdeaReputationLevel
Details
Description
The number of up votes a user has received in a zone or the internal organization.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
The user ID associated with the reputation.
Usage
Use to query a user’s reputation within a zone.
IdeaReputationLevel
Represents a reputation level within an Ideas zone or internal organization and is used by the system to calculate reputation. You can
create up to 25 levels per zone or internal organization. This object is available in API version 28.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ContextId
Type
reference
Properties
Create, Filter, Group, Namepointing, Sort, Update
Description
The ID of the zone or internal organization.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
1114
Standard Objects
Field Name
IdeaTheme
Details
Description
Name of the reputation level. The name must be unique within the zone or
internal organization. Maximum size is 50 characters.
Threshold
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Minimum number of points for this level. The threshold must be unique within
the zone or internal organization and must be greater than or equal to zero.
Usage
Use to create or edit reputation levels for an Ideas zone or internal organization.
IdeaTheme
Represents an invitation to community members to submit ideas that are focused on a specific topic. This object is available in API
version 26 and later.
Supported Calls
create(), delete(), describeLayout(), query(), retrieve(), search(), undelete(), update(),
Fields
Field Name
Details
Categories
Type
multipicklist
Properties
Create, Filter, Nillable, Update
Description
Customizable multi-select picklist used to organize ideas and idea themes into
logical groupings.
CommunityId
Type
reference
1115
Standard Objects
Field Name
IdeaTheme
Details
Properties
Create, Filter, Group, Nillable, Sort,
Description
The zone ID associated with the idea theme.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains
the ISO code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the idea theme.
EndDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date marking the end of the idea theme.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
StartDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Date that the idea theme begins.
1116
Standard Objects
KnowledgeableUser
Field Name
Details
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
Customizable picklist of values used to specify the status of the idea theme.
Title
Type
string
Properties
Create, Filter, Group, idLookup, Namefield, Sort, Update
Description
Title of the idea theme.
Usage
Use the object to track ideas that are submitted to an idea theme.
KnowledgeableUser
Represents a user identified as knowledgeable about a specific topic, and ranks them relative to other knowledgeable users. This object
is available in API version 31.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community the topic exists in. This field is available only if Salesforce
Communities is enabled for your organization.
1117
Standard Objects
KnowledgeArticle
Field Name
Details
RawRank
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Rank of this user’s knowledge on the topic relative to other users.
TopicId
Type
reference
Properties
Filter, Group, Sort
Description
Unique ID for the topic in Salesforce.
UserId
Type
reference
Properties
Filter, Group, Sort
Description
Unique ID for the user in Salesforce.
KnowledgeArticle
Provides read-only access to an article and the ability to delete the master article. This object is available in API version 19.0 and later.
Unlike KnowledgeArticleVersion, the ID of a KnowledgeArticle record is identical irrespective of the article's version (status). For more
information on articles and article types, see “Work with Articles and Translations” and “Knowledge Article Types” in the Salesforce online
help.
Supported Calls
delete(), describeSObjects(), query(), retrieve()
Special Access Rules
A user must have the “View Articles” permission enabled. Salesforce Knowledge users, unlike Customer Portal and partner portal users,
must also be granted the Knowledge User feature license.
1118
Standard Objects
KnowledgeArticle
Fields
Field Name
Details
ArchivedById
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user who archived the article.
ArchivedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was archived.
ArticleNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The unique number automatically assigned to the article when it's created. You can't
change the format or value for this field.
CaseAssociationCount
Type
int
Properties
Filter, Group, Sort
Description
The number of cases attached to the article.
FirstPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the article was first published.
LastPublishedDate
Type
dateTime
Properties
Filter, Nillable, Sort
1119
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
The date when the article was last published.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null,
this record might only have been referenced (LastReferencedDate) and not
viewed.
MasterLanguage
Type
picklist
Properties
Filter, Restricted picklist
Description
The article's original language. Only accessible if your knowledge base supports
multiple languages.
Usage
Use this object to query or retrieve articles. KnowledgeArticle can be used in a SOQL clause, but doesn’t provide access to the fields from
the article. Provides read-only access to an article and the ability to delete the master article.
SEE ALSO:
Articles
Data Categories
KnowledgeArticleVersion
KnowledgeArticleVersion
Provides a global view of standard article fields across all article types depending on their version. This object is available in API version
18.0 and later.
1120
Standard Objects
KnowledgeArticleVersion
Use this object to:
• Query or search generically across multiple article types.
• Filter on a specific version.
• Update standard fields, those fields that are updateable, in draft versions.
When you query on the archived article, the results include both the article and the article’s archived versions.
Note: You can’t update draft translations with the API.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), search(), and
update().
Note:
• You can only update draft versions.
• To create, update, or delete a Knowledge article version, use the call on ArticleType_kav, where ArticleType is the name of the
article’s type. For example, to delete, use ArticleType_kav.delete().
Special Access Rules
A user must have the “View Articles” permission enabled. Salesforce Knowledge users, unlike Customer Portal and partner portal users,
must also be granted the Knowledge User feature license to view and edit article versions.
Fields
Field Name
Details
ArchivedById
Type
reference
Properties
Filter, Nillable
Description
The ID of the user who archived the article.
ArchivedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was archived.
ArticleNumber
Type
string
1121
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Properties
Autonumber, Defaulted on create, Filter
Description
The unique number automatically assigned to the article when it's created. You can't
change the format or value for this field.
ArticleType
Type
string
Properties
Defaulted on create,Filter
Description
Indicates the API Name of the article type. The ArticleType is assigned to the
article when it's created. You can't change the value of this field. This field is available
in API version 26.0 and later.
FirstPublishedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was first published.
IsLatestVersion
Type
boolean
Properties
Defaulted on create, Group, Filter, Sort
Description
Indicates whether the article is the most current version. (true) or not (false).
This field can be true on the online or published version, a draft version in the
master language, a draft version in a translation, and the latest archived version.
However, you can’t filter by (PublishState=’Online’) and (IsLatestVersion=false) because
the online version is also the latest version. This field is available in API version 24.0
and later.
IsMasterLanguage
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the article has one or more translations associated with it (true)
or not (false). Only accessible if your knowledge base supports multiple languages.
1122
Standard Objects
KnowledgeArticleVersion
Field Name
Details
IsOutOfDate
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the source article has been updated since this translated version
was created (true) or not (false). Only accessible if your knowledge base supports
multiple languages.
IsVisibleInApp
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the Articles tab (true) or not
(false).
IsVisibleInCsp
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the Customer Portal (true) or
not (false).
IsVisibleInPkb
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the public knowledge base (true)
or not (false).
IsVisibleInPrm
Type
boolean
Properties
Defaulted on create, Filter
Description
Required. Indicates whether the article is visible in the partner portal (true) or not
(false).
1123
Standard Objects
KnowledgeArticleVersion
Field Name
Details
KnowledgeArticleId
Type
reference
Properties
Filter
Description
The ID of the article independent from its version. The value for this field is retrieved
from the Id field of the KnowledgeArticle object.
Language
Type
picklist
Properties
Filter, Restricted picklist
Description
The language that the article is written in, such as French or Chinese
(Traditional).
Querying or searching articles in SOQL or SOSL requires that you specify the
Language field in the WHERE clause. The language must be the same for all article
types.
LastPublishedDate
Type
dateTime
Properties
Filter, Nillable
Description
The date when the article was last published.
MasterVersionId
Type
reference
Properties
Filter, Nillable
Description
ID of the source article, if the article is the translation of a source article. Only accessible
if your knowledge base supports multiple languages.
OwnerId
Type
reference
Properties
Filter
Description
The ID of the article's owner.
1124
Standard Objects
KnowledgeArticleVersion
Field Name
Details
PublishStatus
Type
picklist
Properties
Defaulted on create, Filter, Restricted picklist
Description
The publication status for the article:
• Draft: any draft articles.
• Online: articles published in Salesforce Knowledge.
• Archived: archived articles.
A user must have the “Manage Articles” permission enabled to use Online.
Querying or searching articles in SOQL or SOSL requires that you specify either the
PublishStatus or the Id field in the WHERE clause. You can search for only
one publication status per article type in a single SOSL query. When searching for
articles with a PublishStatus of Archived, also check that
IsLatestVersion equals false in your WHERE clause.
SourceId
Type
reference
Properties
Filter, Nillable
Description
ID of the source from which the article was created (Case or Reply).
Summary
Type
textarea
Properties
Filter, Nillable
Description
Summary of the article. Maximum size is 1000 characters.
Title
Type
string
Properties
Defaulted on create, Filter, idLookup
Description
Required. Article's title. Maximum size is 255 characters.
TranslationCompletedDate
Type
dateTime
Properties
Filter, Nillable
1125
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
Date and time when the article was last translated. Only accessible if your knowledge
base supports multiple languages.
TranslationExportedDate
Type
dateTime
Properties
Filter, Nillable
Description
Date and time when the article was last exported for translation. Only accessible if
your knowledge base supports multiple languages.
TranslationImportedDate
Type
dateTime
Properties
Filter, Nillable
Description
Date and time when the article was last imported for translation. Only accessible if
your knowledge base supports multiple languages.
UrlName
Type
string
Properties
Filter
Description
Required. Represents the article's URL. Can contain alphanumeric characters and
hyphens but can't begin or end with a hyphen. UrlName is case-sensitive and its
maximum size is 255 characters.
ValidationStatus
Type
picklist
Properties
Filter, Group
Description
Shows whether the content of the article has been validated. Default values are
Validated and Not Validated. This field is available in API version 24.0 or
later.
VersionNumber
Type
int
Properties
None
1126
Standard Objects
Field Name
KnowledgeArticleVersion
Details
Description
The number assigned to a version of an article. This field is available in API version
24.0 and later.
Usage
Use this object to query, retrieve, or search for articles across all article types depending on their version. You can update draft master
articles. Additionally, you can delete articles that are not drafts. Client applications can use KnowledgeArticleVersion with
describeDataCategoryGroups() and describeDataCategoryGroupStructures() to return the category
groups and the category structure associated with Salesforce Knowledge.
Alternatively, client applications can use the article type API Name followed by __kav to query, retrieve, or search for articles for a
specific article type.
To access an article independent of its version, use the KnowledgeArticle object.
SOQL Samples
The following SOQL clause uses KnowledgeArticleVersion to query all published articles from all article types complying with the
classification specified in the WITH DATA CATEGORY clause:
SELECT Title, Summary
FROM KnowledgeArticleVersion
WHERE PublishStatus='Online'
AND Language = 'en_US'
WITH DATA CATEGORY Geography__c ABOVE_OR_BELOW europe__c AND Product__c BELOW All__c
The following SOQL clause uses the article type API Name to limit the query to all draft articles from the Offer__kav article type:
SELECT Id, Title
FROM Offer__kav
WHERE PublishStatus='Draft'
AND Language = 'en_US'
WITH DATA CATEGORY Geography__c AT (france__c,usa__c) AND Product__c ABOVE dsl__c
The following SOQL clause uses KnowledgeArticleVersion to query the Ids of all archived versions of a particular article:
SELECT Id
FROM KnowledgeArticleVersion
WHERE PublishStatus='Archived'
AND IsLatestVersion=false
AND KnowledgeArticleId='kA1D00000001PQ6KAM'
SOQL and SOSL with KnowledgeArticleVersion
• Always filter on a single value of PublishStatus unless the query filters on one or more primary key IDs. To support security,
only users with the “Manage Articles” permission see articles whose PublishStatus value is Draft.
• Archived article versions are stored in the articletype_kav object. To query archived article versions, specify the article Id and set
IsLatestVersion='0'.
1127
Standard Objects
KnowledgeArticleVersionHistory
• Always filter on a single value of Language. However, in SOQL, you can filter on more than one Language if there is a filter on
Id or KnowledgeArticleId.
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleViewStat
KnowledgeArticleVoteStat
KnowledgeArticleVersionHistory
Enables read-only access to the full history of an article. This object is available in API version 25.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
This object respects field, entity, and record-level security. You must have at least “Read” permission on the article type or the field to
access its history. For data category security, Salesforce determines access based on the categorization of the online version of an article.
If there is no online version, then security is applied based on the archived version, followed by the security of the draft version.
Fields
Field Name
Details
EventType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of event that is tracked in the history table.
FieldName
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Name of the tracked field.
1128
Standard Objects
KnowledgeArticleVersionHistory
Field Name
Details
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language that the article is written in, such as French or Chinese
(Traditional). Querying or searching articles in SOQL or SOSL requires
that you specify the Language field in the WHERE clause. The language must
be the same for all article types.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The most recent value of the field before it was changed.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the article.
ParentSobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of object that contains the field.
VersionId
Type
reference
1129
Standard Objects
Field Name
KnowledgeArticleViewStat
Details
Properties
Filter, Group, Nillable, Sort
Description
The ID assigned to a version of the article.
VersionNumber
Type
int
Properties
Filter, Group, Sort
Description
The number assigned to a version of an article. This field is available in API version
24.0 and later.
Usage
Use this object to query events in the history of an article. For example, you can retrieve the number of edits a particular user has made
to an article, how many times the article has been published, and so on.
KnowledgeArticleViewStat
Provides statistics on the number of views for the specified article across all article types. This object is read-only and available in API
version 20 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Users must have access to the published version of an article to retrieve its views. For more information on published article version, see
the PublishStatus field in KnowledgeArticleVersion.
Fields
Field Name
Details
Channel
Type
picklist
Properties
Filter, Restricted picklist
1130
Standard Objects
Field Name
KnowledgeArticleViewStat
Details
Description
The channel where the article is viewed:
• AllChannels for article views across all channels.
• App for the internal Salesforce Knowledge application.
• Pkb for article views in public knowledge base.
• Csp for Customer Portal.
• Prm for article view in partner portal.
NormalizedScore
Type
double
Properties
Filter, Nillable
Description
Article's weighted views in the selected channel. The article with most views has a
score of 100. Other article views are then calculated relative to this highest view score.
For example, if the best read article has 2000 views and another has 1000. The first
one gets a score of 100 while the second gets 50.
ParentId
Type
reference
Properties
Filter
Description
ID of the viewed article. This corresponds to a KnowledgeArticle record.
ViewCount
Type
int
Properties
Filter, Group, Sort
Description
The number of unique views an article has received in the selected channel. An article
with a high number of views may not always have a high normalized score. The
normalized score for an article is calculated based on views over time, with more
recent views earning a higher score. This field is available in API version 27.0 and later.
Usage
Use this object to query or retrieve statistics for article views.
Alternatively, client applications can use the article type API Name followed by __ViewStat to query or retrieve most viewed
articles from a specific article type.
1131
Standard Objects
KnowledgeArticleVoteStat
SOQL Samples
The following SOQL clause uses KnowledgeArticleViewStat to query all the article views in Salesforce Knowledge and return the related
articles:
SELECT Id, NormalizedScore, Parent.Id
FROM KnowledgeArticleViewStat where Channel = 'App'
ORDER BY NormalizedScore
Use the following clause to restrict your query to Offer articles for the Offer article type:
SELECT Id, NormalizedScore, Parent.Id
FROM Offer__ViewStat where Channel = 'App'
ORDER BY NormalizedScore
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleVersion
KnowledgeArticleVoteStat
KnowledgeArticleVoteStat
Provides the weighted rating for the specified article on a scale of 1 to 5 across all article types. This object is read-only and available in
API version 20 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Users must have access to the published version of an article to retrieve its votes. For more information on published article version, see
the PublishStatus field in KnowledgeArticleVersion
Fields
Field Name
Details
Channel
Type
picklist
Properties
Filter, Restricted picklist
Description
The channel where the article is rated:
1132
Standard Objects
Field Name
KnowledgeArticleVoteStat
Details
• AllChannels for article views across all channels.
• App for the internal Salesforce Knowledge application.
• Pkb for article views in public knowledge base.
• Csp for Customer Portal.
• Prm for article view in partner portal.
NormalizedScore
Type
double
Properties
Filter, Nillable
Description
Article's weighted score on a scale of 1 to 5. A higher score means more votes. Articles
without recent votes trend towards an average rating of three stars.
ParentId
Type
reference
Properties
Filter
Description
The rated article. This corresponds to a KnowledgeArticle record.
Usage
Use this object to query or retrieve the rating for an article.
Alternatively, client applications can use the article type API Name followed by __VoteStat to query or retrieve the rating for an
article for a specific article type.
SOQL Samples
See KnowledgeArticleViewStat.
SEE ALSO:
Articles
Data Categories
KnowledgeArticle
KnowledgeArticleVersion
KnowledgeArticleViewStat
1133
Standard Objects
Lead
Lead
Represents a prospect or potential Opportunity.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), merge(),
query(), retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Details
Address
Type
address
Properties
Filter, Nillable
Description
The compound form of the address. Read-only. See Address Compound Fields for details on
compound address fields.
AnnualRevenue
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Annual revenue for the company of the lead.
City
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
City for the address of the lead.
CleanStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the record’s clean status as compared with Data.com. Values are: Matched,
Different, Acknowledged, NotFound, Inactive, Pending, SelectMatch,
or Skipped.
1134
Standard Objects
Field
Lead
Details
Several values for CleanStatus display with different labels on the lead record detail
page.
• Matched displays as In Sync
• Acknowledged displays as Reviewed
• Pending displays as Not Compared
Company
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Company of the lead.
Note: If person account record types have been enabled, and if the value of
Company is null, the lead converts to a person account.
CompanyDunsNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The Data Universal Numbering System (D-U-N-S) number is a unique, nine-digit number
assigned to every business location in the Dun&Bradstreet database that has a unique,
separate, and distinct operation. D-U-N-S numbers are used by industries and organizations
around the world as a global standard for business identification and tracking. Maximum
size is 9 characters.
Note: This field is only available to organizations that use Data.com Prospector or
Data.com Clean.
ConnectionReceivedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Group, Nillable, Sort
1135
Standard Objects
Field
Lead
Details
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ConvertedAccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Account into which the Lead has been converted.
ConvertedContactId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Contact into which the Lead has been converted.
ConvertedDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Date on which this Lead was converted.
ConvertedOpportunityId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Object reference ID that points to the Opportunity into which the Lead has been converted.
Country
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Country for the address of the lead.
1136
Standard Objects
Lead
Field
Details
CountryCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO country code for the lead’s address.
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the lead.
Division
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
A logical segment of your organization's data. For example, if your company is organized
into different business units, you could create a division for each business unit, such as “North
America,” “Healthcare,” or “Consulting.” Available only if the organization has the Division
permission enabled.
Email
Type
email
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Email address for the lead.
EmailBouncedDate
Type
dateTime
1137
Standard Objects
Field
Lead
Details
Properties
Filter, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the lead bounced, the date and
time the bounce occurred.
EmailBouncedReason
Type
string
Properties
Filter, Group, Nillable, Sort, Update
Description
If bounce management is activated and an email sent to the lead bounced, the reason the
bounce occurred.
Fax
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Fax number for the lead.
FirstName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
First name of the lead. Limited to 40 characters.
HasOptedOutOfEmail
Type
boolean
Properties
Create, Defaulted on create, Filter, Update
Description
Indicates whether the lead has opted out of email (true) or not (false). Label is Email
Opt Out.
GeocodeAccuracy
Type
picklist
Properties
Retrieve, Query, Restricted picklist, Nillable
1138
Standard Objects
Field
Lead
Details
Description
Accuracy level of the geocode for the address on this object. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
Industry
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Industry the lead works in.
IsConverted
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
Indicates whether the Lead has been converted (true) or not (false). Label is Converted.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsUnreadByOwner
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, lead has been assigned, but not yet viewed. See Unread Leads for more information.
Label is Unread By Owner.
Jigsaw
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
References the ID of a contact in Data.com. If a lead has a value in this field, it means that a
contact was imported as a lead from Data.com. If the contact (converted to a lead) was not
1139
Standard Objects
Field
Lead
Details
imported from Data.com, the field value is null. Maximum size is 20 characters. Available in
API version 22.0 and later. Label is Data.com Key.
Important: The Jigsawfield is exposed in the API to support troubleshooting for
import errors and reimporting of corrected data. Do not modify the value in the
Jigsaw field.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Last name of the lead. Limited to 80 characters.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
Latitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
1140
Standard Objects
Field
Lead
Details
Description
Used with Longitude to specify the precise geolocation of an address. Acceptable values
are numbers between –90 and 90 with up to 15 decimal places. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
Longitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with Latitude to specify the precise geolocation of an address. Acceptable values
are numbers between –180 and 180 with up to 15 decimal places. See Compound Field
Considerations and Limitations for details on geolocation compound fields.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Source from which the lead was obtained.
MasterRecordId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
If this object was deleted as the result of a merge, this field contains the ID of the record that
was kept. If this object was deleted for any other reason, or has not been deleted, the value
is null.
Note: When using Apex triggers to determine which record was deleted in a merge
event, this field’s value is the ID of the record that was kept only in Trigger.old.
In Trigger.new, the value is null.
MiddleName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Middle name of the lead. Maximum size is 40 characters. Contact Salesforce Customer Support
to enable this field.
1141
Standard Objects
Lead
Field
Details
MobilePhone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Mobile phone number for the lead.
Name
Type
string
Properties
Filter, Group, Sort
Description
Concatenation of FirstName, MiddleName, LastName, and Suffix. Maximum
size is 121 characters.
NumberOfEmployees
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Number of employees at the lead’s company. Label is Employees.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the lead.
PartnerAccountId
Type
reference
Properties
Filter, Nillable
Description
ID of the partner account for the partner user that owns this lead. Available only if Partner
Relationship Management is enabled OR Communities is enabled and you have partner
portal licenses.
Note: If you are uploading leads using API version 15.0 or earlier, and one of the
leads in the batch has a partner user as the owner, the Partner Account field
on all leads in the batch is set to that partner user’s account regardless of whether
the partner user is the owner. In version 16.0, the Partner Account field is set
1142
Standard Objects
Field
Lead
Details
to the appropriate account for the partner user that owns the lead. If the owner of
the lead is not a partner user, this field remains blank.
Phone
Type
phone
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Phone number for the lead.
PhotoUrl
Type
url
Properties
Filter, Group, Sort
Description
Path to be combined with the URL of a Salesforce instance (for example,
https://yourInstance.salesforce.com/) to generate a URL to request the social network
profile image associated with the lead. Generated URL returns an HTTP redirect (code 302)
to the social network profile image for the lead.
Blank if Social Accounts and Contacts isn't enabled for the organization or if Social Accounts
and Contacts has been disabled for the requesting user.
PostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Postal code for the address of the lead. Label is Zip/Postal Code.
Rating
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Rating of the lead.
RecordTypeId
Type
reference
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
1143
Standard Objects
Lead
Field
Details
Salutation
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Salutation for the lead.
ScoreIntelligenceId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the intelligent field record that contains lead score.
State
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
State for the address of the lead.
StateCode
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ISO state code for the lead’s address.
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Status code for this converted lead. Status codes are defined in Status and represented
in the API by the LeadStatus object.
Street
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
1144
Standard Objects
Field
Lead
Details
Description
Street number and name for the address of the lead.
Suffix
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name suffix of the lead. Maximum size is 40 characters. Contact Salesforce Customer Support
to enable this field.
Title
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Title for the lead, for example CFO or CEO.
Website
Type
url
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Website for the lead.
Note: If you import Lead data and need to set the value for an audit field, such as CreatedDate, contact Salesforce. Audit
fields are automatically updated during API operations unless you request to set these fields yourself..
Converted Leads
Leads have a special state to indicate that they have been converted into an Account, Contact, and optionally, an Opportunity. Your
client application can convert leads via the convertLead() call. Users can also convert leads through the user interface. Once a
lead has been converted, it is read-only. You can’t update or delete a converted lead. However, you can query converted lead records.
Leads have several fields that indicate their converted status. These special fields are set when converting the lead in the user interface.
• ConvertedAccountId
• ConvertedContactId
• ConvertedDate
• ConvertedOpportunityId
• IsConverted
• Status
1145
Standard Objects
Lead
Note: If person account record types have been enabled, and if the value of Company is null, the lead converts to a person
account.
Unread Leads
Leads have a special state to indicate that they have not been viewed or edited by the lead owner. In the user interface, this is helpful
for users to know which leads have been assigned to them but which they have not touched yet. IsUnreadByOwner is true if
the lead owner has not yet viewed or edited the lead, and false if the lead owner has viewed or edited the lead at least once.
Lead Status Picklist
Each Status value corresponds to either a converted or unconverted status in the lead status picklist, as defined in the user interface.
To obtain the lead status values in the picklist, a client application can query LeadStatus.
You can’t convert a lead via the API by changing Status to one of the converted lead status values. When you convert qualified leads
into an account, contact, and opportunity, you can select one of the converted status types for the lead. Leads with a converted status
type are no longer available in the Leads tab, although you can include them in reports.
Usage
To update a Lead or to convert one with convertLead(), your client application must log in with the “Edit” permission on leads.
When you create, update, or upsert a lead, your client application can have the lead automatically assigned to one or more User records
based on assignment rules that have been configured in the user interface.
To use this feature, your client application needs to set either of the following options (but not both) in the AssignmentRuleHeader used
in create or update:
Field
Field Type
Details
assignmentRuleId
reference
ID of the assignment rule to use. Can be an inactive assignment rule. If unspecified
and useDefaultRule is true, then the default assignment rule is used.
To find the ID for a given assignment rule, query the AssignmentRule object
(specifying RuleType="leadAssignment"), iterate through the returned
AssignmentRule records, find the one you want to use, retrieve its ID, and then
specify its ID in this field in the AssignmentRuleHeader.
useDefaultRule
boolean
Specifies whether to use the default rule for rule-based assignment (true) or
not (false). Default rules are assigned in the user interface.
Java Sample
The following Java sample shows how to automatically assign a newly created lead.
package wsc;
import
import
import
import
com.sforce.soap.enterprise.Connector;
com.sforce.soap.enterprise.EnterpriseConnection;
com.sforce.ws.ConnectionException;
com.sforce.ws.ConnectorConfig;
1146
Standard Objects
import
import
import
import
Lead
com.sforce.soap.enterprise.sobject.Lead;
com.sforce.soap.enterprise.QueryResult;
com.sforce.soap.enterprise.SaveResult;
com.sforce.soap.enterprise.sobject.SObject;
public class LeadAssignment {
static final String USERNAME = "REPLACE USER NAME";
static final String PASSWORD = "REPLACE PASSWORD";
static EnterpriseConnection connection;
static LeadAssignment _leadAssignment;
// Main
public static void main(String[] args)
{
// Establish connection and login
ConnectorConfig config = new ConnectorConfig();
config.setUsername(USERNAME);
config.setPassword(PASSWORD);
try {
connection = Connector.newConnection(config);
System.out.println("Logged in, endpoint: " + config.getAuthEndpoint());
} catch (ConnectionException e1) {
e1.printStackTrace();
}
// Create lead
_leadAssignment = new LeadAssignment();
try {
_leadAssignment.CreateLead();
} catch (Exception e) {
e.printStackTrace();
}
// Logout
try {
connection.logout();
System.out.println("Logged out");
} catch (ConnectionException ce) {
ce.printStackTrace();
}
}
public void CreateLead() throws ConnectionException
{
// Create a new Lead and assign various properties
Lead lead = new Lead();
lead.setFirstName("Joe");
lead.setLastName("Smith");
lead.setCompany("ABC Corporation");
lead.setLeadSource("API");
// The lead assignment rule will assign any new leads that
1147
Standard Objects
Lead
// have "API" as the LeadSource to a particular user
// In this sample we will look for a particular rule and if found
// use the id for the lead assignment. If it is not found we will
// instruct the call to use the current default rule. You can't use
// both of these values together.
QueryResult qr = connection.query("SELECT Id FROM AssignmentRule WHERE Name = " +
"'Mass Mail Campaign' AND SobjectType = 'Lead'");
if (qr.getSize() == 0) {
connection.setAssignmentRuleHeader(null, true);
} else {
connection.setAssignmentRuleHeader(qr.getRecords()[0].getId(), false);
}
// Every operation that results in a new or updated lead will
// use the specified rule until the header is removed from the
// connection.
SaveResult[] sr = connection.create(new SObject[] {lead});
for (int i=0;i
1168
Standard Objects
Field
LeadFeed
Details
Tip: Though the 
 tag isn’t supported, you can use  to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
1169
Standard Objects
Field
LeadFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the lead record that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
1170
Standard Objects
LeadFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
1171
Standard Objects
Field
LeadFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1172
Standard Objects
LeadHistory
Usage
Use this object to track changes for a lead record. If a lead record is converted, use this object to query and retrieve the associated lead
feed items.
SEE ALSO:
Lead
EntitySubscription
NewsFeed
UserProfileFeed
LeadHistory
Represents the history of changes to the values in the fields of a lead.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort,
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
LeadId
Type
reference
Properties
Filter, Group, Sort
1173
Standard Objects
Field
LeadOwnerSharingRule
Details
Description
ID of the Lead. Label is Lead ID.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a lead.
This object respects field level security on the parent object.
SEE ALSO:
LeadShare
LeadStatus
LeadOwnerSharingRule
Represents the rules for sharing a lead with users other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
1174
Standard Objects
LeadOwnerSharingRule
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Leads owned by users in the source group
trigger the rule to give access.
LeadAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
1175
Standard Objects
Field
LeadShare
Details
• Edit
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. The target user or group is being given
access.
Usage
Use these objects to manage the sharing rules for leads. General sharing and Territory-related sharing use this object.
SEE ALSO:
Lead
LeadShare
LeadStatus
Metadata API Developer Guide: SharingRules
LeadShare
Represents a sharing entry on a Lead.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
1176
Standard Objects
LeadShare
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
LeadAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Lead. The possible values are:
• Read
• Edit
• All This value is not valid when creating or updating these records.
This field must be set to an access level that is higher than the organization’s default access
level for leads.
LeadId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Lead associated with this sharing entry. This field can’t be updated.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write a value in this field when its value
is either omitted or set to Manual (default). You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Lead with them.
• Owner—The User is the owner of the Lead.
• Rule—The User or Group has access via a Lead sharing rule.
1177
Standard Objects
LeadStatus
Field
Details
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Lead. This field can’t be updated.
Usage
This object allows you to determine which users and groups can view or edit leads owned by other users.
If you attempt to create a record that matches an existing record, the existing record is returned.
SEE ALSO:
AccountShare
Case
CaseShare
OpportunityShare
LeadStatus
Represents the status of a Lead, such as Open, Qualified, or Converted.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
IsConverted
Type
boolean
1178
Standard Objects
Field
LeadStatus
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this lead status value represents a converted lead (true) or not (false).
Multiple lead status values can represent a converted lead.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default lead status value (true) or not (false) in the picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this lead status value. This display value is the internal label that does not
get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the lead status picklist. These numbers are not guaranteed
to be sequential, as some previous lead status values might have been deleted.
Usage
This object represents a value in the lead status picklist (see Lead Status Picklist). The lead status picklist provides additional information
about the status of a Lead, such as whether a given status value represents a converted Lead. Query this object to retrieve the set of
values in the lead status picklist, and then use that information while processing Lead objects to determine more information about a
given lead. For example, the application could test whether a given lead is converted based on its Status value and the value of the
IsConverted property in the associated LeadStatus record.
SEE ALSO:
LeadOwnerSharingRule
LeadShare
1179
Standard Objects
LeadTag
LeadTag
Associates a word or short phrase with a Lead.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
1180
Standard Objects
Field Name
LimitAllocationPerApp
Details
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
LeadTag stores the relationship between its parent TagDefinition and the Lead being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
LimitAllocationPerApp
Represents a connected app quota for an API limit. This object is available in API version 30.0 and later.
Note: LimitAllocationPerApp is currently available through a pilot program. For information on enabling LimitAllocationPerApp
for your organization, contact Salesforce.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ConnectedAppName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the connected app.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. This field is automatically generated but you can supply
your own value if you create the record using the API.
1181
Standard Objects
Field Name
LimitAllocationPerApp
Details
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel.
LimitType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of API limit for which you’re setting a quota. The available values are:
• TotalRequests—Total API requests per 24-hour period
• ApiBatchItems—Number of Bulk API batches per 24-hour period
• StreamEventsPerDay—Number of Streaming API events per 24–hour period
• GenStreamingEventsPerDay—Number of generic streaming events per
24–hour period
Note: Generic streaming is currently available through a pilot
program. For information on enabling generic streaming for your
organization, contact Salesforce.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the API limit quota. This is the internal label that does not get
translated.
Percentage
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The percentage of the API limit reserved for the connected app. The app can’t
consume more than this percentage of the API limit.
1182
Standard Objects
Field Name
LineitemOverride
Details
You can find the available percentage for each limit type through the user
interface or by using the query() call.
Usage
App quotas for API limits enable you to reserve API capacity for mission-critical connected apps or set a ceiling for API usage of non-critical
connected apps.
LineitemOverride
A forecast override of a line item on an Opportunity. This read-only object for customizable forecasting has a child-parent relationship
with OpportunityOverride.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is only accessible if your organization has enabled the customizable forecasting feature, which can be done in the user
interface. Requires the “View All Data” permission.
Fields
Field
Details
AmountInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden amount rolls up through the forecast
hierarchy (true), or was overridden by the owner of this record (false).
ForecastCategoryInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden forecast category rolls up through the
forecast hierarchy (true), or was overridden by the owner of this record
(false).
1183
Standard Objects
LineitemOverride
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or
not (false). Label is Deleted.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated Opportunity.
OpportunityLineItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated OpportunityLineItem.
OverrideAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The total monetary amount of the line item, which may be overridden.
OverrideForecastCategory
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The forecast category of the line item. Can be overridden.
OverrideQuantity
Type
double
Properties
Create, Filter, Sort, Update
1184
Standard Objects
Field
LinkedArticle
Details
Description
The quantity of the line item, which may be overridden.
OverrideUnitPrice
Type
currency
Properties
Create, Filter, Sort, Update
Description
The monetary amount of the unit price. Can be overridden.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
ID of the owner of this record.
QuantityInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden quantity rolls up through the forecast
hierarchy (true), or is overridden by the owner of this record (false).
UnitPriceInherited
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the overridden unit price rolls up through the forecast
hierarchy (true), or was overridden by the owner of this record (false).
SEE ALSO:
OpportunityOverride
LinkedArticle
Represents a Knowledge article that is attached to a record. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
1185
Standard Objects
LinkedArticle
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(),
query(), retrieve(), undelete(), update(), upsert()
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for orgs with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
KnowledgeArticleId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the Knowledge article attached to the record. The label in the user
interface is Knowledge Article ID.
KnowledgeArticleVersionId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The version of the Knowledge article attached to the record. This field lists the
title of the attached version and links to the version. The label in the user interface
is Article Version.
When you attach an article to a work order, that version of the article stays
associated with the work order, even if later versions are published. If needed,
you can detach and reattach an article to a work order to link the latest version.
LinkedEntityId
Type
reference
1186
Standard Objects
Field Name
LinkedArticleFeed
Details
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the record that the Knowledge article is attached to. The label in the
user interface is Linked Record ID.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The title of the article. The label in the user interface is Article Title.
RecordTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the article’s record type, if used.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The type of record that the Knowledge article is attached to. For
example, work order. The label in the user interface is Linked Object Type.
Usage
Admins can customize linked articles’ page layouts, fields, validation rules, and more from the Linked Articles node in Setup under
Knowledge.
LinkedArticleFeed
Represents a single feed item on a linked Knowledge article attached to a record. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1187
Standard Objects
LinkedArticleFeed
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the feed item. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of comments associated with the feed item.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via the SOAP API. Otherwise, the post
is rendered as plain text.
Rich text supports the following HTML tags.
• Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
1169
Standard Objects
Field
LeadFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the lead record that is tracked in the feed. The feed is displayed on the detail page for
this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
1170
Standard Objects
LeadFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
1171
Standard Objects
Field
LeadFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1172
Standard Objects
LeadHistory
Usage
Use this object to track changes for a lead record. If a lead record is converted, use this object to query and retrieve the associated lead
feed items.
SEE ALSO:
Lead
EntitySubscription
NewsFeed
UserProfileFeed
LeadHistory
Represents the history of changes to the values in the fields of a lead.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort,
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
LeadId
Type
reference
Properties
Filter, Group, Sort
1173
Standard Objects
Field
LeadOwnerSharingRule
Details
Description
ID of the Lead. Label is Lead ID.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to a lead.
This object respects field level security on the parent object.
SEE ALSO:
LeadShare
LeadStatus
LeadOwnerSharingRule
Represents the rules for sharing a lead with users other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
1174
Standard Objects
LeadOwnerSharingRule
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Leads owned by users in the source group
trigger the rule to give access.
LeadAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
1175
Standard Objects
Field
LeadShare
Details
• Edit
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. The target user or group is being given
access.
Usage
Use these objects to manage the sharing rules for leads. General sharing and Territory-related sharing use this object.
SEE ALSO:
Lead
LeadShare
LeadStatus
Metadata API Developer Guide: SharingRules
LeadShare
Represents a sharing entry on a Lead.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
1176
Standard Objects
LeadShare
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
LeadAccessLevel
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the User or Group has to the Lead. The possible values are:
• Read
• Edit
• All This value is not valid when creating or updating these records.
This field must be set to an access level that is higher than the organization’s default access
level for leads.
LeadId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Lead associated with this sharing entry. This field can’t be updated.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can only write a value in this field when its value
is either omitted or set to Manual (default). You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Values include:
• Manual—The User or Group has access because a user with “All” access manually
shared the Lead with them.
• Owner—The User is the owner of the Lead.
• Rule—The User or Group has access via a Lead sharing rule.
1177
Standard Objects
LeadStatus
Field
Details
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the User or Group that has been given access to the Lead. This field can’t be updated.
Usage
This object allows you to determine which users and groups can view or edit leads owned by other users.
If you attempt to create a record that matches an existing record, the existing record is returned.
SEE ALSO:
AccountShare
Case
CaseShare
OpportunityShare
LeadStatus
Represents the status of a Lead, such as Open, Qualified, or Converted.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
IsConverted
Type
boolean
1178
Standard Objects
Field
LeadStatus
Details
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this lead status value represents a converted lead (true) or not (false).
Multiple lead status values can represent a converted lead.
IsDefault
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this is the default lead status value (true) or not (false) in the picklist.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this lead status value. This display value is the internal label that does not
get translated.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the lead status picklist. These numbers are not guaranteed
to be sequential, as some previous lead status values might have been deleted.
Usage
This object represents a value in the lead status picklist (see Lead Status Picklist). The lead status picklist provides additional information
about the status of a Lead, such as whether a given status value represents a converted Lead. Query this object to retrieve the set of
values in the lead status picklist, and then use that information while processing Lead objects to determine more information about a
given lead. For example, the application could test whether a given lead is converted based on its Status value and the value of the
IsConverted property in the associated LeadStatus record.
SEE ALSO:
LeadOwnerSharingRule
LeadShare
1179
Standard Objects
LeadTag
LeadTag
Associates a word or short phrase with a Lead.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
1180
Standard Objects
Field Name
LimitAllocationPerApp
Details
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
LeadTag stores the relationship between its parent TagDefinition and the Lead being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
LimitAllocationPerApp
Represents a connected app quota for an API limit. This object is available in API version 30.0 and later.
Note: LimitAllocationPerApp is currently available through a pilot program. For information on enabling LimitAllocationPerApp
for your organization, contact Salesforce.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ConnectedAppName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the connected app.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the record in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. This field is automatically generated but you can supply
your own value if you create the record using the API.
1181
Standard Objects
Field Name
LimitAllocationPerApp
Details
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the MasterLabel.
LimitType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of API limit for which you’re setting a quota. The available values are:
• TotalRequests—Total API requests per 24-hour period
• ApiBatchItems—Number of Bulk API batches per 24-hour period
• StreamEventsPerDay—Number of Streaming API events per 24–hour period
• GenStreamingEventsPerDay—Number of generic streaming events per
24–hour period
Note: Generic streaming is currently available through a pilot
program. For information on enabling generic streaming for your
organization, contact Salesforce.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Master label for the API limit quota. This is the internal label that does not get
translated.
Percentage
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The percentage of the API limit reserved for the connected app. The app can’t
consume more than this percentage of the API limit.
1182
Standard Objects
Field Name
LineitemOverride
Details
You can find the available percentage for each limit type through the user
interface or by using the query() call.
Usage
App quotas for API limits enable you to reserve API capacity for mission-critical connected apps or set a ceiling for API usage of non-critical
connected apps.
LineitemOverride
A forecast override of a line item on an Opportunity. This read-only object for customizable forecasting has a child-parent relationship
with OpportunityOverride.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
This object is only accessible if your organization has enabled the customizable forecasting feature, which can be done in the user
interface. Requires the “View All Data” permission.
Fields
Field
Details
AmountInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden amount rolls up through the forecast
hierarchy (true), or was overridden by the owner of this record (false).
ForecastCategoryInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden forecast category rolls up through the
forecast hierarchy (true), or was overridden by the owner of this record
(false).
1183
Standard Objects
LineitemOverride
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or
not (false). Label is Deleted.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated Opportunity.
OpportunityLineItemId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the associated OpportunityLineItem.
OverrideAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The total monetary amount of the line item, which may be overridden.
OverrideForecastCategory
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The forecast category of the line item. Can be overridden.
OverrideQuantity
Type
double
Properties
Create, Filter, Sort, Update
1184
Standard Objects
Field
LinkedArticle
Details
Description
The quantity of the line item, which may be overridden.
OverrideUnitPrice
Type
currency
Properties
Create, Filter, Sort, Update
Description
The monetary amount of the unit price. Can be overridden.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
ID of the owner of this record.
QuantityInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden quantity rolls up through the forecast
hierarchy (true), or is overridden by the owner of this record (false).
UnitPriceInherited
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the overridden unit price rolls up through the forecast
hierarchy (true), or was overridden by the owner of this record (false).
SEE ALSO:
OpportunityOverride
LinkedArticle
Represents a Knowledge article that is attached to a record. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
1185
Standard Objects
LinkedArticle
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(),
query(), retrieve(), undelete(), update(), upsert()
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available only for orgs with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
KnowledgeArticleId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the Knowledge article attached to the record. The label in the user
interface is Knowledge Article ID.
KnowledgeArticleVersionId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The version of the Knowledge article attached to the record. This field lists the
title of the attached version and links to the version. The label in the user interface
is Article Version.
When you attach an article to a work order, that version of the article stays
associated with the work order, even if later versions are published. If needed,
you can detach and reattach an article to a work order to link the latest version.
LinkedEntityId
Type
reference
1186
Standard Objects
Field Name
LinkedArticleFeed
Details
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the record that the Knowledge article is attached to. The label in the
user interface is Linked Record ID.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The title of the article. The label in the user interface is Article Title.
RecordTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the article’s record type, if used.
Type
Type
string
Properties
Filter, Group, Nillable, Sort
Description
(Read only) The type of record that the Knowledge article is attached to. For
example, work order. The label in the user interface is Linked Object Type.
Usage
Admins can customize linked articles’ page layouts, fields, validation rules, and more from the Linked Articles node in Setup under
Knowledge.
LinkedArticleFeed
Represents a single feed item on a linked Knowledge article attached to a record. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1187
Standard Objects
LinkedArticleFeed
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the feed item. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of comments associated with the feed item.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via the SOAP API. Otherwise, the post
is rendered as plain text.
Rich text supports the following HTML tags.
•
1188
Standard Objects
Field Name
LinkedArticleFeed
Details
Tip: Although the 
 tag isn’t supported, you can use
   to create lines.
• 
• 
• 
•
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of Likes associated with the feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether the feed item is available in the default community, a specific
community, or all communities.
ParentId
Type
reference
Properties
Filter, Group, Sort
1189
Standard Objects
Field Name
LinkedArticleHistory
Details
Description
The ID of the object type to which the feed item is related. For example, set this
field to a UserId to post to someone’s profile feed. Or set it to an AccountId
to post to a specific account.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
The ID of the ContentVersion object associated with a content post. This
field is null for all posts, except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is
the URL, and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or only internal users.
LinkedArticleHistory
Represents the history of changes made to tracked fields on a linked article. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
1190
Standard Objects
LinkedArticleHistory
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
LinkedArticleId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the tracked linked article. The history is displayed on the detail page for
this record.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The value of the field before it was changed.
1191
Standard Objects
ListView
ListView
Represents a list view. A list view specifies a set of records for an object, based on specific criteria. This object is available in API version
32.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Name
Details
CreatedBy
Type
User
Properties
Filter, Query, Retrieve, Sort
Description
The name of the user who created the list view.
DeveloperName
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The fully qualified developer name of the list view.
IsSoqlCompatible
Type
boolean
Properties
Filter, Query, Retrieve, Sort
Description
Whether the list view can be used with SOQL..
LastModifiedBy
Type
User
Properties
Filter, Query, Retrieve, Sort
Description
The name of the user who last modified the list view.
LastModifiedById
Type
ID
1192
Standard Objects
Name
ListView
Details
Properties
Filter, Query, Retrieve, Sort
Description
The ID of the user who last modified the list view.
LastModifiedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time of the last modification of the list view, with a precision of one second.
LastReferencedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time when the list view was last referenced, with a precision of one second.
LastViewedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time when the list view was last viewed, with a precision of one second.
Name
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The name of the list view.
NamespacePrefix
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The namespace of the list view.
SobjectType
Type
string
1193
Standard Objects
Name
ListViewChart
Details
Properties
Filter, Query, Retrieve, Sort
Description
The API name of the sObject for the list view.
ListViewChart
Represents a graphical chart that’s displayed on Salesforce1 list views. The chart aggregates data that is filtered based on the list view
that’s currently displayed. This object is available in API version 33.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Name
Description
AggregateField
Type
string
Properties
Create, Filter, Query, Restricted picklist, Retrieve, Sort, Update
Description
The field that’s used for calculating data on each group. AggregateField can’t be the
same as GroupingField.
AggregateType
Type
picklist
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The type of calculations to run on each group. The supported AggregateType values are
Count, Sum, and Avg.
ChartType
Type
picklist
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The type of chart to create. The supported chart types are horizontal bar chart, vertical bar chart,
and donut chart.
1194
Standard Objects
ListViewChartInstance
Name
Description
DeveloperName
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The fully qualified developer name of the chart.
GroupingField
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The field that’s used to divide the data into collections. The field has to be supported by SOQL
GROUP BY functionality. GroupingField can’t be the same as AggregateField.
MasterLabel
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The label for the chart.
OwnerId
Type
ID
Properties
Defaulted on create, Filter, Query, Retrieve, Sort
Description
The ID of the user who owns the chart.
SobjectType
Type
string
Properties
Create, Filter, Query, Retrieve, Sort
Description
The API name of the sObject for the chart.
ListViewChartInstance
Retrieves metadata for all standard and custom charts for a given entity in context of a given list view. This object is available in API
versions 34.0 and later.
1195
Standard Objects
ListViewChartInstance
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
AggregateField
Type
string
Properties
Filter, Group, Sort
Description
The field that’s used for calculating data on each group. AggregateField
can’t be the same as GroupingField.
AggregateType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of calculations to run on each group. The supported AggregateType
values are Count, Sum, and Avg.
ChartType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of chart to create. The supported chart types are horizontal bar chart,
vertical bar chart, and donut chart.
DataQuery
Type
textarea
Properties
Filter, Nillable, Sort
Description
The SOQL query that can be executed to fetch the data for drawing a chart.
DeveloperName
Type
string
Properties
Filter, Group, Sort
1196
Standard Objects
Field Name
ListViewChartInstance
Details
Description
API name of the chart. This name can contain only underscores and alphanumeric
characters, and must be unique in your org. It must begin with a letter, not include
spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package
installations. With this field, a developer can change the object’s name in a
managed package and the changes are reflected in a subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
ExternalId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Reserved for future use.
GroupingField
Type
string
Properties
Filter, Group, Sort
Description
The field that’s used to divide the data into collections. The field has to be
supported by SOQL GROUP BY functionality. GroupingField can’t be the
same as AggregateField.
IsDeletable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if the chart can be deleted.
IsEditable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if the chart can be edited. Standard charts are not editable.
1197
Standard Objects
ListViewChartInstance
Field Name
Details
IsLastViewed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if a chart is the last viewed by a user.
Label
Type
string
Properties
Filter, Group, Sort
Description
The display name of the chart.
ListViewChartId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the chart created by a user. For standard charts, this is null.
ListViewContextId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the list view in context of which the chart is generated. Required to query
ListViewChartInstance.
SourceEntity
Type
string
Properties
Filter, Group, Sort
Description
API name of the entity to which the chart is related. Required to query
ListViewChartInstance.
1198
Standard Objects
LiveAgentSession
Usage
Example 1. Retrieve all custom and standard charts for Account entity for All Accounts list view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextId=’00BR0000000U8Hr’
Example 2. Retrieve metadata for a specific custom chart by ID for Account entity and All Accounts list view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextID=’00BR0000000U8Hr’ and ListViewChartId=’0DdR00000004CBxKAM’
Example 3. Retrieve metadata for a specific standard chart by its developer name for Account entity and All Accounts list
view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextID=’00BR0000000U8Hr’ and DeveloperName=’AccountsByIndustry’
LiveAgentSession
This object is automatically created for each Live Agent session and stores information about the session. This object is available in API
versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update()
Fields
Field Name
Details
AgentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the agent associated with the session.
1199
Standard Objects
LiveAgentSession
Field Name
Details
ChatReqAssigned
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that were assigned to an agent during a session.
ChatReqDeclined
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that were declined by an agent during a session.
ChatReqEngaged
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chats in which an agent was engaged during a session.
ChatReqTimedOut
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that timed out in an agent’s queue during a session.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the session record was last referenced.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the session record was last viewed.
1200
Standard Objects
LiveAgentSession
Field Name
Details
LoginTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date and time an agent logged in during the session.
LogoutTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date and time an agent logged out during a session.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookupSort
Description
The name of the session.
NumFlagLoweredAgent
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags lowered by the agent.
NumFlagLoweredSupervisor
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags lowered by the supervisor.
NumFlagRaised
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags raised by the agent.
1201
Standard Objects
LiveAgentSession
Field Name
Details
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the session record.
TimeAtCapacity
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent with the maximum number of chats in his
or her queue.
TimeIdle
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent idle during the session.
TimeInAwayStatus
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent with a status of “Away” during a session.
TimeInChats
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent engaged in chats during a session.
TimeInOnlineStatus
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
1202
Standard Objects
Field Name
LiveAgentSessionHistory
Details
Description
The amount of time an agent spent with a status of “Online” during a session.
Usage
Use this object to query and manage live chat session records.
LiveAgentSessionHistory
This object is automatically created for each Live Agent session and stores information about changes made to the session. This object
is available in API versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed in a session record.
LiveAgentSessionId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the session record that was changed.
NewValue
Type
anyType
Properties
Nillable, Sort
1203
Standard Objects
Field Name
LiveAgentSessionOwnerSharingRule
Details
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The original value of the field that was changed.
Usage
Use this object to identify changes to live chat session records.
LiveAgentSessionOwnerSharingRule
Represents the rules for sharing a Live Agent session record with users other than the record owner. This object is available in API version
28.0 and later.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, restrictedPicklist, Sort, Update
Description
Determines the level of access users have to session records. Specifies whether or
not users can read, edit, or transfer session records. Corresponds to the Default Access
column in the UI.
Description
Type
textarea
1204
Standard Objects
Field
LiveAgentSessionOwnerSharingRule
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the UI.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Session records owned by users in the source
group trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, idLookup,Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label in the UI.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
1205
Standard Objects
Field
LiveAgentSessionShare
Details
Description
The ID representing the target user or group. The target user or group is being given
access.
Usage
Use this object to manage the sharing rules for Live Agent session records.
SEE ALSO:
Metadata API Developer Guide: SharingRules
LiveAgentSessionShare
This object is automatically created for each Live Agent session and stores information about the session. This object is available in API
versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Level of access that the User or Group has to the LiveAgentSession. The possible
values are:
• Read
• Edit
• All (This value is not valid for create() or update() calls.)
This value must be set to an access level that is higher than the organization’s
default access level for live chat transcripts.
1206
Standard Objects
LiveChatBlockingRule
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the parent object, if any.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Values can include:
• Manual—The user or group has access because a user with “All” access
manually shared the LiveAgentSession with them.
• Owner—The user is the owner of the LiveAgentSession or is in a role above
the QuickText owner in the role hierarchy.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user or group that has been given access to the LiveAgentSession.
Usage
This object lets you determine which users and groups can view and edit LiveAgentSession records owned by other users.
If you attempt to create a new record that matches an existing record, the create() call updates any modified fields and returns the
existing record.
LiveChatBlockingRule
Represents a rule for blocking chat visitors’ IP addresses from starting new chats with agents. This object is available in API version 34.0
and later.
Supported Calls
create(), delete(), query(), retrieve(), update(), upsert()
1207
Standard Objects
LiveChatBlockingRule
Fields
Field Name
Details
Description
Type
string
Properties
Create, Nillable, Update
Description
The description of the blocking rule—for example, the reason why the given IP
address or range of addresses is being banned from starting new chats.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
FromIpAddress
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The IP address of the user that you want to block, or the beginning of the range
of IP addresses you want to block. If you want to block a range of IP addresses,
indicate the end of the range in the ToIpAddress field. If you don’t indicate
an IP address in the ToIpAddress field, the only IP address that will be blocked
is the IP address in the FromIpAddress field.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1208
Standard Objects
Field Name
LiveChatButton
Details
Description
The language of the blocking rule.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the blocking rule.
ToIpAddress
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Optional) The end of the range of IP addresses that you want to block. The range
begins with and includes the IP address in the FromIpAddress field, and it
ends with and includes the IP address in the ToIpAddress field.
Usage
Use this object to query and manage rules for blocking customers from starting new chats with agents.
LiveChatButton
Represents a button that allows visitors to request chats with Live Agent users. This object is available in API version 24.0 and later.
Supported Calls
create(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Animation
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1209
Standard Objects
Field Name
LiveChatButton
Details
Description
The type of animation used when an automated chat invitation appears on-screen.
For automated chat invitations only. Available in API version 29.0 and later.
AutoGreeting
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
The text that is automatically sent from an agent to a visitor when a chat session
starts.
Note: A greeting message in the AutoGreeting field of the
LiveChatButton object overrides individual users’ greeting messages in
the AutoGreeting field in the LiveChatUserConfig object.
ChasitorIdleTimeout
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time a customer has to respond to an agent message before the
chat times out.
ChasitorIdleTimeoutWarning
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time a customer has to respond to an agent message before a
warning appears and a timer begins a countdown. This value must be shorter
than the ChasitorIdleTimeout value (we recommend at least 30 seconds
shorter).
ChatPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page that contains the custom chat
window code.
1210
Standard Objects
LiveChatButton
Field Name
Details
CustomAgentName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The custom name of the agent associated with the button. Available in API version
29.0 and later.
Note: A custom agent name in the CustomAgentName field of the
LiveChatButton object overrides individual users’ custom agent name in
the CustomAgentName field in the LiveChatUserConfig object.
CustomRoutingClassId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the Apex class you customize to create your custom routing rules if
RoutingType equals Custom. Available in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
HasQueue
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether to allow incoming chat requests to queue until an agent is
available.
1211
Standard Objects
LiveChatButton
Field Name
Details
InviteEndPosition
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The position on-screen where an automated chat invitation’s animation ends.
Note: You don’t need to select an end position for your automated chat
invitation if you use a custom animation.
For automated chat invitations only. Available in API version 29.0 and later.
InviteImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource displayed on your automated chat
invitation. For automated chat invitations only. Available in API version 29.0 and
later.
InviteStartPosition
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The position on-screen where an automated chat invitation’s animation begins.
Note: You don’t need to select a start position for your automated chat
invitation if you use a custom animation.
For automated chat invitations only. Available in API version 29.0 and later.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
For automated chat invitations, specifies whether an automated chat invitation
is active and able to be sent to customers (true) or not (false). For chat
buttons, this is set to true by default.
Language
Type
picklist
1212
Standard Objects
Field Name
LiveChatButton
Details
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the chat.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the live chat button.
NumberOfReroutingAttempts
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Specifies the number of times a chat request can be rerouted to available agents
if all agents reject the chat request.
OfflineImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource that is displayed when the button is
offline (inactive).
OnlineImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource that is displayed when the button is
online (active).
OptionsHasChasitorIdleTimeout
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether Customer Time-Out is enabled.
1213
Standard Objects
LiveChatButton
Field Name
Details
OptionsHasInviteAfterAccept
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an automated chat invitation can be sent to a customer after
that customer has accepted a prior automated chat invitation (true) or not
(false). For automated chat invitations only. Available in API version 29.0 and
later.
OptionsHasInviteAfterReject
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an automated chat invitation can be sent to a customer after
that customer has rejected a prior automated chat invitation (true) or not
(false). For automated chat invitations only. Available in API version 29.0 and
later.
OptionsHasRerouteDeclinedRequest Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether a chat request that has been rejected by all available agents
should be rerouted to available agents again (true) or not false).
OptionsIsAutoAccept
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether a chat request should be automatically accepted by the agent
it’s assigned to (true) or not false). For chat buttons and automated chat
invitations with RoutingType set to Most Available or Least
Active. Available in API version 30.0 and later.
OptionsIsInviteAutoRemove
Type
boolean
Properties
Create, Filter, Update
1214
Standard Objects
Field Name
LiveChatButton
Details
Description
Specifies whether an automated chat invitation should be automatically removed
from the screen after a certain amount of time (true) or not (false). For
automated chat invitations only. Available in API version 29.0 and later.
OverallQueueLength
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The maximum number of chat requests allowed to queue.
PerAgentQueueLength
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The maximum number of chat requests allowed to queue for each agent with
the required skill.
PostchatPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page displayed when the chat ends.
PostchatUrl
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL the user is directed to after the chat ends.
PrechatFormPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page displayed before the chat begins.
1215
Standard Objects
LiveChatButton
Field Name
Details
PrechatFormUrl
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL the user is directed to before the chat begins.
PushTimeout
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of seconds an agent has to answer a chat request before it’s routed
to the next available agent.
RoutingType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
How chat requests are routed to agents. The values are:
• Choice—Incoming chat requests are added to the queue in Live Agent in
the Salesforce console and are available to any agent with the required skill.
• Least Active—Incoming chats are routed to the agent with the
required skill who has the fewest active chats.
• Most Available—Incoming chats are routed to the agent with the
required skill and the greatest difference between chat capacity and active
chat sessions. For example, if Agent A and Agent B each have a chat capacity
of five, and Agent A has three active chat sessions while Agent B has one,
incoming chats will be routed to Agent B.
• Omni—Incoming chats are routed using Omni-Channel queues.
SiteId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the site used for loading static resources and custom Visualforce
pages.
SkillId
Type
reference
1216
Standard Objects
Field Name
LiveChatButtonDeployment
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the skill used to route incoming chat requests. To associate
multiple skills with a live chat button, reference one skill in the SkillId field
and use LiveChatButtonSkill junction objects for the remaining skills.
TimeToRemoveInvite
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of seconds an automated invitation stays on-screen before it is
automatically removed. For automated chat invitations only. Available in API
version 29.0 and later.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of element to display to customers (either a chat button or an automated
invitation).
WindowLanguage
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language used for standard chat windows. Custom chat windows use the
language of the user’s browser.
Usage
Use this object to query and manage live chat buttons and automated chat invitations.
LiveChatButtonDeployment
Associates a Live Agent automated chat invitation with a specific deployment. This object is available in API versions 28.0 and later.
1217
Standard Objects
LiveChatButtonSkill
Supported Calls
create(), delete()query(), retrieve(), update()
Fields
Field Name
Details
ButtonId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the automated invitation associated with the deployment.
DeploymentId
Type
reference
Properties
Create, Filter, Group, NillableSort
Description
The ID of the deployment that will feature the automated invitation.
Usage
Use this object to associate automated chat invitations with specific deployments.
LiveChatButtonSkill
Represents all the skills available to a LiveChatButton except the one currently assigned. To retrieve the skill currently assigned, query
LiveChatButton. This object is available in API version 25.0 and later.
Supported Calls
create(), delete(), query(), update()
Fields
Field Name
Details
ButtonID
Type
reference
Properties
Create, Filter, Group, Sort
1218
Standard Objects
Field Name
LiveChatDeployment
Details
Description
The record ID of the button.
SkillID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The record ID of the skill.
Usage
Use this object to assign a specific skill to a specific button for multi-skill routing. For example:
String myButtonId = "button_Id";
String myButtonDevName = "button_DeveloperName";
List LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of Likes associated with the feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether the feed item is available in the default community, a specific
community, or all communities.
ParentId
Type
reference
Properties
Filter, Group, Sort
1189
Standard Objects
Field Name
LinkedArticleHistory
Details
Description
The ID of the object type to which the feed item is related. For example, set this
field to a UserId to post to someone’s profile feed. Or set it to an AccountId
to post to a specific account.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
The ID of the ContentVersion object associated with a content post. This
field is null for all posts, except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is
the URL, and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or only internal users.
LinkedArticleHistory
Represents the history of changes made to tracked fields on a linked article. This object is available in API version 37.0 and later.
As of Summer ’16, linked articles are supported only for work orders and work order line items.
1190
Standard Objects
LinkedArticleHistory
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Knowledge must be set up in your org.
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
LinkedArticleId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the tracked linked article. The history is displayed on the detail page for
this record.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The value of the field before it was changed.
1191
Standard Objects
ListView
ListView
Represents a list view. A list view specifies a set of records for an object, based on specific criteria. This object is available in API version
32.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Name
Details
CreatedBy
Type
User
Properties
Filter, Query, Retrieve, Sort
Description
The name of the user who created the list view.
DeveloperName
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The fully qualified developer name of the list view.
IsSoqlCompatible
Type
boolean
Properties
Filter, Query, Retrieve, Sort
Description
Whether the list view can be used with SOQL..
LastModifiedBy
Type
User
Properties
Filter, Query, Retrieve, Sort
Description
The name of the user who last modified the list view.
LastModifiedById
Type
ID
1192
Standard Objects
Name
ListView
Details
Properties
Filter, Query, Retrieve, Sort
Description
The ID of the user who last modified the list view.
LastModifiedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time of the last modification of the list view, with a precision of one second.
LastReferencedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time when the list view was last referenced, with a precision of one second.
LastViewedDate
Type
dateTime
Properties
Filter, Query, Retrieve, Sort
Description
The date and time when the list view was last viewed, with a precision of one second.
Name
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The name of the list view.
NamespacePrefix
Type
string
Properties
Filter, Query, Retrieve, Sort
Description
The namespace of the list view.
SobjectType
Type
string
1193
Standard Objects
Name
ListViewChart
Details
Properties
Filter, Query, Retrieve, Sort
Description
The API name of the sObject for the list view.
ListViewChart
Represents a graphical chart that’s displayed on Salesforce1 list views. The chart aggregates data that is filtered based on the list view
that’s currently displayed. This object is available in API version 33.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Name
Description
AggregateField
Type
string
Properties
Create, Filter, Query, Restricted picklist, Retrieve, Sort, Update
Description
The field that’s used for calculating data on each group. AggregateField can’t be the
same as GroupingField.
AggregateType
Type
picklist
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The type of calculations to run on each group. The supported AggregateType values are
Count, Sum, and Avg.
ChartType
Type
picklist
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The type of chart to create. The supported chart types are horizontal bar chart, vertical bar chart,
and donut chart.
1194
Standard Objects
ListViewChartInstance
Name
Description
DeveloperName
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The fully qualified developer name of the chart.
GroupingField
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The field that’s used to divide the data into collections. The field has to be supported by SOQL
GROUP BY functionality. GroupingField can’t be the same as AggregateField.
MasterLabel
Type
string
Properties
Create, Filter, Query, Retrieve, Sort, Update
Description
The label for the chart.
OwnerId
Type
ID
Properties
Defaulted on create, Filter, Query, Retrieve, Sort
Description
The ID of the user who owns the chart.
SobjectType
Type
string
Properties
Create, Filter, Query, Retrieve, Sort
Description
The API name of the sObject for the chart.
ListViewChartInstance
Retrieves metadata for all standard and custom charts for a given entity in context of a given list view. This object is available in API
versions 34.0 and later.
1195
Standard Objects
ListViewChartInstance
Supported Calls
describeSObjects(), query()
Fields
Field Name
Details
AggregateField
Type
string
Properties
Filter, Group, Sort
Description
The field that’s used for calculating data on each group. AggregateField
can’t be the same as GroupingField.
AggregateType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of calculations to run on each group. The supported AggregateType
values are Count, Sum, and Avg.
ChartType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of chart to create. The supported chart types are horizontal bar chart,
vertical bar chart, and donut chart.
DataQuery
Type
textarea
Properties
Filter, Nillable, Sort
Description
The SOQL query that can be executed to fetch the data for drawing a chart.
DeveloperName
Type
string
Properties
Filter, Group, Sort
1196
Standard Objects
Field Name
ListViewChartInstance
Details
Description
API name of the chart. This name can contain only underscores and alphanumeric
characters, and must be unique in your org. It must begin with a letter, not include
spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package
installations. With this field, a developer can change the object’s name in a
managed package and the changes are reflected in a subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
ExternalId
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Reserved for future use.
GroupingField
Type
string
Properties
Filter, Group, Sort
Description
The field that’s used to divide the data into collections. The field has to be
supported by SOQL GROUP BY functionality. GroupingField can’t be the
same as AggregateField.
IsDeletable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if the chart can be deleted.
IsEditable
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if the chart can be edited. Standard charts are not editable.
1197
Standard Objects
ListViewChartInstance
Field Name
Details
IsLastViewed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates if a chart is the last viewed by a user.
Label
Type
string
Properties
Filter, Group, Sort
Description
The display name of the chart.
ListViewChartId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the chart created by a user. For standard charts, this is null.
ListViewContextId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the list view in context of which the chart is generated. Required to query
ListViewChartInstance.
SourceEntity
Type
string
Properties
Filter, Group, Sort
Description
API name of the entity to which the chart is related. Required to query
ListViewChartInstance.
1198
Standard Objects
LiveAgentSession
Usage
Example 1. Retrieve all custom and standard charts for Account entity for All Accounts list view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextId=’00BR0000000U8Hr’
Example 2. Retrieve metadata for a specific custom chart by ID for Account entity and All Accounts list view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextID=’00BR0000000U8Hr’ and ListViewChartId=’0DdR00000004CBxKAM’
Example 3. Retrieve metadata for a specific standard chart by its developer name for Account entity and All Accounts list
view
SELECT AggregateField, AggregateType, ChartType, DataQuery, DeveloperName, ExternalId,
GroupingField, Id, IsDeletable, IsEditable, IsLastViewed, Label, ListViewChartId,
ListViewContextId, SourceEntity FROM ListViewChartInstance WHERE SourceEntity=’Account’
and ListViewContextID=’00BR0000000U8Hr’ and DeveloperName=’AccountsByIndustry’
LiveAgentSession
This object is automatically created for each Live Agent session and stores information about the session. This object is available in API
versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update()
Fields
Field Name
Details
AgentId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the agent associated with the session.
1199
Standard Objects
LiveAgentSession
Field Name
Details
ChatReqAssigned
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that were assigned to an agent during a session.
ChatReqDeclined
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that were declined by an agent during a session.
ChatReqEngaged
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chats in which an agent was engaged during a session.
ChatReqTimedOut
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of chat requests that timed out in an agent’s queue during a session.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the session record was last referenced.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the session record was last viewed.
1200
Standard Objects
LiveAgentSession
Field Name
Details
LoginTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date and time an agent logged in during the session.
LogoutTime
Type
dateTime
Properties
Create, Filter, Sort, Update
Description
The date and time an agent logged out during a session.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookupSort
Description
The name of the session.
NumFlagLoweredAgent
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags lowered by the agent.
NumFlagLoweredSupervisor
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags lowered by the supervisor.
NumFlagRaised
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of assistance flags raised by the agent.
1201
Standard Objects
LiveAgentSession
Field Name
Details
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the owner of the session record.
TimeAtCapacity
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent with the maximum number of chats in his
or her queue.
TimeIdle
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent idle during the session.
TimeInAwayStatus
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent with a status of “Away” during a session.
TimeInChats
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time an agent spent engaged in chats during a session.
TimeInOnlineStatus
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
1202
Standard Objects
Field Name
LiveAgentSessionHistory
Details
Description
The amount of time an agent spent with a status of “Online” during a session.
Usage
Use this object to query and manage live chat session records.
LiveAgentSessionHistory
This object is automatically created for each Live Agent session and stores information about changes made to the session. This object
is available in API versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed in a session record.
LiveAgentSessionId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the session record that was changed.
NewValue
Type
anyType
Properties
Nillable, Sort
1203
Standard Objects
Field Name
LiveAgentSessionOwnerSharingRule
Details
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The original value of the field that was changed.
Usage
Use this object to identify changes to live chat session records.
LiveAgentSessionOwnerSharingRule
Represents the rules for sharing a Live Agent session record with users other than the record owner. This object is available in API version
28.0 and later.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, restrictedPicklist, Sort, Update
Description
Determines the level of access users have to session records. Specifies whether or
not users can read, edit, or transfer session records. Corresponds to the Default Access
column in the UI.
Description
Type
textarea
1204
Standard Objects
Field
LiveAgentSessionOwnerSharingRule
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the UI.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Session records owned by users in the source
group trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, idLookup,Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label in the UI.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
1205
Standard Objects
Field
LiveAgentSessionShare
Details
Description
The ID representing the target user or group. The target user or group is being given
access.
Usage
Use this object to manage the sharing rules for Live Agent session records.
SEE ALSO:
Metadata API Developer Guide: SharingRules
LiveAgentSessionShare
This object is automatically created for each Live Agent session and stores information about the session. This object is available in API
versions 28.0 and later.
Note: Standard fields for the LiveAgentSession object can only be modified if your administrator has given you editing permissions
for these records.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Level of access that the User or Group has to the LiveAgentSession. The possible
values are:
• Read
• Edit
• All (This value is not valid for create() or update() calls.)
This value must be set to an access level that is higher than the organization’s
default access level for live chat transcripts.
1206
Standard Objects
LiveChatBlockingRule
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the parent object, if any.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can create a value for this field in API
versions 32.0 and later with the correct organization-wide sharing settings.
Values can include:
• Manual—The user or group has access because a user with “All” access
manually shared the LiveAgentSession with them.
• Owner—The user is the owner of the LiveAgentSession or is in a role above
the QuickText owner in the role hierarchy.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user or group that has been given access to the LiveAgentSession.
Usage
This object lets you determine which users and groups can view and edit LiveAgentSession records owned by other users.
If you attempt to create a new record that matches an existing record, the create() call updates any modified fields and returns the
existing record.
LiveChatBlockingRule
Represents a rule for blocking chat visitors’ IP addresses from starting new chats with agents. This object is available in API version 34.0
and later.
Supported Calls
create(), delete(), query(), retrieve(), update(), upsert()
1207
Standard Objects
LiveChatBlockingRule
Fields
Field Name
Details
Description
Type
string
Properties
Create, Nillable, Update
Description
The description of the blocking rule—for example, the reason why the given IP
address or range of addresses is being banned from starting new chats.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
FromIpAddress
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The IP address of the user that you want to block, or the beginning of the range
of IP addresses you want to block. If you want to block a range of IP addresses,
indicate the end of the range in the ToIpAddress field. If you don’t indicate
an IP address in the ToIpAddress field, the only IP address that will be blocked
is the IP address in the FromIpAddress field.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1208
Standard Objects
Field Name
LiveChatButton
Details
Description
The language of the blocking rule.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the blocking rule.
ToIpAddress
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
(Optional) The end of the range of IP addresses that you want to block. The range
begins with and includes the IP address in the FromIpAddress field, and it
ends with and includes the IP address in the ToIpAddress field.
Usage
Use this object to query and manage rules for blocking customers from starting new chats with agents.
LiveChatButton
Represents a button that allows visitors to request chats with Live Agent users. This object is available in API version 24.0 and later.
Supported Calls
create(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
Animation
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1209
Standard Objects
Field Name
LiveChatButton
Details
Description
The type of animation used when an automated chat invitation appears on-screen.
For automated chat invitations only. Available in API version 29.0 and later.
AutoGreeting
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
The text that is automatically sent from an agent to a visitor when a chat session
starts.
Note: A greeting message in the AutoGreeting field of the
LiveChatButton object overrides individual users’ greeting messages in
the AutoGreeting field in the LiveChatUserConfig object.
ChasitorIdleTimeout
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time a customer has to respond to an agent message before the
chat times out.
ChasitorIdleTimeoutWarning
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time a customer has to respond to an agent message before a
warning appears and a timer begins a countdown. This value must be shorter
than the ChasitorIdleTimeout value (we recommend at least 30 seconds
shorter).
ChatPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page that contains the custom chat
window code.
1210
Standard Objects
LiveChatButton
Field Name
Details
CustomAgentName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The custom name of the agent associated with the button. Available in API version
29.0 and later.
Note: A custom agent name in the CustomAgentName field of the
LiveChatButton object overrides individual users’ custom agent name in
the CustomAgentName field in the LiveChatUserConfig object.
CustomRoutingClassId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the Apex class you customize to create your custom routing rules if
RoutingType equals Custom. Available in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
HasQueue
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether to allow incoming chat requests to queue until an agent is
available.
1211
Standard Objects
LiveChatButton
Field Name
Details
InviteEndPosition
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The position on-screen where an automated chat invitation’s animation ends.
Note: You don’t need to select an end position for your automated chat
invitation if you use a custom animation.
For automated chat invitations only. Available in API version 29.0 and later.
InviteImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource displayed on your automated chat
invitation. For automated chat invitations only. Available in API version 29.0 and
later.
InviteStartPosition
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The position on-screen where an automated chat invitation’s animation begins.
Note: You don’t need to select a start position for your automated chat
invitation if you use a custom animation.
For automated chat invitations only. Available in API version 29.0 and later.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
For automated chat invitations, specifies whether an automated chat invitation
is active and able to be sent to customers (true) or not (false). For chat
buttons, this is set to true by default.
Language
Type
picklist
1212
Standard Objects
Field Name
LiveChatButton
Details
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the chat.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the live chat button.
NumberOfReroutingAttempts
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Specifies the number of times a chat request can be rerouted to available agents
if all agents reject the chat request.
OfflineImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource that is displayed when the button is
offline (inactive).
OnlineImageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource that is displayed when the button is
online (active).
OptionsHasChasitorIdleTimeout
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether Customer Time-Out is enabled.
1213
Standard Objects
LiveChatButton
Field Name
Details
OptionsHasInviteAfterAccept
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an automated chat invitation can be sent to a customer after
that customer has accepted a prior automated chat invitation (true) or not
(false). For automated chat invitations only. Available in API version 29.0 and
later.
OptionsHasInviteAfterReject
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an automated chat invitation can be sent to a customer after
that customer has rejected a prior automated chat invitation (true) or not
(false). For automated chat invitations only. Available in API version 29.0 and
later.
OptionsHasRerouteDeclinedRequest Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether a chat request that has been rejected by all available agents
should be rerouted to available agents again (true) or not false).
OptionsIsAutoAccept
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether a chat request should be automatically accepted by the agent
it’s assigned to (true) or not false). For chat buttons and automated chat
invitations with RoutingType set to Most Available or Least
Active. Available in API version 30.0 and later.
OptionsIsInviteAutoRemove
Type
boolean
Properties
Create, Filter, Update
1214
Standard Objects
Field Name
LiveChatButton
Details
Description
Specifies whether an automated chat invitation should be automatically removed
from the screen after a certain amount of time (true) or not (false). For
automated chat invitations only. Available in API version 29.0 and later.
OverallQueueLength
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The maximum number of chat requests allowed to queue.
PerAgentQueueLength
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The maximum number of chat requests allowed to queue for each agent with
the required skill.
PostchatPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page displayed when the chat ends.
PostchatUrl
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL the user is directed to after the chat ends.
PrechatFormPageId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the custom Visualforce page displayed before the chat begins.
1215
Standard Objects
LiveChatButton
Field Name
Details
PrechatFormUrl
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URL the user is directed to before the chat begins.
PushTimeout
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of seconds an agent has to answer a chat request before it’s routed
to the next available agent.
RoutingType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
How chat requests are routed to agents. The values are:
• Choice—Incoming chat requests are added to the queue in Live Agent in
the Salesforce console and are available to any agent with the required skill.
• Least Active—Incoming chats are routed to the agent with the
required skill who has the fewest active chats.
• Most Available—Incoming chats are routed to the agent with the
required skill and the greatest difference between chat capacity and active
chat sessions. For example, if Agent A and Agent B each have a chat capacity
of five, and Agent A has three active chat sessions while Agent B has one,
incoming chats will be routed to Agent B.
• Omni—Incoming chats are routed using Omni-Channel queues.
SiteId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the site used for loading static resources and custom Visualforce
pages.
SkillId
Type
reference
1216
Standard Objects
Field Name
LiveChatButtonDeployment
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the skill used to route incoming chat requests. To associate
multiple skills with a live chat button, reference one skill in the SkillId field
and use LiveChatButtonSkill junction objects for the remaining skills.
TimeToRemoveInvite
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of seconds an automated invitation stays on-screen before it is
automatically removed. For automated chat invitations only. Available in API
version 29.0 and later.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of element to display to customers (either a chat button or an automated
invitation).
WindowLanguage
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language used for standard chat windows. Custom chat windows use the
language of the user’s browser.
Usage
Use this object to query and manage live chat buttons and automated chat invitations.
LiveChatButtonDeployment
Associates a Live Agent automated chat invitation with a specific deployment. This object is available in API versions 28.0 and later.
1217
Standard Objects
LiveChatButtonSkill
Supported Calls
create(), delete()query(), retrieve(), update()
Fields
Field Name
Details
ButtonId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the automated invitation associated with the deployment.
DeploymentId
Type
reference
Properties
Create, Filter, Group, NillableSort
Description
The ID of the deployment that will feature the automated invitation.
Usage
Use this object to associate automated chat invitations with specific deployments.
LiveChatButtonSkill
Represents all the skills available to a LiveChatButton except the one currently assigned. To retrieve the skill currently assigned, query
LiveChatButton. This object is available in API version 25.0 and later.
Supported Calls
create(), delete(), query(), update()
Fields
Field Name
Details
ButtonID
Type
reference
Properties
Create, Filter, Group, Sort
1218
Standard Objects
Field Name
LiveChatDeployment
Details
Description
The record ID of the button.
SkillID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The record ID of the skill.
Usage
Use this object to assign a specific skill to a specific button for multi-skill routing. For example:
String myButtonId = "button_Id";
String myButtonDevName = "button_DeveloperName";
List skillIds = new List();
//Get one skill ID from button
for(LiveChatButton lcb : [SELECT SkillId FROM LiveChatButton WHERE DeveloperName =:
myButtonDevName]) {
skillIds.add(lcb.SkillId);
}
//Get remaining skills from LiveChatButtonSkill join object
for(LiveChatButtonSkill lcbs : [SELECT SkillID FROM LiveChatButtonSkill WHERE ButtonId =:
myButtonId]) {
skillIds.add(lcbs.SkillId);
}
//Retrieve all skills into a single list
List skills = [SELECT Id, DeveloperName FROM Skill WHERE Id IN :SkillIds];
LiveChatDeployment
Represents the general settings for deploying Live Agent on a website. This object is available in API version 24.0 and later.
Supported Calls
create(), query(), retrieve(), update(), upsert()
1219
Standard Objects
LiveChatDeployment
Fields
Field Name
Details
BrandingId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource that’s displayed in the chat window
ConnectionTimeoutDuration
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the amount of time before the chat times out, in seconds.
ConnectionWarningDuration
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Indicates the amount of time before a time-out warning is displayed to the agent,
in seconds.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
Domains
Type
textarea
1220
Standard Objects
Field Name
LiveChatDeployment
Details
Properties
Create, Filter (unavailable in API version 25.0 and later), Nillable, Sort (unavailable
in API version 25.0 and later), Update
Description
A comma-separated list of domains the deployment is whitelisted for. Leave this
blank to allow the deployment to be used on any domain.
HasTranscriptSave
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether visitors can download and save transcripts from the chat
window
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the deployment
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the deployment
MobileBrandingId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the static image resource displayed in the mobile version of the
chat window
OptionsHasPrechatApi
Type
boolean
Properties
Create, Filter, Update
1221
Standard Objects
Field Name
LiveChatSensitiveDataRule
Details
Description
Determines whether developers can access the Pre-Chat API
SiteId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the site used for loading static resources
WindowTitle
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The text displayed in the title bar of the browser window used to launch the chat
window
Usage
Use this object to query and manage live chat deployments.
LiveChatSensitiveDataRule
Represents a rule for masking or deleting data of a specified pattern. Written as a regular expression (regex). This object is available in
API version 35.0 and later.
Supported Calls
create(), delete(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ActionType
Type
picklist
Properties
Create, Filter, Group, Restricted picklistSort, Update
1222
Standard Objects
Field Name
LiveChatSensitiveDataRule
Details
Description
The action to take on the text (remove or replace) when the sensitive data rule
is triggered.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the sensitive data rule—for example, “Block social security
numbers.”
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin
with a letter, not include spaces, not end with an underscore, and not contain
two consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is
specified, performance may slow while Salesforce generates one for each
record.
EnforceOn
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Determines the roles on which the rule is enforced. The value is determined
using bitwise OR operation. There are seven possible values:
1. Rule enforced on Agent
2. Rule enforced on Visitor
3. Rule enforced on Agent and Visitor
4. Rule enforced on Supervisor
5. Rule enforced on Agent and Supervisor
1223
Standard Objects
Field Name
LiveChatSensitiveDataRule
Details
6. Rule enforced on Visitor and Supervisor
7. Rule enforced on Agent, Visitor, and Supervisor
IsEnabled
Type
boolean
Properties
Create, Filter, Group, Sort, Update
Description
Specifies whether a sensitive data rule is active (true) or not (false). Default
value (if none is provided) is false.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the sensitive data rule.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label for the sensitive data rule.
NamespacePrefix
Type
string
Properties
Filter, Nillable
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
1224
Standard Objects
Field Name
LiveChatTranscript
Details
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
Pattern
Type
textarea
Properties
Create, Update
Description
The pattern of text blocked by the rule. Written as a JavaScript regular expression
(regex).
Replacement
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The string of characters that replaces the blocked text (if ActionType
Replace is selected).
Usage
Use this object to mask or delete data of specified patterns, such as credit card, social security, phone and account numbers, or even
profanity.
LiveChatTranscript
This object is automatically created for each Live Agent chat session and stores information about the session. This object is available in
API version 24.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Name
Details
Abandoned
Type
int
1225
Standard Objects
Field Name
LiveChatTranscript
Details
Properties
Filter, Group, Nillable, Sort
Description
The amount of time in seconds an incoming chat request remained unanswered
by an agent before the chat was disconnected by the customer.
AccountId
Type
ID
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account associated with the chat transcript.
AverageResponseTimeOperator
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The agent’s average response time (in seconds) to chat messages from the visitor.
AverageResponseTimeVisitor
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The visitor’s average response time (in seconds) to chat messages from the agent.
Body
Type
textarea
Properties
Create, Nillable, Update
Description
The contents of the chat.
Browser
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The browser the visitor used for the chat.
1226
Standard Objects
LiveChatTranscript
Field Name
Details
BrowserLanguage
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The language of the visitor’s browser.
CaseID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the case associated with the chat transcript.
ChatDuration
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The total duration of the chat in seconds.
ChatKey
Type
string
Properties
Create, Filter, Group, idLookup, Nillable, Sort
Description
The session ID of the chat before it is persisted. ChatKey can be used with
advanced integrations in the Salesforce console. This field is available in API
version 25.0 and later.
ContactID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the contact associated with the chat transcript.
EndedBy
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
1227
Standard Objects
Field Name
LiveChatTranscript
Details
Description
The way the chat was ended: by the operator, the visitor, or the system.
EndTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The time the chat ended.
IpAddress
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The visitor’s IP address.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
LeadID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the lead associated with the chat transcript.
1228
Standard Objects
LiveChatTranscript
Field Name
Details
LiveChatButtonID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the LiveChatButton the chat session originated from.
LiveChatDeploymentID
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Type
The ID of the LiveChatDeployment the chat session originated from.
LiveChatVisitorID
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the visitor associated with the chat transcript.
Location
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The best-guess approximation of the visitor’s location.
MaxResponseTimeOperator
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The maximum time in seconds it took an agent to respond to a chat visitor’s
message.
MaxResponseTimeVisitor
Type
int
Properties
Filter, Group, Nillable, Sort
1229
Standard Objects
Field Name
LiveChatTranscript
Details
Description
The maximum time in seconds it took a customer to respond to an agent’s
message.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name of the transcript.
OperatorMessageCount
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of messages sent by agent(s) during the chat.
OwnerID
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the operator who participated in the chat last; for missed chats, this is
a system user.
Platform
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The visitor’s operating system platform.
ReferrerUri
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Where the chat request originated.
RequestTime
Type
dateTime
1230
Standard Objects
Field Name
LiveChatTranscript
Details
Properties
Create, Filter, Nillable. Sort, Update
Description
The time the visitor requested the chat.
ScreenResolution
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The visitor’s screen resolution.
SkillId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The record ID of the primary Skill associated with the LiveChatButton the chat
session originated from. To associate multiple skills with a LiveChatTranscript,
use LiveChatTranscriptSkill junction objects.
StartTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The time the chat started.
Status
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The final status of the chat: completed, missed, dropped or blocked.
SupervisorTranscriptBody
Type
textarea
Properties
Create, Nillable, Update
Description
The text body of the supervisor’s chat transcript.
1231
Standard Objects
LiveChatTranscriptEvent
Field Name
Details
UserAgent
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The visitor’s user agent string.
VisitorMessageCount
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of messages sent by the visitor during the chat.
VisitorNetwork
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Decsription
The network or service provider the chat visitor used for the chat.
WaitTime
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The total amount of time in seconds a chat request was waiting to be accepted
by an agent.
Usage
Use this object to query and manage live chat transcripts.
LiveChatTranscriptEvent
Captures specific events that occur over the lifetime of a chat. This object is available in API version 24.0 and later.
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(),
upsert()
1232
Standard Objects
LiveChatTranscriptEvent
Fields
Field Name
Details
AgentId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The ID of the agent associated with the event.
Detail
Type
string
Properties
Create, Filter, Group, Nillable, Sort
Description
Details associated with the event.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
LiveChatTranscriptId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the live chat transcript associated with the event.
Name
Type
string
1233
Standard Objects
Field Name
LiveChatTranscriptHistory
Details
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name of the event.
Time
Type
dateTime
Properties
Create, Filter, Sort
Description
The time at which the event happened.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The kind of event that occurred.
Usage
Use this object to query and manage live chat transcript events.
LiveChatTranscriptHistory
Represents changes to field values on a LiveChatTranscript object. This object is available in API version 24.0 and later.
Supported Calls
getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
1234
Standard Objects
Field Name
LiveChatTranscriptOwnerSharingRule
Details
Description
The name of the field that was changed
LiveChatTranscriptID
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the transcript that was changed
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The old value of the field that was changed
Usage
Use this object to identify changes to a live chat transcript.
LiveChatTranscriptOwnerSharingRule
Represents the rules for sharing a Live Agent chat transcript record with users other than the record owner. This object is available in
API version 29.0 and later.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), update()
1235
Standard Objects
LiveChatTranscriptOwnerSharingRule
Fields
Field
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, restrictedPicklist, Sort, Update
Description
Determines the level of access users have to chat transcript records. Specifies whether or
not users can read, edit, or transfer chat transcript records. Corresponds to the Default Access
column in the UI.
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available in
API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores and
alphanumeric characters, and must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain two consecutive underscores.
In managed packages, this field prevents naming conflicts on package installations. With
this field, a developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization. Corresponds to Rule Name in the UI.
Note: When creating large sets of data, always specify a unique DeveloperName
for each record. If no DeveloperName is specified, performance may slow while
Salesforce generates one for each record.
GroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Chat transcript records owned by users in the source
group trigger the rule to give access.
1236
Standard Objects
LiveChatTranscriptShare
Field
Details
Name
Type
string
Properties
Create, Filter, Group, idLookup,Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label in the UI.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. The target user or group is being given access.
Usage
Use this object to manage the sharing rules for Live Agent chat transcript records.
SEE ALSO:
Metadata API Developer Guide: SharingRules
LiveChatTranscriptShare
Represents a sharing entry on a LiveChatTranscript object. This object is available in API version 24.0 and later.
Supported Calls
create(), delete(), query(), retrieve()update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
1237
Standard Objects
Field Name
LiveChatTranscriptShare
Details
Description
Level of access that the User or Group has to the LiveChatTranscript. The possible
values are:
• Read
• Edit
• All (This value is not valid for create() or update() calls.)
This value must be set to an access level that is higher than the organization’s
default access level for live chat transcripts.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the parent object, if any
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists.
You can create a value for this field in API versions 32.0 and later with the correct
organization-wide sharing settings.
Values may include:
• Manual—The User or Group has access because a user with “All” access
manually shared the LiveChatTranscript with them.
• Owner—The User is the owner of the LiveChatTranscript or is in a role above
the QuickText owner in the role hierarchy.
UserOrGroupID
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the User or Group that has been given access to the LiveChatTranscript.
Usage
This object lets you determine which users and groups can view and edit LiveChatTranscript records owned by other users.
1238
Standard Objects
LiveChatTranscriptSkill
If you attempt to create a new record that matches an existing record, the create() call updates any modified fields and returns the
existing record.
LiveChatTranscriptSkill
Represents a join between LiveChatTranscript and Skill. This object is available in API version 25.0 and later.
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update()
Fields
Field Name
Details
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The name of the transcript.
SkillId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The record ID of the skill.
TranscriptId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The record ID of the transcript.
Usage
Use this object to assign a specific skill to a specific transcript for multi-skill routing.
1239
Standard Objects
LiveChatUserConfig
LiveChatUserConfig
Represents a setting that controls the console settings for Live Agent users. This object is available in API version 24.0 and later.
Supported Calls
create(), delete(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
AutoGreeting
Type
textarea
Properties
Create, Nillable, Update
Description
The text that is automatically sent from an agent to a visitor when a chat session
starts.
Capacity
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Limits the number of active chat session an agent can engage in.
CriticalWaitTime
Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The amount of time before a chat flashes to alert an agent to answer it.
CustomAgentName
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The custom name of the agent associated with the Live Agent configuration.
DeveloperName
Type
string
1240
Standard Objects
Field Name
LiveChatUserConfig
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin
with a letter, not include spaces, not end with an underscore, and not contain
two consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
HasCrmChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the CRM chatlet appears in the agent console.
HasDetailsChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the Details chatlet appears in the agent console.
HasHistoryChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the History chatlet appears in the agent console.
HasKnowledgeChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the Knowledge chatlet appears in the agent console.
1241
Standard Objects
LiveChatUserConfig
Field Name
Details
HasLivetrackChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the Livetrack chatlet appears in the agent console.
HasLogoutSound
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether a sound plays when an agent logs out of the console.
HasMapChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the Map chatlet appears in the agent console.
HasNotifications
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether desktop notifications are enabled for the configuration.
Available in API version 25.0 and later.
HasQueueChatlet
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether the Queue chatlet appears in the agent console.
HasRequestSound
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
1242
Standard Objects
Field Name
LiveChatUserConfig
Details
Description
Determines whether a sound plays when a chat request comes in.
HasSneakPeek
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether an agent sees a real-time preview of the messages a visitor
types.
IsAutoAwayOnDecline
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Determines whether agents’ status is automatically changed to Away when they
decline a chat request. Available in API version 26.0 and later.
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the configuration.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the configuration.
OptionsHasAgentFileTransfer
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether agents can initiate a file transfer from a chat customer.
Available in API version 31.0 and later.
1243
Standard Objects
LiveChatUserConfig
Field Name
Details
OptionsHasAgentSneakPeek
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether Sneak Peek is enabled for agents. Available in API version
29.0 and later.
OptionsHasChatConferencing
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether agents can invite other agents into a customer chat. Available
in API version 34.0 and later.
OptionsHasChatMonitoring
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether supervisors can view agents’ ongoing chats. Available in
API version 29.0 and later.
OptionsHasChatTransferToAgent
Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an agent can transfer a chat directly to another agent. Available
in API version 36.0 and later.
OptionsHasChatTransferToButton Type
boolean
Properties
Create, Filter, Update
Description
Specifies whether an agent can transfer a chat to an agent assigned to a particular
chat button. Available in API version 36.0 and later.
OptionsHasChatTransferToSkill
Type
boolean
1244
Standard Objects
Field Name
LiveChatUserConfig
Details
Properties
Create, Filter, Update
Description
Specifies whether an agent can transfer a chat to agents assigned to a particular
skill. Available in API version 36.0 and later.
OptionsHasVisitorBlocking
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether an agent has the ability to block troublesome visitors by IP
address. Available in API version 34.0 and later.
OptionsHasWhisperMessage
Type
boolean
Properties
Create, Filter, Update
Description
Determines whether supervisors can send private messages to agents within an
agent’s chat with a customer. Available in API version 29.0 and later.
OptionsIsAutoAwayOnPushTimeout Type
boolean
Properties
Create, Filter, Update
Description
Determines whether an agent’s status automatically changes to Away if the agent
doesn’t respond to a chat request within the specified push time-out limit.
Available in API version 34.0 and later.
SupervisorDefaultAgentStatus
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The default agent status by which to filter agents in the Agent Status list in the
supervisor panel.
SupervisorDefaultButtonId
Type
picklist
1245
Standard Objects
LiveChatUserConfigProfile
Field Name
Details
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The default button ID by which to filter agents in the Agent Status list in the
supervisor panel.
SupervisorDefaultSkillId
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The default skill ID by which to filter agents in the Agent Status list in the
supervisor panel.
Usage
Use this object to query and manage agent configurations in Live Agent.
LiveChatUserConfigProfile
Represents a join between LiveChatUserConfig and Profile. This object is available in API version 24.0 and later.
Supported Calls
create()delete()query()retrieve()update()upsert()
Fields
Field Name
Details
LiveChatUserConfigId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The record ID of the agent configuration
ProfileId
Type
reference
Properties
Create, Filter, Group, Sort
1246
Standard Objects
Field Name
LiveChatUserConfigUser
Details
Description
The record ID of the profile
Usage
Use this object to assign specific agent configurations to specific user profiles.
LiveChatUserConfigUser
Represents a join between LiveChatUserConfig and User. This object is available in API version 24.0 and later.
Supported Calls
create(), delete(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
LiveChatUserConfigId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The record ID of the agent configuration
UserId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The record ID of the user
Usage
Use this object to assign specific agent configurations to specific users.
LiveChatVisitor
Represents a website visitor who has started or tried to start a chat session. This object is available in API version 24.0 and later.
1247
Standard Objects
LiveChatVisitor
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()
Fields
Field Name
Details
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The name of the visitor
SessionKey
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The session key used to uniquely identify the visitor
Usage
Use this object to query and manage live chat visitors.
1248
Standard Objects
LoginEvent
LoginEvent
Represents a trackable user login event in your org. This object is available in API version 36.0 and later.
Supported Calls
query()
Special Access Rules
Accessing this object requires View Login Forensics Events and API Enabled user permissions.
Fields
Field
Details
AdditionalInfo
Type
string
Properties
Nillable
Description
JSON serialization of additional information that’s captured from the HTTP headers during a login
request. For example, {"field1": "value1","field2": "value2"}.
See Working with AdditionalInfo on page 1254.
ApiType
Type
string
Properties
Nillable
Description
English-only. The type of API that’s used to log in. Values include:
• XML-RPC
• OSOAP
• SOAP Enterprise
• SOAP Partner
• SOAP Internal/CrossInstance
• REST API
• Metadata API
• N/A
ApiVersion
Type
string
1249
Standard Objects
Field
LoginEvent
Details
Properties
Nillable
Description
English-only. The version number of the API. If no version number is available, “Unknown” is returned.
Application
Type
string
Properties
Nillable
Description
The application name in English. For example, Salesforce Internal Application or Microsoft SOAP
Toolkit.
AuthServiceId
Type
reference
Properties
Nillable
Description
Refers to the AuthenticationServiceId field on the LoginHistory object. For example,
you can use this field to identify the SAML or authentication provider configuration with which the
user logged in.
Browser
Type
string
Properties
Nillable
Description
The browser name and version if known. If no browser or version number is available, “Unknown”
is returned. Product names are in English.
CipherSuite
Type
picklist
Properties
Nillable, Restricted picklist
Description
The TLS cipher suite used for the login. Values are OpenSSL-style cipher suite names, with hyphen
delimiters, for example, AES128-GCM-SHA256. Available in API version 37.0 and later. Valid
values are:
• AES128-GCM-SHA256
• AES128-SHA
• AES128-SHA256
• AES256-GCM-SHA384
1250
Standard Objects
Field
LoginEvent
Details
• AES256-SHA
• AES256-SHA256
• DES-CBC3-SHA
• DHE-RSA-AES128-GCM-SHA256
• DHE-RSA-AES128-SHA
• DHE-RSA-AES256-GCM-SHA384
• DHE-RSA-AES256-SHA
• DHE-RSA-DES-CBC3-SHA
• ECDH-ECDSA-AES128-GCM-SHA256
• ECDH-ECDSA-AES128-SHA256
• ECDH-ECDSA-AES256-GCM-SHA384
• ECDH-ECDSA-AES256-SHA384
• ECDH-RSA-AES128-GCM-SHA256
• ECDH-RSA-AES128-SHA256
• ECDH-RSA-AES256-GCM-SHA384
• ECDH-RSA-AES256-SHA384
• ECDHE-ECDSA-AES128-GCM-SHA256
• ECDHE-ECDSA-AES128-SHA256
• ECDHE-ECDSA-AES256-GCM-SHA384
• ECDHE-ECDSA-AES256-SHA384
• ECDHE-RSA-AES128-CBC-SHA
• ECDHE-RSA-AES128-GCM-SHA256
• ECDHE-RSA-AES128-SHA256
• ECDHE-RSA-AES256-CBC-SHA
• ECDHE-RSA-AES256-GCM-SHA384
• ECDHE-RSA-AES256-SHA384
• ECDHE-RSA-DES-CBC3-SHA
• Unknown
ClientVersion
Type
string
Properties
Nillable
Description
English-only. The version number of the login client. If no version number is available, “Unknown”
is returned.
EventDate
Type
dateTime
1251
Standard Objects
Field
LoginEvent
Details
Properties
Filter, Nillable, Sort
Description
The login time of the specified event. For example, 2013-01-01T03:01:01Z. Seconds are the most
granular setting.
LoginGeoId
Type
reference
Properties
Nillable
Description
The Salesforce ID of the LoginGeo object associated with the login user’s IP address.
LoginHistoryId
Type
reference
Properties
Nillable
Description
Tracks a user session so you can correlate user activity with a particular login instance.
LoginType
Type
string
Properties
Nillable, Restricted picklist
Description
The event’s type of login. For example, “Application.”
LoginUrl
Type
string
Properties
Nillable
Description
The URL of the login host. For example, yourInstance.salesforce.com.
NetworkId
Type
reference
Properties
Nillable
Description
The ID of the community that the user is logging in to. Available in API version 37.0 and later, if
Salesforce Communities is enabled for your org.
1252
Standard Objects
LoginEvent
Field
Details
Platform
Type
string
Properties
Nillable
Description
The platform name and version that are used during the login event. If no platform name is available,
“Unknown” is returned. Platform names are in English.
SourceIp
Type
string
Properties
Nillable
Description
The source IP address of the client logging in. For example, 126.7.4.2.
Status
Type
string
Properties
Nillable
Description
The login status is in English. "Success" is returned when successful. Otherwise, an error message
is returned.
TlsProtocol
Type
picklist
Properties
Nillable, Restricted picklist
Description
The TLS protocol version used for the login. Available in API version 37.0 and later. Valid values are:
• TLS 1.0
• TLS 1.1
• TLS 1.2
• Unknown
UserId
Type
ID
Properties
Nillable
Description
The user’s unique ID. For example, 005000000000123.
1253
Standard Objects
LoginEvent
Field
Details
Username
Type
string
Properties
Nillable
Description
The username in the format of user@company.com.
Working with AdditionalInfo
AdditionalInfo enables you to extend the login event with custom data that can be queried later. For example, you can capture
a correlation ID when a user logs in from an external system that shares that unique ID. This process enables tracking logins across
systems. To store data with LoginEvent, begin all AdditionalInfo field names with x-sfdc-addinfo-{fieldname}. For
example, a valid field assignment is x-sfdc-addinfo-correlation_id = ABC123 where
x-sfdc-addinfo-correlation_id is the field name and ABC123 is the field value.
When defining field names, note the following:
• x-sfdc-addinfo- is case-insensitive. x-sfdc-addinfo-{field name} is the same as X-SFDC-ADDINFO-{FIELD
NAME}.
• Fields can contain only alphanumeric and “_” (underscore) characters.
• Field names must be between 2 and 29 characters in length, excluding x-sfdc-addinfo-.
• Field names that don’t start with x-sfdc-addinfo- are ignored.
• Names that contain invalid characters after x-sfdc-addinfo- are ignored.
• Only the first 30 valid field names are stored in AdditionalInfo. Field names are not necessarily stored in the same order in
which they were passed to authentication.
When determining field values, keep the following in mind:
• You can’t use existing API field names as AdditionalInfo names in the HTTP header. If the AdditionalInfo name
conflicts with an object’s API name, the field value isn’t stored. For example, the HTTP header
X-SFDC-ADDINFO-UserId='abc123' doesn’t get stored in AdditionalInfo.
• Additional field values can contain only alphanumeric, “_,” and “-” characters.
• Field values must be 255 characters in length or fewer. If a field value exceeds 255 characters, only the first 255 characters are stored
and the rest are truncated.
• Field values that contain invalid characters are saved with a field header of Empty String ("").
• Only the first 30 valid field names are stored in the AdditionalInfo field. They are not guaranteed to be stored in the same
order that they were passed into the authentication.
• When AggregationFieldName is SourceIp, you can’t filter on AggregationFieldValue if its value is
Salesforce.com IP.
1254
Standard Objects
LoginEvent
How to Pass Additional Information by Using HTTP with cURL
Here’s an example of passing additional information via the command line.
curl https://yourInstance.salesforce.com/services/oauth2/token -d "grant_type=password"
-d
"client_id=3MVG9PhR6g6B7ps4RF_kNPoWSxVQstrazijsE8njPtkpUzVPPffzy8
jIoRE6q9rPznNtlsqbP9ob8kUfMjXXX" -d "client_secret=4180313776440635XXX" -d
"username=user@company.com" -d "password=123456" -H "X-PrettyPrint:1" -H
"x-sfdc-addinfo-correlationid:
d18c5a3f-4fba-47bd-bbf8-6bb9a1786624"
How to Pass Additional Information in Java
Here’s an example of passing additional information in Java.
//adding additional info headers ..
Map httpHeaders = new HashMap();
httpHeaders.put("x-sfdc-addinfo-fieldname1" /* additional info field*/ ,
"d18c5a3f-4fba-47bd-bbf8-6bb9a1786624" /* value*/);
httpHeaders.put("x-sfdc-addinfo-fieldname2" /* additional info field*/ ,
"d18c5a3f-4fba-47bd-bbf8-6bb9a1786624" /* value*/);
ConnectorConfig config = new ConnectorConfig();
config.setUsername(userId);
config.setPassword(passwd);
config.setAuthEndpoint(authEndPoint);
config.setProxy(proxyHost, proxyPort);
//setting additional info headers
for (Map.Entry entry : httpHeaders.entrySet()) {
config.setRequestHeader(entry.getKey(), entry.getValue());
}
// Set the username and password if your proxy must be authenticated
9
LoginEvent
config.setProxyUsername(proxyUsername);
config.setProxyPassword(proxyPassword);
try {
EnterpriseConnection connection = new EnterpriseConnection(config);
// etc.
} catch (ConnectionException ce) {
ce.printStackTrace();
}
SOQL Usage
Currently, the only supported SOQL function on LoginEvent is WHERE, and you can only use comparison operators (=, <, >, <=, and
>=) on the final expression in a WHERE clause. The != operator isn’t supported.
Note: Date functions such as convertTimezone() aren’t supported—for example, SELECT
CALENDAR_YEAR(EventDate), Count(Id) FROM LoginEvent GROUP BY CALENDAR_YEAR(EventDate)
returns an error. You can use date literals in your queries and some date and date/time functions like TODAY, YESTERDAY, and
1255
Standard Objects
LoginGeo
LAST_n_DAYS:1. However, these functions use comparison operators behind the scenes. This means you can only use them
in the final expression of a WHERE clause.
LoginEvent allows filtering over two ordered fields: EventDate and Id. There’s a catch here; your query won’t work unless you use
the correct order and combination of these fields. The following list provides some examples of valid and invalid queries:
• Unfiltered
– Valid—contains no WHERE clause, so no special rules apply.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
• Filtered on EventDate
– Valid—you can filter solely on EventDate, but single filters on other fields fail. You can also use a comparison operator in
this query type.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
WHERE EventDate<=2014-11-27T14:54:16.000Z
– Valid—you can filter on EventDate using date literals.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
WHERE EventDate<=TODAY
• Filtered on EventDate and Id
– Valid—successful queries on LoginEvent filter over both fields.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
WHERE EventDate=2014-11-27T14:54:16.000Z and Id='1HBD00000001N6EOAU'
– Valid—successful queries on LoginEvent with EventDate and standard date literals.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
WHERE EventDate=TODAY and Id='1HB0D0000000kJDWAY'
– Invalid—filtering only on EventDate with <= or >= operator and Id field isn’t supported.
SELECT Application, Browser, EventDate, Id, LoginUrl, UserId
FROM LoginEvent
WHERE EventDate<=2014-11-27T14:54:16.000Z and Id='1HBD00000001N6EOAU'
LoginGeo
Represents the geographic location of the user’s IP address for a login event. Due to the nature of geolocation technology, the accuracy
of geolocation fields (for example, country, city, postal code) may vary. This object is available in API version 34.0 and later.
1256
Standard Objects
LoginGeo
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Only users with Manage Users permissions can access this object.
Fields
Field
Details
City
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The city where the user’s IP address is physically located. This value is not localized.
Country
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The country where the user’s IP address is physically located. This value is not localized.
CountryIso
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ISO 3166 code for the country where the user’s IP address is physically located. For more
information, see Country Codes - ISO 3166
Latitude
Type
double
Properties
Filter, Nillable, Sort
Description
The latitude where the user’s IP address is physically located.
LoginTime
Type
dateTime
1257
Standard Objects
Field
LoginGeo
Details
Properties
Filter, Sort
Description
Time of the login attempt, in GMT time zone.
Longitude
Type
double
Properties
Filter, Nillable, Sort
Description
The longitude where the user’s IP address is physically located.
PostalCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The postal code where the user’s IP address is physically located. This value is not localized.
Subdivision
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name of the subdivision where the user’s IP address is physically located. In the U.S., this
value is usually the state name (for example, Pennsylvania). This value is not localized.
Usage
The API allows you to do many powerful queries. A few examples are:
Sample Query
Query String
Query showing the country for a login event, where
Id=LoginGeoId from AuthSession
SELECT Country FROM LoginGeo WHERE Id =
'0LE###############'
Query showing the city and postal code for a login event, where
Id=LoginGeoId from LoginHistory
SELECT City, PostalCode FROM LoginGeo WHERE
Id = '0SO###############'
1258
Standard Objects
LoginHistory
LoginHistory
Represents the login history for all successful and failed login attempts for organizations and enabled portals. This object is available in
API version 21.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
With one exception, only users with Manage Users permissions can access this object. The exception is that, in API version 37.0 and later,
all users can retrieve their own login history records.
Fields
Field
Details
ApiType
Type
string
Properties
Group, Nillable, Sort
Description
Indicates the API type, for example Soap Enterprise. Label is API Type.
APIVersion
Type
string
Properties
Group, Nillable, Sort
Description
Displays the API version used by the client. Label is API Version.
Application
Type
string
Properties
Group, Nillable, Sort
Description
The application used to access the organization. Label is Application.
AuthenticationServiceId Type
reference
Properties
Filter, Group, Nillable, Sort
1259
Standard Objects
Field
LoginHistory
Details
Description
The 18-character ID for an authentication service for a login event. For example, you can use
this field to identify the SAML or authentication provider configuration with which the user
logged in. This field is available in API version 34.0 and later. Label is Authentication Service
Id.
Browser
Type
string
Properties
Group, Nillable, Sort
Description
The current browser version. Label is Browser.
ClientVersion
Type
string
Properties
Group, Nillable, Sort
Description
Version of the API client. Label is Client Version.
CipherSuite
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The TLS cipher suite used for the login. Values are OpenSSL-style cipher suite names, with
hyphen delimiters. For more information, see OpenSSL Cryptography and SSL/TLS Toolkit.
This field is available in API version 37.0 and later.
CountryIso
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The ISO 3166 code for the country where the user’s IP address is physically located. For more
information, see Country Codes - ISO 3166. This field is available in API version 37.0 and later.
LoginGeoId
Type
reference
Properties
Filter, Group, Nillable, Sort
1260
Standard Objects
Field
LoginHistory
Details
Description
The 18-character ID for the record of the geographic location of the user for a successful or
unsuccessful login event. Due to the nature of geolocation technology, the accuracy of
geolocation fields (for example, country, city, postal code) can vary. This field is available in
API version 34.0 and later.
LoginTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Time zone is based on GMT. Label is Login Time.
LoginType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The type of login, for example, Application, OAuth, or SAML. Label is Login Type.
LoginUrl
Type
string
Properties
Filter, Group, Nillable, Sort
Description
URL from which the login request is coming. Label is Login URL.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the community that the user is logging in to. This field is available in API version
31.0 and later, if Salesforce Communities is enabled for your organization.
Platform
Type
string
Properties
Group, Nillable, Sort
Description
Operating system on the login machine. Label is Platform.
1261
Standard Objects
LoginHistory
Field
Details
SourceIp
Type
string
Properties
Group, Nillable, Sort
Description
IP address of the machine from which the login request is coming. The address can be an
IPv4 or IPv6 address in API version 23.0 or later. In API version 22.0 or earlier, the address is
an IPv4 address, and IPv6 addresses are null. Label is Source IP.
Status
Type
string
Properties
Group, Nillable, Sort
Description
Displays the status of the attempted login. Status is either success or a reason for failure.
Label is Status.
TlsProtocol
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The TLS protocol used for the login. Possible values are:
• TLS 1.0
• TLS 1.1
• TLS 1.2
• Unknown
This field is available in API version 37.0 and later.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user logging in. Label is User ID.
Usage
Not all fields are filterable. You can only filter on the following fields:
• AuthenticationServiceId
1262
Standard Objects
LoginIp
• CipherSuite
• CountryIso
• Id
• LoginTime
• LoginType
• LoginUrl
• NetworkId
• TlsProtocol
• UserId
The API allows you to do many powerful queries. A few examples are:
Sample Query
Query String
Simple query showing UserId & LoginTime for each user
SELECT UserId, LoginTime from LoginHistory;
Query showing logins only after a specified date and time
SELECT UserId, LoginTime from LoginHistory
WHERE LoginTime > 2010-09-20T22:16:30.000Z;
Query showing logins for a specific time interval
SELECT UserId, LoginTime from LoginHistory
WHERE LoginTime > 2010-09-20T22:16:30.000Z
AND LoginTime < 2010-09-21T22:16:30.000Z;
Query showing the authentication service for a SAML login event, SELECT name, issuer, samlVersion FROM
where Id=AuthenticationServiceId from LoginHistory SamlSsoConfig WHERE Id =
'0LE###############'
Query showing the authentication service for an authentication
provider login event, where
Id=AuthenticationServiceId from LoginHistory
SELECT Type, DeveloperName FROM
AuthProvider WHERE Id =
'0SO###############'
LoginIp
Represents a validated IP address. This object is available in version 28.0 and later.
Supported Calls
describeSObjects(), delete(), query(), retrieve()
Fields
Field
Details
ChallengeMethod
Type
picklist
Properties
Filter, Nillable, Sort
1263
Standard Objects
Field
LoginIp
Details
Description
The challenge method used to confirm the user’s identity. Possible values include the
following.
• Email
• SMS
• TOTP_CHOICE: The user chooses two-factor authentication.
• TOTP_ONLY: The user is required to use two-factor authentication.
ChallengeSentDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the user was authenticated.
IsAuthenticated
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, the user has already been authenticated.
SourceIp
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The IP address the user logged in from.
UsersId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the user associated with this item.
Usage
At every login, the IP address of the login request is checked against the validated IP addresses using LoginIp. A match means the login
IP address is a known IP address. If there’s no match, the address is unknown, and the user is asked to confirm their identity.
1264
Standard Objects
LookedUpFromActivity
LookedUpFromActivity
This read-only object is displayed as a related list on an activity record (an event or a task); the list contains records that have custom
lookup relationships from the activity to another object. This object is not queryable.
Supported Calls
describeSObjects()
Fields
Field Name
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the related account, which is determined as follows:
• The account associated with the WhatId, if it exists; or
• The account associated with the WhoId, if it exists; otherwise
• null
For information on IDs, see Field Types
ActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates one of the following:
• The due date of a task
• The date of an event if IsAllDayEvent is set to true
This field has a time stamp that is always set to midnight in the Universal Time
Coordinated (UTC) time zone. The time stamp doesn’t represent the time of the
activity; don’t attempt to alter it to accommodate time zone differences. Label
is Date.
ActivitySubtype
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1265
Standard Objects
Field Name
LookedUpFromActivity
Details
Description
Provides standard subtypes to facilitate creating and searching for specific activity
subtypes. This field isn’t updateable.
ActivitySubtype values:
• Task
• Email
• Call
• Event
ActivityType
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Represents one of the following values: Call, Meeting, or Other. Label is
Type.
CallDisposition
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Represents the result of a given call; for example, “we’ll call back,” or “call
unsuccessful.” Limit is 255 characters.
CallDurationInSeconds
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Duration of the call in seconds.
CallObject
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of a call center. Limit is 255 characters.
CallType
Type
picklist
1266
Standard Objects
Field Name
LookedUpFromActivity
Details
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of call being answered: Inbound, Internal, or Outbound.
Description
Type
textarea
Properties
Nillable
Description
Contains a description of the event or task. Limit is 32 KB.
DurationInMinutes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Indicates the duration of the event or task.
EndDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the end date and time of the event or task. Available in versions 27.0
and later. This field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either
DurationInMinutes or EndDateTime. Supplying values in both
fields is allowed if the values add up to the same amount of time. If both
fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both
fields is allowed if the values add up to the same amount of time.
IsAllDayEvent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If the value of this field is set to true, then the activity is an event spanning a
full day, and the ActivityDate defines the date of the event. If the value of
1267
Standard Objects
Field Name
LookedUpFromActivity
Details
this field is set to false, then the activity may be an event spanning less than
a full day, or it may be a task. Label is All-Day Event.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a task is closed; value is always false. This field is set indirectly
by setting Status on the task—each picklist value has a corresponding
IsClosed value. Label is Closed.
IsHighPriority
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates a high-priority task. This field is derived from the Priority field.
IsReminderSet
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a reminder is set for an activity (true) or not (false).
IsTask
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If the value of this field is set to true, then the activity is a task; if the value is
set to false, then the activity is an event. Label is Task.
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If the value of this field is set to true, then the activity can be viewed in the
self-service portal. Label is Visible in Self-Service.
1268
Standard Objects
LookedUpFromActivity
Field Name
Details
Location
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If the activity is an event, then this field represents the location of the event. If
the activity is a task, then the value is null.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the user who owns the activity.
Priority
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the priority of a task, such as high, normal, or low.
ReminderDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the time at which a reminder is scheduled to fire if
IsReminderSet is set to true. If IsReminderSet is set to false,
then either the user has deselected the reminder checkbox in the user interface
or the reminder has already fired at the time indicated by the value.
StartDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the start date and time of the event. Available in versions 13.0 and later.
The StartDateTime field contains the event start date.
However, if the event’s IsAllDayEvent flag is set to true (indicating an
all-day event), then the time stamp in the StartDateTime field is always set
1269
Standard Objects
Field Name
LookedUpFromActivity
Details
to midnight in the Coordinated Universal Time (UTC) time zone. Don’t attempt
to alter the time stamp to account for any time zone differences.
If the event’s IsAllDayEvent flag is set to false, then you must translate
the time portion of the time stamp in the StartDateTime field to or from a
local time zone for the user or the application, as appropriate, and the translation
must be in the Coordinated Universal Time (UTC) time zone.
If this field has a value, then ActivityDate and ActivityDateTime
either must be null or must match the value of this field.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the current status of a task, such as in progress or complete. Each
predefined status field sets a value for IsClosed.
Subject
Type
combobox
Properties
Filter, Nillable, Sort
Description
Contains the subject of the task or event.
WhatId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhatId represents nonhuman objects such as accounts, opportunities,
campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic
means a WhatId is equivalent to the ID of a related object. The label is
Related To ID.
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are
polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a
lead’s ID. The label is Name ID.
1270
Standard Objects
Macro
Usage
Query activities related to an object
1. Optionally, issue a describe call against the object whose activities you wish to query, to get a suggestion of the correct SOQL
to use.
2. Issue a SOQL relationship query with a main clause that references the object, and an inner clause that references the activity
custom lookup relationship; for example:
SELECT id, name,
(SELECT id, subject from sponsoredact__r)
FROM Contact
In this example sponsoredact__r is a user defined relationship list.
The user interface enforces sharing rules, filtering out related-list items that a user doesn’t have permission to see.
The following restrictions on users who don’t have “View All Data” permission help prevent performance issues:
• In the main clause of the relationship query, you can reference only one record. For example, you can’t filter on all records where
the account name starts with ‘A’; instead, you must reference a single account record.
• In the inner clause of the query, you can’t use WHERE.
• In the inner clause of the query, you must specify a limit of 500 or fewer on the number of rows that are returned in the list.
• You must sort on ActivityDate in descending order and LastModifiedDate in descending order; you can display
nulls last. For example: ORDER BY ActivityDate DESC NULLS LAST, LastModifiedDate DESC.
Macro
Represents a macro, which is a set of instructions that tells the system to perform one or more tasks. This object is available in API version
32.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
update()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of what this macro does.
1271
Standard Objects
Macro
Field
Details
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the macro record was last referenced.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date and time that the macro record was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Name of the macro.
OwnerId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the owner of the session record.
Usage
A macro definition consists of a Macro object and several associated MacroInstruction objects.
First, create a Macro object. Then, create MacroInstruction objects.
A macro contains an ordered list of macro instructions whose index field, sortOrder, is 0-based. If there's an incorrect sequence of
macro instructions, the macro will not execute.
If you update a macro definition or add or remove instructions from a macro, delete the existing macro instructions and re-create
instructions. Make sure that the sortOrder field that defines the execution order is correct. To delete an entire macro definition,
invoke the delete operation on the Macro object.
The table describes the supported macro instruction targets and how they relate to each other.
1272
Standard Objects
Macro
Note: Strings indicated by  are variables. The variable description describes the required type. For example,
Tab.
SELECT, CLOSE (implicit)
- QuickAction..
SELECT, SUBMIT (implicit)
- - Field..
SET
- INSERT
Field...cursor
- Field...end
INSERT
- QuickAction.Case.Email
SELECT, SUBMIT (implicit)
- - Field.EmailMessage.
SET
- - Field.EmailMessage..cursor
INSERT
- - Field.EmailMessage..end
INSERT
- - Field.EmailTemplate
SET
- SidebarCmp.Knowledge
SELECT
- - SearchAction.KnowledgeArticle
SELECT
- - - Field.SearchString
SET, INSERT
- - - Command.Search
SUBMIT
- - SearchResult.KnowledgeArticle.MostRecentItem
SELECT
- - - Command.AttachToRecord
SUBMIT
- - - Command.InsertToEmail
SUBMIT
- - - Command.AttachToEmailAsPDF
SUBMIT
Example: This example describes a macro that opens a quick action, sets some fields in the quick action, and submits the quick
action.
0. SELECT Tab.Case
1.
SELECT QuickAction.Case.Email
2.
SET Field.EmailMessage.Subject
3.
SET Field.EmailMessage.ToAddress
1273
Standard Objects
4.
5.
MacroInstruction
INSERT Field.EmailMessage.HtmlBody.cursor
SUBMIT
MacroInstruction
Represents an instruction in a macro. An instruction can specify the object that the macro interacts with, the context or publisher that
the macro works within, the operation or action that the macro performs, and the target of the macro’s actions. It is a useful way to
programmatically define instructions, instead of using the macro widget in the console.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Fields
Field Name
Details
MacroId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the macro that contains this instruction.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
Name of the instruction.
Operation
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The action that the macro instruction performs.
SortOrder
Type
int
Properties
Create, Filter, Group, Sort, Update
1274
Standard Objects
Field Name
MailmergeTemplate
Details
Description
Order of this instruction in the macro.
Target
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Object in the case feed that is the target of the operation. For example, the target
might be the active case tab or a quick action.
Value
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Value of a field. If the operation is Select, then the value is null, because the
operation selects the object on which the macro performs an action. An
instruction can contain both a Value field and a ValueRecord field, but
only one of these fields can have a value. The other field value must be null.
ValueRecord
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the value or record. The ValueRecord can be either a value or a record,
but not both. An instruction can contain both a Value field and a
ValueRecord field, but only one of these fields can have a value. The other
field value must be null.
MailmergeTemplate
Represents a mail merge template (a Microsoft Word document) used for performing mail merges for your organization.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete(), update(), upsert()
1275
Standard Objects
MailmergeTemplate
Special Access Rules
• All users can view this object, but you need the “Customize Application” permission to modify it.
• Customer Portal users can’t access this object.
Fields
Field
Details
Body
Type
base64
Properties
Create
Description
Required. Microsoft Word document to use as a mail merge template. Due
to limitations with Microsoft Word mail merge templates, your client
application can specify the Body field when creating these records, but not
when updating them. Limit: 5 MB.
BodyLength
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Length of the Microsoft Word document.
Description
Type
string
Properties
Create, Filter,Group, Nillable, Sort, Update
Description
Required. Text description of this mail merge template. Limit: 255 characters.
Filename
Type
string
Properties
Create, Filter, Group, Sort
Description
Required. File name of the Microsoft Word document that was uploaded as
a mail merge template. Limit: 255 characters in length.
IsDeleted
Type
boolean
1276
Standard Objects
Field
MailmergeTemplate
Details
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or
not (false). Label is Deleted.
LastUsedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Date and time when this MailmergeTemplate was last used.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. Name of this mail merge template.
SecurityOptionsAttachmentHasFlash Type
boolean
Properties
Create, Filter, Update
Description
Required. True if Flash Injection was detected in the attachment.
SecurityOptionsAttachmentHasXSSThreat Type
boolean
Properties
Create, Filter, Update
Description
Required. True if a cross site scripting threat was detected in the attachment.
SecurityOptionsAttachmentScannedforFlash Type
boolean
Properties
Create, Filter, Update
Description
Required. True if the attachment has been scanned for Flash Injection.
1277
Standard Objects
Field
MatchingRule
Details
SecurityOptionsAttachmentScannedForXSS Type
boolean
Properties
Create, Filter, Update
Description
Required. True if the attachment has been scanned for a cross site scripting
threat.
Usage
Use this object to manage mail merge templates for your organization.
SEE ALSO:
Object Basics
MatchingRule
Represents a matching rule that is used to identify duplicate records. This object is available in API version 33.0 and later.
A matching rule compares field values to determine whether a record is similar enough to existing records to be considered a duplicate.
For example, a matching rule can specify that if the Email and Phone values of two records match exactly, the records are possible
duplicates. Your organization uses matching rules with duplicate rules to define what happens when duplicates are identified.
If the rule is for a Person Account, SobjectSubType is automatically set to PersonAccount.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
BooleanFilter
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Specifies filter logic conditions. For more information on filter logic, see “Getting
the Most Out of Filter Logic” in the Salesforce Help.
1278
Standard Objects
MatchingRule
Field Name
Details
Description
Type
textarea
Properties
Filter, Group, Nillable, Sort
Description
The description of the matching rule.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The developer name for the matching rule.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language selected for your organization.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The name of the matching rule.
MatchEngine
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The match engine used by the matching rule.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix for matching rules for your organization.
1279
Standard Objects
MatchingRule
Field Name
Details
RuleStatus
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Required. The activation status of the matching rule. Values are:
• Inactive
• Deactivating
• DeactivationFailed
• Active
• Activating
• ActivationFailed
Important: The only valid values you can declare when deploying a
package are Active and Inactive.
SobjectSubType
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable Restricted picklist, Sort
Description
Read-only. Indicates if the matching rule is defined for the Person subtype of
Account. Valid values are:
• PersonAccount
• None
If the rule is for a Person Account, SobjectSubType is automatically set to
PersonAccount.
SobjectType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The object for the matching rule.
1280
Standard Objects
MatchingRuleItem
Usage
Use the Salesforce API to retrieve and view details about MatchingRule and MatchingRuleItem. Use the Salesforce Metadata API to create,
update, or delete these objects.
SEE ALSO:
MatchingRuleItem
DuplicateRule
DuplicateResult
MatchingRuleItem
Represents criteria used by a matching rule to identify duplicate records. This object is available in API version 33.0 and later.
A matching rule item determines which field the matching rule uses to identify a duplicate record. It also determines the method used
to compare value that two records have for the field. For example, a matching rule item might specify that the Email field values of
two records must match exactly in order for the records to be considered duplicates.
When a matching rule has multiple matching rule items, it means that multiple fields must match in order for the records to be identified
as dupcliates.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
BlankValueBehavior
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort
Description
Specifies how blank fields affect whether the fields being compared are considered
matches. Valid values are:
• MatchBlanks
• NullNotAllowed (default)
Field
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1281
Standard Objects
Field Name
MatchingRuleItem
Details
Description
Indicates which field to compare when determining if a record is similar enough
to an existing record to be considered a match.
MatchingMethod
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Defines how the fields are compared. Choose between the exact matching
method and various fuzzy matching methods. Valid values are:
• Exact
• FirstName
• LastName
• CompanyName
• Phone
• City
• Street
• Zip
• Title
For details on each matching method, see “Matching Methods Used with
Matching Rules” in the Salesforce Help.
MatchingRuleId
Type
reference
Properties
Filter, Group, Sort
Description
The ID for the matching rule.
SortOrder
Type
int
Properties
Filter, Group, Sort
Description
The order of the matching rule items for a matching rule.
1282
Standard Objects
MetadataPackage
Usage
Use the Salesforce SOAP API to retrieve and view details about MatchingRule and MatchingRuleItem. Use the Salesforce Metadata API
to create, update, or delete these objects.
SEE ALSO:
MatchingRule
DuplicateRule
DuplicateResult
MetadataPackage
Represents a managed or unmanaged package that has been developed in the org you’re logged in to.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
Name
Type
string
Properties
Filter, Group, idLookup, Sort
Description
The name of the package.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
For managed packages, this field is the namespace prefix assigned to the package.
For unmanaged packages, this field is blank.
Usage
Here are examples of the types of API queries you can perform.
1283
Standard Objects
MetadataPackageVersion
Query
String
Show all managed and unmanaged packages in the org
SELECT Name, NamespacePrefix FROM
MetadataPackage
Show only managed packages in the org
SELECT Name, NamespacePrefix FROM
MetadataPackage WHERE NamespacePrefix <>
''
MetadataPackageVersion
Represents a package version (managed or unmanaged) that has been uploaded from the org you’re logged in to.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
BuildNumber
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The build number of the version. For example, if you upload two beta versions,
they have build numbers 1 and 2. Then, when you upload a non-beta version,
the build number is 3. When you upload a new version, the build number resets
to 1.
MajorVersion
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The first number in a package version number. A version number either has an
x.y format or an x.y.z format. The x represents the major version, y the
minor version, and z the patch version.
MetadataPackageId
Type
reference
Properties
Filter, Group, Nillable, Sort
1284
Standard Objects
Field Name
MetadataPackageVersion
Details
Description
The 18-character package ID starting with 033.
MinorVersion
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The second number in a package version number. A version number either has
an x.y format or an x.y.z format. The x represents the major version, y
the minor version, and z the patch version.
Name
Type
string
Properties
Filter, Group, idLookup, Sort
Description
The name of the package version.
PatchVersion
Type
int
Properties
Filter, Group, Nillable, Sort
Description
The third number in a package version number, if present. A version number
either has an x.y format or an x.y.z format. The x represents the major
version, y the minor version, and z the patch version.
ReleaseState
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
If the package version is a beta version, the value is Beta. Otherwise, the value
is Released.
Usage
Here are examples of the types of API queries you can perform.
1285
Standard Objects
MetadataPackageVersion
Query
String
Get all package versions for the package that has a
MetadataPackageID of 033D00000001xQlIAI
SELECT Id, Name, ReleaseState,
MajorVersion, MinorVersion, PatchVersion
FROM MetadataPackageVersion WHERE
MetadataPackageId = '033D00000001xQlIAI'
Get the package version for the package with a specific
MetadataPackageID and a major version greater than 1
SELECT Id FROM MetadataPackageVersion WHERE
MetadataPackageId ='033D00000001xQlIAI'
AND MajorVersion > 1
Get released package versions for the package with a specific
SELECT Id FROM MetadataPackageVersion WHERE
MetadataPackageId = '033D00000001xQlIAI'
AND ReleaseState = 'Released'
MetadataPackageID
Java Code Sample
Suppose you want to push version 3.4.6 of your package to all orgs. Let’s write some code to identify the orgs eligible for the upgrade.
This example demonstrates how to generate the list of subscriber orgs eligible to be upgraded to version 3.4.6 of a package.
This code sample uses the Force.com Web Services Connector (WSC).
// Finds all Active subscriber orgs that have the package installed
String PACKAGE_SUBSCRIBER_ORG_KEY_QUERY = "Select OrgKey from PackageSubscribers where
OrgStatus = 'Active' and InstalledStatus = 'I'";
// Finds all MetadataPackageVersions lower than the version given, including the list
// of subscribers for each version
String METADATA_PACKAGE_VERSION_QUERY = "Select Id, Name, ReleaseState, (%s) from"
+ " MetadataPackageVersion where MetadataPackageId = '%s' AND ReleaseState = 'Released'"
+ " AND (MajorVersion < 3 OR (MajorVersion = 3 and MinorVersion < 4)"
+ " OR (MajorVersion = 3 and MinorVersion = 4 and PatchVersion < 6))";
// conn is an EnterpriseConnection instance initialized with a ConnectionConfig object
// representing a connection to the developer org of the package
QueryResult results = conn.query(String.format(METADATA_PACKAGE_VERSION_QUERY,
PACKAGE_SUBSCRIBER_ORG_KEY_QUERY));
// This list will hold all of the PackageSubscriber objects that are eligible for upgrade
// to the given version
List subscribers = new ArrayList<>();
for (SObject mpvso : results.getRecords()) {
// Cast the sObject to a MetadataPackageVersion
MetadataPackageVersion mpv = (MetadataPackageVersion) mpvso;
// Add subscribers to our list
if (mpv.getPackageSubscribers() != null) {
for (SObject psso : mpv.getPackageSubscribers().getRecords()) {
subscribers.add((PackageSubscriber) psso);
}
}
}
1286
Standard Objects
Metric
Next Step
Create a push request using PackagePushRequest.
Metric
The Metric object represents the components of a goal metric such as its name, metric type, and current value.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Name
Details
CompletionDate
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The completion date of the metric.
CurrentValue
Type
double
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The current value of the metric.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the metric. The maximum length is 65,535 characters.
DueDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The due date of the metric.
1287
Standard Objects
Metric
Field Name
Details
GoalId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the goal the metric is related to.
InitialValue
Type
double
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The initial value of the metric.
IsCompletionMetric
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read only. If true, the metric measures whether or not the metric is finished.
If false, the metric measures how much is finished compared to a targeted
value.
LastComment
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
A comment that provides more context about the metric, such as its status or
progress. The maximum length is 255 characters.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed a record that is related to
this metric.
LastViewedDate
Type
dateTime
1288
Standard Objects
Field Name
Metric
Details
Properties
Filter, Nillable, Sort
Description
The timestamp that indicates when a user last viewed this metric. If this value is
null, this record might have been only referenced (LastReferencedDate)
and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the metric.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the metric.
Progress
Type
percent
Properties
Filter, Nillable, Sort
Description
Read only. The overall progress of the metric.
RecordTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the related record type.
StartDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The start date of the metric.
1289
Standard Objects
MetricDataLink
Field Name
Details
Status
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The status of the metric. Possible values include:
• Not Started
• On Track
• Behind
• Critical
• Completed
• Postponed
• Canceled
• Not Completed
TargetValue
Type
double
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The target value of the metric.
Weight
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The weight of the metric. The sum of the weights should equal 100%.
MetricDataLink
The link between the metric and the data source, such as a report.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete(), update(), upsert()
1290
Standard Objects
MetricDataLinkHistory
Fields
Field Name
Details
DatasourceFieldName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The field name of the data source, such as a report summary field.
DataSourceId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the data source.
LastSynchronizationTime
Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The last time the data was synchronized.
Name
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
The name given to the data link record.
TargetId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the metric that the data is linked to.
MetricDataLinkHistory
This read-only object contains historical information about changes that have been made to the MetricDataLink object.
1291
Standard Objects
MetricFeed
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
MetricDataLinkId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the MetricDataLink.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
MetricFeed
Represents a single feed item in the feed displayed on a Metric record.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
1292
Standard Objects
MetricFeed
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the FeedItem. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The numbers of FeedComments associated with this feed item.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
1293
Standard Objects
Field Name
MetricFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The size of the file (in bytes)
uploaded to the feed.
ContentType
Type
string
Properties
Available in API version 36.0 and earlier only. Group, Nillable, Sort
Description
Read only. Automatically determined during insert. The MIME type of the file
uploaded to the feed.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if a client
application migrates posts and comments from another application into a feed,
then InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• 
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
1294
Standard Objects
Field Name
MetricFeed
Details
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the metric record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
1295
Standard Objects
Field Name
MetricFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null
for all posts except ContentPost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of TypeContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and TextPost,
don’t create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
1296
Standard Objects
Field Name
MetricHistory
Details
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
MetricHistory
This read-only object contains historical information about changes that have been made to the Metric object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
MetricId
Type
reference
1297
Standard Objects
MetricsDataFile
Field Name
Details
Properties
Filter, Group, Sort
Description
ID of the Metric.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
MetricsDataFile
Represents a data file containing usage metrics on all installations of a managed package in a Salesforce instance. This object is available
in API version 30.0 and later.
Supported Calls
query(), delete()
Fields
Field Name
Details
MetricsDataFile
Type
base64
Properties
Filter, Query, Sort
Description
A text file containing the usage data encoded in Base 64.
1298
Standard Objects
Field Name
MetricsDataFile
Details
MetricsDataFileContentType Type
string
Properties
Filter, Query, Sort
Description
The format of the data file. Currently, the only allowed value is text/csv.
MetricsDataFileLength Type
int
Properties
Filter, Query, Sort
Description
The size of the data file in bytes.
MetricsRunDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The date when the usage metrics collection job was run.
MetricsEndDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The end time and date for the data collection.
MetricsStartDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The start time and date for the data collection.
MetricsType
Type
picklist
Properties
Filter, Query, Sort
1299
Standard Objects
Field Name
MetricsDataFile
Details
Description
The type of data being collected. The possible values are CustomObject and
Visualforce.
NamespacePrefix
Type
string
Properties
Filter, Query, Sort
Description
The namespace prefix of the package for which data is being collected.
SendingInstance
Type
string
Properties
Filter, Query, Sort
Description
The server instance from which this data was collected, for example, “na8.”
Usage
Use this object to access customer usage metrics for a managed package. Each record contains one day’s data, on either custom objects
or Visualforce pages, for all organizations in a Salesforce instance that have the package installed. The following data is collected each
day.
• Custom objects — the number of records stored in each custom object.
• Visualforce pages — the number of times each Visualforce page was accessed, the number of unique users who accessed it, and
the average loading time (in milliseconds).
The custom objects data is a snapshot that reflects the state of the organization at the time the database was sampled, while the
Visualforce data covers usage over a 24-hour period.
This feature is intended for API access only. The owner of the package must write a secondary process to retrieve the metrics data from
the reporting organization, and export it to another system for analysis.
The usage metrics data for all production organizations in a given instance is merged and written into a text file, in a specified format,
once a day. If an instance doesn’t have any organizations with the package installed or any organizations that accessed Visualforce pages
in the package, a blank record is created for that day, with MetricsDataFileLength set to zero.
In a record for custom objects, each row of the text file contains usage data in the following order.
• Organization ID
• Organization name
• Organization edition
• Organization status
• Name of the custom object
• Number of records of the custom object on the specified day
1300
Standard Objects
MetricShare
The custom object count is a snapshot captured once each day. Here’s a section of a sample data file for custom objects. It shows there
were 3500 and 1500 records in the Alpha and Beta custom objects, respectively, in the specified customer organization on the
specified day.
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","Alpha", "3500"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","Beta", "1500"
In a record for Visualforce pages, each row of the text file contains usage data in the following order.
• Organization ID
• Organization name
• Organization edition
• Organization status
• Package version number
• Name of the Visualforce page
• Number of times the page was accessed
• Number of unique users who accessed the page
• Average loading time of the page, in milliseconds
The Visualforce counts for each organization measure the number of times the page was viewed in the duration between the start and
end times. Here’s a section of a sample data file for Visualforce pages.
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f1","1","1","66.0"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f2","1","1","128.0"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f3","1","1","107.0"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f1","5","1","73.6"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f2","1","1","72.0"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f3","7","1","50.8"
MetricShare
Represents a sharing entry on a Metric object.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
1301
Standard Objects
Field Name
MetricShare
Details
Description
The user’s or group’s level of access to the metric. The possible values are:
• Read Only
• Read/Write
• Owner
This field must be set to an access level that is higher than the organization’s
default access level for metrics.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Metric object that is associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. Read-only.
You can create a value for this field in API versions 32.0 and later with the correct
organization-wide sharing settings.
Valid values include:
• Owner: User is the owner of the Metric or is in a user role above the Metric
owner in the role hierarchy.
• Manual: User or group has access because a user with “All” access manually
shared the Metric with the user or group.
• Rule: User or group has access via a Metric sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user or group that was given access to the Metric. This field can’t be
updated.
1302
Standard Objects
MilestoneType
MilestoneType
Represents a milestone (required step in a customer support process). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Update
Description
A description of the milestone.
Name
Type
string
Properties
Create, Filter, idLookup, Update
Description
The name of the milestone.
RecurrenceType
Type
picklist
Properties
Create,Update
Description
The type of recurrence for the milestone.
Usage
Use this object to query and manage the milestone type for CaseMilestone records.
SEE ALSO:
CaseMilestone
SlaProcess
1303
Standard Objects
Name
Name
Non-queryable object that provides information about foreign key traversals when the foreign key has more than one parent.
This object is used to retrieve information from related records where the related record may be from more than one object type (a
polymorphic foreign key). For example, the owner of a case can be either a user or a group (queue). This object allows retrieval of the
owner name, whether the owner is a user or a group (queue). You can use a describe call to access the information about parents for
an object, or you can use the who, what, or owner fields (depending on the object) in SOQL queries. This object cannot be directly
accessed.
Supported Calls
describeSObjects()
Fields
Field
Details
Alias
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The user alias. This field contains a value only if the related record is a user.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
The email address of the user. This field contains a value only if the related record is a user.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of the user, contact, or lead.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1304
Standard Objects
Field
Name
Details
Description
Indicates whether the related record is an active user (true) or not (false). This field
contains a value only if the related record is a user.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The last name of the user, contact, or lead.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
MiddleName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The middle name of the user, contact, or lead.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the parent of the object queried. If the parent is a user, contact, or lead, the value
is a concatenation of the FirstName, MiddleName, LastName, and Suffix fields
of the related record.
1305
Standard Objects
Name
Field
Details
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number of the user. This field contains a value only if the related record is a user.
Profile
Type
reference
Properties
Filter, Nillable
Description
The Profile of the user. Only populated if the related record is a user.
ProfileId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user’s Profile. Only populated if the related record is a user.
Suffix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name suffix of the user, contact, or lead.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The title of the user, for example CFO or CEO.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1306
Standard Objects
Field
NamedCredential
Details
Description
A list of the types of sObjects that can be an owner of this object. You can use this field to
filter on a type of owner, for example, return only the leads owned by a user.
Username
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Contains the name that a user enters to log into the API or the user interface. The value for
this field is in the form of an email address, and is only populated if the related record is a
user.
UserRole
Type
picklist
Properties
Filter, Nillable
Description
Name of the Role played by the user. Only populated for user rows.
UserRoleId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user role associated with this object.
Usage
To query on relationships where the parent may be more than one type of object, use who, what, or owner relationship fields.
SEE ALSO:
Object Basics
NamedCredential
Represents a named credential, which specifies the URL of a callout endpoint and its required authentication parameters in one definition.
A named credential can be specified as an endpoint to simplify the setup of authenticated callouts. This object is available in API version
33.0 and later.
1307
Standard Objects
NamedCredential
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
AuthProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Salesforce ID of the authentication provider, which defines the
service that provides the login process and approves access
to the external system.
Only users with the “Customize Application” and “Manage
AuthProviders” permissions can view this field.
This field is available in API version 39.0 and later.
CalloutOptionsAllowMergeFieldsInBody
Type
boolean
Properties
Filter
Description
For Apex callouts, indicates whether the code can use merge
fields to populate HTTP request bodies with org data.
This field is available in API version 35.0 and later.
CalloutOptionsAllowMergeFieldsInHeader
Type
boolean
Properties
Filter
Description
For Apex callouts, indicates whether the code can use merge
fields to populate HTTP headers with org data.
This field is available in API version 35.0 and later.
CalloutOptionsGenerateAuthorizationHeader Type
boolean
Properties
Filter
1308
Standard Objects
Field Name
NamedCredential
Details
Description
Indicates whether Salesforce automatically generates a
standard authorization header for each callout to the named
credential–defined endpoint.
This field is available in API version 35.0 and later.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the object in the API. This name can
contain only underscores and alphanumeric characters, and
must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain
two consecutive underscores. In managed packages, this field
prevents naming conflicts on package installations. With this
field, a developer can change the object’s name in a managed
package and the changes are reflected in a subscriber’s
organization.
Endpoint
Type
textarea
Properties
Nillable
Description
The root URL of the endpoint.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The master label for the named credential. This display value
is the internal label that doesn’t get translated.
1309
Standard Objects
NavigationLinkSet
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each
Developer Edition organization that creates a managed
package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using
the namespacePrefix__componentName notation.
PrincipalType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Tracks users who are accessing the external system.
Anonymous implies that a user identity isn’t specified for
external system access. Named Principal uses one user
identity for all users to access the external system.
Usage
Use the NamedCredential object to query named credentials in your organization.
SEE ALSO:
ExternalDataUserAuth
ExternalDataSource
NavigationLinkSet
Represents the navigation menu in a community. A navigation menu consists of items that users can click to go to other parts of the
community. This object is available in API version 36.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
1310
Standard Objects
NavigationMenuItem
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Language for the navigation menu.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Label for the navigation menu.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community.
NavigationMenuItem
Represents a single menu item in a NavigationLinkSet. Use this object to create, delete, or update menu items in your community’s
navigation menu. This object is available in API version 36.0 and later.
1311
Standard Objects
NavigationMenuItem
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
Fields
Field Name
Details
AccessRestriction
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Determines if the menu item is available to guest users who aren’t required to
log in to the community.
DefaultListViewId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If the value of the Type field is SalesforceObject, the value is the ID of the default
list view for the object.
Label
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The text that appears in the navigation menu for this item.
NavigationLinkSetId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The navigation menu that this item is included in.
Position
Type
int
1312
Standard Objects
Field Name
NavigationMenuItem
Details
Properties
Create, Filter, Group, Sort, Update
Description
The location of the menu item in the navigation menu.
Target
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
If Type is ExternalLink or InternalLink, the target is the URL that the link points
to. For ExternalLink, your entry looks like this:
http://www.salesforce.com. For InternalLink, use a relative URL, such
as /contactsupport.
TargetPrefs
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
If Type is ExternalLink, determines whether a navigation menu item opens in
the same tab.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of navigation menu item. The available values are:
• SalesforceObject—Available objects include accounts, cases, contacts, and
custom objects.
• ExternalLink—Links to a URL outside of your community. For example,
http://www.salesforce.com.
• InternalLink—Links to a relative URL inside your community. For example,
/contactsupport.
• NavigationalTopic—A drop-down list with links to the navigational topics
in your community.
Usage
You can add up to 20 navigation menu items. You can translate navigation menu items using the Translation Workbench.
1313
Standard Objects
NavigationMenuItemLocalization
NavigationMenuItemLocalization
Represents the translated value of a navigation menu item in a community. This object is available in API version 36.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
Fields
Field Name
Details
Language
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The language of the translated navigation menu item. The picklist contains the
following supported languages:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
1314
Standard Objects
Network
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation. The
namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the navigation menu item that this translated value applies to.
Value
Type
string
Properties
Create, Filter, Sort, Update
Description
The translated text for the navigation menu item. Label is Translation Text.
Network
Represents a community, which is a customizable public or private space where employees, end-customers, and partners can collaborate
on best practices and business processes. Communities give you the opportunity to share information, records, and files with coworkers
and related external stakeholders all in one place. This object is available in API version 26.0 and later.
1315
Standard Objects
Network
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AllowedExtensions
Type
textarea
Properties
Filter, Nillable, Sort, Update
Description
Specifies the types of files allowed in your community. This whitelist of file types
lets you control what your community members upload and also prevents
spammers from polluting your community with inappropriate files. Available in
API version 36.0 and later.
Separate file types with a comma (for example: jpg,docx,txt). You can
enter lowercase and uppercase letters. You can enter up to 1,000 characters. To
allow all file types, leave this field empty.
CaseCommentEmailTemplateId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the email template used when submitting a comment on a case. This field
is available in API version 28.0 and later.
ChangePasswordEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the email template used when notifying a user that their password has been
reset.
Description
Type
string
1316
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
Description of the community.
EmailFooterLogoId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the Document object that displays as an image in the footer of community
Chatter emails.
EmailFooterText
Type
string
Properties
Filter, Nillable, Sort, Update
Description
Text that displays in the footer of community Chatter emails.
EmailSenderAddress
Type
email
Properties
Filter, Group, Sort
Description
Read only. Email address from which community emails are sent.
Note: To change the EmailSenderAddress value, you must first
specify NewSenderAddress, which triggers the sending of an address
change verification email. After you complete the address verification
process, EmailSenderAddress changes to the specified
NewSenderAddress.
EmailSenderName
Type
string
Properties
Filter, Group, Sort, Update
Description
Name from which community emails are sent.
FirstActivationDate
Type
date
1317
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort
Description
The date the community was first activated. This field is available in API version
34.0 and later. If the community was activated or inactive prior to the release of
API version 34.0, this field returns the date the community was first created.
ForgotPasswordEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the email template used when a user forgets their password.
MaxFileSizeKb
Type
int
Properties
Filter, Group, Nillable, Sort, Update
Description
Specifies the maximum file size (in KBs) that members can upload in your
community. Available in API version 36.0 and later.
Enter a number between 3072 KB and your org’s maximum file size. To use the
default limit of 2 GB, leave this field empty.
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
The name of the community.
NewSenderAddress
Type
email
Properties
Filter, Group, Nillable, Sort, Update
Description
Email address that has been entered as the new value for
EmailSenderAddress but has not been verified yet. After a user has
requested to change the sender email address and has successfully responded
to the verification email, the NewSenderAddress value overwrites the value
in EmailSenderAddress. This becomes the email address from which
community emails are sent.
1318
Standard Objects
Field Name
Network
Details
Note:
• If verification is pending for a new email address and you set
NewSenderAddress to null, this cancels the verification request.
• NewSenderAddress is automatically set to null after
EmailSenderAddress has been set to the new verified address.
• If verification is pending for a new email address and you specify a
different new address for this field, only the latest value is retained
and used for verification.
OptionsAllowInternalUserLogin
Type
boolean
Properties
Filter, Update
Description
Specifies whether internal users can log in with their internal credentials on the
community login page. This field is available in API version 37.0 and later.
OptionsAllowMembersToFlag
Type
boolean
Properties
Filter, Update
Description
Determines whether users can flag posts, comments, or files as inappropriate in
the community.
This field is available in API version 29.0 and later. The ability to flag files is available
in version 30.0 and later.
OptionsGuestChatterEnabled
Type
boolean
Properties
Filter, Update
Description
Specifies whether guest users can access public Chatter groups in the community
without logging in.
OptionsInvitationsEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether users can invite others to the community.
1319
Standard Objects
Network
Field Name
Details
OptionsKnowledgeableEnabled
Type
boolean
Properties
Filter
Description
Determines whether users can see knowledgeable people for topics and endorse
people for topics.
OptionsNicknameDisplayEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether user nicknames display instead of their first and last names
in most places in the community.
A few restrictions to keep in mind about nickname display:
• Private messages display full names. You can choose to turn off private
messages to avoid this.
• Records and user lookups on records show full names. Keep in mind, though,
that you can control record and user visibility with sharing rules.
• Mobile notifications in Salesforce1 show full names. You can turn off mobile
notifications in Salesforce1 to avoid this.
• Searches by first, last, and full names aren’t restricted and return matches,
but the search results display only nicknames. The auto-complete
recommendations in global search and the recent items list show any first,
last, and full names that the user has already searched by or has accessed via
a record or another location.
OptionsPrivateMessagesEnabled
Type
boolean
Properties
Filter
Description
Determines whether users can send and receive Chatter messages in the
community.
OptionsReputationEnabled
Type
boolean
Properties
Filter, Update
1320
Standard Objects
Field Name
Network
Details
Description
Determines if reputation is calculated and displayed for community members.
This field is available in API version 31.0 and later.
OptionsSelfRegistrationEnabled Type
boolean
Properties
Filter, Update
Description
Determines whether external users can self-register to join the community.
External users are users with Community, Customer Portal, or partner portal
licenses. If true, displays a Not a member? link on the login page that points
to the default self-registration page. This field is available in API version 28.0 and
later.
OptionsSendWelcomeEmail
Type
boolean
Properties
Filter, Update
Description
Determines whether a welcome email is sent when a new user is added to the
community.
OptionsShowAllNetworkSettings
Type
boolean
Properties
Filter, Update
Description
Determines whether settings in Community Management that were hidden
based on how you set up your community are visible or remain hidden.
This field is available in API version 33.0 and later.
OptionsSiteAsContainerEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether the community uses Site.com pages instead of tabs.
This field is available in API version 29.0 and later.
SelfRegProfileId
Type
reference
1321
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the profile assigned to users who self register. Only applies if self registration
is enabled for the community.
This field is available in API version 29.0 and later.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Status of the community. Available values are:
• Live—The community is online and members can access it. Label is
Published.
• DownForMaintenance—The community was previously published,
but was taken offline. Members with “Create and Set Up Communities” can
still access the setup for offline communities regardless of profile or
membership. Members are not able to access offline communities, but they
still appear in the user interface drop-down as CommunityName
(Offline). Label is Offline.
• UnderConstruction—The community has not yet been published.
Users with “Create and Set Up Communities” can access communities in this
status if their profile is associated with the community.
Once a community is published, it can never be in this status again. Label is
Preview.
UrlPathPrefix
Type
string
Properties
Filter, Group, Sort, Update
Description
The UrlPathPrefix is a unique string at the end of the URL for this
community. For example, in the community URL
UniversalTelco.force.com/customers, customers is the
UrlPathPrefix.
WelcomeEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
1322
Standard Objects
Field Name
NetworkActivityAudit
Details
Description
ID of the email template used when sending welcome emails to new community
members.
Usage
Use this object to find, view, and update communities in your organization. If you have “Modify All Data,” “View All Data,” or “Create and
Set Up Communities,” you can view all communities in the organization. Users without these permissions only see the Preview or
Published communities that they’re members of. If you have “Create and Set Up Communities,” you can customize community
settings.
NetworkActivityAudit
Represents an audit trail of moderation actions in Communities. This object is available in API version 30.0 and later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
Action
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The moderation action a member performed on a post, comment, or file in a
community.
Values are:
• Flagged as Inappropriate—A community member flagged a post, comment,
or file as inappropriate.
• Flagged as Spam - A community member flagged a post, comment, or file
as spam.
• Unflagged—A community member removed the flag from a post, comment,
or file.
1323
Standard Objects
Field Name
NetworkActivityAudit
Details
• RemovedFlags—A moderator removed all flags from a post, comment, or
file.
• DeletedFlaggedItem—A moderator deleted a flagged post, comment, or
file.
• ModerationRuleFlag—A moderation rule flagged member-generated content.
• ModerationRuleBlock—A moderation rule blocked member-generated
content.
• ModerationRuleReplace—A moderation rule replaced member-generated
content.
• ModerationRuleReview—A moderation rule sent member-generated content
to be reviewed and approved by a moderator.
• ModerationRuleFreeze—A moderation rule froze a member because they
created content too frequently within a specific time frame.
• ModerationRuleNotify—A moderation rule notified moderators because a
member created content too frequently within a specific time frame.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Notes entered by the user.
If the entity being tracked is a file, records the version number of the file when
it was flagged.
EntityCreatedById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the user that created the entity being tracked.
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the entity that is being tracked. The following entities are tracked:
ChatterMessage, ContentDocument, ContentVersion, FeedComment, and
FeedItem.
1324
Standard Objects
NetworkActivityAudit
Field Name
Details
EntityType
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of the entity being tracked.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the item being tracked.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the network (community) where the moderation action was performed.
ParentEntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the parent of the entity on which an action was performed. The following
entities are tracked: CollaborationGroup, DirectMessage, and User.
ParentEntityType
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of the parent of the entity being audited.
Usage
Use this object to view an audit trail of moderation activity for your communities. You must have the “Modify All Data” permission to
access this object.
1325
Standard Objects
NetworkMember
Users with “Moderate Communities Feeds”, “Moderate Communities Files” or “View All Data” can view the audit trail using reports in the
Salesforce user interface.
NetworkMember
Represents a member of a community. Members can be either users in your company or external users with portal profiles. This object
is available in API version 26.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
DefaultGroupNotificationFrequency
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. The default frequency for sending the member’s group
email notifications when the member joins groups in the community.
The valid values are:
• P—Email on every post
• D—Daily digests
• W—Weekly digests
• N—Never
The default value is W. However, this field is not currently enabled.
These values are reserved for future use.
DigestFrequency
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. The frequency for sending the member’s personal email
digest for the community. The valid values are:
• D—Daily
1326
Standard Objects
Field Name
NetworkMember
Details
• W—Weekly
• N—Never
The default value is D. However, daily and weekly personal digests
aren’t currently available in communities. These values are reserved
for future use.
LastChatterActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
The last time the member posted or commented in the community.
MemberId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of a person who is a member of a community.
NetworkId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the community that the member is part of.
PreferencesDisableAllFeedsEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member can automatically receive email for
updates in the community, based on the types of feed emails and
digests the member has enabled.
PreferencesDisableBookmarkEmail
Type
boolean
Properties
Filter, Update
1327
Standard Objects
Field Name
NetworkMember
Details
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has bookmarked
it.
PreferencesDisableChangeCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a change the member has made, such as an
update to their profile.
PreferencesDisableDirectMessageEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone sends them a direct message in the community.
PreferencesDisableEndorsementEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone endorses them for a topic.
PreferencesDisableFollowersEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone in the community starts following the member.
DisableItemFlaggedEmail
Type
boolean
Properties
Filter, Update
1328
Standard Objects
Field Name
NetworkMember
Details
Description
When false, the user automatically receives email every time a
community member flags a post or comment. This setting only applies
for community moderators (with the “Moderate Communities Feeds”
permission) and group owners or managers.
This field is available in API version 29.0 and later.
PreferencesDisableLaterCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has commented
on the feed item.
PreferencesDisableLikeEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has liked the
feed item.
PreferencesDisableMentionsPostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is mentioned in posts.
PreferencesDisableMessageEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is sent a Chatter message.
1329
Standard Objects
NetworkMember
Field Name
Details
PreferencesDisableProfilePostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone posts to the member’s profile.
PreferencesDisableSharePostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member’s post is shared.
PreferencesDisCommentAfterLikeEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a post the member has liked.
PreferencesDisMentionsCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is mentioned in comments.
PreferencesDisProfPostCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on posts on the member’s profile.
ReputationPoints
Type
double
1330
Standard Objects
NetworkMemberGroup
Field Name
Details
Properties
Filter, Sort, Update
Description
The number of reputation points the user has accumulated by
performing actions in the community.
Usage
Use this object to query members of a certain community and to update their email notification settings. If you have “Modify All Data,”
“View All Data,” or “Create and Set Up Communities,” you can view all members of any community, regardless of your own membership.
If you have “Modify All Data” or “Create and Set Up Communities,” you can also update any member’s email settings. Users without these
permissions can update their own email settings and can see members of the communities that they’re also members of.
Tip: You can directly update reputation points for a community member via the Salesforce API. You can also use Apex triggers
to send custom notifications based on changes to reputation points.
NetworkMemberGroup
Represents a group of members in a community. Members can be either users in your internal organization or external users assigned
portal profiles. An administrator adds members to a community by adding a profile or a permission set, and any user with the profile or
permission set becomes a member of the community. This object is available in API version 26.0 and later.
Note: If a Chatter customer (from a customer group) is assigned a permission set that is also associated with a community, the
Chatter customer won’t be added to the community.
Prior to API version 27.0, this object was called NetworkProfile.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update()
Note: The upsert() call is not supported for this object.
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AssignmentStatus
Type
picklist
1331
Standard Objects
Field Name
NetworkMemberGroup
Details
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The status of a profile or permission set within a community. Values are:
• Added—Users with this profile or permission set are members of the
community.
• Waiting for Add—The profile or permission set was added to the
community, but the async process hasn’t completed yet. After the process
is complete, the status is updated to Added.
• Waiting for Remove—Use this status to remove all the community
members belonging to a profile or permission set and remove a profile or
permission set from a community.
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the community that this group of members is associated with.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the profile or permission set associated with the community.
Usage
Use this object to view the profiles or permission sets associated with a particular community. Profiles and permission sets are added
and removed asynchronously, so you can also check the status of a profile or permission set that was updated in a community.
If you have “Modify All Data,” “View All Data,” or “Create and Set Up Communities,” you can view all profiles or permission sets for any
community in the organization, regardless of your membership. If you have “Modify All Data” or “Create and Set Up Communities,” you
can also add profiles or permission sets. Users without these permissions can only find profiles and permission sets for communities that
they’re members of.
Sample Code
// Create a new NetworkMemberGroup with a profile as the ParentId
NetworkMemberGroup nmgInsert = new NetworkMemberGroup();
nmg.setNetworkId("0DBD0000000029o");
nmg.setParentId("00eD0000000z1Ww");
1332
Standard Objects
NetworkModeration
SaveResult[] results = connection.create(new SObject[] { nmgInsert });
// Update an existing NetworkMemberGroup to be removed from the Network
NetworkMemberGroup nmgUpdate = new NetworkMemberGroup();
nmg.setId("0DLD000000003enOAA");
nmg.setAssignmentStatus("WaitingForRemove");
SaveResult[] results = connection.update(new SObject[] { nmgUpdate });
NetworkModeration
Represents a flag on an item in a community. This object is available in API version 30.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the post, comment, or file that was flagged.
ModerationType
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort
Description
Determines the type of flag applied to an item. Values are:
• FlagAsInappropriate
• FlagAsSpam
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
1333
Standard Objects
Field Name
NetworkPageOverride
Details
Description
ID of the community in which the item was flagged.
Visibility
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Nillable, Sort
Description
Determines visibility of a flagged item. Values are:
• SelfAndModerators—The user who flagged the item and any moderators
can see the flagged item. This is the default value.
• ModeratorsOnly—Only moderators can see the flagged item. If
ModeratorsOnly is selected, only moderators can set flags using the API.
Usage
Use this object to view the items flagged for moderation within a community. Additionally, users with “Moderate Feeds” and “Modify
All Data” can remove flags.
Flags on items are created either when a member manually flags an item in a community (if flagging is enabled for that community),
or when a trigger automatically flags an item because the item met the trigger criteria.
NetworkPageOverride
Represents information about custom pages used to override the default pages in communities. You can create Community Builder
(Site.com Studio) or Visualforce pages and override the default pages in a community. Using custom pages allows you to create a more
personalized experience for your users. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
• Only users with the “Create and Setup Networks” permission can update this object.
• You can’t override the Change Password Page with a page created using Community Builder (Site.com Studio). You can only override
it with a Visualforce page.
1334
Standard Objects
NetworkSelfRegistration
Fields
Field Name
Details
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the community where a custom page is used to override a default page.
OverrideSetting
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of the page used to override a default page in the community.
OverrideSetting can take the following values:
• Standard—The standard page that comes by default with the community.
• Designer—A custom page created using Community Builder (Site.com
Studio).
• Visualforce—A custom page created using Visualforce.
OverrideType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The name of the default page in the community that you want to override with
a custom page.OverrideType can take the following values:
• LoginRequired
• ChangePassword
• ForgotPassword
• SelfReg
• Home
NetworkSelfRegistration
Represents the account that self-registering community members are associated with by default. Self-registering users in a community
are required to be associated with an account, which the administrator must specify while setting up self-registration for the community.
If an account isn’t specified, Salesforce creates person accounts (when enabled) for self-registering users. This object is available in API
version 34.0 and later.
1335
Standard Objects
NewsFeed
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Fields
Field Name
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the account that self-registering users in the community are associated
with.
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the community.
Note: You can use only one account per community to assign
self-registering users.
NewsFeed
Represents a single feed item on a user's home tab. A Chatter feed shows recent changes to records that the user is following.
NewsFeed is available in API version 18.0 through API version 26.0. In API version 27.0 and later, NewsFeed is no longer available in the
SOAP API. Use the Chatter REST API to access NewsFeed.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Body
Type
textarea
1336
Standard Objects
Field
NewsFeed
Details
Properties
Nillable, Sort
Description
The content of NewsFeed. Required when Type is TextPost. Optional when Type is
ContentPost or LinkPost. This is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection makes a change to a record that is tracked, the
CreatedBy field contains the ID of the system administrator while the ConnectionId
contains the ID of the PartnerNetworkConnection that made the change. Available if Salesforce
to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only.Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
1337
Standard Objects
NewsFeed
Field
Details
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
1338
Standard Objects
NewsFeed
Field
Details
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
1339
Standard Objects
Field
NewsFeed
Details
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the newsfeed record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
1340
Standard Objects
Field
NewsFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
1341
Standard Objects
Field
NewsFeed
Details
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. This event is also generated by CTI calls.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, you must specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1342
Standard Objects
Note
Usage
Use this object to query and retrieve record changes tracked in a news feed. Note the following when working with news feeds:
• This object is read only in the API.
• Users can only query their own news feed.
• Queries retrieve feed items that include mentions from other users.
• Use this object to query and retrieve lead feed items that were associated with a converted lead record.
Users that do not have the “View All Data” permission have the following limitations when querying records:
• Must specify a LIMIT clause and the limit must be less than or equal to 1000.
• May include a WHERE clause that references NewsFeed fields, but may not include references to fields in related objects. For example,
you can filter by CreatedDate or ParentId, but not by Parent.Name.
• May include an ORDER BY clause that references NewsFeed fields, but may not include references to fields in related objects. For
example, you can ORDER BY CreatedDate or ParentId, but not by Parent.Name.
Tip: To query for the most recent feed items, you should ORDER BY CreatedDate DESC, Id DESC.
Note the following SOQL restrictions.
• No SOQL limit if logged-in user has “View All Data” permission. If not, specify a LIMIT clause of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BY on fields on the root object in the SOQL query.
SEE ALSO:
EntitySubscription
FeedComment
FeedTrackedChange
Note
Represents a note, which is text associated with a custom object or a standard object, such as a Contact, Contract, or Opportunity.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
Body
Type
textarea
Properties
Create, Nillable, Update
1343
Standard Objects
Field
Note
Details
Description
Body of the note. Limited to 32 KB.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, only the note owner or a user with the “Modify All Data” permission can view the
note or query it via the API. Note that if a user who does not have the “Modify All Data”
permission sets this field to true on a note that they do not own, then they can no longer
query, delete, or update the note. Label is Private.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the note.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the object associated with the note.
Title
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Title of the note.
1344
Standard Objects
OauthToken
Usage
Use this object to manage notes for an object.
SEE ALSO:
Object Basics
OauthToken
Represents an OAuth access token for connected app authentication and can be used to create a user interface for token management.
This object is available in API version 32.0 and later.
A connected app integrates an application with Salesforce using APIs. Connected apps use standard SAML and OAuth protocols to
authenticate, provide single sign-on, and provide tokens for use with Salesforce APIs. In addition to standard OAuth capabilities, connected
apps allow Salesforce admins to set various security policies and have explicit control over who can use the corresponding apps. Each
time that a user grants access to an application, the application obtains a new access token.
Supported Calls
describeSObjects(), query()
Special Access Rules
If you are a user with the “Manage Users” permission, you see all tokens for all users in the organization. Otherwise, you see only your
own tokens.
Fields
Field Name
Details
AccessToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The refresh token for authorization.
AppMenuItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The unique ID for the App Picker menu item that’s associated with this OAuth
token.
1345
Standard Objects
OauthToken
Field Name
Details
AppName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The label for the connected app that’s associated with this OAuth token.
DeleteToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A token that can be used at the revoke OAuth token endpoint to remove this
token.
Id
Type
ID
Properties
Defaulted on create, Filter, Group, idLookup, Sort
Description
Reserved for future use. Currently, the value is always null.
LastUsedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The most recent date when the OAuth token was used.
RequestToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The authorization code that was used to request the corresponding AccessToken.
With this authorization code, you can revoke the corresponding AccesToken by
passsing the DeleteToken.
UseCount
Type
int
1346
Standard Objects
NoteAndAttachment
Field Name
Details
Properties
Filter, Group, Nillable, Sort
Description
How often the token has been used.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The owner of the token.
Usage
To delete an AccessToken, send a request to the revoke OAuth token endpoint with the DeleteToken as the parameter. For example,
this URL https://login.salesforce.com/services/oauth2/revoke?token=(the Delete Token) causes
the deletion of the token.
In API version 34.0 and later, this object was enhanced to help manage high instance counts. A query() call returns up to 500 rows.
A queryMore() call returns 500 more, up to 2500 total. No more records are returned after 2500. To make sure you don’t miss any
records, issue a COUNT() query in a SELECT clause for OauthToken. This gives you the total number of records. If there are more than
2500 records, divide your query by filtering on fields, like UserId, to return subsets of less than 2500 records.
NoteAndAttachment
This read-only object contains all notes and attachments associated with an object.
Supported Calls
describeSObjects()
Fields
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
1347
Standard Objects
Field
NoteAndAttachment
Details
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsNote
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the object contains a note (true) or an attachment (false).
IsPrivate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, only the note owner or a user with the “Modify All Data” permission can view the
note or query it via the API. Note that if a regular user who does not have “Modify All Data”
permission sets this field to true on a note that they do not own, then they can no longer
query, delete, or update that note. Label is Private.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who owns the note and attachment.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the parent object.
Title
Type
string
Properties
Filter, Nillable, Group, Sort
Description
Title of the note.
1348
Standard Objects
NoteTag
Usage
Use this object to list all notes and attachments for an object.
To retrieve notes and attachments, issue a describe call on an object, which returns a query result for each activity since the record was
created. You can’t directly query this object.
SEE ALSO:
Note
Attachment
NoteTag
Associates a word or short phrase with a Note.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
1349
Standard Objects
Field Name
ObjectPermissions
Details
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
NoteTag stores the relationship between its parent TagDefinition and the Note being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
ObjectPermissions
Represents the enabled object permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
To grant a user access to an object, associate an ObjectPermissions record with a PermissionSet that’s assigned to a user. ObjectPermissions
records are only supported in PermissionSet, not in Profile.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
1350
Standard Objects
Field Name
ObjectPermissions
Details
Description
The Id of this object’s parent PermissionSet.
PermissionsCreate
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can create records for this
object. Requires PermissionsRead for the same object to be true.
PermissionsDelete
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can delete records for this
object. Requires PermissionsRead and PermissionsEdit for the
same object to be true.
PermissionsEdit
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can edit records for this
object. Requires PermissionsRead for the same object to be true.
PermissionsModifyAllRecords
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can edit all records for this
object, regardless of sharing settings. Requires PermissionsRead,
PermissionsDelete, PermissionsEdit, and
PermissionsViewAllRecords for the same object to be true.
PermissionsRead
Type
boolean
Properties
Create, Filter, Update
1351
Standard Objects
Field Name
ObjectPermissions
Details
Description
If true, users assigned to the parent PermissionSet can view records for this
object.
PermissionsViewAllRecords
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can view all records for this
object, regardless of sharing settings. Requires PermissionsRead for the
same object to be true.
SobjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object’s API name. For example, Merchandise__c.
Permission Dependencies
Some user permissions have dependencies on object permissions. For example, if a permission set has the “Transfer Leads” permission,
it also has “Read” and “Create” on the leads object.
You can query from ObjectPermissions up to the parent PermissionSet object. For example:
SELECT Parent.Name, Parent.PermissionsTransferAnyLead, PermissionsRead, PermissionsCreate
FROM ObjectPermissions
WHERE SobjectType = 'Lead'
Determining Object Access with “Modify All Data”
When using SOQL to query object permissions, be aware that some object permissions are enabled because a user permission requires
them.
The exception to this rule is when “Modify All Data” is enabled. While it enables all object permissions, it doesn’t physically store any
object permission records in the database. As a result, unlike object permissions that are required by a user permission—such as “View
All Data” or “Import Leads”—the query still returns permission sets with “Modify All Data,” but the object permission record will contain
an invalid ID that begins with “000”. This ID indicates that the object has full access due to “Modify All Data” and the object permission
record can’t be updated or deleted. To remove full access from these objects, disable “Modify All Data” and then delete the resulting
object permission record. This ensures that when using SOQL to find all the objects that have full access, it returns all objects that have
this access regardless of whether it’s due to “Modify All Data” or because an administrator set full access.
1352
Standard Objects
ObjectTerritory2AssignmentRule
For example, the following will return all permission sets that have “Read” on the Merchandise__c object, regardless of whether it’s
explicitly defined on the object or implicitly defined through “Modify All Data.”
SELECT Id, Parent.label, SobjectType, PermissionsRead,
Parent.PermissionsModifyAllData, ParentId
FROM ObjectPermissions
WHERE PermissionsRead = true and SobjectType = 'Merchandise__c'
Nesting Object Permissions
You can nest ObjectPermissions in a PermissionSet query. For example, the following returns any permission sets where “Transfer Leads”
is true. Additionally, the result set will include the “Read” object permission on leads. This is done by nesting the SOQL with an object
permission query using the relationship name for object permissions: ObjectPerms.
SELECT Id,Name,PermissionsTransferAnyLead,
(SELECT Id, PermissionsRead from ObjectPerms where SobjectType='Lead')
FROM PermissionSet
WHERE PermissionsTransferAnyLead = true
As a result, it’s possible to traverse the relationship between the PermissionSet and any child related objects (in this case, ObjectPermissions).
You can do this from the PermissionSet object by using the child relationship (ObjectPerms, FieldPerms, and so on) or from
the child object by referencing the PermissionSet with Parent.permission_set_attribute.
It’s important to consider when to use a conditional WHERE statement to restrict the result set. To query based on an attribute on the
permission set object, nest the SOQL with the child relationship. However, to query based on an attribute on the child object, you must
reference the permission set parent attribute in your query.
The following two queries return the same columns with different results, based on whether you use the child relationship or parent
notation.
SELECT Id, Name, PermissionsModifyAllData,
(SELECT Id, SobjectType, PermissionsRead from Objectperms)
FROM PermissionSet
WHERE PermissionsModifyAllData=true
versus:
SELECT Id, SObjectType, PermissionsRead, Parent.Id, Parent.Name,
Parent.PermissionsModifyAllData
FROM ObjectPermissions
WHERE SObjectType='Merchandise__c'
SEE ALSO:
PermissionSet
FieldPermissions
ObjectTerritory2AssignmentRule
Represents a territory assignment rule that’s associated with an object, such as Account. ObjectTerritory2AssignmentRuleItem can only
be created or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule is null. Available only if Enterprise
Territory Management has been enabled for your organization.
1353
Standard Objects
ObjectTerritory2AssignmentRule
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories, assignment rules, assigned records, and
assigned users. Users cannot view territory models in other states (such as Planning or Archived).
Fields
Field Name
Details
BooleanFilter
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Represents advanced filter conditions that were specified for the rule in the online
application. For example, “(1 AND 2) OR 3.”
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. This name can contain only
underscores and alphanumeric characters and must be unique in your
organization. It must begin with a letter, not include spaces, not end with an
underscore, and not contain two consecutive underscores. The field label in the
user interface is Unique Name.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the rule is active (true) or inactive (false). Via the API, active
rules run automatically when object records are created and edited. The exception
is when the value of the IsExcludedFromRealign field on an object record is true,
which prevents record assignment rules from evaluating that record.
1354
Standard Objects
ObjectTerritory2AssignmentRuleItem
Field Name
Details
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the master label in the user interface.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The user interface label for the territory type.
ObjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object that the rule is defined for. For API version 31, Account only.
Territory2ModelId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the territory model.
ObjectTerritory2AssignmentRuleItem
A single row of selection criteria for an ObjectTerritory2AssignmentRule object. ObjectTerritory2AssignmentRuleItem can only be created
or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule object is a null value. Available only
if Enterprise Territory Management has been enabled for your organization.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
1355
Standard Objects
ObjectTerritory2AssignmentRuleItem
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an
active model, any user can view assigned records and assigned users subject to your organization’s sharing settings. Users cannot view
territory models in other states (such as Planning or Archived).
Fields
Field Name
Details
Field
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The standard or custom object field that the rule item will operate on.
Operation
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The criterion to apply for the rule item. For example: equals or starts
with.
RuleId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated ObjectTerritory2AssignmentRule.
SortOrder
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The order in which this row is evaluated in relation to other
ObjectTerritoryAssignmentRuleItem objects for the given
ObjectTerritoryAssignmentRule.
Value
Type
string
1356
Standard Objects
Field Name
ObjectTerritory2Association
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
The field value or values to evaluate. For example: if the field is Billing
ZIP/Postal Code, a value might be 94105. .
ObjectTerritory2Association
Represents an association (by assignment) between a territory and an object record, such as an account. Available only if Enterprise
Territory Management has been enabled for your Salesforce org.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an
active model, any user can view assigned records and assigned users subject to your org’s sharing settings. Users cannot view territory
models in other states (such as Planning or Archived).
Fields
Field Name
Details
AssociationCause
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The means by which the record was associated with the territory: by rules or
manually. User interface field label is Method. Manual cause can be set only by
a user or via the API. Rules cause is used by the rules engine when the object is
assigned.
ObjectId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the object. For API version 30.0 and later, Account only.
1357
Standard Objects
OpenActivity
Field Name
Details
SobjectType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of the record. For API version 30.0 and later, Account only.
Territory2Id
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the territory that the record is assigned to.
OpenActivity
This read-only object is displayed in a related list of open activities—future events and open tasks—related to an object. It includes
activities for all contacts related to the object. OpenActivity fields for phone calls are only available if your organization uses Salesforce
CRM Call Center.
Supported Calls
describeSObjects()
Fields
Field
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the related account, which is determined as follows:
• The account associated with the WhatId, if it exists; or
• The account associated with the WhoId, if it exists; otherwise
• null
For information on IDs, see ID Field Type.
1358
Standard Objects
OpenActivity
Field
Details
ActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates one of the following:
• The due date of a task
• The date of an event if IsAllDayEvent is set to true
This field has a time stamp that is always set to midnight in the Universal Time Coordinated
(UTC) time zone. The time stamp doesn’t represent the time of the activity; don’t attempt
to alter it to accommodate time zone differences. Label is Date.
ActivitySubtype
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Provides standard subtypes to facilitate creating and searching for specific activity subtypes.
This field isn’t updateable.
ActivitySubtype values:
• Task
• Email
• Call
• Event
ActivityType
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Represents one of the following values: Call, Meeting, or Other. Label is Type.
AlternateDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of a record the activity is related to which contains more details about the activity.
For example, an activity can be related to an EmailMessage record.
1359
Standard Objects
OpenActivity
Field
Details
CallDisposition
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit
is 255 characters.
CallDurationInSeconds
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Duration of the call in seconds.
CallObject
Type
string
Properties
Filter, Group,Nillable, Sort
Description
Name of a call center. Limit is 255 characters.
CallType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of call being answered: Inbound, Internal, or Outbound.
ConnectionReceivedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that shared this record with your
organization. This field is available only if your organization has enabled Salesforce to
Salesforce and only in API versions 28.0 and later.
ConnectionSentId
Type
reference
1360
Standard Objects
Field
OpenActivity
Details
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that your organization shared this record
with. This field is available only if your organization has enabled Salesforce to Salesforce, and
only in API versions 28.0 and later. The value is always null. You can use the
PartnerNetworkRecordConnection object to forward records to connections.
Description
Type
textarea
Properties
Nillable
Description
Contains a description of the event or task. Limit is 32 KB.
DurationInMinutes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Indicates the duration of the event or task.
EndDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the end date and time of the event or task. Available in versions 27.0 and later. This
field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
IsAllDayEvent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1361
Standard Objects
Field
OpenActivity
Details
Description
If the value of this field is set to true, then the activity is an event spanning a full day, and
the ActivityDate defines the date of the event. If the value of this field is set to false,
then the activity may be an event spanning less than a full day, or it may be a task. Label is
All-Day Event.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a task is closed; value is always false). This field is set indirectly by
setting Status on the task—each picklist value has a corresponding IsClosed value.
Label is Closed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the activity has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsHighPriority
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates a high-priority task. This field is derived from the Priority field.
IsReminderSet
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a reminder is set for an activity (true) or not (false).
IsTask
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1362
Standard Objects
Field
OpenActivity
Details
Description
If the value of this field is set to true, then the activity is a task; if the value is set to false,
then the activity is an event. Label is Task.
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter
Description
If the value of this field is set to true, then the activity can be viewed in the self-service
portal. Label is Visible in Self-Service.
Location
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If the activity is an event, then this field represents the location of the event. If the activity is
a task, then the value is null.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the user who owns the activity.
PrimaryAccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the AccountId value from the activity record. Available in API versions 30.0 and
later to organizations that use Shared Activities.
PrimaryWhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the WhoId value from the activity record. Available in API versions 30.0 and later
to organizations that have enabled Shared Activities.
1363
Standard Objects
OpenActivity
Field
Details
Priority
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the priority of a task, such as high, normal, or low.
ReminderDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the time at which a reminder is scheduled to fire if IsReminderSet is set to
true. If IsReminderSet is set to false, then either the user has deselected the
reminder checkbox in the user interface or the reminder has already fired at the time indicated
by the value.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the current status of a task, such as in progress or complete. Each predefined status
field sets a value for IsClosed. To obtain picklist values, query TaskStatus.
Subject
Type
combobox
Properties
Filter, Nillable, Sort
Description
Contains the subject of the task or event.
WhatId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhatId represents nonhuman objects such as accounts, opportunities, campaigns,
cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is
equivalent to the ID of a related object. The label is Related To ID.
1364
Standard Objects
OpenActivity
Field
Details
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
If Shared Activities is enabled, the value of this field is the ID of the related lead or primary
contact. If you add, update, or remove the WhoId field, you might encounter problems with
triggers, workflows, and data validation rules that are associated with the record. The label
is Name ID.
Usage
Query activities that are related to an object
1. Optionally, issue a describe call against the object whose activities you want to query, to get a suggestion of the correct SOQL
query to use.
2. Issue a SOQL relationship query with a main clause that references the object and an inner clause that references the activity
history. For example:
SELECT
(SELECT ActivityDate, Description
FROM OpenActivities)
FROM Account
WHERE Name Like 'XYZ%'
The user interface enforces sharing rules, filtering out related-list items that a user doesn’t have permission to see.
The following constraints on users who don’t have the “View All Data” permission help prevent performance issues.
• In the main clause of the relationship query, you can reference only one record. For example, you can’t filter on all records where
the account name starts with “A.” Instead, you must reference a single account record.
SELECT
(SELECT ActivityDate, Description
FROM OpenActivities
ORDER BY ActivityDate ASC NULLS LAST, LastModifiedDate DESC
LIMIT 500)
FROM Account
WHERE Name = 'Acme'
LIMIT 1
• In the inner clause of the query, you can’t use WHERE.
• In the inner clause of the query, you must specify a limit of 500 or fewer on the number of rows that are returned in the list.
1365
Standard Objects
OperatingHours
• In the inner clause of the query, you must sort on ActivityDate in ascending order and LastModifiedDate in
descending order. You can optionally display nulls last. For example: ORDER BY ActivityDate ASC NULLS LAST,
LastModifiedDate DESC.
SEE ALSO:
Task
OperatingHours
Represents the hours in which a service territory, service resource, or account is available for field service work. This object is available in
API version 38.0 and later.
Supported Calls
create()delete()
,
describeLayout()
,
describeSObjects()
,
getDeleted()
,
getUpdated()
,
query()
,
retrieve()
,
search()
,
undelete()
,
update()
,
upsert()
,
Special Access Rules
Field Service Lightning must be enabled.
Fields
Field Name
Details
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the operating hours. Add any details that aren’t included in
the name.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the operating hours record was last modified. Its label in the user
interface is Last Modified Date.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
1366
Standard Objects
Field Name
OperatingHoursFeed
Details
Description
The date when the operating hours record was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the operating hours. For example, Summer Hours, Winter
Hours, or Peak Season Hours.
TimeZone
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The time zone which the operating hours fall within.
Usage
By default, only System Administrators can view, create, and assign operating hours.
Service territory members—which are service resources who can work in the territory—automatically use their service territory’s operating
hours. If a resource needs different operating hours than their territory, create separate operating hours for them from the Operating
Hours tab. Then, select the desired hours in the Operating Hours lookup field on the service territory member detail page.
To view a service resource’s operating hours for a particular territory, navigate to their Service Territories related list and click the Member
Number for the territory. This takes you to the service territory member detail page, which lists the member’s operating hours and dates
during which they belong to the territory.
OperatingHoursFeed
Represents a single feed item on an operating hours record detail page. This object is available in API version 38.0 and later.
An operating hours feed shows changes to tracked fields on an operating hours record. It also shows posts and comments about the
record. It’s a useful way to stay up to date with changes made to operating hours in Salesforce.
Supported Calls
delete(), getDeleted(), getUpdated(), query(), retrieve()
1367
Standard Objects
OperatingHoursFeed
Special Access Rules
Field Service Lightning must be enabled in your organization, and you can delete all feed items you created. To delete feed items you
didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Operating Hours object
• “Moderate Chatter”
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The message that appears in the feed. Required when Type is TextPost.
Optional when Type is ContentPost orLinkPost.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of comments associated with this feed item.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the value is
set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true indicates that the body of the feed contains rich text. false indicates
that the post is rendered as plain text.
1368
Standard Objects
OperatingHoursFeed
Field Name
Details
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of feed likes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a link post.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the operating hours record tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a content post. This field
is null for all posts, except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the Link URL is the
URL, and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1369
Standard Objects
Field Name
OperatingHoursHistory
Details
Description
The type of feed item.
OperatingHoursHistory
Represents the history of changes made to tracked fields on an operating hours record. This object is available in API version 38.0 and
later.
Supported Calls
getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Field Service Lightning must be enabled in your organization, and field tracking for operating hours fields must be configured.
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The value of the field before it was changed.
1370
Standard Objects
Opportunity
Field Name
Details
TimeSlotId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the operating hours record being tracked. The history is displayed on the
detail page for this record.
Opportunity
Represents an opportunity, which is a sale or pending deal.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Field Type
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account associated with this opportunity.
Amount
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Estimated total sale amount. For opportunities with products, the amount is the sum of the
related products. Any attempt to update this field, if the record has products, will be ignored.
The update call will not be rejected, and other fields will be updated as specified, but the
Amount will be unchanged.
CampaignId
Type
reference
1371
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of a related Campaign. This field is defined only for those organizations that have the
campaign feature Campaigns enabled. The User must have read access rights to the
cross-referenced Campaign object in order to create or update that campaign into this field
on the opportunity.
CloseDate
Type
date
Properties
Create, Filter, Group, Sort, Update
Description
Required. Date when the opportunity is expected to close.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ContractId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contract that’s associated with this opportunity.
CurrencyIsoCode
Type
picklist
1372
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
If the organization has multicurrency and a Pricebook2 is specified on the opportunity (i.e.,
the Pricebook2Id field is not blank), then the currency value of this field must match
the currency of the PricebookEntry records that are associated with any opportunity line
items it has.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Text description of the opportunity. Limit: 32,000 characters.
ExpectedRevenue
Type
currency
Properties
Filter, Nillable, Sort
Description
Read-only field that is equal to the product of the opportunity Amount field and the
Probability. You can’t directly set this field, but you can indirectly set it by setting the
Amount or Probability fields.
Fiscal
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity
CloseDate falls. Value should be in YYY Q format, for example, '2006 1' for first quarter
of 2006.
FiscalQuarter
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.
1373
Standard Objects
Opportunity
Field
Field Type
FiscalYear
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Represents the fiscal year, for example, 2006.
ForecastCategory
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Restricted picklist field. It is implied, but not directly controlled, by the StageName field.
You can override this field to a different value than is implied by the StageName value.
The values of this field are fixed enumerated values. The field labels are localized to the
language of the user performing the operation, if localized versions of those labels are
available for that language in the user interface.
In API version 12.0 and later, the value of this field is automatically set based on the value of
the ForecastCategoryName and can’t be updated any other way. The field properties
Create, Defaulted on create, Nillable, and Update are not available in version 12.0.
ForecastCategoryName
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available in API version 12.0 and later.
The name of the forecast category. It is implied, but not directly controlled, by the
StageName field. You can override this field to a different value than is implied by the
StageName value.
HasOpenActivity
Type
boolean
Properties
Defaulted on create, Group,
Description
Indicates whether an opportunity has an open event or task (true) or not (false). Available
in API version 35.0 and later.
HasOpportunityLineItem
Type
boolean
1374
Standard Objects
Field
Opportunity
Field Type
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only field that indicates whether the opportunity has associated line items. A value of
true means that Opportunity line items have been created for the opportunity. An
opportunity can have opportunity line items only if the opportunity has a price book. The
opportunity line items must correspond to PricebookEntry objects that are listed in the
opportunity Pricebook2. However, you can insert opportunity line items on an opportunity
that does not have an associated Pricebook2. For the first opportunity line item that you
insert on an opportunity without a Pricebook2, the API automatically sets the
Pricebook2Id field, if the opportunity line item corresponds to a PricebookEntry in an
active Pricebook2 that has a CurrencyIsoCode field that matches the
CurrencyIsoCode field of the opportunity. If the Pricebook2 is not active or the
CurrencyIsoCode fields do not match, then the API returns an error. You can’t update
the Pricebook2Id or PricebookId fields if opportunity line items exist on the
Opportunity. You must delete the line items before attempting to update the
PricebookId field.
HasOverdueTask
Type
boolean
Properties
Defaulted on create, Group,
Description
Indicates whether an opportunity has an overdue task (true) or not (false). Available in
API version 35.0 and later.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Directly controlled by StageName. You can query and filter on this field, but you can’t
directly set it in a create, upsert, or update request. It can only be set via StageName. Label
is Closed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
1375
Standard Objects
Field
Opportunity
Field Type
IsExcludedFromTerritory2Filter Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Used for Filter-Based Opportunity Territory Assignment (Pilot in Spring ’15 / API version 33).
Indicates whether the opportunity is excluded (True) or included (False) each time the
APEX filter is executed.
IsSplit
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only field that indicates whether credit for the opportunity is split between opportunity
team members. Label is IsSplit.This field is available in versions 14.0 and later for
organizations that enabled Opportunity Splits during the pilot period.
Warning: This field should not be used. However, it’s documented for the benefit
of pilot customers who find references to IsSplit in code.
IsWon
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Directly controlled by StageName. You can query and filter on this field, but you can’t
directly set the value. It can only be set via StageName. Label is Won.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
1376
Standard Objects
Field
Opportunity
Field Type
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Source of this opportunity, such as Advertisement or Trade Show.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. A name for this opportunity. Limit: 120 characters.
NextStep
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Description of next task in closing opportunity. Limit: 255 characters.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who has been assigned to work this opportunity.
If you update this field, the previous owner's access becomes Read Only or the access specified
in your organization-wide default for opportunities, whichever is greater.
1377
Standard Objects
Field
Opportunity
Field Type
If you have set up opportunity teams in your organization, updating this field has different
consequences depending on your version of the API:
• For API version 12.0 and later, sharing records are kept, as they are for all objects.
• For API version before 12.0, sharing records are deleted.
• For API version 16.0 and later, users must have the “Transfer Record” permission in order
to update (transfer) account ownership using this field.
Pricebook2Id
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2
applies to this opportunity. The Pricebook2Id field is defined only for those organizations
that have products enabled as a feature. You can specify values for only one field
(Pricebook2Id or PricebookId)—not both fields. For this reason, both fields are
declared nillable.
PricebookId
Type
reference
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available.
Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.
Probability
Type
percent
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
Percentage of estimated confidence in closing the opportunity. It is implied, but not directly
controlled, by the StageName field. You can override this field to a different value than
what is implied by the StageName.
Note: If you're changing the Probability field through the API using a partner
WSDL call, or an Apex before trigger, and the value may have several decimal
places, we recommend rounding the value to a whole number. For example, the
following Apex in a before trigger uses the round method to change the field
value: o.probability = o.probability.round();
RecordTypeId
Type
reference
1378
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
StageName
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
Required. Current stage of this record. The StageName field controls several other fields
on an opportunity. Each of the fields can be directly set or implied by changing the
StageName field. In addition, the StageName field is a picklist, so it has additional
members in the returned describeSObjectResult to indicate how it affects the other fields.
To obtain the stage name values in the picklist, query the OpportunityStage object. If the
StageName is updated, then the ForecastCategoryName, IsClosed, IsWon,
and Probability are automatically updated based on the stage-category mapping.
SyncedQuoteID
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Read only in an Apex trigger. The ID of the Quote that syncs with the opportunity. Setting
this field lets you start and stop syncing between the opportunity and a quote. The ID has
to be for a quote that is a child of the opportunity.
Territory2Id
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the territory that is assigned to the opportunity. Available only if Enterprise Territory
Management has been enabled for your organization.
TotalOpportunityQuantity Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Number of items included in this opportunity. Used in quantity-based forecasting.
1379
Standard Objects
Opportunity
Field
Field Type
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of opportunity. For example, Existing Business or New Business. Label is Opportunity
Type.
Note: If you are importing Opportunity data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use the Opportunity object to manage information about a sale or pending deal. You can also sync this object with a child Quote. To
update an Opportunity, your client application needs “Edit” permission on opportunities. You can create, update, delete, and query
Attachment records associated with an opportunity via the API. To split credit for an opportunity among multiple opportunity team
members, use the OpportunitySplit object.
Client applications can also create or update opportunity objects by converting a Lead with convertLead().
Note: On opportunities and opportunity products, the workflow rules, validation rules, and Apex triggers fire when an update to
a child opportunity product or schedule causes an update to the parent record. This means your custom application logic is
enforced when there are updates to the parent record, ensuring higher data quality and compliance with your organization’s
business policies.
Sample Code—Java
This code starts the sync between an object and a child quote.
public void startQuoteSync() {
Opportunity opp = new Opportunity();
opp.setId(new ID("006D000000CpOSy"));
opp.setSyncedQuoteId(new ID("0Q0D000000002OZ"));
// Invoke the update call and save the results
try {
SaveResult[] saveResults = binding.update(new SObject[] {opp});
// check results and do more processing after the update call ...
}
catch (Exception ex) {
System.out.println("An unexpected error has occurred." + ex.getMessage());
return;
}
}
This code stops the sync between an object and a child quote.
public void stopQuoteSync() {
Opportunity opp = new Opportunity();
1380
Standard Objects
OpportunityCompetitor
opp.setId(new ID("006D000000CpOSy"));
opp.setFieldsToNull(new String[] {"SyncedQuoteId"} );
// Invoke the update call and save the results
try {
SaveResult[] saveResults = binding.update(new SObject[] {opp});
// check results and do more processing after the update call ...
}
catch (Exception ex) {
System.out.println("An unexpected error has occurred." + ex.getMessage());
return;
}
}
SEE ALSO:
OpportunityCompetitor
OpportunityHistory
OpportunityLineItem
OpportunityLineItemSchedule
OpportunityFieldHistory
Quote
QuoteLineItem
PartnerNetworkConnection
OpportunityCompetitor
Represents a competitor on an Opportunity.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CompetitorName
Type
combobox
Properties
Create, Filter, Nillable, Sort, Update
Description
Name of the competitor.
1381
Standard Objects
OpportunityContactRole
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated Opportunity.
Strengths
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the competitor’s strengths. Limit: 1,000 characters.
Weaknesses
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the competitor’s weaknesses. Limit: 1,000 characters.
Usage
Use this object to manage competitors on an Opportunity, associating multiple competitors on a opportunity and specifying the strengths
and weaknesses of each competitor.
SEE ALSO:
Opportunity
OpportunityContactRole
Represents the role that a Contact plays on an Opportunity.
1382
Standard Objects
OpportunityContactRole
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Fields
Field
Details
ContactId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of an associated Contact. The API applies user access rights to the associated Opportunity
for this object, but not to the associated Contact. The API may return rows from a query on
this object that include this field’s values for contacts to which the user does not have
sufficient access rights. It may also return values for this field for contacts that have been
deleted. In either case, the client must perform a query on the contact table for this field’s
value to determine whether the Contact is accessible to the user and has not been deleted.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the associated Contact plays the primary role on the Opportunity (true)
or not (false). Each Opportunity has only one primary contact. Label is Primary.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort,
Description
Required. ID of an associated Opportunity. This field is non-nullable, and it cannot be updated.
You must provide a value for this field when creating new records. You can’t change it after
it has been created.
1383
Standard Objects
OpportunityFeed
Field
Details
Role
Type
picklist
Properties
Create, Filter, Group, Sort, Nillable, Update
Description
Name of the role played by the associated Contact on the Opportunity, such as Business
User or Decision Maker.
Usage
Records of this object type appear in the user interface on the Opportunity detail page. Like most other objects, records of this object
type have their own unique ID that you use when updating or deleting records.
Although allowed, we do not recommend that you create multiple relationships between the same Opportunity and a Contact.
SEE ALSO:
Object Basics
OpportunityFeed
Represents a single feed item in the feed displayed on the detail page for an opportunity record. This object is available in API version
18.0 and later.
An opportunity feed shows recent changes to an opportunity record for any fields that are tracked in feeds, and posts and comments
about the record. It is a useful way to stay up-to-date with changes made to opportunities.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Opportunity object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
1384
Standard Objects
OpportunityFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of OpportunityFeed. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
1385
Standard Objects
Field
OpportunityFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
1386
Standard Objects
Field
OpportunityFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the metric record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
1295
Standard Objects
Field Name
MetricFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null
for all posts except ContentPost.
For example, set this field to an existing ContentVersion and post it to a feed as
a FeedItem object of TypeContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the FeedItem. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item. Except for ContentPost, LinkPost, and TextPost,
don’t create feed item types directly from the API.
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
1296
Standard Objects
Field Name
MetricHistory
Details
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
MetricHistory
This read-only object contains historical information about changes that have been made to the Metric object.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
MetricId
Type
reference
1297
Standard Objects
MetricsDataFile
Field Name
Details
Properties
Filter, Group, Sort
Description
ID of the Metric.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
MetricsDataFile
Represents a data file containing usage metrics on all installations of a managed package in a Salesforce instance. This object is available
in API version 30.0 and later.
Supported Calls
query(), delete()
Fields
Field Name
Details
MetricsDataFile
Type
base64
Properties
Filter, Query, Sort
Description
A text file containing the usage data encoded in Base 64.
1298
Standard Objects
Field Name
MetricsDataFile
Details
MetricsDataFileContentType Type
string
Properties
Filter, Query, Sort
Description
The format of the data file. Currently, the only allowed value is text/csv.
MetricsDataFileLength Type
int
Properties
Filter, Query, Sort
Description
The size of the data file in bytes.
MetricsRunDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The date when the usage metrics collection job was run.
MetricsEndDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The end time and date for the data collection.
MetricsStartDate
Type
dateTime
Properties
Filter, Query, Sort
Description
The start time and date for the data collection.
MetricsType
Type
picklist
Properties
Filter, Query, Sort
1299
Standard Objects
Field Name
MetricsDataFile
Details
Description
The type of data being collected. The possible values are CustomObject and
Visualforce.
NamespacePrefix
Type
string
Properties
Filter, Query, Sort
Description
The namespace prefix of the package for which data is being collected.
SendingInstance
Type
string
Properties
Filter, Query, Sort
Description
The server instance from which this data was collected, for example, “na8.”
Usage
Use this object to access customer usage metrics for a managed package. Each record contains one day’s data, on either custom objects
or Visualforce pages, for all organizations in a Salesforce instance that have the package installed. The following data is collected each
day.
• Custom objects — the number of records stored in each custom object.
• Visualforce pages — the number of times each Visualforce page was accessed, the number of unique users who accessed it, and
the average loading time (in milliseconds).
The custom objects data is a snapshot that reflects the state of the organization at the time the database was sampled, while the
Visualforce data covers usage over a 24-hour period.
This feature is intended for API access only. The owner of the package must write a secondary process to retrieve the metrics data from
the reporting organization, and export it to another system for analysis.
The usage metrics data for all production organizations in a given instance is merged and written into a text file, in a specified format,
once a day. If an instance doesn’t have any organizations with the package installed or any organizations that accessed Visualforce pages
in the package, a blank record is created for that day, with MetricsDataFileLength set to zero.
In a record for custom objects, each row of the text file contains usage data in the following order.
• Organization ID
• Organization name
• Organization edition
• Organization status
• Name of the custom object
• Number of records of the custom object on the specified day
1300
Standard Objects
MetricShare
The custom object count is a snapshot captured once each day. Here’s a section of a sample data file for custom objects. It shows there
were 3500 and 1500 records in the Alpha and Beta custom objects, respectively, in the specified customer organization on the
specified day.
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","Alpha", "3500"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","Beta", "1500"
In a record for Visualforce pages, each row of the text file contains usage data in the following order.
• Organization ID
• Organization name
• Organization edition
• Organization status
• Package version number
• Name of the Visualforce page
• Number of times the page was accessed
• Number of unique users who accessed the page
• Average loading time of the page, in milliseconds
The Visualforce counts for each organization measure the number of times the page was viewed in the duration between the start and
end times. Here’s a section of a sample data file for Visualforce pages.
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f1","1","1","66.0"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f2","1","1","128.0"
"00Dxx0000001gbk","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f3","1","1","107.0"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f1","5","1","73.6"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f2","1","1","72.0"
"00Dxx0000001gbf","org1","Enterprise Edition","TRIAL","1.0","/apex/gm12__f3","7","1","50.8"
MetricShare
Represents a sharing entry on a Metric object.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field Name
Details
AccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
1301
Standard Objects
Field Name
MetricShare
Details
Description
The user’s or group’s level of access to the metric. The possible values are:
• Read Only
• Read/Write
• Owner
This field must be set to an access level that is higher than the organization’s
default access level for metrics.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the Metric object that is associated with this sharing entry.
RowCause
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Reason that this sharing entry exists. Read-only.
You can create a value for this field in API versions 32.0 and later with the correct
organization-wide sharing settings.
Valid values include:
• Owner: User is the owner of the Metric or is in a user role above the Metric
owner in the role hierarchy.
• Manual: User or group has access because a user with “All” access manually
shared the Metric with the user or group.
• Rule: User or group has access via a Metric sharing rule.
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the user or group that was given access to the Metric. This field can’t be
updated.
1302
Standard Objects
MilestoneType
MilestoneType
Represents a milestone (required step in a customer support process). This object is available in API version 18.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Update
Description
A description of the milestone.
Name
Type
string
Properties
Create, Filter, idLookup, Update
Description
The name of the milestone.
RecurrenceType
Type
picklist
Properties
Create,Update
Description
The type of recurrence for the milestone.
Usage
Use this object to query and manage the milestone type for CaseMilestone records.
SEE ALSO:
CaseMilestone
SlaProcess
1303
Standard Objects
Name
Name
Non-queryable object that provides information about foreign key traversals when the foreign key has more than one parent.
This object is used to retrieve information from related records where the related record may be from more than one object type (a
polymorphic foreign key). For example, the owner of a case can be either a user or a group (queue). This object allows retrieval of the
owner name, whether the owner is a user or a group (queue). You can use a describe call to access the information about parents for
an object, or you can use the who, what, or owner fields (depending on the object) in SOQL queries. This object cannot be directly
accessed.
Supported Calls
describeSObjects()
Fields
Field
Details
Alias
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The user alias. This field contains a value only if the related record is a user.
Email
Type
email
Properties
Filter, Group, Nillable, Sort
Description
The email address of the user. This field contains a value only if the related record is a user.
FirstName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The first name of the user, contact, or lead.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1304
Standard Objects
Field
Name
Details
Description
Indicates whether the related record is an active user (true) or not (false). This field
contains a value only if the related record is a user.
LastName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The last name of the user, contact, or lead.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
MiddleName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The middle name of the user, contact, or lead.
Name
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Name of the parent of the object queried. If the parent is a user, contact, or lead, the value
is a concatenation of the FirstName, MiddleName, LastName, and Suffix fields
of the related record.
1305
Standard Objects
Name
Field
Details
Phone
Type
phone
Properties
Filter, Group, Nillable, Sort
Description
The phone number of the user. This field contains a value only if the related record is a user.
Profile
Type
reference
Properties
Filter, Nillable
Description
The Profile of the user. Only populated if the related record is a user.
ProfileId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the user’s Profile. Only populated if the related record is a user.
Suffix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The name suffix of the user, contact, or lead.
Title
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The title of the user, for example CFO or CEO.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1306
Standard Objects
Field
NamedCredential
Details
Description
A list of the types of sObjects that can be an owner of this object. You can use this field to
filter on a type of owner, for example, return only the leads owned by a user.
Username
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Contains the name that a user enters to log into the API or the user interface. The value for
this field is in the form of an email address, and is only populated if the related record is a
user.
UserRole
Type
picklist
Properties
Filter, Nillable
Description
Name of the Role played by the user. Only populated for user rows.
UserRoleId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the user role associated with this object.
Usage
To query on relationships where the parent may be more than one type of object, use who, what, or owner relationship fields.
SEE ALSO:
Object Basics
NamedCredential
Represents a named credential, which specifies the URL of a callout endpoint and its required authentication parameters in one definition.
A named credential can be specified as an endpoint to simplify the setup of authenticated callouts. This object is available in API version
33.0 and later.
1307
Standard Objects
NamedCredential
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field Name
Details
AuthProviderId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Salesforce ID of the authentication provider, which defines the
service that provides the login process and approves access
to the external system.
Only users with the “Customize Application” and “Manage
AuthProviders” permissions can view this field.
This field is available in API version 39.0 and later.
CalloutOptionsAllowMergeFieldsInBody
Type
boolean
Properties
Filter
Description
For Apex callouts, indicates whether the code can use merge
fields to populate HTTP request bodies with org data.
This field is available in API version 35.0 and later.
CalloutOptionsAllowMergeFieldsInHeader
Type
boolean
Properties
Filter
Description
For Apex callouts, indicates whether the code can use merge
fields to populate HTTP headers with org data.
This field is available in API version 35.0 and later.
CalloutOptionsGenerateAuthorizationHeader Type
boolean
Properties
Filter
1308
Standard Objects
Field Name
NamedCredential
Details
Description
Indicates whether Salesforce automatically generates a
standard authorization header for each callout to the named
credential–defined endpoint.
This field is available in API version 35.0 and later.
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the object in the API. This name can
contain only underscores and alphanumeric characters, and
must be unique in your org. It must begin with a letter, not
include spaces, not end with an underscore, and not contain
two consecutive underscores. In managed packages, this field
prevents naming conflicts on package installations. With this
field, a developer can change the object’s name in a managed
package and the changes are reflected in a subscriber’s
organization.
Endpoint
Type
textarea
Properties
Nillable
Description
The root URL of the endpoint.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The language of the MasterLabel.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
The master label for the named credential. This display value
is the internal label that doesn’t get translated.
1309
Standard Objects
NavigationLinkSet
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each
Developer Edition organization that creates a managed
package has a unique namespace prefix. Limit: 15 characters.
You can refer to a component in a managed package by using
the namespacePrefix__componentName notation.
PrincipalType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Tracks users who are accessing the external system.
Anonymous implies that a user identity isn’t specified for
external system access. Named Principal uses one user
identity for all users to access the external system.
Usage
Use the NamedCredential object to query named credentials in your organization.
SEE ALSO:
ExternalDataUserAuth
ExternalDataSource
NavigationLinkSet
Represents the navigation menu in a community. A navigation menu consists of items that users can click to go to other parts of the
community. This object is available in API version 36.0 and later.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
1310
Standard Objects
NavigationMenuItem
Fields
Field Name
Details
DeveloperName
Type
string
Properties
Filter, Group, Sort
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming
conflicts on package installations. With this field, a developer can change the
object’s name in a managed package and the changes are reflected in a
subscriber’s organization.
Language
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Language for the navigation menu.
MasterLabel
Type
string
Properties
Filter, Group, Sort
Description
Label for the navigation menu.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the community.
NavigationMenuItem
Represents a single menu item in a NavigationLinkSet. Use this object to create, delete, or update menu items in your community’s
navigation menu. This object is available in API version 36.0 and later.
1311
Standard Objects
NavigationMenuItem
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
Fields
Field Name
Details
AccessRestriction
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Determines if the menu item is available to guest users who aren’t required to
log in to the community.
DefaultListViewId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
If the value of the Type field is SalesforceObject, the value is the ID of the default
list view for the object.
Label
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The text that appears in the navigation menu for this item.
NavigationLinkSetId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The navigation menu that this item is included in.
Position
Type
int
1312
Standard Objects
Field Name
NavigationMenuItem
Details
Properties
Create, Filter, Group, Sort, Update
Description
The location of the menu item in the navigation menu.
Target
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
If Type is ExternalLink or InternalLink, the target is the URL that the link points
to. For ExternalLink, your entry looks like this:
http://www.salesforce.com. For InternalLink, use a relative URL, such
as /contactsupport.
TargetPrefs
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
If Type is ExternalLink, determines whether a navigation menu item opens in
the same tab.
Type
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of navigation menu item. The available values are:
• SalesforceObject—Available objects include accounts, cases, contacts, and
custom objects.
• ExternalLink—Links to a URL outside of your community. For example,
http://www.salesforce.com.
• InternalLink—Links to a relative URL inside your community. For example,
/contactsupport.
• NavigationalTopic—A drop-down list with links to the navigational topics
in your community.
Usage
You can add up to 20 navigation menu items. You can translate navigation menu items using the Translation Workbench.
1313
Standard Objects
NavigationMenuItemLocalization
NavigationMenuItemLocalization
Represents the translated value of a navigation menu item in a community. This object is available in API version 36.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
Navigation menus are available only in communities created using the Customer Service (Napili) template.
Fields
Field Name
Details
Language
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The language of the translated navigation menu item. The picklist contains the
following supported languages:
• Chinese (Simplified): zh_CN
• Chinese (Traditional): zh_TW
• Danish: da
• Dutch: nl_NL
• English: en_US
• Finnish: fi
• French: fr
• German: de
• Italian: it
• Japanese: ja
• Korean: ko
• Norwegian: no
• Portuguese (Brazil): pt_BR
• Russian: ru
• Spanish: es
• Spanish (Mexico): es_MX
• Swedish: sv
• Thai: th
1314
Standard Objects
Network
Field Name
Details
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation. The
namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the navigation menu item that this translated value applies to.
Value
Type
string
Properties
Create, Filter, Sort, Update
Description
The translated text for the navigation menu item. Label is Translation Text.
Network
Represents a community, which is a customizable public or private space where employees, end-customers, and partners can collaborate
on best practices and business processes. Communities give you the opportunity to share information, records, and files with coworkers
and related external stakeholders all in one place. This object is available in API version 26.0 and later.
1315
Standard Objects
Network
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AllowedExtensions
Type
textarea
Properties
Filter, Nillable, Sort, Update
Description
Specifies the types of files allowed in your community. This whitelist of file types
lets you control what your community members upload and also prevents
spammers from polluting your community with inappropriate files. Available in
API version 36.0 and later.
Separate file types with a comma (for example: jpg,docx,txt). You can
enter lowercase and uppercase letters. You can enter up to 1,000 characters. To
allow all file types, leave this field empty.
CaseCommentEmailTemplateId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the email template used when submitting a comment on a case. This field
is available in API version 28.0 and later.
ChangePasswordEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the email template used when notifying a user that their password has been
reset.
Description
Type
string
1316
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
Description of the community.
EmailFooterLogoId
Type
reference
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the Document object that displays as an image in the footer of community
Chatter emails.
EmailFooterText
Type
string
Properties
Filter, Nillable, Sort, Update
Description
Text that displays in the footer of community Chatter emails.
EmailSenderAddress
Type
email
Properties
Filter, Group, Sort
Description
Read only. Email address from which community emails are sent.
Note: To change the EmailSenderAddress value, you must first
specify NewSenderAddress, which triggers the sending of an address
change verification email. After you complete the address verification
process, EmailSenderAddress changes to the specified
NewSenderAddress.
EmailSenderName
Type
string
Properties
Filter, Group, Sort, Update
Description
Name from which community emails are sent.
FirstActivationDate
Type
date
1317
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort
Description
The date the community was first activated. This field is available in API version
34.0 and later. If the community was activated or inactive prior to the release of
API version 34.0, this field returns the date the community was first created.
ForgotPasswordEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
Description
ID of the email template used when a user forgets their password.
MaxFileSizeKb
Type
int
Properties
Filter, Group, Nillable, Sort, Update
Description
Specifies the maximum file size (in KBs) that members can upload in your
community. Available in API version 36.0 and later.
Enter a number between 3072 KB and your org’s maximum file size. To use the
default limit of 2 GB, leave this field empty.
Name
Type
string
Properties
Filter, Group, Sort, Update
Description
The name of the community.
NewSenderAddress
Type
email
Properties
Filter, Group, Nillable, Sort, Update
Description
Email address that has been entered as the new value for
EmailSenderAddress but has not been verified yet. After a user has
requested to change the sender email address and has successfully responded
to the verification email, the NewSenderAddress value overwrites the value
in EmailSenderAddress. This becomes the email address from which
community emails are sent.
1318
Standard Objects
Field Name
Network
Details
Note:
• If verification is pending for a new email address and you set
NewSenderAddress to null, this cancels the verification request.
• NewSenderAddress is automatically set to null after
EmailSenderAddress has been set to the new verified address.
• If verification is pending for a new email address and you specify a
different new address for this field, only the latest value is retained
and used for verification.
OptionsAllowInternalUserLogin
Type
boolean
Properties
Filter, Update
Description
Specifies whether internal users can log in with their internal credentials on the
community login page. This field is available in API version 37.0 and later.
OptionsAllowMembersToFlag
Type
boolean
Properties
Filter, Update
Description
Determines whether users can flag posts, comments, or files as inappropriate in
the community.
This field is available in API version 29.0 and later. The ability to flag files is available
in version 30.0 and later.
OptionsGuestChatterEnabled
Type
boolean
Properties
Filter, Update
Description
Specifies whether guest users can access public Chatter groups in the community
without logging in.
OptionsInvitationsEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether users can invite others to the community.
1319
Standard Objects
Network
Field Name
Details
OptionsKnowledgeableEnabled
Type
boolean
Properties
Filter
Description
Determines whether users can see knowledgeable people for topics and endorse
people for topics.
OptionsNicknameDisplayEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether user nicknames display instead of their first and last names
in most places in the community.
A few restrictions to keep in mind about nickname display:
• Private messages display full names. You can choose to turn off private
messages to avoid this.
• Records and user lookups on records show full names. Keep in mind, though,
that you can control record and user visibility with sharing rules.
• Mobile notifications in Salesforce1 show full names. You can turn off mobile
notifications in Salesforce1 to avoid this.
• Searches by first, last, and full names aren’t restricted and return matches,
but the search results display only nicknames. The auto-complete
recommendations in global search and the recent items list show any first,
last, and full names that the user has already searched by or has accessed via
a record or another location.
OptionsPrivateMessagesEnabled
Type
boolean
Properties
Filter
Description
Determines whether users can send and receive Chatter messages in the
community.
OptionsReputationEnabled
Type
boolean
Properties
Filter, Update
1320
Standard Objects
Field Name
Network
Details
Description
Determines if reputation is calculated and displayed for community members.
This field is available in API version 31.0 and later.
OptionsSelfRegistrationEnabled Type
boolean
Properties
Filter, Update
Description
Determines whether external users can self-register to join the community.
External users are users with Community, Customer Portal, or partner portal
licenses. If true, displays a Not a member? link on the login page that points
to the default self-registration page. This field is available in API version 28.0 and
later.
OptionsSendWelcomeEmail
Type
boolean
Properties
Filter, Update
Description
Determines whether a welcome email is sent when a new user is added to the
community.
OptionsShowAllNetworkSettings
Type
boolean
Properties
Filter, Update
Description
Determines whether settings in Community Management that were hidden
based on how you set up your community are visible or remain hidden.
This field is available in API version 33.0 and later.
OptionsSiteAsContainerEnabled
Type
boolean
Properties
Filter, Update
Description
Determines whether the community uses Site.com pages instead of tabs.
This field is available in API version 29.0 and later.
SelfRegProfileId
Type
reference
1321
Standard Objects
Field Name
Network
Details
Properties
Filter, Group, Nillable, Sort, Update
Description
ID of the profile assigned to users who self register. Only applies if self registration
is enabled for the community.
This field is available in API version 29.0 and later.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Status of the community. Available values are:
• Live—The community is online and members can access it. Label is
Published.
• DownForMaintenance—The community was previously published,
but was taken offline. Members with “Create and Set Up Communities” can
still access the setup for offline communities regardless of profile or
membership. Members are not able to access offline communities, but they
still appear in the user interface drop-down as CommunityName
(Offline). Label is Offline.
• UnderConstruction—The community has not yet been published.
Users with “Create and Set Up Communities” can access communities in this
status if their profile is associated with the community.
Once a community is published, it can never be in this status again. Label is
Preview.
UrlPathPrefix
Type
string
Properties
Filter, Group, Sort, Update
Description
The UrlPathPrefix is a unique string at the end of the URL for this
community. For example, in the community URL
UniversalTelco.force.com/customers, customers is the
UrlPathPrefix.
WelcomeEmailTemplateId
Type
reference
Properties
Filter, Group, Sort, Update
1322
Standard Objects
Field Name
NetworkActivityAudit
Details
Description
ID of the email template used when sending welcome emails to new community
members.
Usage
Use this object to find, view, and update communities in your organization. If you have “Modify All Data,” “View All Data,” or “Create and
Set Up Communities,” you can view all communities in the organization. Users without these permissions only see the Preview or
Published communities that they’re members of. If you have “Create and Set Up Communities,” you can customize community
settings.
NetworkActivityAudit
Represents an audit trail of moderation actions in Communities. This object is available in API version 30.0 and later.
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
Action
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The moderation action a member performed on a post, comment, or file in a
community.
Values are:
• Flagged as Inappropriate—A community member flagged a post, comment,
or file as inappropriate.
• Flagged as Spam - A community member flagged a post, comment, or file
as spam.
• Unflagged—A community member removed the flag from a post, comment,
or file.
1323
Standard Objects
Field Name
NetworkActivityAudit
Details
• RemovedFlags—A moderator removed all flags from a post, comment, or
file.
• DeletedFlaggedItem—A moderator deleted a flagged post, comment, or
file.
• ModerationRuleFlag—A moderation rule flagged member-generated content.
• ModerationRuleBlock—A moderation rule blocked member-generated
content.
• ModerationRuleReplace—A moderation rule replaced member-generated
content.
• ModerationRuleReview—A moderation rule sent member-generated content
to be reviewed and approved by a moderator.
• ModerationRuleFreeze—A moderation rule froze a member because they
created content too frequently within a specific time frame.
• ModerationRuleNotify—A moderation rule notified moderators because a
member created content too frequently within a specific time frame.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Notes entered by the user.
If the entity being tracked is a file, records the version number of the file when
it was flagged.
EntityCreatedById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the user that created the entity being tracked.
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the entity that is being tracked. The following entities are tracked:
ChatterMessage, ContentDocument, ContentVersion, FeedComment, and
FeedItem.
1324
Standard Objects
NetworkActivityAudit
Field Name
Details
EntityType
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of the entity being tracked.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the item being tracked.
NetworkId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the network (community) where the moderation action was performed.
ParentEntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the parent of the entity on which an action was performed. The following
entities are tracked: CollaborationGroup, DirectMessage, and User.
ParentEntityType
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The key prefix of the parent of the entity being audited.
Usage
Use this object to view an audit trail of moderation activity for your communities. You must have the “Modify All Data” permission to
access this object.
1325
Standard Objects
NetworkMember
Users with “Moderate Communities Feeds”, “Moderate Communities Files” or “View All Data” can view the audit trail using reports in the
Salesforce user interface.
NetworkMember
Represents a member of a community. Members can be either users in your company or external users with portal profiles. This object
is available in API version 26.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
DefaultGroupNotificationFrequency
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. The default frequency for sending the member’s group
email notifications when the member joins groups in the community.
The valid values are:
• P—Email on every post
• D—Daily digests
• W—Weekly digests
• N—Never
The default value is W. However, this field is not currently enabled.
These values are reserved for future use.
DigestFrequency
Type
picklist
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Required. The frequency for sending the member’s personal email
digest for the community. The valid values are:
• D—Daily
1326
Standard Objects
Field Name
NetworkMember
Details
• W—Weekly
• N—Never
The default value is D. However, daily and weekly personal digests
aren’t currently available in communities. These values are reserved
for future use.
LastChatterActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
The last time the member posted or commented in the community.
MemberId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of a person who is a member of a community.
NetworkId
Type
reference
Properties
Filter, Group, Sort
Description
The ID of the community that the member is part of.
PreferencesDisableAllFeedsEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member can automatically receive email for
updates in the community, based on the types of feed emails and
digests the member has enabled.
PreferencesDisableBookmarkEmail
Type
boolean
Properties
Filter, Update
1327
Standard Objects
Field Name
NetworkMember
Details
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has bookmarked
it.
PreferencesDisableChangeCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a change the member has made, such as an
update to their profile.
PreferencesDisableDirectMessageEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone sends them a direct message in the community.
PreferencesDisableEndorsementEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone endorses them for a topic.
PreferencesDisableFollowersEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone in the community starts following the member.
DisableItemFlaggedEmail
Type
boolean
Properties
Filter, Update
1328
Standard Objects
Field Name
NetworkMember
Details
Description
When false, the user automatically receives email every time a
community member flags a post or comment. This setting only applies
for community moderators (with the “Moderate Communities Feeds”
permission) and group owners or managers.
This field is available in API version 29.0 and later.
PreferencesDisableLaterCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has commented
on the feed item.
PreferencesDisableLikeEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a feed item after the member has liked the
feed item.
PreferencesDisableMentionsPostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is mentioned in posts.
PreferencesDisableMessageEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is sent a Chatter message.
1329
Standard Objects
NetworkMember
Field Name
Details
PreferencesDisableProfilePostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone posts to the member’s profile.
PreferencesDisableSharePostEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member’s post is shared.
PreferencesDisCommentAfterLikeEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on a post the member has liked.
PreferencesDisMentionsCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
the member is mentioned in comments.
PreferencesDisProfPostCommentEmail
Type
boolean
Properties
Filter, Update
Description
When false, the member automatically receives email every time
someone comments on posts on the member’s profile.
ReputationPoints
Type
double
1330
Standard Objects
NetworkMemberGroup
Field Name
Details
Properties
Filter, Sort, Update
Description
The number of reputation points the user has accumulated by
performing actions in the community.
Usage
Use this object to query members of a certain community and to update their email notification settings. If you have “Modify All Data,”
“View All Data,” or “Create and Set Up Communities,” you can view all members of any community, regardless of your own membership.
If you have “Modify All Data” or “Create and Set Up Communities,” you can also update any member’s email settings. Users without these
permissions can update their own email settings and can see members of the communities that they’re also members of.
Tip: You can directly update reputation points for a community member via the Salesforce API. You can also use Apex triggers
to send custom notifications based on changes to reputation points.
NetworkMemberGroup
Represents a group of members in a community. Members can be either users in your internal organization or external users assigned
portal profiles. An administrator adds members to a community by adding a profile or a permission set, and any user with the profile or
permission set becomes a member of the community. This object is available in API version 26.0 and later.
Note: If a Chatter customer (from a customer group) is assigned a permission set that is also associated with a community, the
Chatter customer won’t be added to the community.
Prior to API version 27.0, this object was called NetworkProfile.
Supported Calls
create(), describeSObjects(), query(), retrieve(), update()
Note: The upsert() call is not supported for this object.
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
AssignmentStatus
Type
picklist
1331
Standard Objects
Field Name
NetworkMemberGroup
Details
Properties
Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The status of a profile or permission set within a community. Values are:
• Added—Users with this profile or permission set are members of the
community.
• Waiting for Add—The profile or permission set was added to the
community, but the async process hasn’t completed yet. After the process
is complete, the status is updated to Added.
• Waiting for Remove—Use this status to remove all the community
members belonging to a profile or permission set and remove a profile or
permission set from a community.
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the community that this group of members is associated with.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the profile or permission set associated with the community.
Usage
Use this object to view the profiles or permission sets associated with a particular community. Profiles and permission sets are added
and removed asynchronously, so you can also check the status of a profile or permission set that was updated in a community.
If you have “Modify All Data,” “View All Data,” or “Create and Set Up Communities,” you can view all profiles or permission sets for any
community in the organization, regardless of your membership. If you have “Modify All Data” or “Create and Set Up Communities,” you
can also add profiles or permission sets. Users without these permissions can only find profiles and permission sets for communities that
they’re members of.
Sample Code
// Create a new NetworkMemberGroup with a profile as the ParentId
NetworkMemberGroup nmgInsert = new NetworkMemberGroup();
nmg.setNetworkId("0DBD0000000029o");
nmg.setParentId("00eD0000000z1Ww");
1332
Standard Objects
NetworkModeration
SaveResult[] results = connection.create(new SObject[] { nmgInsert });
// Update an existing NetworkMemberGroup to be removed from the Network
NetworkMemberGroup nmgUpdate = new NetworkMemberGroup();
nmg.setId("0DLD000000003enOAA");
nmg.setAssignmentStatus("WaitingForRemove");
SaveResult[] results = connection.update(new SObject[] { nmgUpdate });
NetworkModeration
Represents a flag on an item in a community. This object is available in API version 30.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
This object is available only if Salesforce Communities is enabled in your organization.
Fields
Field Name
Details
EntityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
ID of the post, comment, or file that was flagged.
ModerationType
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort
Description
Determines the type of flag applied to an item. Values are:
• FlagAsInappropriate
• FlagAsSpam
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
1333
Standard Objects
Field Name
NetworkPageOverride
Details
Description
ID of the community in which the item was flagged.
Visibility
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Nillable, Sort
Description
Determines visibility of a flagged item. Values are:
• SelfAndModerators—The user who flagged the item and any moderators
can see the flagged item. This is the default value.
• ModeratorsOnly—Only moderators can see the flagged item. If
ModeratorsOnly is selected, only moderators can set flags using the API.
Usage
Use this object to view the items flagged for moderation within a community. Additionally, users with “Moderate Feeds” and “Modify
All Data” can remove flags.
Flags on items are created either when a member manually flags an item in a community (if flagging is enabled for that community),
or when a trigger automatically flags an item because the item met the trigger criteria.
NetworkPageOverride
Represents information about custom pages used to override the default pages in communities. You can create Community Builder
(Site.com Studio) or Visualforce pages and override the default pages in a community. Using custom pages allows you to create a more
personalized experience for your users. This object is available in API version 34.0 and later.
Supported Calls
describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
• Only users with the “Create and Setup Networks” permission can update this object.
• You can’t override the Change Password Page with a page created using Community Builder (Site.com Studio). You can only override
it with a Visualforce page.
1334
Standard Objects
NetworkSelfRegistration
Fields
Field Name
Details
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the community where a custom page is used to override a default page.
OverrideSetting
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of the page used to override a default page in the community.
OverrideSetting can take the following values:
• Standard—The standard page that comes by default with the community.
• Designer—A custom page created using Community Builder (Site.com
Studio).
• Visualforce—A custom page created using Visualforce.
OverrideType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The name of the default page in the community that you want to override with
a custom page.OverrideType can take the following values:
• LoginRequired
• ChangePassword
• ForgotPassword
• SelfReg
• Home
NetworkSelfRegistration
Represents the account that self-registering community members are associated with by default. Self-registering users in a community
are required to be associated with an account, which the administrator must specify while setting up self-registration for the community.
If an account isn’t specified, Salesforce creates person accounts (when enabled) for self-registering users. This object is available in API
version 34.0 and later.
1335
Standard Objects
NewsFeed
Supported Calls
create(),delete(),describeSObjects(),getDeleted(),getUpdated(),query(),retrieve(),undelete(),update(),upsert()
Fields
Field Name
Details
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the account that self-registering users in the community are associated
with.
NetworkId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the community.
Note: You can use only one account per community to assign
self-registering users.
NewsFeed
Represents a single feed item on a user's home tab. A Chatter feed shows recent changes to records that the user is following.
NewsFeed is available in API version 18.0 through API version 26.0. In API version 27.0 and later, NewsFeed is no longer available in the
SOAP API. Use the Chatter REST API to access NewsFeed.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Body
Type
textarea
1336
Standard Objects
Field
NewsFeed
Details
Properties
Nillable, Sort
Description
The content of NewsFeed. Required when Type is TextPost. Optional when Type is
ContentPost or LinkPost. This is the message that appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection makes a change to a record that is tracked, the
CreatedBy field contains the ID of the system administrator while the ConnectionId
contains the ID of the PartnerNetworkConnection that made the change. Available if Salesforce
to Salesforce is enabled for your organization.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only.Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
1337
Standard Objects
NewsFeed
Field
Details
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only.The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only.This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when this record was created. This is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
1338
Standard Objects
NewsFeed
Field
Details
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
1339
Standard Objects
Field
NewsFeed
Details
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the newsfeed record that is tracked in the feed. The feed is displayed on the detail page
for this record.
RelatedRecordId
Type
reference
1340
Standard Objects
Field
NewsFeed
Details
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
1341
Standard Objects
Field
NewsFeed
Details
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. This event is also generated by CTI calls.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, you must specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1342
Standard Objects
Note
Usage
Use this object to query and retrieve record changes tracked in a news feed. Note the following when working with news feeds:
• This object is read only in the API.
• Users can only query their own news feed.
• Queries retrieve feed items that include mentions from other users.
• Use this object to query and retrieve lead feed items that were associated with a converted lead record.
Users that do not have the “View All Data” permission have the following limitations when querying records:
• Must specify a LIMIT clause and the limit must be less than or equal to 1000.
• May include a WHERE clause that references NewsFeed fields, but may not include references to fields in related objects. For example,
you can filter by CreatedDate or ParentId, but not by Parent.Name.
• May include an ORDER BY clause that references NewsFeed fields, but may not include references to fields in related objects. For
example, you can ORDER BY CreatedDate or ParentId, but not by Parent.Name.
Tip: To query for the most recent feed items, you should ORDER BY CreatedDate DESC, Id DESC.
Note the following SOQL restrictions.
• No SOQL limit if logged-in user has “View All Data” permission. If not, specify a LIMIT clause of 1,000 records or fewer.
• SOQL ORDER BY on fields using relationships is not available. Use ORDER BY on fields on the root object in the SOQL query.
SEE ALSO:
EntitySubscription
FeedComment
FeedTrackedChange
Note
Represents a note, which is text associated with a custom object or a standard object, such as a Contact, Contract, or Opportunity.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(),
undelete(), update(), upsert()
Fields
Field
Details
Body
Type
textarea
Properties
Create, Nillable, Update
1343
Standard Objects
Field
Note
Details
Description
Body of the note. Limited to 32 KB.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrivate
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
If true, only the note owner or a user with the “Modify All Data” permission can view the
note or query it via the API. Note that if a user who does not have the “Modify All Data”
permission sets this field to true on a note that they do not own, then they can no longer
query, delete, or update the note. Label is Private.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the user who owns the note.
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the object associated with the note.
Title
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Title of the note.
1344
Standard Objects
OauthToken
Usage
Use this object to manage notes for an object.
SEE ALSO:
Object Basics
OauthToken
Represents an OAuth access token for connected app authentication and can be used to create a user interface for token management.
This object is available in API version 32.0 and later.
A connected app integrates an application with Salesforce using APIs. Connected apps use standard SAML and OAuth protocols to
authenticate, provide single sign-on, and provide tokens for use with Salesforce APIs. In addition to standard OAuth capabilities, connected
apps allow Salesforce admins to set various security policies and have explicit control over who can use the corresponding apps. Each
time that a user grants access to an application, the application obtains a new access token.
Supported Calls
describeSObjects(), query()
Special Access Rules
If you are a user with the “Manage Users” permission, you see all tokens for all users in the organization. Otherwise, you see only your
own tokens.
Fields
Field Name
Details
AccessToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The refresh token for authorization.
AppMenuItemId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The unique ID for the App Picker menu item that’s associated with this OAuth
token.
1345
Standard Objects
OauthToken
Field Name
Details
AppName
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The label for the connected app that’s associated with this OAuth token.
DeleteToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
A token that can be used at the revoke OAuth token endpoint to remove this
token.
Id
Type
ID
Properties
Defaulted on create, Filter, Group, idLookup, Sort
Description
Reserved for future use. Currently, the value is always null.
LastUsedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The most recent date when the OAuth token was used.
RequestToken
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The authorization code that was used to request the corresponding AccessToken.
With this authorization code, you can revoke the corresponding AccesToken by
passsing the DeleteToken.
UseCount
Type
int
1346
Standard Objects
NoteAndAttachment
Field Name
Details
Properties
Filter, Group, Nillable, Sort
Description
How often the token has been used.
UserId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The owner of the token.
Usage
To delete an AccessToken, send a request to the revoke OAuth token endpoint with the DeleteToken as the parameter. For example,
this URL https://login.salesforce.com/services/oauth2/revoke?token=(the Delete Token) causes
the deletion of the token.
In API version 34.0 and later, this object was enhanced to help manage high instance counts. A query() call returns up to 500 rows.
A queryMore() call returns 500 more, up to 2500 total. No more records are returned after 2500. To make sure you don’t miss any
records, issue a COUNT() query in a SELECT clause for OauthToken. This gives you the total number of records. If there are more than
2500 records, divide your query by filtering on fields, like UserId, to return subsets of less than 2500 records.
NoteAndAttachment
This read-only object contains all notes and attachments associated with an object.
Supported Calls
describeSObjects()
Fields
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
1347
Standard Objects
Field
NoteAndAttachment
Details
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsNote
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the object contains a note (true) or an attachment (false).
IsPrivate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If true, only the note owner or a user with the “Modify All Data” permission can view the
note or query it via the API. Note that if a regular user who does not have “Modify All Data”
permission sets this field to true on a note that they do not own, then they can no longer
query, delete, or update that note. Label is Private.
OwnerId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user who owns the note and attachment.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the parent object.
Title
Type
string
Properties
Filter, Nillable, Group, Sort
Description
Title of the note.
1348
Standard Objects
NoteTag
Usage
Use this object to list all notes and attachments for an object.
To retrieve notes and attachments, issue a describe call on an object, which returns a query result for each activity since the record was
created. You can’t directly query this object.
SEE ALSO:
Note
Attachment
NoteTag
Associates a word or short phrase with a Note.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
1349
Standard Objects
Field Name
ObjectPermissions
Details
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
NoteTag stores the relationship between its parent TagDefinition and the Note being tagged. Tag objects act as metadata, allowing
users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
ObjectPermissions
Represents the enabled object permissions for the parent PermissionSet. This object is available in API version 24.0 and later.
To grant a user access to an object, associate an ObjectPermissions record with a PermissionSet that’s assigned to a user. ObjectPermissions
records are only supported in PermissionSet, not in Profile.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Name
Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
1350
Standard Objects
Field Name
ObjectPermissions
Details
Description
The Id of this object’s parent PermissionSet.
PermissionsCreate
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can create records for this
object. Requires PermissionsRead for the same object to be true.
PermissionsDelete
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can delete records for this
object. Requires PermissionsRead and PermissionsEdit for the
same object to be true.
PermissionsEdit
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can edit records for this
object. Requires PermissionsRead for the same object to be true.
PermissionsModifyAllRecords
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can edit all records for this
object, regardless of sharing settings. Requires PermissionsRead,
PermissionsDelete, PermissionsEdit, and
PermissionsViewAllRecords for the same object to be true.
PermissionsRead
Type
boolean
Properties
Create, Filter, Update
1351
Standard Objects
Field Name
ObjectPermissions
Details
Description
If true, users assigned to the parent PermissionSet can view records for this
object.
PermissionsViewAllRecords
Type
boolean
Properties
Create, Filter, Update
Description
If true, users assigned to the parent PermissionSet can view all records for this
object, regardless of sharing settings. Requires PermissionsRead for the
same object to be true.
SobjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object’s API name. For example, Merchandise__c.
Permission Dependencies
Some user permissions have dependencies on object permissions. For example, if a permission set has the “Transfer Leads” permission,
it also has “Read” and “Create” on the leads object.
You can query from ObjectPermissions up to the parent PermissionSet object. For example:
SELECT Parent.Name, Parent.PermissionsTransferAnyLead, PermissionsRead, PermissionsCreate
FROM ObjectPermissions
WHERE SobjectType = 'Lead'
Determining Object Access with “Modify All Data”
When using SOQL to query object permissions, be aware that some object permissions are enabled because a user permission requires
them.
The exception to this rule is when “Modify All Data” is enabled. While it enables all object permissions, it doesn’t physically store any
object permission records in the database. As a result, unlike object permissions that are required by a user permission—such as “View
All Data” or “Import Leads”—the query still returns permission sets with “Modify All Data,” but the object permission record will contain
an invalid ID that begins with “000”. This ID indicates that the object has full access due to “Modify All Data” and the object permission
record can’t be updated or deleted. To remove full access from these objects, disable “Modify All Data” and then delete the resulting
object permission record. This ensures that when using SOQL to find all the objects that have full access, it returns all objects that have
this access regardless of whether it’s due to “Modify All Data” or because an administrator set full access.
1352
Standard Objects
ObjectTerritory2AssignmentRule
For example, the following will return all permission sets that have “Read” on the Merchandise__c object, regardless of whether it’s
explicitly defined on the object or implicitly defined through “Modify All Data.”
SELECT Id, Parent.label, SobjectType, PermissionsRead,
Parent.PermissionsModifyAllData, ParentId
FROM ObjectPermissions
WHERE PermissionsRead = true and SobjectType = 'Merchandise__c'
Nesting Object Permissions
You can nest ObjectPermissions in a PermissionSet query. For example, the following returns any permission sets where “Transfer Leads”
is true. Additionally, the result set will include the “Read” object permission on leads. This is done by nesting the SOQL with an object
permission query using the relationship name for object permissions: ObjectPerms.
SELECT Id,Name,PermissionsTransferAnyLead,
(SELECT Id, PermissionsRead from ObjectPerms where SobjectType='Lead')
FROM PermissionSet
WHERE PermissionsTransferAnyLead = true
As a result, it’s possible to traverse the relationship between the PermissionSet and any child related objects (in this case, ObjectPermissions).
You can do this from the PermissionSet object by using the child relationship (ObjectPerms, FieldPerms, and so on) or from
the child object by referencing the PermissionSet with Parent.permission_set_attribute.
It’s important to consider when to use a conditional WHERE statement to restrict the result set. To query based on an attribute on the
permission set object, nest the SOQL with the child relationship. However, to query based on an attribute on the child object, you must
reference the permission set parent attribute in your query.
The following two queries return the same columns with different results, based on whether you use the child relationship or parent
notation.
SELECT Id, Name, PermissionsModifyAllData,
(SELECT Id, SobjectType, PermissionsRead from Objectperms)
FROM PermissionSet
WHERE PermissionsModifyAllData=true
versus:
SELECT Id, SObjectType, PermissionsRead, Parent.Id, Parent.Name,
Parent.PermissionsModifyAllData
FROM ObjectPermissions
WHERE SObjectType='Merchandise__c'
SEE ALSO:
PermissionSet
FieldPermissions
ObjectTerritory2AssignmentRule
Represents a territory assignment rule that’s associated with an object, such as Account. ObjectTerritory2AssignmentRuleItem can only
be created or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule is null. Available only if Enterprise
Territory Management has been enabled for your organization.
1353
Standard Objects
ObjectTerritory2AssignmentRule
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories, assignment rules, assigned records, and
assigned users. Users cannot view territory models in other states (such as Planning or Archived).
Fields
Field Name
Details
BooleanFilter
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Represents advanced filter conditions that were specified for the rule in the online
application. For example, “(1 AND 2) OR 3.”
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. This name can contain only
underscores and alphanumeric characters and must be unique in your
organization. It must begin with a letter, not include spaces, not end with an
underscore, and not contain two consecutive underscores. The field label in the
user interface is Unique Name.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the rule is active (true) or inactive (false). Via the API, active
rules run automatically when object records are created and edited. The exception
is when the value of the IsExcludedFromRealign field on an object record is true,
which prevents record assignment rules from evaluating that record.
1354
Standard Objects
ObjectTerritory2AssignmentRuleItem
Field Name
Details
Language
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the master label in the user interface.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The user interface label for the territory type.
ObjectType
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The object that the rule is defined for. For API version 31, Account only.
Territory2ModelId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the territory model.
ObjectTerritory2AssignmentRuleItem
A single row of selection criteria for an ObjectTerritory2AssignmentRule object. ObjectTerritory2AssignmentRuleItem can only be created
or deleted if the BooleanFilter field on its corresponding ObjectTerritory2AssignmentRule object is a null value. Available only
if Enterprise Territory Management has been enabled for your organization.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
1355
Standard Objects
ObjectTerritory2AssignmentRuleItem
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an
active model, any user can view assigned records and assigned users subject to your organization’s sharing settings. Users cannot view
territory models in other states (such as Planning or Archived).
Fields
Field Name
Details
Field
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The standard or custom object field that the rule item will operate on.
Operation
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The criterion to apply for the rule item. For example: equals or starts
with.
RuleId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the associated ObjectTerritory2AssignmentRule.
SortOrder
Type
int
Properties
Create, Filter, Group, Sort, Update
Description
The order in which this row is evaluated in relation to other
ObjectTerritoryAssignmentRuleItem objects for the given
ObjectTerritoryAssignmentRule.
Value
Type
string
1356
Standard Objects
Field Name
ObjectTerritory2Association
Details
Properties
Create, Filter, Nillable, Sort, Update
Description
The field value or values to evaluate. For example: if the field is Billing
ZIP/Postal Code, a value might be 94105. .
ObjectTerritory2Association
Represents an association (by assignment) between a territory and an object record, such as an account. Available only if Enterprise
Territory Management has been enabled for your Salesforce org.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Special Access Rules
If a territory model is in Active state, any user can view that model, including its territories and assignment rules. For territories in an
active model, any user can view assigned records and assigned users subject to your org’s sharing settings. Users cannot view territory
models in other states (such as Planning or Archived).
Fields
Field Name
Details
AssociationCause
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The means by which the record was associated with the territory: by rules or
manually. User interface field label is Method. Manual cause can be set only by
a user or via the API. Rules cause is used by the rules engine when the object is
assigned.
ObjectId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the object. For API version 30.0 and later, Account only.
1357
Standard Objects
OpenActivity
Field Name
Details
SobjectType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of the record. For API version 30.0 and later, Account only.
Territory2Id
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the territory that the record is assigned to.
OpenActivity
This read-only object is displayed in a related list of open activities—future events and open tasks—related to an object. It includes
activities for all contacts related to the object. OpenActivity fields for phone calls are only available if your organization uses Salesforce
CRM Call Center.
Supported Calls
describeSObjects()
Fields
Field
Details
AccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the related account, which is determined as follows:
• The account associated with the WhatId, if it exists; or
• The account associated with the WhoId, if it exists; otherwise
• null
For information on IDs, see ID Field Type.
1358
Standard Objects
OpenActivity
Field
Details
ActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Indicates one of the following:
• The due date of a task
• The date of an event if IsAllDayEvent is set to true
This field has a time stamp that is always set to midnight in the Universal Time Coordinated
(UTC) time zone. The time stamp doesn’t represent the time of the activity; don’t attempt
to alter it to accommodate time zone differences. Label is Date.
ActivitySubtype
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Provides standard subtypes to facilitate creating and searching for specific activity subtypes.
This field isn’t updateable.
ActivitySubtype values:
• Task
• Email
• Call
• Event
ActivityType
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
Represents one of the following values: Call, Meeting, or Other. Label is Type.
AlternateDetailId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of a record the activity is related to which contains more details about the activity.
For example, an activity can be related to an EmailMessage record.
1359
Standard Objects
OpenActivity
Field
Details
CallDisposition
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit
is 255 characters.
CallDurationInSeconds
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Duration of the call in seconds.
CallObject
Type
string
Properties
Filter, Group,Nillable, Sort
Description
Name of a call center. Limit is 255 characters.
CallType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of call being answered: Inbound, Internal, or Outbound.
ConnectionReceivedId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that shared this record with your
organization. This field is available only if your organization has enabled Salesforce to
Salesforce and only in API versions 28.0 and later.
ConnectionSentId
Type
reference
1360
Standard Objects
Field
OpenActivity
Details
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the PartnerNetworkConnection that your organization shared this record
with. This field is available only if your organization has enabled Salesforce to Salesforce, and
only in API versions 28.0 and later. The value is always null. You can use the
PartnerNetworkRecordConnection object to forward records to connections.
Description
Type
textarea
Properties
Nillable
Description
Contains a description of the event or task. Limit is 32 KB.
DurationInMinutes
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Indicates the duration of the event or task.
EndDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Indicates the end date and time of the event or task. Available in versions 27.0 and later. This
field is optional, depending on the following:
• If IsAllDayEvent is true, you can supply a value for either DurationInMinutes
or EndDateTime. Supplying values in both fields is allowed if the values add up to
the same amount of time. If both fields are null, the duration defaults to one day.
• If IsAllDayEvent is false, a value must be supplied for either
DurationInMinutes or EndDateTime. Supplying values in both fields is allowed
if the values add up to the same amount of time.
IsAllDayEvent
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1361
Standard Objects
Field
OpenActivity
Details
Description
If the value of this field is set to true, then the activity is an event spanning a full day, and
the ActivityDate defines the date of the event. If the value of this field is set to false,
then the activity may be an event spanning less than a full day, or it may be a task. Label is
All-Day Event.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a task is closed; value is always false). This field is set indirectly by
setting Status on the task—each picklist value has a corresponding IsClosed value.
Label is Closed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the activity has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsHighPriority
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates a high-priority task. This field is derived from the Priority field.
IsReminderSet
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether a reminder is set for an activity (true) or not (false).
IsTask
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1362
Standard Objects
Field
OpenActivity
Details
Description
If the value of this field is set to true, then the activity is a task; if the value is set to false,
then the activity is an event. Label is Task.
IsVisibleInSelfService
Type
boolean
Properties
Defaulted on create, Filter
Description
If the value of this field is set to true, then the activity can be viewed in the self-service
portal. Label is Visible in Self-Service.
Location
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If the activity is an event, then this field represents the location of the event. If the activity is
a task, then the value is null.
OwnerId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Indicates the ID of the user who owns the activity.
PrimaryAccountId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the AccountId value from the activity record. Available in API versions 30.0 and
later to organizations that use Shared Activities.
PrimaryWhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Contains the WhoId value from the activity record. Available in API versions 30.0 and later
to organizations that have enabled Shared Activities.
1363
Standard Objects
OpenActivity
Field
Details
Priority
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the priority of a task, such as high, normal, or low.
ReminderDateTime
Type
dateTime
Properties
Filter, Nillable, Sort
Description
Represents the time at which a reminder is scheduled to fire if IsReminderSet is set to
true. If IsReminderSet is set to false, then either the user has deselected the
reminder checkbox in the user interface or the reminder has already fired at the time indicated
by the value.
Status
Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Sort
Description
Indicates the current status of a task, such as in progress or complete. Each predefined status
field sets a value for IsClosed. To obtain picklist values, query TaskStatus.
Subject
Type
combobox
Properties
Filter, Nillable, Sort
Description
Contains the subject of the task or event.
WhatId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhatId represents nonhuman objects such as accounts, opportunities, campaigns,
cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is
equivalent to the ID of a related object. The label is Related To ID.
1364
Standard Objects
OpenActivity
Field
Details
WhoId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic.
Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name
ID.
If Shared Activities is enabled, the value of this field is the ID of the related lead or primary
contact. If you add, update, or remove the WhoId field, you might encounter problems with
triggers, workflows, and data validation rules that are associated with the record. The label
is Name ID.
Usage
Query activities that are related to an object
1. Optionally, issue a describe call against the object whose activities you want to query, to get a suggestion of the correct SOQL
query to use.
2. Issue a SOQL relationship query with a main clause that references the object and an inner clause that references the activity
history. For example:
SELECT
(SELECT ActivityDate, Description
FROM OpenActivities)
FROM Account
WHERE Name Like 'XYZ%'
The user interface enforces sharing rules, filtering out related-list items that a user doesn’t have permission to see.
The following constraints on users who don’t have the “View All Data” permission help prevent performance issues.
• In the main clause of the relationship query, you can reference only one record. For example, you can’t filter on all records where
the account name starts with “A.” Instead, you must reference a single account record.
SELECT
(SELECT ActivityDate, Description
FROM OpenActivities
ORDER BY ActivityDate ASC NULLS LAST, LastModifiedDate DESC
LIMIT 500)
FROM Account
WHERE Name = 'Acme'
LIMIT 1
• In the inner clause of the query, you can’t use WHERE.
• In the inner clause of the query, you must specify a limit of 500 or fewer on the number of rows that are returned in the list.
1365
Standard Objects
OperatingHours
• In the inner clause of the query, you must sort on ActivityDate in ascending order and LastModifiedDate in
descending order. You can optionally display nulls last. For example: ORDER BY ActivityDate ASC NULLS LAST,
LastModifiedDate DESC.
SEE ALSO:
Task
OperatingHours
Represents the hours in which a service territory, service resource, or account is available for field service work. This object is available in
API version 38.0 and later.
Supported Calls
create()delete()
,
describeLayout()
,
describeSObjects()
,
getDeleted()
,
getUpdated()
,
query()
,
retrieve()
,
search()
,
undelete()
,
update()
,
upsert()
,
Special Access Rules
Field Service Lightning must be enabled.
Fields
Field Name
Details
Description
Type
textarea
Properties
Create, Nillable, Update
Description
The description of the operating hours. Add any details that aren’t included in
the name.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The date when the operating hours record was last modified. Its label in the user
interface is Last Modified Date.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
1366
Standard Objects
Field Name
OperatingHoursFeed
Details
Description
The date when the operating hours record was last viewed.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the operating hours. For example, Summer Hours, Winter
Hours, or Peak Season Hours.
TimeZone
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The time zone which the operating hours fall within.
Usage
By default, only System Administrators can view, create, and assign operating hours.
Service territory members—which are service resources who can work in the territory—automatically use their service territory’s operating
hours. If a resource needs different operating hours than their territory, create separate operating hours for them from the Operating
Hours tab. Then, select the desired hours in the Operating Hours lookup field on the service territory member detail page.
To view a service resource’s operating hours for a particular territory, navigate to their Service Territories related list and click the Member
Number for the territory. This takes you to the service territory member detail page, which lists the member’s operating hours and dates
during which they belong to the territory.
OperatingHoursFeed
Represents a single feed item on an operating hours record detail page. This object is available in API version 38.0 and later.
An operating hours feed shows changes to tracked fields on an operating hours record. It also shows posts and comments about the
record. It’s a useful way to stay up to date with changes made to operating hours in Salesforce.
Supported Calls
delete(), getDeleted(), getUpdated(), query(), retrieve()
1367
Standard Objects
OperatingHoursFeed
Special Access Rules
Field Service Lightning must be enabled in your organization, and you can delete all feed items you created. To delete feed items you
didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Operating Hours object
• “Moderate Chatter”
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The message that appears in the feed. Required when Type is TextPost.
Optional when Type is ContentPost orLinkPost.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of comments associated with this feed item.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the value is
set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true indicates that the body of the feed contains rich text. false indicates
that the post is rendered as plain text.
1368
Standard Objects
OperatingHoursFeed
Field Name
Details
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of feed likes associated with this feed item.
LinkUrl
Type
url
Properties
Nillable, Sort
Description
The URL of a link post.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the operating hours record tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a content post. This field
is null for all posts, except ContentPost.
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the Link URL is the
URL, and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1369
Standard Objects
Field Name
OperatingHoursHistory
Details
Description
The type of feed item.
OperatingHoursHistory
Represents the history of changes made to tracked fields on an operating hours record. This object is available in API version 38.0 and
later.
Supported Calls
getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
Field Service Lightning must be enabled in your organization, and field tracking for operating hours fields must be configured.
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The value of the field before it was changed.
1370
Standard Objects
Opportunity
Field Name
Details
TimeSlotId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the operating hours record being tracked. The history is displayed on the
detail page for this record.
Opportunity
Represents an opportunity, which is a sale or pending deal.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field
Field Type
AccountId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the account associated with this opportunity.
Amount
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Estimated total sale amount. For opportunities with products, the amount is the sum of the
related products. Any attempt to update this field, if the record has products, will be ignored.
The update call will not be rejected, and other fields will be updated as specified, but the
Amount will be unchanged.
CampaignId
Type
reference
1371
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of a related Campaign. This field is defined only for those organizations that have the
campaign feature Campaigns enabled. The User must have read access rights to the
cross-referenced Campaign object in order to create or update that campaign into this field
on the opportunity.
CloseDate
Type
date
Properties
Create, Filter, Group, Sort, Update
Description
Required. Date when the opportunity is expected to close.
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
ContractId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contract that’s associated with this opportunity.
CurrencyIsoCode
Type
picklist
1372
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
If the organization has multicurrency and a Pricebook2 is specified on the opportunity (i.e.,
the Pricebook2Id field is not blank), then the currency value of this field must match
the currency of the PricebookEntry records that are associated with any opportunity line
items it has.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Text description of the opportunity. Limit: 32,000 characters.
ExpectedRevenue
Type
currency
Properties
Filter, Nillable, Sort
Description
Read-only field that is equal to the product of the opportunity Amount field and the
Probability. You can’t directly set this field, but you can indirectly set it by setting the
Amount or Probability fields.
Fiscal
Type
string
Properties
Filter, Group, Nillable, Sort
Description
If fiscal years are not enabled, the name of the fiscal quarter or period in which the opportunity
CloseDate falls. Value should be in YYY Q format, for example, '2006 1' for first quarter
of 2006.
FiscalQuarter
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Represents the fiscal quarter. Valid values are 1, 2, 3, or 4.
1373
Standard Objects
Opportunity
Field
Field Type
FiscalYear
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Represents the fiscal year, for example, 2006.
ForecastCategory
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Restricted picklist field. It is implied, but not directly controlled, by the StageName field.
You can override this field to a different value than is implied by the StageName value.
The values of this field are fixed enumerated values. The field labels are localized to the
language of the user performing the operation, if localized versions of those labels are
available for that language in the user interface.
In API version 12.0 and later, the value of this field is automatically set based on the value of
the ForecastCategoryName and can’t be updated any other way. The field properties
Create, Defaulted on create, Nillable, and Update are not available in version 12.0.
ForecastCategoryName
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Available in API version 12.0 and later.
The name of the forecast category. It is implied, but not directly controlled, by the
StageName field. You can override this field to a different value than is implied by the
StageName value.
HasOpenActivity
Type
boolean
Properties
Defaulted on create, Group,
Description
Indicates whether an opportunity has an open event or task (true) or not (false). Available
in API version 35.0 and later.
HasOpportunityLineItem
Type
boolean
1374
Standard Objects
Field
Opportunity
Field Type
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only field that indicates whether the opportunity has associated line items. A value of
true means that Opportunity line items have been created for the opportunity. An
opportunity can have opportunity line items only if the opportunity has a price book. The
opportunity line items must correspond to PricebookEntry objects that are listed in the
opportunity Pricebook2. However, you can insert opportunity line items on an opportunity
that does not have an associated Pricebook2. For the first opportunity line item that you
insert on an opportunity without a Pricebook2, the API automatically sets the
Pricebook2Id field, if the opportunity line item corresponds to a PricebookEntry in an
active Pricebook2 that has a CurrencyIsoCode field that matches the
CurrencyIsoCode field of the opportunity. If the Pricebook2 is not active or the
CurrencyIsoCode fields do not match, then the API returns an error. You can’t update
the Pricebook2Id or PricebookId fields if opportunity line items exist on the
Opportunity. You must delete the line items before attempting to update the
PricebookId field.
HasOverdueTask
Type
boolean
Properties
Defaulted on create, Group,
Description
Indicates whether an opportunity has an overdue task (true) or not (false). Available in
API version 35.0 and later.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Directly controlled by StageName. You can query and filter on this field, but you can’t
directly set it in a create, upsert, or update request. It can only be set via StageName. Label
is Closed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
1375
Standard Objects
Field
Opportunity
Field Type
IsExcludedFromTerritory2Filter Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Used for Filter-Based Opportunity Territory Assignment (Pilot in Spring ’15 / API version 33).
Indicates whether the opportunity is excluded (True) or included (False) each time the
APEX filter is executed.
IsSplit
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Read-only field that indicates whether credit for the opportunity is split between opportunity
team members. Label is IsSplit.This field is available in versions 14.0 and later for
organizations that enabled Opportunity Splits during the pilot period.
Warning: This field should not be used. However, it’s documented for the benefit
of pilot customers who find references to IsSplit in code.
IsWon
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Directly controlled by StageName. You can query and filter on this field, but you can’t
directly set the value. It can only be set via StageName. Label is Won.
LastActivityDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Value is one of the following, whichever is the most recent:
• Due date of the most recent event logged against the record.
• Due date of the most recently closed task associated with the record.
LastReferencedDate
Type
date
Properties
Filter, Nillable, Sort, Update
1376
Standard Objects
Field
Opportunity
Field Type
Description
The timestamp for when the current user last viewed a record related to this record.
LastViewedDate
Type
date
Properties
Filter, Nillable, Sort, Update
Description
The timestamp for when the current user last viewed this record. If this value is null, this
record might only have been referenced (LastReferencedDate) and not viewed.
LeadSource
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Source of this opportunity, such as Advertisement or Trade Show.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. A name for this opportunity. Limit: 120 characters.
NextStep
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Description of next task in closing opportunity. Limit: 255 characters.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
ID of the User who has been assigned to work this opportunity.
If you update this field, the previous owner's access becomes Read Only or the access specified
in your organization-wide default for opportunities, whichever is greater.
1377
Standard Objects
Field
Opportunity
Field Type
If you have set up opportunity teams in your organization, updating this field has different
consequences depending on your version of the API:
• For API version 12.0 and later, sharing records are kept, as they are for all objects.
• For API version before 12.0, sharing records are deleted.
• For API version 16.0 and later, users must have the “Transfer Record” permission in order
to update (transfer) account ownership using this field.
Pricebook2Id
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
ID of a related Pricebook2 object. The Pricebook2Id field indicates which Pricebook2
applies to this opportunity. The Pricebook2Id field is defined only for those organizations
that have products enabled as a feature. You can specify values for only one field
(Pricebook2Id or PricebookId)—not both fields. For this reason, both fields are
declared nillable.
PricebookId
Type
reference
Properties
Create, Defaulted on create, Filter, Nillable, Update
Description
Unavailable as of version 3.0. As of version 8.0, the Pricebook object is no longer available.
Use the Pricebook2Id field instead, specifying the ID of the Pricebook2 record.
Probability
Type
percent
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
Percentage of estimated confidence in closing the opportunity. It is implied, but not directly
controlled, by the StageName field. You can override this field to a different value than
what is implied by the StageName.
Note: If you're changing the Probability field through the API using a partner
WSDL call, or an Apex before trigger, and the value may have several decimal
places, we recommend rounding the value to a whole number. For example, the
following Apex in a before trigger uses the round method to change the field
value: o.probability = o.probability.round();
RecordTypeId
Type
reference
1378
Standard Objects
Field
Opportunity
Field Type
Properties
Create, Filter, Nillable, Update
Description
ID of the record type assigned to this object.
StageName
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
Required. Current stage of this record. The StageName field controls several other fields
on an opportunity. Each of the fields can be directly set or implied by changing the
StageName field. In addition, the StageName field is a picklist, so it has additional
members in the returned describeSObjectResult to indicate how it affects the other fields.
To obtain the stage name values in the picklist, query the OpportunityStage object. If the
StageName is updated, then the ForecastCategoryName, IsClosed, IsWon,
and Probability are automatically updated based on the stage-category mapping.
SyncedQuoteID
Type
reference
Properties
Create, Filter, Nillable, Update
Description
Read only in an Apex trigger. The ID of the Quote that syncs with the opportunity. Setting
this field lets you start and stop syncing between the opportunity and a quote. The ID has
to be for a quote that is a child of the opportunity.
Territory2Id
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the territory that is assigned to the opportunity. Available only if Enterprise Territory
Management has been enabled for your organization.
TotalOpportunityQuantity Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Number of items included in this opportunity. Used in quantity-based forecasting.
1379
Standard Objects
Opportunity
Field
Field Type
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Type of opportunity. For example, Existing Business or New Business. Label is Opportunity
Type.
Note: If you are importing Opportunity data and need to set the value for an audit field, such as CreatedDate, contact
Salesforce. Audit fields are automatically updated during API operations unless you request to set these fields yourself..
Usage
Use the Opportunity object to manage information about a sale or pending deal. You can also sync this object with a child Quote. To
update an Opportunity, your client application needs “Edit” permission on opportunities. You can create, update, delete, and query
Attachment records associated with an opportunity via the API. To split credit for an opportunity among multiple opportunity team
members, use the OpportunitySplit object.
Client applications can also create or update opportunity objects by converting a Lead with convertLead().
Note: On opportunities and opportunity products, the workflow rules, validation rules, and Apex triggers fire when an update to
a child opportunity product or schedule causes an update to the parent record. This means your custom application logic is
enforced when there are updates to the parent record, ensuring higher data quality and compliance with your organization’s
business policies.
Sample Code—Java
This code starts the sync between an object and a child quote.
public void startQuoteSync() {
Opportunity opp = new Opportunity();
opp.setId(new ID("006D000000CpOSy"));
opp.setSyncedQuoteId(new ID("0Q0D000000002OZ"));
// Invoke the update call and save the results
try {
SaveResult[] saveResults = binding.update(new SObject[] {opp});
// check results and do more processing after the update call ...
}
catch (Exception ex) {
System.out.println("An unexpected error has occurred." + ex.getMessage());
return;
}
}
This code stops the sync between an object and a child quote.
public void stopQuoteSync() {
Opportunity opp = new Opportunity();
1380
Standard Objects
OpportunityCompetitor
opp.setId(new ID("006D000000CpOSy"));
opp.setFieldsToNull(new String[] {"SyncedQuoteId"} );
// Invoke the update call and save the results
try {
SaveResult[] saveResults = binding.update(new SObject[] {opp});
// check results and do more processing after the update call ...
}
catch (Exception ex) {
System.out.println("An unexpected error has occurred." + ex.getMessage());
return;
}
}
SEE ALSO:
OpportunityCompetitor
OpportunityHistory
OpportunityLineItem
OpportunityLineItemSchedule
OpportunityFieldHistory
Quote
QuoteLineItem
PartnerNetworkConnection
OpportunityCompetitor
Represents a competitor on an Opportunity.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CompetitorName
Type
combobox
Properties
Create, Filter, Nillable, Sort, Update
Description
Name of the competitor.
1381
Standard Objects
OpportunityContactRole
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated Opportunity.
Strengths
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the competitor’s strengths. Limit: 1,000 characters.
Weaknesses
Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
Description of the competitor’s weaknesses. Limit: 1,000 characters.
Usage
Use this object to manage competitors on an Opportunity, associating multiple competitors on a opportunity and specifying the strengths
and weaknesses of each competitor.
SEE ALSO:
Opportunity
OpportunityContactRole
Represents the role that a Contact plays on an Opportunity.
1382
Standard Objects
OpportunityContactRole
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Fields
Field
Details
ContactId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of an associated Contact. The API applies user access rights to the associated Opportunity
for this object, but not to the associated Contact. The API may return rows from a query on
this object that include this field’s values for contacts to which the user does not have
sufficient access rights. It may also return values for this field for contacts that have been
deleted. In either case, the client must perform a query on the contact table for this field’s
value to determine whether the Contact is accessible to the user and has not been deleted.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the record has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the associated Contact plays the primary role on the Opportunity (true)
or not (false). Each Opportunity has only one primary contact. Label is Primary.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort,
Description
Required. ID of an associated Opportunity. This field is non-nullable, and it cannot be updated.
You must provide a value for this field when creating new records. You can’t change it after
it has been created.
1383
Standard Objects
OpportunityFeed
Field
Details
Role
Type
picklist
Properties
Create, Filter, Group, Sort, Nillable, Update
Description
Name of the role played by the associated Contact on the Opportunity, such as Business
User or Decision Maker.
Usage
Records of this object type appear in the user interface on the Opportunity detail page. Like most other objects, records of this object
type have their own unique ID that you use when updating or deleting records.
Although allowed, we do not recommend that you create multiple relationships between the same Opportunity and a Contact.
SEE ALSO:
Object Basics
OpportunityFeed
Represents a single feed item in the feed displayed on the detail page for an opportunity record. This object is available in API version
18.0 and later.
An opportunity feed shows recent changes to an opportunity record for any fields that are tracked in feeds, and posts and comments
about the record. It is a useful way to stay up-to-date with changes made to opportunities.
Supported Calls
delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
• “Modify All” on the Opportunity object
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
1384
Standard Objects
OpportunityFeed
Fields
Field
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of OpportunityFeed. Required when Type is TextPost. Optional when
Type is ContentPost or LinkPost. This field is the message that appears in the
feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated until a
comment is published. For example, say you comment on a post that already has one
published comment and your comment triggers moderation. Now there are two
comments on the post, but the count says there's only one. In a moderated feed, your
comment isn’t counted until it's approved by an admin or a person with
“CanApproveFeedPostAndComment” or “ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated feed, rather
than retrieving comments by looping through CommentCount, go through pagination
until end of comments is returned.
ConnectionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
When a PartnerNetworkConnection modifies a record that is tracked, the CreatedBy field
contains the ID of the system administrator. The ConnectionId contains the ID of the
PartnerNetworkConnection. Available if Salesforce to Salesforce is enabled for your
organization.
ContentData
Type
base64
Properties
Nillable
1385
Standard Objects
Field
OpportunityFeed
Details
Description
Available in API version 36.0 and earlier only. Required if Type is ContentPost. Encoded
file data in any format, and can’t be 0 bytes. Setting this field automatically sets Type to
ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified in
ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is ContentPost.
The name of the file uploaded to the feed. Setting ContentFileName automatically
sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded to the
feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded to the feed.
This field is read-only and is automatically determined during insert.
CreatedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
1386
Standard Objects
Field
OpportunityFeed
Details
Description
Date and time when this record was created. This field is a standard system field.
Ordering by CreatedDateDESC sorts the feed by the most recent feed item.
FeedPostId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field was removed in API version 22.0, and is available in earlier versions for backward
compatibility only.
ID of the associated FeedPost. A FeedPost represents the following types of changes in an
FeedItem: changes to tracked fields, text posts, link posts, and content posts.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application migrates
posts and comments from another application into a feed, the InsertedBy value is set
to the ID of the logged-in user.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Standard system field. Indicates whether the record has been moved to the Recycle Bin
(true) or not (false).
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText to true if
you post a rich text feed item via SOAP API. Otherwise, the post is rendered as plain text.
Rich text supports the following HTML tags:
•
1387
Standard Objects
Field
OpportunityFeed
Details
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in Salesforce
similar to this example: tag is accessible only via the API and must reference files in Salesforce
similar to this example: Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
1388
Standard Objects
Field
OpportunityFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the opportunity record that is tracked in the feed. The feed is displayed on the detail
page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
1389
Standard Objects
OpportunityFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
1390
Standard Objects
Field
OpportunityFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1391
Standard Objects
OpportunityFieldHistory
Usage
Use this object to track changes for an opportunity record.
SEE ALSO:
Opportunity
EntitySubscription
NewsFeed
UserProfileFeed
OpportunityFieldHistory
Represents the history of changes to the values in the fields of an opportunity. This object is available in versions 13.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Opportunity. Label is Opportunity ID.
1392
Standard Objects
OpportunityHistory
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to any fields on an Opportunity. The OpportunityHistory object represents the history of a change to
the Amount, Probability, Stage, or Close Date fields of an Opportunity.
This object respects field level security on the parent object.
SEE ALSO:
Opportunity
OpportunityHistory
Represents the stage history of an Opportunity.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Amount
Type
currency
Properties
Filter, Nillable, Sort
1393
Standard Objects
Field
OpportunityHistory
Details
Description
Estimated total sale amount.
CloseDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Date when the opportunity is expected to close.
ExpectedRevenue
Type
currency
Properties
Filter, Nillable, Sort
Description
Calculated revenue based on the Amount and Probability fields.
ForecastCategory
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Category that determines the column in which an opportunity is totaled in a forecast. Label
is To ForecastCategory.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the associated Opportunity.
Probability
Type
percent
1394
Standard Objects
Field
OpportunityLineItem
Details
Properties
Filter, Nillable, Sort
Description
Percentage of estimated confidence in closing the opportunity.
StageName
Type
picklist
Properties
Filter, Group, Sort
Description
Name of the current stage of the opportunity (for example, Prospect or Proposal).
Usage
This object represents the history of a change to the Amount, Probability, Stage, or Close Date fields of an Opportunity.
The OpportunityFieldHistory object represents the history of a change to any of the fields of an Opportunity. To obtain information about
how a particular opportunity is progressing, query the OpportunityHistory records associated with a given Opportunity. Please note that
if an opportunity's Amount, Probability, Stage, or Close Date fields have not changed, nothing will be returned in the
OpportunityHistory objects. In this case, query the OpportunityFieldHistory records associated with a given Opportunity to get more
information about changes to the opportunity.
This object is read-only. The system generates a new record whenever a user or client application changes the value of any of the above
fields; the then-current values of all of these major fields are saved in the newly-generated object.
This object respects field-level security on the parent object.
Note: The record is automatically deleted if its parent Opportunity is deleted.
SEE ALSO:
Opportunity
OpportunityLineItem
Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Special Access Rules
The user must have the “Edit” permissions on Opportunity records in order to create or update opportunity line items on an opportunity.
1395
Standard Objects
OpportunityLineItem
Fields
Field
Details
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
CurrencyIsoCode
Type
picklist
Properties
Defaulted on create, Filter, Restricted picklist
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
If the organization has multicurrency enabled, and a Pricebook2 is specified on the parent
opportunity (that is, the Pricebook2Id field is not blank on the opportunity referenced
by this object’s OpportunityId), then the value of this field must match the currency
of the CurrencyIsoCode field on the PricebookEntry records that are associated with
this object.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the opportunity line item. Limit: 80 characters.
1396
Standard Objects
OpportunityLineItem
Field
Details
Discount
Type
percent
Properties
Filter, Nillable, Sort
Description
Discount for the product as a percentage.
When updating these records:
• If you specify Discount without specifying TotalPrice, the TotalPrice is
adjusted to accommodate the new Discount value, and the UnitPrice is held
constant.
• If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system knows which one to automatically
adjust.
HasQuantitySchedule
Type
boolean
Properties
Defaulted on create, Filter, Group
Description
Read-only. Indicates whether a quantity schedule has been created for this object (true)
or not (false).
HasRevenueSchedule
Type
boolean
Properties
Defaulted on create, Filter, Sort
Description
Indicates whether a revenue schedule has been created for this object (true) or not
(false).
If this object has a revenue schedule, the Quantity and TotalPrice fields can’t be
updated. In addition, the Quantity field can’t be updated if this object has a quantity
schedule. Update requests aren’t rejected but the updated values are ignored.
HasSchedule
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If either HasQuantitySchedule or HasRevenueSchedule is true, this field
is also true.
1397
Standard Objects
OpportunityLineItem
Field
Details
ListPrice
Type
currency
Properties
Filter, Nillable, Sort
Description
Corresponds to the UnitPrice on the PricebookEntry that is associated with this line
item, which can be in the standard pricebook or a custom pricebook. A client application
can use this information to show whether the unit price (or sales price) of the line item differs
from the pricebook entry list price.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The opportunity line item name (known as “Opportunity Product” in the user interface). This
read-only field is available in API version 30.0 and later.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated Opportunity.
PricebookEntryId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the associated PricebookEntry. Exists only for those organizations that have
Products enabled as a feature. You can specify values for either this field or ProductId,
but not both. For this reason, both fields are declared nillable.
ProductId
Type
reference
Properties
Create, Filter, Nillable
Description
ID of the related Product record. This field is unavailable as of version 3.0 and is only provided
for backward compatibility. The Product object is unavailable beginning with version 8.0.
1398
Standard Objects
Field
OpportunityLineItem
Details
Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry
record.
Product2Id
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the related Product2 record. This is a read-only field available in API version 30.0
and later.
Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry
record.
ProductCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
This read-only field is available in API version 30.0 and later. It references the value in the
ProductCode field of the related Product2 record.
Quantity
Type
double
Properties
Create, Filter, Sort, Update
Description
Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and
a revenue schedule.
When updating these records:
• If you specify Quantity without specifying the UnitPrice, the UnitPrice
value will be adjusted to accommodate the new Quantity value, and the
TotalPrice will be held constant.
• If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system can determine which one to
automatically adjust.
RecalculateTotalPrice
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1399
Standard Objects
Field
OpportunityLineItem
Details
Description
Changes behavior of OpportunityLineItem calculations when a line item has child schedule
rows for the Quantity value. When enabled, if the rollup quantity changes, then the
quantity rollup value is multiplied against the sales price to change the total price. Product2
flag must be set to true.
ServiceDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when the product revenue will be recognized and the product quantity will be shipped.
Whether this value is used by customizable forecasting depends upon the Forecast Date
setting for the organization:
• Opportunity Close Date—ServiceDate is ignored.
• Product Date—ServiceDate is used if not null.
• Schedule Date—ServiceDate is used if not null and there are no revenue
schedules present for this line item, that is, there are no OpportunityLineItemSchedule
records with a field Type value of Revenue that are children of this record.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number indicating the sort order selected by the user. Client applications can use this to
match the sort order in Salesforce.
Subtotal
Type
currency
Properties
Filter, Nillable
Description
Difference between standard and discounted pricing. Converted currency amounts when
the opportunity's currency is different from the user's currency.
TotalPrice
Type
currency
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
1400
Standard Objects
Field
OpportunityLineItem
Details
Description
This field is available only for backward compatibility. It represents the total price of the
OpportunityLineItem.
If you do not specify UnitPrice, this field is required. If you specify Discount and
Quantity, this field or UnitPrice is required. When updating these records, you can
change either this value or the UnitPrice, but not both at the same time.
This field is nillable, but you can’t set both TotalPrice and UnitPrice to null in the
same update request. To insert the TotalPrice via the API (given only a unit price and
the quantity), calculate this field as the unit price multiplied by the quantity. This field is
read-only if the opportunity line item has a revenue schedule. If the opportunity line item
does not have a schedule or only has quantity schedule, this field can be updated.
UnitPrice
Type
currency
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The unit price for the opportunity line item. In the Salesforce user interface, this field’s value
is calculated by dividing the total price of the opportunity line item by the quantity listed for
that line item. Label is Sales Price.
This field or TotalPrice is required. You can’t specify both.
If you specify Discount and Quantity, this field or TotalPrice is required.
Usage
An Opportunity can have associated OpportunityLineItem records only if the Opportunity has a Pricebook2. An OpportunityLineItem
must correspond to a Product2 that is listed in the opportunity's Pricebook2. For information about inserting OpportunityLineItem for
an opportunity that does not have an associated Pricebook2 or any existing line items, see Effects on Opportunities.
This object is defined only for those organizations that have products enabled as a feature. If the organization does not have the products
feature, this object does note appear in the describeGlobal() call, and you can’t use describeSObjects() or query the
OpportunityLineItem object.
For a visual diagram of the relationships between OpportunityLineItem and other objects, see Product and Schedule Objects.
Note: If multicurrency option has been enabled, the CurrencyIsoCode field is present. It can’t be modified, and is always
set to the value of the CurrencyIsoCode of the parent Opportunity.
Effects on Opportunities
Opportunities that have associated OpportunityLineItem records are affected in the following ways:
• Creating an OpportunityLineItem increments the Opportunity Amount value by the TotalPrice of the OpportunityLineItem.
Additionally, inserting an OpportunityLineItem increments the ExpectedRevenue on the opportunity by the TotalPrice
times the opportunity Probability.
1401
Standard Objects
OpportunityLineItemSchedule
• The Opportunity Amount becomes a read-only field when the opportunity has line items. The API ignores any attempt to update
this field on an opportunity with line items. Update requests are not rejected, but the updated value is ignored.
• You can’t update the PricebookId field or the CurrencyIsoCode field on the opportunity if line items exist. The API rejects
any attempt to update these fields on an opportunity with line items.
• When you create or update an OpportunityLineItem, the API verifies that the line item corresponds to a PricebookEntry in the
Pricebook2 that is associated with the opportunity. If the opportunity does not have an associated Pricebook2, the API automatically
sets the pricebook on the opportunity if the line item corresponds to a PricebookEntry in an active Pricebook2, and if the PricebookEntry
has a CurrencyIsoCode field that matches the CurrencyIsoCode field of the opportunity. If the Pricebook2 is not active
or the CurrencyIsoCode fields do not match, an error is returned.
• The Opportunity HasOpportunityLineItem field is set to true when an OpportunityLineItem is inserted for that Opportunity.
SEE ALSO:
OpportunityLineItemSchedule
OpportunityLineItemSchedule
Represents information about the quantity, revenue distribution, and delivery dates for a particular OpportunityLineItem.
In API version 38.0 and later, when an OpportunityLineItem record is created for a product with a previously established schedule, an
OpportunityLineItemSchedule record is also created.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled.
Contains the ISO code for any currency allowed by the organization. This field
is available in version 10.0 and later.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
1402
Standard Objects
Field
OpportunityLineItemSchedule
Details
Description
Text description of the opportunity line item schedule. Limit: 80 characters.
Label is Comments.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or
not (false). Label is Deleted.
OpportunityLineItemId
Type
reference
Properties
Create, Filter
Description
Required. ID of the associated OpportunityLineItem.
Quantity
Type
double
Properties
Create, Filter, Nillable, Update
Description
Required. The total number of units to be scheduled in a quantity schedule.
Revenue
Type
currency
Properties
Create, Filter, Nillable, Update
Description
The revenue that should be recognized, or the quantity that should be
shipped, or both - depending upon the value of Type.
ScheduleDate
Type
date
Properties
Create, Filter, Update
Description
Required. The date the associated OpportunityLineItem is to be scheduled
for an event: delivery, shipping, or any other date you wish to track.
1403
Standard Objects
OpportunityLineItemSchedule
Field
Details
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
The type of the schedule. Required when inserting an
OpportunityLineItemSchedule. Valid values include Quantity, Revenue,
or Both.
Allowed Type Field Values
The allowed Type values for an OpportunityLineItemSchedule depend on the product-level schedule preferences and whether the
line item has any existing schedules. The following criteria must be met:
• The Product2 on which the OpportunityLineItem is based must have the appropriate CanUseRevenueSchedule or
CanUseQuantitySchedule fields (or both) set to true.
• When you create a schedule for a line item that does not have any existing schedules, you can specify any valid value.
• If you create a schedule for a line item that already has existing schedules, the new schedule must be consistent with the existing
schedules. The following matrix outlines the allowable values:
Value of HasRevenueSchedule Value of HasQuantitySchedule Allowable Type Values
on line item
on line item
false
false
Revenue, Quantity, both
false
true
Quantity
true
false
Revenue
true
true
both
Allowed Quantity and Revenue Field Values
The allowable Quantity and Revenue field values depend on the value of the Type field:
Type Value
Allowable Quantity Value
Allowable Revenue Value
Revenue
Null
Non-null
Quantity
Non-null
Null
both
Non-null
Non-null
The Quantity and Revenue fields have the following restrictions when this object is updated:
• For a schedule of Type Quantity, you can’t update a null Revenue value to non-null. Likewise for a schedule of Type
Revenue, you can’t update a null Quantity value to non-null.
1404
Standard Objects
OpportunityLineItemSchedule
• You can’t null out the Quantity field for a schedule of Type Quantity. Likewise you can’t null out the Revenue field for
a schedule of Type Revenue.
• You can’t null out either the Revenue or Quantity fields for a schedule of type Both.
Usage
OpportunityLineItemSchedule supports two types of schedules:
•
Quantity schedules
•
Revenue schedules
The user must have edit access rights on the Opportunity in order to create or update line item schedules on that opportunity.
Products and Schedules Must Be Enabled
The OpportunityLineItemSchedule object is defined only for those organizations that have the products and schedules features enabled.
If the organization does not have the products and schedules features, the OpportunityLineItemSchedule object is not returned in a
describe, and you can't describe or query OpportunityLineItemSchedule records.
Effects on Opportunities and Opportunity Line Items
OpportunityLineItemSchedule records affect opportunities and opportunity line items in the following ways:
• Inserting an OpportunityLineItemSchedule of Type “Revenue” or “Quantity” increments the TotalPrice field on the
OpportunityLineItem by the OpportunityLineItemSchedule Revenue amount. Inserting an OpportunityLineItemSchedule of Type
Quantity or Both increments the Quantity field on the OpportunityLineItem by the OpportunityLineItemSchedule
Quantity amount.
• Creating an OpportunityLineItemSchedule record affects the original opportunity:
1. The Opportunity Amount is incremented the by OpportunityLineItemSchedule revenue amount
2. The Opportunity ExpectedRevenue is incremented by the line item schedule amount multiplied by the Opportunity
Probability
• Deleting an OpportunityLineItemSchedule has a similar effect on the related OpportunityLineItem and Opportunity. Deleting an
OpportunityLineItemSchedule decrements the OpportunityLineItem TotalPrice by the deleted OpportunityLineItemSchedule
Quantity or Revenue amount. The Opportunity Amount is also decremented by the OpportunityLineItemSchedule
Quantity or Revenue amount, and the Opportunity ExpectedRevenue is reduced by OpportunityLineItemSchedule
Quantity or Revenue amount multiplied by the Opportunity Probability.
Deleting an Opportunity Line Item Schedule
Deleting the last remaining schedule will set the corresponding HasQuantitySchedule or HasRevenueSchedule flags (or
both) to false on the parent line item.
SEE ALSO:
OpportunityLineItem
Product2
delete()
1405
Standard Objects
OpportunityOverride
OpportunityOverride
Represents a forecast override of an Opportunity. This read-only object is specific to customizable forecasting. It has a parent-child
relationship with LineitemOverride.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
Requires the “View All Data” permission.
Fields
Field
Details
AmountInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden amount rolls up through the forecast hierarchy
(true), or was overridden by the owner of the OpportunityOverride (false).
ForecastCategoryInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden forecast category rolls up through the forecast
hierarchy (true) or was overridden by the owner of the OpportunityOverride
(false).
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
OpportunityId
Type
reference
1406
Standard Objects
Field
OpportunityOverride
Details
Properties
Create, Filter, Group, Sort
Description
ID of the associated Opportunity.
OutOfDate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if a subordinate user's OpportunityOverride, or the opportunity itself, has
been updated since this override was last updated, such that an overridden value
on this override may be obsolete. For example, a subordinate user has more
recently overridden the same period, category, or amount field.
OverrideAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The total monetary amount of the opportunity, possibly overridden.
OverrideComment
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The comment entered on the opportunity forecast edit page. Limit: 255
characters.
OverrideForecastCategory
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The forecast category of the opportunity, possibly overridden.
OverridePeriodId
Type
reference
Properties
Create, Filter, Group, Sort, Update
1407
Standard Objects
Field
OpportunityOverride
Details
Description
ID of the associated fiscal Period, possibly overridden. If you are using custom
fiscal years and the period falls after your custom fiscal year has ended, then the
override is not returned.
OverrideQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity of the opportunity, possibly overridden.
OwnerId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the OpportunityOverride owner.
PeriodInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden period rolls up through the forecast hierarchy
(true) or was overridden by the OpportunityOverride owner (false).
QuantityInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden quantity rolls up through the forecast hierarchy
(true) or was overridden by the OpportunityOverride owner (false).
Important: You can’t use the Note: In API version 35.0 and later, the system replaces special characters in rich text
with escaped HTML. In API version 34.0 and prior, all rich text appears as a plain-text
representation.
LastModifiedDate
Type
dateTime
Properties
Defaulted on create, Filter, Sort
Description
Date and time when a user last modified this record. This field is a standard system field.
When a feed item is created, LastModifiedDate is the same as CreatedDate. If
a FeedComment is inserted on that feed item, then LastModifiedDate becomes the
CreatedDate for that FeedComment. Deleting the FeedComment does not change the
LastModifiedDate.
Ordering by LastModifiedDate DESC sorts the feed by both the most recent feed
item or comment.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
1388
Standard Objects
Field
OpportunityFeed
Details
Properties
Nillable, Sort
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific community,
or all communities. This field is available in API version 26.0 and later, if Salesforce Communities
is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available. If left empty,
the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a null value for
NetworkScope.
• For feed items with a record parent, users can set NetworkScope only to
AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the opportunity record that is tracked in the feed. The feed is displayed on the detail
page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is null for all
posts except ContentPost.
1389
Standard Objects
OpportunityFeed
Field
Details
Title
Type
string
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is the URL and
this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of feed item:
• ActivityEvent—indirectly generated event when a user or the API adds a Task
associated with a feed-enabled parent record (excluding email tasks on cases). Also
occurs when a user or the API adds or updates a Task or Event associated with a case
record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the series only.
For a recurring Task with CaseFeed enabled, events are generated for the series and each
occurrence.
• AdvancedTextPost—created when a user posts a group announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from the publisher.
• DashboardComponentAlert—generated when a dashboard metric or gauge
exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a dashboard
snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
• RypplePost—generated when a user creates a Thanks badge in Work.com.
1390
Standard Objects
Field
OpportunityFeed
Details
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post. Deprecated.
The following values appear in the Type picklist for all feed objects but apply only to
CaseFeed:
• CaseCommentPost—generated event when a user adds a case comment for a case
object
• EmailMessageEvent—generated event when an email related to a case object is
sent or received
• CallLogPost—generated event when a user logs a call for a case through the user
interface. CTI calls also generate this event.
• ChangeStatusPost—generated event when a user changes the status of a case
• AttachArticleEvent—generated event when a user attaches an article to a case
Note: If you set Type to ContentPost, also specify ContentData and
ContentFileName.
Visibility
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available to all users or internal users only. This field is
available in API version 26.0 and later, if Salesforce Communities is enabled for your
organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission to see the
feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
• For record posts, Visibility is set to InternalUsers for all internal users by
default.
• External users can set Visibility only to AllUsers.
• On user and group posts, only internal users can set Visibility to
InternalUsers.
1391
Standard Objects
OpportunityFieldHistory
Usage
Use this object to track changes for an opportunity record.
SEE ALSO:
Opportunity
EntitySubscription
NewsFeed
UserProfileFeed
OpportunityFieldHistory
Represents the history of changes to the values in the fields of an opportunity. This object is available in versions 13.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The name of the field that was changed.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Opportunity. Label is Opportunity ID.
1392
Standard Objects
OpportunityHistory
Field
Details
NewValue
Type
anyType
Properties
Nillable, Sort
Description
The new value of the field that was changed.
OldValue
Type
anyType
Properties
Nillable, Sort
Description
The latest value of the field before it was changed.
Usage
Use this object to identify changes to any fields on an Opportunity. The OpportunityHistory object represents the history of a change to
the Amount, Probability, Stage, or Close Date fields of an Opportunity.
This object respects field level security on the parent object.
SEE ALSO:
Opportunity
OpportunityHistory
Represents the stage history of an Opportunity.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Fields
Field
Details
Amount
Type
currency
Properties
Filter, Nillable, Sort
1393
Standard Objects
Field
OpportunityHistory
Details
Description
Estimated total sale amount.
CloseDate
Type
date
Properties
Filter, Group, Nillable, Sort
Description
Date when the opportunity is expected to close.
ExpectedRevenue
Type
currency
Properties
Filter, Nillable, Sort
Description
Calculated revenue based on the Amount and Probability fields.
ForecastCategory
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Category that determines the column in which an opportunity is totaled in a forecast. Label
is To ForecastCategory.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the associated Opportunity.
Probability
Type
percent
1394
Standard Objects
Field
OpportunityLineItem
Details
Properties
Filter, Nillable, Sort
Description
Percentage of estimated confidence in closing the opportunity.
StageName
Type
picklist
Properties
Filter, Group, Sort
Description
Name of the current stage of the opportunity (for example, Prospect or Proposal).
Usage
This object represents the history of a change to the Amount, Probability, Stage, or Close Date fields of an Opportunity.
The OpportunityFieldHistory object represents the history of a change to any of the fields of an Opportunity. To obtain information about
how a particular opportunity is progressing, query the OpportunityHistory records associated with a given Opportunity. Please note that
if an opportunity's Amount, Probability, Stage, or Close Date fields have not changed, nothing will be returned in the
OpportunityHistory objects. In this case, query the OpportunityFieldHistory records associated with a given Opportunity to get more
information about changes to the opportunity.
This object is read-only. The system generates a new record whenever a user or client application changes the value of any of the above
fields; the then-current values of all of these major fields are saved in the newly-generated object.
This object respects field-level security on the parent object.
Note: The record is automatically deleted if its parent Opportunity is deleted.
SEE ALSO:
Opportunity
OpportunityLineItem
Represents an opportunity line item, which is a member of the list of Product2 products associated with an Opportunity.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Special Access Rules
The user must have the “Edit” permissions on Opportunity records in order to create or update opportunity line items on an opportunity.
1395
Standard Objects
OpportunityLineItem
Fields
Field
Details
ConnectionReceivedId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that shared this record with your organization. This
field is only available if you have enabled Salesforce to Salesforce.
ConnectionSentId
Type
reference
Properties
Filter, Nillable
Description
ID of the PartnerNetworkConnection that you shared this record with. This field is only
available if you have enabled Salesforce to Salesforce. Beginning with API version 15.0, the
ConnectionSentId field is no longer supported. The ConnectionSentId field
is still visible, but the value is null. You can use the new PartnerNetworkRecordConnection
object to forward records to connections.
CurrencyIsoCode
Type
picklist
Properties
Defaulted on create, Filter, Restricted picklist
Description
Available only for organizations with the multicurrency feature enabled. Contains the ISO
code for any currency allowed by the organization.
If the organization has multicurrency enabled, and a Pricebook2 is specified on the parent
opportunity (that is, the Pricebook2Id field is not blank on the opportunity referenced
by this object’s OpportunityId), then the value of this field must match the currency
of the CurrencyIsoCode field on the PricebookEntry records that are associated with
this object.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of the opportunity line item. Limit: 80 characters.
1396
Standard Objects
OpportunityLineItem
Field
Details
Discount
Type
percent
Properties
Filter, Nillable, Sort
Description
Discount for the product as a percentage.
When updating these records:
• If you specify Discount without specifying TotalPrice, the TotalPrice is
adjusted to accommodate the new Discount value, and the UnitPrice is held
constant.
• If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system knows which one to automatically
adjust.
HasQuantitySchedule
Type
boolean
Properties
Defaulted on create, Filter, Group
Description
Read-only. Indicates whether a quantity schedule has been created for this object (true)
or not (false).
HasRevenueSchedule
Type
boolean
Properties
Defaulted on create, Filter, Sort
Description
Indicates whether a revenue schedule has been created for this object (true) or not
(false).
If this object has a revenue schedule, the Quantity and TotalPrice fields can’t be
updated. In addition, the Quantity field can’t be updated if this object has a quantity
schedule. Update requests aren’t rejected but the updated values are ignored.
HasSchedule
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
If either HasQuantitySchedule or HasRevenueSchedule is true, this field
is also true.
1397
Standard Objects
OpportunityLineItem
Field
Details
ListPrice
Type
currency
Properties
Filter, Nillable, Sort
Description
Corresponds to the UnitPrice on the PricebookEntry that is associated with this line
item, which can be in the standard pricebook or a custom pricebook. A client application
can use this information to show whether the unit price (or sales price) of the line item differs
from the pricebook entry list price.
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The opportunity line item name (known as “Opportunity Product” in the user interface). This
read-only field is available in API version 30.0 and later.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated Opportunity.
PricebookEntryId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required. ID of the associated PricebookEntry. Exists only for those organizations that have
Products enabled as a feature. You can specify values for either this field or ProductId,
but not both. For this reason, both fields are declared nillable.
ProductId
Type
reference
Properties
Create, Filter, Nillable
Description
ID of the related Product record. This field is unavailable as of version 3.0 and is only provided
for backward compatibility. The Product object is unavailable beginning with version 8.0.
1398
Standard Objects
Field
OpportunityLineItem
Details
Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry
record.
Product2Id
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the related Product2 record. This is a read-only field available in API version 30.0
and later.
Use the PricebookEntryId field instead, specifying the ID of the PricebookEntry
record.
ProductCode
Type
string
Properties
Filter, Group, Nillable, Sort
Description
This read-only field is available in API version 30.0 and later. It references the value in the
ProductCode field of the related Product2 record.
Quantity
Type
double
Properties
Create, Filter, Sort, Update
Description
Read-only if this record has a quantity schedule, a revenue schedule, or both a quantity and
a revenue schedule.
When updating these records:
• If you specify Quantity without specifying the UnitPrice, the UnitPrice
value will be adjusted to accommodate the new Quantity value, and the
TotalPrice will be held constant.
• If you specify both Discount and Quantity, you must also specify either
TotalPrice or UnitPrice so the system can determine which one to
automatically adjust.
RecalculateTotalPrice
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1399
Standard Objects
Field
OpportunityLineItem
Details
Description
Changes behavior of OpportunityLineItem calculations when a line item has child schedule
rows for the Quantity value. When enabled, if the rollup quantity changes, then the
quantity rollup value is multiplied against the sales price to change the total price. Product2
flag must be set to true.
ServiceDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date when the product revenue will be recognized and the product quantity will be shipped.
Whether this value is used by customizable forecasting depends upon the Forecast Date
setting for the organization:
• Opportunity Close Date—ServiceDate is ignored.
• Product Date—ServiceDate is used if not null.
• Schedule Date—ServiceDate is used if not null and there are no revenue
schedules present for this line item, that is, there are no OpportunityLineItemSchedule
records with a field Type value of Revenue that are children of this record.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number indicating the sort order selected by the user. Client applications can use this to
match the sort order in Salesforce.
Subtotal
Type
currency
Properties
Filter, Nillable
Description
Difference between standard and discounted pricing. Converted currency amounts when
the opportunity's currency is different from the user's currency.
TotalPrice
Type
currency
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
1400
Standard Objects
Field
OpportunityLineItem
Details
Description
This field is available only for backward compatibility. It represents the total price of the
OpportunityLineItem.
If you do not specify UnitPrice, this field is required. If you specify Discount and
Quantity, this field or UnitPrice is required. When updating these records, you can
change either this value or the UnitPrice, but not both at the same time.
This field is nillable, but you can’t set both TotalPrice and UnitPrice to null in the
same update request. To insert the TotalPrice via the API (given only a unit price and
the quantity), calculate this field as the unit price multiplied by the quantity. This field is
read-only if the opportunity line item has a revenue schedule. If the opportunity line item
does not have a schedule or only has quantity schedule, this field can be updated.
UnitPrice
Type
currency
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The unit price for the opportunity line item. In the Salesforce user interface, this field’s value
is calculated by dividing the total price of the opportunity line item by the quantity listed for
that line item. Label is Sales Price.
This field or TotalPrice is required. You can’t specify both.
If you specify Discount and Quantity, this field or TotalPrice is required.
Usage
An Opportunity can have associated OpportunityLineItem records only if the Opportunity has a Pricebook2. An OpportunityLineItem
must correspond to a Product2 that is listed in the opportunity's Pricebook2. For information about inserting OpportunityLineItem for
an opportunity that does not have an associated Pricebook2 or any existing line items, see Effects on Opportunities.
This object is defined only for those organizations that have products enabled as a feature. If the organization does not have the products
feature, this object does note appear in the describeGlobal() call, and you can’t use describeSObjects() or query the
OpportunityLineItem object.
For a visual diagram of the relationships between OpportunityLineItem and other objects, see Product and Schedule Objects.
Note: If multicurrency option has been enabled, the CurrencyIsoCode field is present. It can’t be modified, and is always
set to the value of the CurrencyIsoCode of the parent Opportunity.
Effects on Opportunities
Opportunities that have associated OpportunityLineItem records are affected in the following ways:
• Creating an OpportunityLineItem increments the Opportunity Amount value by the TotalPrice of the OpportunityLineItem.
Additionally, inserting an OpportunityLineItem increments the ExpectedRevenue on the opportunity by the TotalPrice
times the opportunity Probability.
1401
Standard Objects
OpportunityLineItemSchedule
• The Opportunity Amount becomes a read-only field when the opportunity has line items. The API ignores any attempt to update
this field on an opportunity with line items. Update requests are not rejected, but the updated value is ignored.
• You can’t update the PricebookId field or the CurrencyIsoCode field on the opportunity if line items exist. The API rejects
any attempt to update these fields on an opportunity with line items.
• When you create or update an OpportunityLineItem, the API verifies that the line item corresponds to a PricebookEntry in the
Pricebook2 that is associated with the opportunity. If the opportunity does not have an associated Pricebook2, the API automatically
sets the pricebook on the opportunity if the line item corresponds to a PricebookEntry in an active Pricebook2, and if the PricebookEntry
has a CurrencyIsoCode field that matches the CurrencyIsoCode field of the opportunity. If the Pricebook2 is not active
or the CurrencyIsoCode fields do not match, an error is returned.
• The Opportunity HasOpportunityLineItem field is set to true when an OpportunityLineItem is inserted for that Opportunity.
SEE ALSO:
OpportunityLineItemSchedule
OpportunityLineItemSchedule
Represents information about the quantity, revenue distribution, and delivery dates for a particular OpportunityLineItem.
In API version 38.0 and later, when an OpportunityLineItem record is created for a product with a previously established schedule, an
OpportunityLineItemSchedule record is also created.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
CurrencyIsoCode
Type
picklist
Properties
Create, Defaulted on create, Filter, Nillable, Restricted picklist, Update
Description
Available only for organizations with the multicurrency feature enabled.
Contains the ISO code for any currency allowed by the organization. This field
is available in version 10.0 and later.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
1402
Standard Objects
Field
OpportunityLineItemSchedule
Details
Description
Text description of the opportunity line item schedule. Limit: 80 characters.
Label is Comments.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or
not (false). Label is Deleted.
OpportunityLineItemId
Type
reference
Properties
Create, Filter
Description
Required. ID of the associated OpportunityLineItem.
Quantity
Type
double
Properties
Create, Filter, Nillable, Update
Description
Required. The total number of units to be scheduled in a quantity schedule.
Revenue
Type
currency
Properties
Create, Filter, Nillable, Update
Description
The revenue that should be recognized, or the quantity that should be
shipped, or both - depending upon the value of Type.
ScheduleDate
Type
date
Properties
Create, Filter, Update
Description
Required. The date the associated OpportunityLineItem is to be scheduled
for an event: delivery, shipping, or any other date you wish to track.
1403
Standard Objects
OpportunityLineItemSchedule
Field
Details
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
The type of the schedule. Required when inserting an
OpportunityLineItemSchedule. Valid values include Quantity, Revenue,
or Both.
Allowed Type Field Values
The allowed Type values for an OpportunityLineItemSchedule depend on the product-level schedule preferences and whether the
line item has any existing schedules. The following criteria must be met:
• The Product2 on which the OpportunityLineItem is based must have the appropriate CanUseRevenueSchedule or
CanUseQuantitySchedule fields (or both) set to true.
• When you create a schedule for a line item that does not have any existing schedules, you can specify any valid value.
• If you create a schedule for a line item that already has existing schedules, the new schedule must be consistent with the existing
schedules. The following matrix outlines the allowable values:
Value of HasRevenueSchedule Value of HasQuantitySchedule Allowable Type Values
on line item
on line item
false
false
Revenue, Quantity, both
false
true
Quantity
true
false
Revenue
true
true
both
Allowed Quantity and Revenue Field Values
The allowable Quantity and Revenue field values depend on the value of the Type field:
Type Value
Allowable Quantity Value
Allowable Revenue Value
Revenue
Null
Non-null
Quantity
Non-null
Null
both
Non-null
Non-null
The Quantity and Revenue fields have the following restrictions when this object is updated:
• For a schedule of Type Quantity, you can’t update a null Revenue value to non-null. Likewise for a schedule of Type
Revenue, you can’t update a null Quantity value to non-null.
1404
Standard Objects
OpportunityLineItemSchedule
• You can’t null out the Quantity field for a schedule of Type Quantity. Likewise you can’t null out the Revenue field for
a schedule of Type Revenue.
• You can’t null out either the Revenue or Quantity fields for a schedule of type Both.
Usage
OpportunityLineItemSchedule supports two types of schedules:
•
Quantity schedules
•
Revenue schedules
The user must have edit access rights on the Opportunity in order to create or update line item schedules on that opportunity.
Products and Schedules Must Be Enabled
The OpportunityLineItemSchedule object is defined only for those organizations that have the products and schedules features enabled.
If the organization does not have the products and schedules features, the OpportunityLineItemSchedule object is not returned in a
describe, and you can't describe or query OpportunityLineItemSchedule records.
Effects on Opportunities and Opportunity Line Items
OpportunityLineItemSchedule records affect opportunities and opportunity line items in the following ways:
• Inserting an OpportunityLineItemSchedule of Type “Revenue” or “Quantity” increments the TotalPrice field on the
OpportunityLineItem by the OpportunityLineItemSchedule Revenue amount. Inserting an OpportunityLineItemSchedule of Type
Quantity or Both increments the Quantity field on the OpportunityLineItem by the OpportunityLineItemSchedule
Quantity amount.
• Creating an OpportunityLineItemSchedule record affects the original opportunity:
1. The Opportunity Amount is incremented the by OpportunityLineItemSchedule revenue amount
2. The Opportunity ExpectedRevenue is incremented by the line item schedule amount multiplied by the Opportunity
Probability
• Deleting an OpportunityLineItemSchedule has a similar effect on the related OpportunityLineItem and Opportunity. Deleting an
OpportunityLineItemSchedule decrements the OpportunityLineItem TotalPrice by the deleted OpportunityLineItemSchedule
Quantity or Revenue amount. The Opportunity Amount is also decremented by the OpportunityLineItemSchedule
Quantity or Revenue amount, and the Opportunity ExpectedRevenue is reduced by OpportunityLineItemSchedule
Quantity or Revenue amount multiplied by the Opportunity Probability.
Deleting an Opportunity Line Item Schedule
Deleting the last remaining schedule will set the corresponding HasQuantitySchedule or HasRevenueSchedule flags (or
both) to false on the parent line item.
SEE ALSO:
OpportunityLineItem
Product2
delete()
1405
Standard Objects
OpportunityOverride
OpportunityOverride
Represents a forecast override of an Opportunity. This read-only object is specific to customizable forecasting. It has a parent-child
relationship with LineitemOverride.
Supported Calls
create(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Special Access Rules
Requires the “View All Data” permission.
Fields
Field
Details
AmountInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden amount rolls up through the forecast hierarchy
(true), or was overridden by the owner of the OpportunityOverride (false).
ForecastCategoryInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden forecast category rolls up through the forecast
hierarchy (true) or was overridden by the owner of the OpportunityOverride
(false).
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
OpportunityId
Type
reference
1406
Standard Objects
Field
OpportunityOverride
Details
Properties
Create, Filter, Group, Sort
Description
ID of the associated Opportunity.
OutOfDate
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
true if a subordinate user's OpportunityOverride, or the opportunity itself, has
been updated since this override was last updated, such that an overridden value
on this override may be obsolete. For example, a subordinate user has more
recently overridden the same period, category, or amount field.
OverrideAmount
Type
currency
Properties
Create, Filter, Sort, Update
Description
The total monetary amount of the opportunity, possibly overridden.
OverrideComment
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The comment entered on the opportunity forecast edit page. Limit: 255
characters.
OverrideForecastCategory
Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The forecast category of the opportunity, possibly overridden.
OverridePeriodId
Type
reference
Properties
Create, Filter, Group, Sort, Update
1407
Standard Objects
Field
OpportunityOverride
Details
Description
ID of the associated fiscal Period, possibly overridden. If you are using custom
fiscal years and the period falls after your custom fiscal year has ended, then the
override is not returned.
OverrideQuantity
Type
double
Properties
Create, Filter, Sort, Update
Description
The quantity of the opportunity, possibly overridden.
OwnerId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the OpportunityOverride owner.
PeriodInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden period rolls up through the forecast hierarchy
(true) or was overridden by the OpportunityOverride owner (false).
QuantityInherited
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the overridden quantity rolls up through the forecast hierarchy
(true) or was overridden by the OpportunityOverride owner (false).
Important: You can’t use the component to add related lists such as OpportunityForecast to
Visualforce pages because the RelationshipNamefield of OpportunityOverride is not exposed in the API. Use the
 component instead.
SEE ALSO:
LineitemOverride
1408
Standard Objects
OpportunityOwnerSharingRule
OpportunityOwnerSharingRule
Represents a rule for sharing an opportunity with users other than the owner.
Note: To programmatically update owner sharing rules, we recommend that you use Metadata API. Contact Salesforce customer
support to enable access to this object for your org.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(),
upsert()
Fields
Field
Details
Description
Type
textarea
Properties
Create, Filter, Nillable, Sort, Update
Description
A description of the sharing rule. Maximum size is 1000 characters. This field is available
in API version 29.0 and later.
DeveloperName
Type
string
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters, and must be unique in your org. It must begin with a
letter, not include spaces, not end with an underscore, and not contain two
consecutive underscores. In managed packages, this field prevents naming conflicts
on package installations. With this field, a developer can change the object’s name
in a managed package and the changes are reflected in a subscriber’s organization.
Corresponds to Rule Name in the user interface.
This field is available in API version 24.0 and later.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
GroupId
Type
reference
1409
Standard Objects
Field
OpportunityOwnerSharingRule
Details
Properties
Create, Filter, Group, Sort
Description
The ID representing the source group. Opportunities owned by users in the source
group trigger the rule to give access.
Name
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Label of the sharing rule as it appears in the user interface. Limited to 80 characters.
Corresponds to Label on the user interface.
OpportunityAccessLevel
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
A value that represents the type of sharing being allowed. The possible values are:
• Read
• Edit
UserOrGroupId
Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID representing the target user or group. The target user or group is being given
access.
Usage
Use this object to manage the sharing rules for opportunities. General sharing and Territory-related sharing use this object.
SEE ALSO:
Case
Metadata API Developer Guide: SharingRules
1410
Standard Objects
OpportunityPartner
OpportunityPartner
This read-only object represents a partner relationship between an Account and an Opportunity. This object is automatically created
when a Partner object is created for a partner relationship between an account and an opportunity.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
AccountToId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the partner Account in the partner relationship.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
IsPrimary
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the account is the opportunity’s primary partner (true) or not (false).
Label is Primary.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the Opportunity that is in the partner relationship.
1411
Standard Objects
OpportunityShare
Field
Details
Role
Type
picklist
Properties
Filter, Group, Nillable, Sort
Description
The UserRole that the Account has on the Opportunity. For example, Reseller or
Manufacturer.
Creating an Account-Opportunity Partner Relationship
When you create a partner relationship between an account and an opportunity (when you create a Partner object and specify the
OpportunityId field), the API automatically creates an OpportunityPartner with the corresponding values:
• The value of the Partner field AccountToId maps to the value of the OpportunityPartner field AccountToId.
• The values of the OpportunityId, Role, and IsPrimary fields in both objects are the same.
• If you set the IsPrimary value to 1 (true) upon insert of a new OpportunityPartner, any other existing primary partners for
that opportunity will automatically have the IsPrimary value set to 0 (false).
This mapping allows the API to manage the objects and their relationship efficiently.
SEE ALSO:
Partner
AccountPartner
OpportunityShare
Represents a sharing entry on an Opportunity.
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Fields
The properties available for some fields depend on the default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
Field
Details
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
1412
Standard Objects
Field
OpportunityShare
Details
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not (false).
Label is Deleted.
OpportunityAccessLevel Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Level of access that the user or group has to the opportunity. The possible values are:
• Read
• Edit
• All—This value is not valid when creating, updating, or deleting records.
This field must be set to an access level that’s higher than the org’s default access level for
opportunities.
OpportunityId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the opportunity associated with this sharing entry. This field can’t be updated.
RowCause
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Reason that this sharing entry exists. You can write to this field when its value is either omitted
or set to Manual (default). You can create a value for this field in API versions 32.0 and later
with the correct organization-wide sharing settings.
Valid values include:
• Owner—User is the owner of the opportunity.
• Manual—User or group has access because a user with “All” access manually shared
the opportunity with the user or group.
• Rule—User or group has access via an opportunity sharing rule.
• ImplicitChild—User or group has access to the opportunity on the account
associated with this opportunity.
• Sales Team—User has access to the opportunity because the user is on the
opportunity sales team for the opportunity. The OpportunityTeamMember object sets
the access level. See OpportunityTeamMember for more information.
1413
Standard Objects
OpportunitySplit
Field
Details
UserOrGroupId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the user or group that has been given access to the opportunity. This field can’t be
updated.
Usage
This object allows you to determine which users and groups can view or edit opportunities owned by other users.
If you attempt to create a record that matches an existing record, any modified fields are updated, the system returns the existing record.
If an opportunity is shared in multiple ways with a user, you don’t always see multiple sharing records. If a user has access to an opportunity
for one or more of the following RowCause values, the records in the OpportunityShare object are compressed into one record with the
highest level of access.
• Manual
• Owner
SEE ALSO:
Object Basics
OpportunitySplit
OpportunitySplit credits one or more opportunity team members with a portion of the opportunity amount. This object is available in
API version 16.0 and later for pilot customers, and version 28.0 and later for others.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field
Details
OpportunityId
Type
reference
Properties
Create, FilterGroup, Sort
Description
ID of the opportunity for which the split is being created.
1414
Standard Objects
Field
OpportunitySplit
Details
Label is Opportunity ID.
Split
Type
string
Properties
Autonumber, Defaulted on create, Filter, Sort
Description
Read-only. Automatically-generated number identifying the split within the
opportunity.
SplitAmount
Type
currency
Properties
Filter, Nillable, Sort
Description
Monetary amount of the split.
Label is Split Amount.
SplitNote
Type
string
Properties
Create, Filter, Group, Nillable,Sort, Update
Description
Enter any notes or comments about the split. Character limit is 255.
Label is Split Note.
SplitOwnerId
Type
reference
Properties
Create, Filter,Group, Sort
Description
The opportunity owner.
Label is User ID.
SplitPercentage
Type
percent
Properties
Create, Filter, Sort, Update
1415
Standard Objects
Field
OpportunitySplitType
Details
Description
Split percentage that this team member will receive. If the split type is validated
to a 100% total, this number can range from 0 to 100. If the total isn’t validated,
this number can range from 0 to 1,000.
Label is Split (%).
SplitTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Auto-generated, numeric ID for the split type defined by the OpportunitySplitType
object. This field is available in API version 28 and later.
If this field is blank, the system automatically specifies the default split type for
the opportunity amount, which is validated to 100%.
Usage
Use the OpportunitySplit object to manage splits for an opportunity.
If you change the opportunity owner using the API, the old owner remains on the opportunity team with either Read-only access, or
the level of access specified in your organization-wide defaults.
OpportunitySplitType
OpportunitySplitType provides unique labels and behavior for each split type. This object is available in API version 28.0 and later.
There are two default split types: revenue splits, which must total 100%, and overlay splits, which can total any percentage.
Supported Calls
describeSObjects(), query(), retrieve(), update()
Fields
Field Name
Details
Description
Type
textarea
Properties
Create, Filter, Group, Sort, Update
1416
Standard Objects
Field Name
OpportunitySplitType
Details
Description
Describes the purpose of the split type, providing context to future developers.
DeveloperName
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. In managed packages, this
field prevents naming conflicts on package installations. With this field, a
developer can change the object’s name in a managed package and the changes
are reflected in a subscriber’s organization.
Note: When creating large sets of data, always specify a unique
DeveloperName for each record. If no DeveloperName is specified,
performance may slow while Salesforce generates one for each record.
IsActive
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Enables or disables the split type.
IsTotalValidated
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
If true, the split must total 100%. If false, the split can total any percentage.
Language
Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates language of split labels in the user interface.
ManageableState
Type
ManageableState enumerated list
Properties
Filter, Group, Nillable, Restricted picklist, Sort
1417
Standard Objects
Field Name
OpportunitySplitType
Details
Description
Indicates the manageable state of the specified component that is contained in
a package:
• beta
• deleted
• deprecated
• installed
• released
• unmanaged
For more information about states of manageability for components in Force.com
AppExchange packages, see “Planning the Release of Managed Packages” in the
Salesforce online help.
This field is available in API version 38.0 and later.
MasterLabel
Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The user-interface label for the split type.
NamespacePrefix
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix associated with this object. Each Developer Edition
organization that creates a managed package has a unique namespace prefix.
Limit: 15 characters. You can refer to a component in a managed package by
using the namespacePrefix__componentName notation.
The namespace prefix can have one of the following values:
• In Developer Edition organizations, the namespace prefix is set to the
namespace prefix of the organization for all objects that support it. There is
an exception if an object is in an installed managed package. In that case,
the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition organization
of the package developer.
• In organizations that are not Developer Edition organizations,
NamespacePrefix is only set for objects that are part of an installed
managed package. There is no namespace prefix for all other objects.
1418
Standard Objects
OpportunityStage
Field Name
Details
This field can’t be accessed unless the logged-in user has the “Customize
Application” permission.
SplitEntity
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
The containing record type, such as an opportunity. Available in API version 30
and later.
SplitField
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort
Description
Indicates which currency field of the opportunity object is split. Available in API
version 30 and later.
SplitDataStatus
Type
picklist
Properties
Filter, Group, Nillable,Restricted picklist, Sort,Update
Description
Indicates the status of the split type. Available in API version 30 and later.
OpportunityStage
Represents the stage of an Opportunity in the sales pipeline, such as New Lead, Negotiating, Pending, Closed, and so on.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Field
Details
ApiName
Type
string
1419
Standard Objects
Field
OpportunityStage
Details
Properties
Filter, Group, Nillable, Sort
Description
Uniquely identifies a picklist value so it can be retrieved without using an id or master label.
DefaultProbability
Type
percent
Properties
Filter, Nillable, Sort,
Description
The default percentage estimate of the confidence in closing a specific opportunity for this
opportunity stage value. Label is Probability (%).
Description
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Description of this opportunity stage value. Limit: 255 characters.
ForecastCategory
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The default forecast category for this opportunity stage value. The forecast category
automatically determines how opportunities are tracked and totaled in a forecast.
ForecastCategoryName
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Available in API version 12.0 and later. The default forecast category value for this opportunity
stage value.
IsActive
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
1420
Standard Objects
Field
OpportunityStage
Details
Description
Indicates whether this opportunity stage value is active (true) or not (false). Inactive
opportunity stage values are not available in the picklist and are retained for historical
purposes only.
IsClosed
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this opportunity stage value represents a closed opportunity (true) or
not (false). Multiple opportunity stage values can represent a closed opportunity. Label
is Closed.
IsWon
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether this opportunity stage value represents a won opportunity (true) or not
(false). Multiple opportunity stage values can represent a won opportunity. Label is Won.
MasterLabel
Type
string
Properties
Filter, Group, Nillable, Sort
Description
Master label for this opportunity stage value. This display value is the internal label that does
not get translated. Limit: 255 characters.
SortOrder
Type
int
Properties
Filter, Group, Nillable, Sort
Description
Number used to sort this value in the opportunity stage picklist. These numbers are not
guaranteed to be sequential, as some previous opportunity stage values might have been
deleted.
1421
Standard Objects
OpportunityTag
Usage
This object represents a value in the opportunity stage picklist, which provides additional information about the stage of a Opportunity,
such as its probability or forecast category. Query this object to retrieve the set of values in the opportunity stage picklist, and then use
that information while processing Opportunity records to determine more information about a given opportunity. For example, the
application could test whether a given opportunity is won or not based on its StageName value and the value of the IsWon property
in the associated OpportunityStage object.
This object is read-only via the API.
SEE ALSO:
Object Basics
OpportunityTag
Associates a word or short phrase with an Opportunity.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve()
Fields
Field Name
Details
ItemId
Type
reference
Properties
Create, Filter
Description
ID of the tagged item.
Name
Type
string
Properties
Create, Filter
Description
Name of the tag. If this value does not already exist, a new TagDefinition is created and
becomes the parent of this Tag object. Otherwise, a TagDefinition with the same name
becomes the parent of this Tag object. Parent relationships are created automatically.
TagDefinitionId
Type
reference
Properties
Filter
1422
Standard Objects
Field Name
OpportunityTeamMember
Details
Description
ID of the parent TagDefinition object that owns the tag.
Type
Type
picklist
Properties
Create, Filter, Restricted picklist
Description
Defines the visibility of a tag.
Valid values:
• Public—The tag can be viewed and manipulated by all users in an organization.
• Personal—The tag can be viewed or manipulated only by a user with a matching
OwnerId.
Usage
OpportunityTag stores the relationship between its parent TagDefinition and the Opportunity being tagged. Tag objects act as metadata,
allowing users to describe and organize their data.
When a tag is deleted, its parent TagDefinition will also be deleted if the name is not being used; otherwise, the parent remains. Deleting
a TagDefinition sends it to the Recycle Bin, along with any associated tag entries.
OpportunityTeamMember
Represents a User on the opportunity team of an Opportunity.
See also UserTeamMember, which represents a User who is on the default opportunity team of another user.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), update(), upsert()
Fields
Field
Details
CurrencyIsoCode
Type
picklist
Properties
Filter, Restricted picklist
1423
Standard Objects
Field
OpportunityTeamMember
Details
Description
Available only for orgs with the multicurrency feature enabled. Contains the ISO code
for any currency allowed by the org.
IsDeleted
Type
boolean
Properties
Defaulted on create, Filter
Description
Indicates whether the object has been moved to the Recycle Bin (true) or not
(false). Label is Deleted.
Note: An OpportunityTeamMember record that is deleted is not moved to the
Recycle Bin and cannot be undeleted, unless the record was cascade-deleted
when deleting a related Opportunity. For directly deleted OpportunityTeamMember
records, don’t use the isDeleted field to detect deleted records in SOQL
queries or queryAll() calls. Instead, use getDeleted().
Name
Type
string
Properties
Filter, Nillable, Sort
Description
The team member name. This read-only field is available in API version 30.0 and later.
OpportunityAccessLevel
Type
picklist
Properties
Filter, Nillable, Restricted picklist
Description
Opportunity access level for this team member. Valid values:
• Read
• Edit
This field is supported in triggers, but not in workflows or validation rules. It is editable
in API version 36.0 and later.
OpportunityId
Type
reference
Properties
Create, Filter
Description
Required. ID of the Opportunity associated with this opportunity team. This field can’t
be updated.
1424
Standard Objects
OpportunityTeamMember
Field
Details
PhotoURL
Type
URL
Properties
Filter, Nillable, Sort, Group
Description
Read only. Retrieves the users Chatter photo URL. This field is available in API version
32.0 and later.
TeamMemberRole
Type
picklist
Properties
Create, Filter, Nillable, Update
Description
Role that the team member has on the opportunity. The org’s admin sets the valid
values in the Opportunity Team Roles picklist. Label is Team Role.
Title
Type
string
Properties
Filter, Nillable, Sort, Group
Description
Read only. Retrieves the user’s title. This field is available in API version 36.0 and later.
UserId
Type
reference
Properties
Create, Filter
Description
Required. ID of the User who is a member of the opportunity team. This field can’t
be updated.
Usage
If you create a record for this object and it matches an existing record, the system updates any modified fields and returns the existing
record.
In the user interface, users can set up an opportunity team for the opportunities they own. The opportunity team includes other users
that are working on the opportunity with them. This object is available only in organizations that have enabled team selling.
Note: The behavior for changing ownership of opportunities is different using the user interface when the previous owner is on
an opportunity team. For example, when you change the owner of an opportunity using the API, the previous owner's access
becomes Read Only or the access specified in your organization-wide default for opportunities, whichever is greater. However,
1425
Standard Objects
Order
performing this same action in the user interface allows you to select the access level for the previous owner when the previous
owner is on an opportunity team.
SEE ALSO:
UserTeamMember
Order
Represents an order associated with a contract or an account.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Name
Details
AccountId
Type
reference
Properties
Create, Filter, Nillable, Group, Sort, Update
Description
Required. ID of the Account associated with this order. Can only be updated
when the order’s StatusCode value is Draft.
ActivatedById
Type
reference
Properties
Filter, Group, Nillable, Sort,Update
Description
ID of the User who activated this order.
ActivatedDate
Type
dateTime
Properties
Filter, Nillable, Sort, Update
Description
Date and time when the order was activated.
BillingCity
Type
string
1426
Standard Objects
Field Name
Order
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
City for the billing address for this order. Maximum size is 40 characters.
BillingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Country for the billing address for this order. Maximum size is 80 characters.
BillingCountryCode (beta)
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ISO country code for the billing address for this order.
BillingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLongitude to specify the precise geolocation of a billing
address. Acceptable values are numbers between –90 and 90 with up to 15
decimal places.
BillingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with BillingLatitude to specify the precise geolocation of a billing
address. Acceptable values are numbers between –180 and 180 with up to 15
decimal places.
BillingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
1427
Standard Objects
Field Name
Order
Details
Description
Postal code for the billing address for this order. Maximum size is 20 characters.
BillingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
State for the billing address for this order. Maximum size is 80 characters.
BillingStateCode (beta)
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ISO state code for the order’s billing address.
BillingStreet
Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address for the billing address.
BillToContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contact that the order will be billed to.
CompanyAuthorizedById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the user who authorized the account associated with the order.
CompanyAuthorizedDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
1428
Standard Objects
Field Name
Order
Details
Description
Date on which the order was authorized by your organization.
ContractId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contract associated with this order. Can only be updated when the
order’s StatusCode value is Draft.
CustomerAuthorizedById
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contact who authorized the order.
CustomerAuthorizedDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date on which the contact authorized the order.
Description
Type
textarea
Properties
Create, Nillable, Update
Description
Description of the order.
EffectiveDate
Type
date
Properties
Create, Filter, Group, Sort, Update
Description
Date at which the order becomes effective. Label is Order Start Date.
End Date
Type
date
1429
Standard Objects
Field Name
Order
Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date at which the order ends. Label is Order End Date.
IsReductionOrder
Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort
Description
Read-only. Determines whether an order is a reduction order. Label is Reduction
Order.
LastReferencedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed a record related to this
record.
LastViewedDate
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The timestamp for when the current user last viewed this record. If this value is
null, this record might only have been referenced (LastReferencedDate)
and not viewed.
Name
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name for this order.
OpportunityId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
1430
Standard Objects
Field Name
Order
Details
Description
ID for the opportunity that’s associated with this order.
OrderNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Order number assigned to this order (not the unique, system-generated ID
assigned during creation). Maximum size is 30 characters.
OrderReferenceNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Order reference number assigned to this order. Maximum size is 80 characters.
OriginalOrderId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort
Description
Optional. ID of the original order that a reduction order is reducing, if the reduction
order is reducing a single order. Label is Original Order.
Editable only if isReductionOrder is true. If the reduction order is
reducing more than one order, leave blank.
OwnerId
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Required. ID of the User or queue that owns this order.
PoDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Date of the purchase order.
1431
Standard Objects
Order
Field Name
Details
PoNumber
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Number identifying the purchase order. Maximum is 80.
Pricebook2Id
Type
reference
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
Required. ID of the price book associated with this order.
QuoteId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the quote that’s associated with this order.
If you set QuoteId to null, QuoteLineItemId on all of the order’s child
order products is set to null.
RecordTypeId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the record type assigned to this order.
ShippingCity
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
City of the shipping address. Maximum size is 40 characters.
ShippingCountry
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
1432
Standard Objects
Field Name
Order
Details
Description
Country of the shipping address. Maximum size is 80 characters.
ShippingCountryCode (beta)
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ISO country code for the order’s shipping address.
ShippingLatitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLongitude to specify the precise geolocation of a
shipping address. Acceptable values are numbers between –90 and 90 with up
to 15 decimal places.
ShippingLongitude
Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Used with ShippingLatitude to specify the precise geolocation of an
address. Acceptable values are numbers between –180 and 180 with up to 15
decimal places.
ShippingPostalCode
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Postal code of the shipping address. Maximum size is 20 characters.
ShippingState
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
State of the shipping address. Maximum size is 80 characters.
1433
Standard Objects
Order
Field Name
Details
ShippingStateCode (beta)
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ISO state code for the order’s shipping address.
ShippingStreet
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Street address of the shipping address. Maximum of 255 characters.
ShipToContactId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contact the order will be shipped to.
Status
Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Picklist of values that indicate order status. Each value is within one of two status
categories defined in StatusCode. For example, the status picklist might
contain Draft, Ready for Review, and Ready for Activation
values with a StatusCode of Draft.
StatusCode
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort, Update
Description
The status category for the order. An order can be either Draft or Activated.
Label is Status Category.
TotalAmount
Type
currency
1434
Standard Objects
Field Name
OrderFeed
Details
Properties
Filter, Sort
Description
The total amount for the order products associated with this order.
Type
Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The type of order.
Usage
The Status field specifies the current state of an order. Status strings represent its current state (Draft or Activated).
When a client application creates an order, the Status Code must be Draft and the Status must be any value that corresponds
to a Status Code of Draft. The application can subsequently activate an order by updating it and setting the value in its Status
field to an Activated state; however, the Status field is the only field you can update when activating the order.
After an order is activated, your client application can change the Status back to the Draft state—but only if the order doesn’t
have any child reduction order products. Your client application can delete orders when the Status is Draft but not when its
Status is Activated.
Client applications can use the API to create, update, delete, and query any Attachment associated with an order.
SEE ALSO:
OrderFeed
OrderHistory
OrderItem
OrderFeed
Represents a single feed item in the feed displayed on an order.
Supported Calls
delete(), getDeleted(), getUpdated(), query(), retrieve()
Special Access Rules
You can delete all feed items you created. To delete feed items you didn’t create, you must have one of these permissions:
• “Modify All Data”
1435
Standard Objects
OrderFeed
• “Moderate Chatter”
Note: Users with the “Moderate Chatter” permission can delete only the feed items and comments they see.
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the OrderFeed. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
Tip: In a feed that supports pre-moderation, CommentCount isn’t updated
until a comment is published. For example, say you comment on a post that
already has one published comment and your comment triggers moderation.
Now there are two comments on the post, but the count says there's only
one. In a moderated feed, your comment isn’t counted until it's approved by
an admin or a person with “CanApproveFeedPostAndComment” or
“ModifyAllData” permission.
This has implications for how you retrieve feed comments. In a moderated
feed, rather than retrieving comments by looping through CommentCount,
go through pagination until end of comments is returned.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
1436
Standard Objects
OrderFeed
Field Name
Details
ContentDescription
Type
textarea
Properties
Create, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. This field is required if Type is
ContentPost. The name of the file uploaded to the feed. Setting
ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The size of the file (in bytes) uploaded
to the feed. This field is read-only and is automatically determined during insert.
ContentType
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. The MIME type of the file uploaded
to the feed. This field is read-only and is automatically determined during insert.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if an application
migrates posts and comments from another application into a feed, the
InsertedBy value is set to the ID of the logged-in user.
1437
Standard Objects
OrderFeed
Field Name
Details
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• 
Tip: Though the 
 tag isn’t supported, you can use
   to create lines.
• 
•
• 
• 
• 
• 
• 
• - 
• ![]() The The![]() tag is accessible only via the API and must reference files in
Salesforce similar to this example: tag is accessible only via the API and must reference files in
Salesforce similar to this example: Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Sort
1438
Standard Objects
Field Name
OrderFeed
Details
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the order record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as a FeedItem object of Type
ContentPost.
Title
Type
string
1439
Standard Objects
Field Name
OrderFeed
Details
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is
the URL and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
1440
Standard Objects
Field Name
OrderFeed
Details
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
1441
Standard Objects
Field Name
OrderHistory
Details
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for an order record.
SEE ALSO:
Order
OrderHistory
Represents historical information about changes that have been made to the standard fields of the associated order, or to any custom
fields with history tracking enabled.
Supported Calls
getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Name of the order field that was modified, or a special value to indicate some
other modification to the order.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
New value of the modified order field. Maximum of 255 characters.
1442
Standard Objects
OrderItem
Field Name
Details
OldValue
Type
anyType
Properties
Nillable, Sort
Description
Previous value of the modified order field. Maximum of 255 characters.
OrderId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the order associated with this record.
Usage
Order history entries are automatically created each time an order is modified.
Two rows are added to this record when foreign key fields change. One row contains the foreign key object names that display in the
online application. For example, Jane Doe is recorded as the name of a Contact. The other row contains the actual foreign key ID
that is only returned to and visible from the API.
This object respects field-level security on the parent object.
SEE ALSO:
Order
OrderItem
Represents an order product that your organization sells.
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), update()
Fields
Field Name
Details
AvailableQuantity
Type
double
1443
Standard Objects
Field Name
OrderItem
Details
Properties
Filter, Nillable, Sort
Description
Amount of an order product that is available to be reduced. Value must be greater
than or equal to 0. An order product is reducible only if AvailableQuantity
is greater than 0.
Value is always 0 if the order product’s parent order is a reduction order.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of this object.
EndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Optional. Last day the order product is available.
ListPrice
Type
currency
Properties
Filter, Nillable, Sort
Description
List price for the order product. Value is inherited from the associated
PriceBookEntry upon order product creation.
OrderId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the order that this order product is a child of.
OrderItemNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
1444
Standard Objects
Field Name
OrderItem
Details
Description
Automatically-generated number that identifies the order product.
OriginalOrderItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required if isReductionOrder on the parent order is true.
ID of the original order product being reduced.
PricebookEntryId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated PricebookEntry. This field must be specified when
creating OrderItem records. It can’t be changed in an update.
Product2Id
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Product2 associated with this OrderItem.
Quantity
Type
double
Properties
Create, Filter, Sort, Update
Description
Number of units of this order product.
QuoteLineItemId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the associated quote line item.
If this field is specified, the quote line item’s QuoteId must match the QuoteId
for the order product’s parent order.
1445
Standard Objects
OrderItemFeed
Field Name
Details
ServiceDate
Type
date
Properties
Create, Filter, Nillable, Sort, Update
Description
Start date for the order product.
Label is Start Date.
UnitPrice
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Unit price for the order product.
Usage
An order can have associated order product records only if the order has a price book associated with it. An order product must correspond
to a product that is listed in the order’s price book.
SEE ALSO:
OrderItemFeed
OrderItemHistory
Order
OrderItemFeed
Represents a single feed item in the feed displayed on the detail page for an order product record.
An order product feed shows changes to an order product for fields that are tracked in feeds, and posts and comments about the record.
It is a useful way to stay up-to-date with changes made to order products in Salesforce.
Supported Calls
delete(), getDeleted(), getUpdated(), query(), retrieve()
1446
Standard Objects
OrderItemFeed
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the FeedItem. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
1447
Standard Objects
Field Name
OrderItemFeed
Details
Description
Available in API version 36.0 and earlier only. The file uploaded to the feed.
Required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read-only. Automatically determined
during insert. The size of the file (in bytes) uploaded to the feed.
ContentType
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read-only. Automatically determined
during insert. The MIME type of the file uploaded to the feed.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if a client
application migrates posts and comments from another application into a feed,
then InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
• Note: In API version 35.0 and later, the system replaces special characters
in rich text with escaped HTML. In API version 34.0 and prior, all rich text
appears as a plain-text representation.
LikeCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes associated with this feed item.
LinkUrl
Type
url
Properties
Sort
1438
Standard Objects
Field Name
OrderFeed
Details
Description
The URL of a LinkPost.
NetworkScope
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies whether this feed item is available in the default community, a specific
community, or all communities. This field is available in API version 26.0 and later,
if Salesforce Communities is enabled for your organization.
NetworkScope can have the following values:
• NetworkId—The ID of the community in which the FeedItem is available.
If left empty, the feed item is only available in the default community.
• AllNetworks—The feed item is available in all communities.
Note the following exceptions for NetworkScope:
• Only feed items with a Group or User parent can set a NetworkId or a
null value for NetworkScope.
• For feed items with a record parent, users can set NetworkScope only
to AllNetworks.
• You can’t filter a FeedItem on the NetworkScope field.
ParentId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the order record that is tracked in the feed. The feed is displayed on the
detail page for this record.
RelatedRecordId
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the ContentVersion object associated with a ContentPost. This field is
null for all posts except ContentPost. For example, set this field to an existing
ContentVersion and post it to a feed as a FeedItem object of Type
ContentPost.
Title
Type
string
1439
Standard Objects
Field Name
OrderFeed
Details
Properties
Group, Nillable, Sort
Description
The title of the feed item. When the Type is LinkPost, the LinkUrl is
the URL and this field is the link name.
Type
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of FeedItem:
• ActivityEvent—indirectly generated event when a user or the API
adds a Task associated with a feed-enabled parent record (excluding email
tasks on cases). Also occurs when a user or the API adds or updates a Task or
Event associated with a case record (excluding email and call logging).
For a recurring Task with CaseFeed disabled, one event is generated for the
series only. For a recurring Task with CaseFeed enabled, events are generated
for the series and each occurrence.
• AdvancedTextPost—created when a user posts a group
announcement.
• AnnouncementPost—Not used.
• ApprovalPost—generated when a user submits an approval.
• BasicTemplateFeedItem—Not used.
• CanvasPost—a post made by a canvas app posted on a feed.
• CollaborationGroupCreated—generated when a user creates a
public group.
• CollaborationGroupUnarchived—Not used.
• ContentPost—a post with an attached file.
• CreatedRecordEvent—generated when a user creates a record from
the publisher.
• DashboardComponentAlert—generated when a dashboard metric
or gauge exceeds a user-defined threshold.
• DashboardComponentSnapshot—created when a user posts a
dashboard snapshot on a feed.
• LinkPost—a post with an attached URL.
• PollPost—a poll posted on a feed.
• ProfileSkillPost—generated when a skill is added to a user’s Chatter
profile.
• QuestionPost—generated when a user posts a question.
• ReplyPost—generated when Chatter Answers posts a reply.
1440
Standard Objects
Field Name
OrderFeed
Details
• RypplePost—generated when a user creates a Thanks badge in
Work.com.
• TextPost—a direct text entry on a feed.
• TrackedChange—a change or group of changes to a tracked field.
• UserStatus—automatically generated when a user adds a post.
Deprecated.
The following values appear in the Type picklist for all feed objects but apply
only to CaseFeed:
• AttachArticleEvent—generated event when a user attaches an
article to a case.
• CallLogPost—generated event when a user logs a call for a case through
the user interface. CTI calls also generate this event.
• CaseCommentPost—generated event when a user adds a case comment
for a case object.
• ChangeStatusPost—generated event when a user changes the status
of a case.
• ChatTranscriptPost—generated event when Live Agent transcript
is saved to a case.
• EmailMessageEvent—generated event when an email related to a
case object is sent or received.
• FacebookPost—generated when a Facebook post is created from a
case. Deprecated.
• MilestoneEvent—generated when a case milestone is completed or
reaches violation status.
• SocialPost—generated when a social post is created from a case.
Note: If you set Type to ContentPost, also specify ContentData
and ContentFileName.
Visibility
Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies whether this feed item is available to all users or internal users only. This
field is available in API version 26.0 and later, if Salesforce Communities is enabled
for your organization.
Visibility can have the following values:
• AllUsers—The feed item is available to all users who have permission
to see the feed item.
• InternalUsers—The feed item is available to internal users only.
Note the following exceptions for Visibility:
1441
Standard Objects
Field Name
OrderHistory
Details
• For record posts, Visibility is set to InternalUsers for all internal
users by default.
• External users can set Visibility only to AllUsers.
• Visibility can be updated on record posts.
• The Update property is supported only for feed items posted on records.
Usage
Use this object to track changes for an order record.
SEE ALSO:
Order
OrderHistory
Represents historical information about changes that have been made to the standard fields of the associated order, or to any custom
fields with history tracking enabled.
Supported Calls
getDeleted(), getUpdated(), query(), retrieve()
Fields
Field Name
Details
Field
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
Name of the order field that was modified, or a special value to indicate some
other modification to the order.
NewValue
Type
anyType
Properties
Nillable, Sort
Description
New value of the modified order field. Maximum of 255 characters.
1442
Standard Objects
OrderItem
Field Name
Details
OldValue
Type
anyType
Properties
Nillable, Sort
Description
Previous value of the modified order field. Maximum of 255 characters.
OrderId
Type
reference
Properties
Filter, Group, Sort
Description
ID of the order associated with this record.
Usage
Order history entries are automatically created each time an order is modified.
Two rows are added to this record when foreign key fields change. One row contains the foreign key object names that display in the
online application. For example, Jane Doe is recorded as the name of a Contact. The other row contains the actual foreign key ID
that is only returned to and visible from the API.
This object respects field-level security on the parent object.
SEE ALSO:
Order
OrderItem
Represents an order product that your organization sells.
Supported Calls
create(), delete(), getDeleted(), getUpdated(), query(), retrieve(), update()
Fields
Field Name
Details
AvailableQuantity
Type
double
1443
Standard Objects
Field Name
OrderItem
Details
Properties
Filter, Nillable, Sort
Description
Amount of an order product that is available to be reduced. Value must be greater
than or equal to 0. An order product is reducible only if AvailableQuantity
is greater than 0.
Value is always 0 if the order product’s parent order is a reduction order.
Description
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Text description of this object.
EndDate
Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Optional. Last day the order product is available.
ListPrice
Type
currency
Properties
Filter, Nillable, Sort
Description
List price for the order product. Value is inherited from the associated
PriceBookEntry upon order product creation.
OrderId
Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the order that this order product is a child of.
OrderItemNumber
Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
1444
Standard Objects
Field Name
OrderItem
Details
Description
Automatically-generated number that identifies the order product.
OriginalOrderItemId
Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
Required if isReductionOrder on the parent order is true.
ID of the original order product being reduced.
PricebookEntryId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the associated PricebookEntry. This field must be specified when
creating OrderItem records. It can’t be changed in an update.
Product2Id
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
ID of the Product2 associated with this OrderItem.
Quantity
Type
double
Properties
Create, Filter, Sort, Update
Description
Number of units of this order product.
QuoteLineItemId
Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the associated quote line item.
If this field is specified, the quote line item’s QuoteId must match the QuoteId
for the order product’s parent order.
1445
Standard Objects
OrderItemFeed
Field Name
Details
ServiceDate
Type
date
Properties
Create, Filter, Nillable, Sort, Update
Description
Start date for the order product.
Label is Start Date.
UnitPrice
Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Unit price for the order product.
Usage
An order can have associated order product records only if the order has a price book associated with it. An order product must correspond
to a product that is listed in the order’s price book.
SEE ALSO:
OrderItemFeed
OrderItemHistory
Order
OrderItemFeed
Represents a single feed item in the feed displayed on the detail page for an order product record.
An order product feed shows changes to an order product for fields that are tracked in feeds, and posts and comments about the record.
It is a useful way to stay up-to-date with changes made to order products in Salesforce.
Supported Calls
delete(), getDeleted(), getUpdated(), query(), retrieve()
1446
Standard Objects
OrderItemFeed
Fields
Field Name
Details
Body
Type
textarea
Properties
Nillable, Sort
Description
The content of the FeedItem. Required when Type is TextPost. Optional
when Type is ContentPost or LinkPost. This field is the message that
appears in the feed.
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments associated with this feed item.
ContentData
Type
base64
Properties
Nillable
Description
Available in API version 36.0 and earlier only. Required if Type is
ContentPost. Encoded file data in any format, and can’t be 0 bytes. Setting
this field automatically sets Type to ContentPost.
ContentDescription
Type
textarea
Properties
Nillable, Sort
Description
Available in API version 36.0 and earlier only. The description of the file specified
in ContentData.
ContentFileName
Type
string
Properties
Group, Nillable, Sort
1447
Standard Objects
Field Name
OrderItemFeed
Details
Description
Available in API version 36.0 and earlier only. The file uploaded to the feed.
Required if Type is ContentPost. The name of the file uploaded to the feed.
Setting ContentFileName automatically sets Type to ContentPost.
ContentSize
Type
string
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read-only. Automatically determined
during insert. The size of the file (in bytes) uploaded to the feed.
ContentType
Type
int
Properties
Group, Nillable, Sort
Description
Available in API version 36.0 and earlier only. Read-only. Automatically determined
during insert. The MIME type of the file uploaded to the feed.
InsertedById
Type
reference
Properties
Group, Nillable, Sort
Description
ID of the user who added this object to the feed. For example, if a client
application migrates posts and comments from another application into a feed,
then InsertedById is set to the ID of the logged-in user.
IsRichText
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the feed item Body contains rich text. Set IsRichText
to true if you post a rich text feed item via SOAP API. Otherwise, the post is
rendered as plain text.
Rich text supports the following HTML tags:
•
Tip: Though the