> ## 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.

# ErpListItemMapping table

> Defines a mapping of ERP to CRM fields, per connection and actor type

## ErpListItemMapping Table (424)

Defines a mapping of ERP to CRM fields, per connection and actor type

## Fields

| Name                      | Description                                                                                                       | Type                            | Nullable |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------- | :------: |
| erplistitemmapping\_id    | Primary key                                                                                                       | PK                              |    No    |
| ErpFieldId                | Link to the Erp field (and implicitly to crm list and Erp Connection)                                             | FK [ErpField](./erpfield.mdx)   |    No    |
| ErpItemKey                | The unique key in the ERP system for this list item                                                               | String(254)                     |    No    |
| CrmItemKey                | The unique key in the CRM database for this list item (list/table is identified by the ListReference in ErpField) | Int                             |    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/ErpListItemMapping.png?fit=max&auto=format&n=zNQa3AO19PFK63SB&q=85&s=8f722956abec5070a29983efe9090570" alt="ErpListItemMapping table relationship diagram" width="698" height="59" data-path="media/loc/en/database/tables/ErpListItemMapping.png" />

## Indexes

| Fields                 | Types           | Description |
| ---------------------- | --------------- | ----------- |
| ErpFieldId, ErpItemKey | FK, String(254) | Unique      |

## Relationships

| Table                    | Description                                                                                                                |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| [associate](./associate) | Employees, resources and other users - except for External persons                                                         |
| [ErpField](./erpfield)   | Store the metadata describing the fields that belong to an actor/connection combination, as described by the Erp Connector |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [SuperOffice.WebApi.Data.ErpConnectionListMappingContainer](/en/api/reference/webapi/SuperOffice.WebApi.Data.ErpConnectionListMappingContainer.md)
- [SuperOffice.WebApi.Data.ErpCrmListItemMapping](/en/api/reference/webapi/SuperOffice.WebApi.Data.ErpCrmListItemMapping.md)
- [SuperOffice.WebApi.Data.ErpConnectionListMapping](/en/api/reference/webapi/SuperOffice.WebApi.Data.ErpConnectionListMapping.md)
- [Get Connection List Mappings](/en/api/reference/restful/agent/erpsync_agent/get-connection-list-mappings.md)
- [Save Connection List Mappings](/en/api/reference/restful/agent/erpsync_agent/save-connection-list-mappings.md)
- [ErpField table](/en/database/tables/erpfield.md)
