Accelerate the Value of Data

Get Total Count of activity log records

Learn how the API returns number of Activity Log Records matching specified criteria.

This function returns the number of Activity Log Records matching specified criteria.

Request:

GET {TenantURL}/activities/_total
Note: Irrespective of the value that you enter in the filter={Condition Type}(property, value) condition, the search engine considers only the first 256 symbols of the entered value and ignores the rest.
Table 1. Parameters
Name Required Details Example
Headers Authorization Yes Information about the authentication access token in the format "Bearer <accessToken>" (see details in Authentication API).
Query filter No Enables activities filtering by a condition. For more information, see Filtering activities.

Filter by object type:

filter=(equals(items.objectType,'configuration/entityTypes/Organization'))

Filter by user:

filter=(equals(user,'user1'))

Filter by a String across all properties:

filter=(equals(attributes,'logged'))

Find activities with items without object type:

filter=missing(objectType)

Find activities that have non-empty description:

filter=exists(description)

Find activities, which occurred after 2015-04-01:

filter=(gt(timestamp, 1427742000000))

Find activities, which occurred between 2015-03-01 and 2015-04-01:

filter=(range(timestamp,1425063600000,1427742000000))
Important: Only If the indexActivityDelta parameter is set to true in the Tenant Storage Configuration, the items.delta.attributeType, items.delta.newValue, items.delta.oldValue, and items.delta.sources filters are available.

Response

JSON object with total number of Activity Log Records matching search filters:

Find activities for "user1"

Request

GET {TenantURL}/activities/_total?filter=(equals(user,'user1'))
Headers: Authorization: Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512 

Response

{
    "total": 46465
}