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

# ErpSyncLog table

> Record all field changes done by the Erp Sync

## ErpSyncLog Table (426)

Record all field changes done by the Erp Sync

## Fields

| Name                      | Description                                                                                                             | Type                                      | Nullable |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | :------: |
| erpsynclog\_id            | Primary key                                                                                                             | PK                                        |    No    |
| ErpExternalKeyId          | Link to the external key, indirectly also to the connection and internal key                                            | FK [ErpExternalKey](./erpexternalkey.mdx) |    Yes   |
| ErpFieldKey               | ERP field name/key                                                                                                      | String(254)                               |    Yes   |
| CrmFieldKey               | CRM field name/key                                                                                                      | String(254)                               |    Yes   |
| TargetIsCrm               | Was the CRM field the target of the change? If false, then it was the ERP field that was changed by this sync operation | Bool                                      |    Yes   |
| OldValue                  | The old value of the target field                                                                                       | String(254)                               |    Yes   |
| NewValue                  | The new value of the target field                                                                                       | String(254)                               |    Yes   |
| registered                | Registered when                                                                                                         | UtcDateTime                               |    No    |
| registered\_associate\_id | Registered by whom                                                                                                      | FK [associate](./associate.mdx)           |    No    |
| updated                   | Last updated when                                                                                                       | UtcDateTime                               |    No    |
| updated\_associate\_id    | Last updated by whom                                                                                                    | FK [associate](./associate.mdx)           |    No    |
| updatedCount              | Number of updates made to this record                                                                                   | UShort                                    |    No    |

<img src="https://mintcdn.com/superofficeas/zNQa3AO19PFK63SB/media/loc/en/database/tables/ErpSyncLog.png?fit=max&auto=format&n=zNQa3AO19PFK63SB&q=85&s=40a975b6919a289b6f3ac32443ec06fc" alt="ErpSyncLog table relationship diagram" width="715" height="59" data-path="media/loc/en/database/tables/ErpSyncLog.png" />

## Indexes

| Fields | Types | Description |
| ------ | ----- | ----------- |

## Relationships

| Table                              | Description                                                                 |
| ---------------------------------- | --------------------------------------------------------------------------- |
| [associate](./associate)           | Employees, resources and other users - except for External persons          |
| [ErpExternalKey](./erpexternalkey) | The external (ERP-facing) key related to a synchronized record / connection |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [ErpSyncLog](/en/api/archive-providers/reference/erpsynclog.md)
- [ErpExternalKey table](/en/database/tables/erpexternalkey.md)
- [Sync All](/en/api/reference/restful/agent/erpsync_agent/sync-all.md)
- [Get Erp Sync Connection Summary](/en/api/reference/restful/agent/erpsync_agent/get-erp-sync-connection-summary.md)
- [Save Erp Sync Connector Entity](/en/api/reference/restful/agent/erpsync_agent/save-erp-sync-connector-entity.md)
- [Get Erp Sync Connector Entity](/en/api/reference/restful/agent/erpsync_agent/get-erp-sync-connector-entity.md)
