Create customer archive search
Searches across all customer data with criteria based on a limited number of attributes on standard objects, including Message, Conversation, and Company objects, and on custom objects. Returns standard objects and custom objects older than 2 years ago that are unavailable in standard searches.
Any one of the following roles is required for this endpoint:
Legacy Role
Equivalent Permission Set Role
org.user.search.read
org.permission.search.create
org.admin.search.read
org.permission.search.update
org.permission.search_global.create
org.permission.search_preview.create
Filter on dates
You can filter by dates in either a local date YYYY-MM-DD format or a UTC date format. If you include a timezone in the query, a local date will be adjusted to account for the included timezone. UTC dates will not be timezone adjusted.
Sorting based on other standard Object attributes is unavailable.
Pagination
There is a hard limit of 100 for the maximum number of pages.
There may be cases where you want to page through more records. For example, let's say you'd like to get an initial snapshot of data and then update the data.
To work around the pagination limit, you can write a query based on the updated_at attribute for a standard Object. You can then use the returned information in following API requests based on the last updated_at value from the response.
Create customer archive search Searches across all customer data with criteria based on a limited number of attributes on standard objects, including Message, Conversation, and Company objects, and on custom objects. Returns standard objects and custom objects older than 2 years ago that are unavailable in standard searches.
Any one of the following roles is required for this endpoint:
Filter on dates
You can filter by dates in either a local date
YYYY-MM-DD
format or a UTC date format. If you include a timezone in the query, a local date will be adjusted to account for the included timezone. UTC dates will not be timezone adjusted.Example of search criteria with local date
Note
Example of search criteria with UTC date
Filtering
For a list of available standard attributes, see Standard attributes JSON schema.
Example of search criteria with standard attributes
Sort on attributes
You can sort based on the following attributes:
Example of sort with attributes
Note
Pagination
There is a hard limit of 100 for the maximum number of pages.
There may be cases where you want to page through more records. For example, let's say you'd like to get an initial snapshot of data and then update the data.
To work around the pagination limit, you can write a query based on the
updated_at
attribute for a standard Object. You can then use the returned information in following API requests based on the lastupdated_at
value from the response.Filterable attributes JSON Schema