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

# EntityCounts table

> Number of different entities an associate has created for usage statistics

## EntityCounts Table (547)

Number of different entities an associate has created for usage statistics

## Fields

| Name             | Description                                         | Type                            | Nullable |
| ---------------- | --------------------------------------------------- | ------------------------------- | :------: |
| entitycounts\_id | Primary key                                         | PK                              |    No    |
| associate\_id    | Associate who created the entity                    | FK [associate](./associate.mdx) |    Yes   |
| entity\_name     | The entity measured by this tile                    | String(255)                     |    Yes   |
| records          | Number of related entities an associate has created | Int                             |    Yes   |
| registered       | Registered when                                     | UtcDateTime                     |    Yes   |

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

## Indexes

| Fields                      | Types           | Description |
| --------------------------- | --------------- | ----------- |
| associate\_id, entity\_name | FK, String(255) | Unique      |

## Relationships

| Table                    | Description                                                        |
| ------------------------ | ------------------------------------------------------------------ |
| [associate](./associate) | Employees, resources and other users - except for External persons |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [SuperOffice.WebApi.Data.EntityCounts](/en/api/reference/webapi/SuperOffice.WebApi.Data.EntityCounts.md)
- [Get Entity Counts For All Users](/en/api/reference/restful/agent/diagnostics_agent/get-entity-counts-for-all-users.md)
- [Get Entity Counts For Current User](/en/api/reference/restful/agent/diagnostics_agent/get-entity-counts-for-current-user.md)
- [SuperOffice.WebApi.Agents.DiagnosticsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.DiagnosticsAgent.md)
- [SuperOffice.WebApi.Agents.IDiagnosticsAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IDiagnosticsAgent.md)
- [NSRefCountEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSRefCountEntity.md)
