| 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.
|
| Big objects |
- A SOQL query can only filter on the fields defined in the big object’s index, in the
order that they are defined, without gaps.
- The last field in a query can use only the following operators.
-
=, <.
>, <=,
>=, and IN
- Any prior fields in a query can use only the =
operator.
- Big objects don’t support the following operators.
-
!=, LIKE,
NOT IN, EXCLUDES, and INCLUDES
|
| 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
- In Apex tests, use dynamic SOQL to
query external objects. Tests that perform static SOQL queries of external
objects fail.
The following limits apply only to external objects associated with a SharePoint 2010/2013
external data source using SecureAgent.
- In SOQLueries 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 |
|
| 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. RecentlyViewed data is
retained for 90 days, after which it is removed on a periodic basis. |
| 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 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]
|