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

# AutomatedCategoryUpdate table

> Info on how to autoupdate category when changing sale or leadstatus on person

## AutomatedCategoryUpdate Table (550)

Info on how to autoupdate category when changing sale or leadstatus on person

## Fields

| Name                        | Description                                                                                      | Type                                                            | Nullable |
| --------------------------- | ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- | :------: |
| automatedcategoryupdate\_id | Primary key                                                                                      | PK                                                              |    No    |
| trigger\_type               | The type of change to trigger the auto update                                                    | Enum [CategoryUpdateTrigger](./enums/categoryupdatetrigger.mdx) |    Yes   |
| user\_confirmation          | Whether to ask the user for confirmation before applying the autoupdate                          | Bool                                                            |    Yes   |
| default\_category           | The default category id to update to, and the actual new value if no user confirmation is needed | FK [Category](./category.mdx)                                   |    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    |
| leadstatus\_id              | The leadstatus id to match on person, to trigger autoupdate of category                          | FK [leadstatus](./leadstatus.mdx)                               |    Yes   |

<img src="https://mintcdn.com/superofficeas/-KbDeS3ObOMH8eFq/media/loc/en/database/tables/AutomatedCategoryUpdate.png?fit=max&auto=format&n=-KbDeS3ObOMH8eFq&q=85&s=3e9dc69577d2047b247516f452313ee1" alt="AutomatedCategoryUpdate table relationship diagram" width="768" height="732" data-path="media/loc/en/database/tables/AutomatedCategoryUpdate.png" />

## Indexes

| Fields        | Types | Description |
| ------------- | ----- | ----------- |
| trigger\_type | Enum  | Unique      |

## Relationships

| Table                      | Description                                                                                       |
| -------------------------- | ------------------------------------------------------------------------------------------------- |
| [associate](./associate)   | Employees, resources and other users - except for External persons                                |
| [Category](./category)     | Category list table                                                                               |
| [leadstatus](./leadstatus) | List items of lead status that is selectable for contacts and persons that have specific category |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [SuperOffice.WebApi.Data.AutomatedCategoryUpdate](/en/api/reference/webapi/SuperOffice.WebApi.Data.AutomatedCategoryUpdate.md)
- [Save All Automated Category Updates](/en/api/reference/restful/agent/list_agent/save-all-automated-category-updates.md)
- [Get All Automated Category Updates](/en/api/reference/restful/agent/list_agent/get-all-automated-category-updates.md)
- [SuperOffice.WebApi.Data.List SaveAllAutomatedCategoryUpdatesRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.List_SaveAllAutomatedCategoryUpdatesRequest.md)
- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
