| ContentDocumentLink |
A SOQL query must filter on one of Id, ContentDocumentId, or LinkedEntityId. |
| ContentHubItem |
A SOQL query must filter on
one of Id, ExternalId, or ContentHubRepositoryId. |
| Custom metadata types |
Custom metadata types support the following SOQL query
syntax.1SELECT fieldList [...]
2FROM objectType
3 [USING SCOPE filterScope]
4[WHERE conditionExpression]
5[ORDER BY field {ASC|DESC} [NULLS {FIRST|LAST}] ]
- You can use metadata relationship fields in the fieldList and
conditionExpression.
-
FROM can include only 1 object.
- You can use the following operators.
-
IN and NOT
IN
-
=, >, >=, <, <=, and !=
-
LIKE, including wild cards
- AND
- You can use ORDER BY only with non-relationship
fields.
- You can use ORDER BY, ASC, and DESC with multiple
(non-relationship) fields.
- You can only use ORDER BY when the ordered field is a
selected field.
- Metadata relationship fields support all standard relationship queries.
|
| External objects |
The following limits apply only to the OData
2.0 and 4.0 adapters for Salesforce Connect.
-
External objects have the
following limitations for the ORDER BY
clause.
- NULLS FIRST and NULLS LAST are
ignored.
- External objects don’t
support the ORDER BY clause in
relationship queries.
- The COUNT() aggregate function is supported
only on external objects whose external data sources have Request Row Counts
enabled. Specifically, the response from the external system must include the
total row count of the result set.
The following limits apply only to custom
adapters for Salesforce Connect.
- Location-based SOQL queries of external objects aren’t supported.
- If a SOQL query of an external object includes the following, the query fails.
-
convertCurrency() function
-
UPDATE TRACKING clause
-
UPDATE VIEWSTAT clause
-
USING SCOPE clause
- In an ORDER BY clause, the following are ignored.
-
NULLS FIRST syntax
-
NULLS LAST syntax
The following limits apply only to external objects associated with a SharePoint 2010/2013
external data source using SecureAgent.
- In SOQL queries of external
objects, IN clauses with more than approximately 15
IDs return the error “This operation is too complicated for Secure Agent.” The exact
IN clause limit varies based on SharePoint ID
length.
|
| 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'.
- 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.
|
| NewsFeed |
- 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.
|
| RecentlyViewed |
The RecentlyViewed object is updated every time the logged-in user views or references a record. It is also
updated when records are retrieved using the FOR VIEW or
FOR REFERENCE clause in a SOQL query. To ensure that the
most recent data is available, RecentlyViewed data is periodically truncated down to 200 records per object. |
| TopicAssignment |
No SOQL limit if logged-in user has “View All
Data” permission. If not, do one of the following:
- Specify a LIMIT clause of 1,100 records or fewer.
- Filter on Id or Entity when using a WHERE clause with
"=".
|
| UserRecordAccess |
- Always use the query formats specified in the SOAP API Developer's Guide.
- May include an ORDER BY clause. You must ORDER BY
HasAccess if you SELECT
HasAccess, and ORDER BY
MaxAccessLevel if you SELECT
MaxAccessLevel.
- Maximum number of records that can be queried is 200.
|
| UserProfileFeed |
- 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.
Also, a SOQL query must include WITH
UserId = {userId].
|
| Vote |
- ParentId = [single ID]
- Parent.Type = [single type]
- Id = [single ID]
- Id IN = [list of IDs]
|