> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Affinity: V2 Field Value Changes Get

> Get all field value changes. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Get all field value changes.

<Info>
  Tool ID: `affinity_v2_field_value_changes_get`
</Info>

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get affinity_v2_field_value_changes_get --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get affinity_v2_field_value_changes_get --json` for the complete live contract.

## Input reference

Retrieve field value changes across all entities and fields in your Affinity workspace. For an overview of field value changes, including which fields support change tracking and how the action types behave, see [Field Value Changes](/docs/pages/data-model/working-with-field-data#field-value-changes). This endpoint is built for delta-sync. Within a single sync, follow `pagination.nextUrl` to page through results until it becomes `null`, which means you have reached the most recent change. To run the next incremental sync, record the `changedAt` of the last change you processed and, on your next sync, filter for changes newer than that timestamp (for example, `filter=changedAt&gt;2024-06-01T12:00:00Z`). Do not persist `nextUrl` between syncs, since it is `null` once you are caught up. Changes are returned in ascending order of `changedAt`, then by internal change ID. Only fields with change See the live schema below for the complete notes.

| Name              | Type      | Required | Default | Details                                                                               |
| ----------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------- |
| `payload.filter`  | `string`  | No       | —       | Filter options                                                                        |
| `payload.orderBy` | `array`   | No       | —       | Properties to sort by. Defaults to `changedAt`. Prefix with `-` for descending order. |
| `payload.cursor`  | `string`  | No       | —       | Cursor for the next or previous page                                                  |
| `payload.limit`   | `integer` | No       | `100`   | Number of items to include in the page Format: `int32`. Minimum: 1. Maximum: 100.     |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieve field value changes across all entities and fields in your Affinity workspace. For an overview of field value changes, including which fields support change tracking and how the action types behave, see [Field Value Changes](/pages/data-model/working-with-field-data#field-value-changes). This endpoint is built for delta-sync. Within a single sync, follow `pagination.nextUrl` to page through results until it becomes `null`, which means you have reached the most recent change. To run the next incremental sync, record the `changedAt` of the last change you processed and, on your next sync, filter for changes newer than that timestamp (for example, `filter=changedAt>2024-06-01T12:00:00Z`). Do not persist `nextUrl` between syncs, since it is `null` once you are caught up. Changes are returned in ascending order of `changedAt`, then by internal change ID. Only fields with change tracking enabled are included. You can filter results using the `filter` query parameter. | **Property Name** | **Type** | **Description** | **Allowed Operators** | **Examples** | |---|---|---|---|---| | `field.id` | `text` | | `=` | `field.id=field-1234` | | `listEntry.id` | `int64` | | `=` | `listEntry.id=5678` | | `changer.id` | `int64` | The person who made the change. | `=` | `changer.id=9012` | | `changedAt` | `datetime` | When the change was made. | `>`, ` =`, ` =2025-01-01T00:00:00Z` | | `actionType` | `text` | The type of change (`add`, `update`, `delete`) | `=` | `actionType=add` | Filters can be combined: - `|` (OR) to match any of multiple values: `field.id=field-1 | field.id=field-2` - `&` (AND) to require all conditions: `changedAt>=2025-01-01T00:00:00Z & changedAt<=2025-12-31T23:59:59Z`",
    "properties": {
      "filter": {
        "type": "string",
        "description": "Filter options"
      },
      "orderBy": {
        "type": "array",
        "description": "Properties to sort by. Defaults to `changedAt`. Prefix with `-` for descending order.",
        "items": {
          "type": "string",
          "default": [
            "changedAt"
          ],
          "enum": [
            "changedAt",
            "-changedAt"
          ]
        }
      },
      "cursor": {
        "type": "string",
        "description": "Cursor for the next or previous page"
      },
      "limit": {
        "type": "integer",
        "description": "Number of items to include in the page",
        "default": 100,
        "minimum": 1,
        "maximum": 100,
        "format": "int32"
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name                                           | Type                                                                                                                                                                                                                                                        | Required | Default | Details                                                 |
| ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------- |
| `result.data`                                  | `object`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data`                             | `array`                                                                                                                                                                                                                                                     | Yes      | —       | Maximum items: 100.                                     |
| `result.data.data[].id`                        | `integer`                                                                                                                                                                                                                                                   | Yes      | —       | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.data[].field`                     | `object`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].field.id`                  | `string`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].field.entityType`          | `"person" \| "company" \| "opportunity"`                                                                                                                                                                                                                    | Yes      | —       | Allowed: `person`, `company`, `opportunity`.            |
| `result.data.data[].field.name`                | `string`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].field.type`                | `"global" \| "list"`                                                                                                                                                                                                                                        | Yes      | —       | Allowed: `global`, `list`.                              |
| `result.data.data[].entity`                    | `object`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].entity.id`                 | `integer`                                                                                                                                                                                                                                                   | Yes      | —       | Format: `int64`. Minimum: 1. Maximum: 9007199254740991. |
| `result.data.data[].listEntry`                 | `record`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].changer`                   | `record`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].changedAt`                 | `string`                                                                                                                                                                                                                                                    | Yes      | —       | Format: `date-time`.                                    |
| `result.data.data[].actionType`                | `"add" \| "update" \| "delete"`                                                                                                                                                                                                                             | Yes      | —       | Allowed: `add`, `update`, `delete`.                     |
| `result.data.data[].type`                      | `"company" \| "company-multi" \| "datetime" \| "dropdown" \| "dropdown-multi" \| "filterable-text" \| "filterable-text-multi" \| "location" \| "location-multi" \| "number" \| "number-multi" \| "person" \| "person-multi" \| "ranked-dropdown" \| "text"` | Yes      | —       | —                                                       |
| `result.data.data[].value`                     | `object \| string \| number`                                                                                                                                                                                                                                | Yes      | —       | —                                                       |
| `result.data.data[].value.referenceType`       | `"entity"`                                                                                                                                                                                                                                                  | Yes      | —       | —                                                       |
| `result.data.data[].value.id`                  | `integer`                                                                                                                                                                                                                                                   | Yes      | —       | —                                                       |
| `result.data.data[].value.name`                | `string`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].value.domain`              | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.displayValue`        | `string`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].value.dropdownOptionId`    | `integer`                                                                                                                                                                                                                                                   | Yes      | —       | —                                                       |
| `result.data.data[].value.text`                | `string`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.data[].value.streetAddress`       | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.city`                | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.state`               | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.country`             | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.continent`           | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.firstName`           | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.lastName`            | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.primaryEmailAddress` | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.data[].value.type`                | `"internal" \| "collaborator" \| "external"`                                                                                                                                                                                                                | Yes      | —       | —                                                       |
| `result.data.data[].value.rank`                | `integer`                                                                                                                                                                                                                                                   | Yes      | —       | —                                                       |
| `result.data.data[].value.color`               | `string \| null`                                                                                                                                                                                                                                            | Yes      | —       | —                                                       |
| `result.data.pagination`                       | `object`                                                                                                                                                                                                                                                    | Yes      | —       | —                                                       |
| `result.data.pagination.prevUrl`               | `string \| null`                                                                                                                                                                                                                                            | No       | —       | Format: `uri`.                                          |
| `result.data.pagination.nextUrl`               | `string \| null`                                                                                                                                                                                                                                            | No       | —       | Format: `uri`.                                          |
| `result.meta`                                  | `object`                                                                                                                                                                                                                                                    | No       | —       | —                                                       |

<Info>
  This output schema is too large to embed without slowing the page. Get the complete live contract with `deepline tools get affinity_v2_field_value_changes_get --json`.
</Info>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Affinity provider guide](/docs/providers/affinity/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
