# ActivitiesByFilter: Nextcloud Nextcloud Activities by Filter ## Documentation Activity feed narrowed to one application, one row per activity - a table function of filter rather than a bulk table, per ActivityFilters. - Catalog: `Nextcloud` - Schema: `Nextcloud` - Label: Nextcloud Activities by Filter This is a read-only table function. The Nextcloud API may not support changing the data or the Invantive UniversalSQL driver for Nextcloud does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Nextcloud API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `ActivitiesByFilter`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values. Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three. Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third. | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `filter` | `varchar2` | ☐ | | Application identifier to narrow the activity feed to, per ActivityFilters. | ## Columns of Table Function The columns of the table function `ActivitiesByFilter` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `activity_date` | `datetime` | | ☐ | Moment the activity occurred (UTC). | | `activity_id` | `int64` | | ☑ | Identifier of the activity. | | `activity_type` | `varchar2` | | ☐ | Type of the activity within its application. | | `app` | `varchar2` | | ☐ | Application the activity originated from. | | `icon` | `varchar2` | | ☐ | URL of the icon shown beside the activity. | | `link` | `varchar2` | | ☐ | Link the activity points to. | | `message_rich` | `varchar2` | | ☐ | Message with rich-text placeholders, as JSON: a template plus the objects to substitute into it. The shape differs per activity type. | | `message` | `varchar2` | | ☐ | Plain-text message body; empty for most activity types. | | `object_id` | `int64` | | ☐ | Identifier of the object the activity is about. | | `object_name` | `varchar2` | | ☐ | Name of the object the activity is about, such as a file path. | | `object_type` | `varchar2` | | ☐ | Type of the object the activity is about. | | `objects` | `varchar2` | | ☐ | Every object the activity touched, identifier to name, as JSON. Which identifiers appear differs per activity. | | `subject_rich` | `varchar2` | | ☐ | Subject with rich-text placeholders, as JSON: a template plus the objects to substitute into it. The shape differs per activity type. | | `subject` | `varchar2` | | ☐ | Plain-text subject, in the connected account's own language. | | `user` | `varchar2` | | ☐ | Login name of the account the activity is shown to. |