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

# workflow_goal table

> A set of goals related to a workflow. Some goals will have search criterias associated with it to determine if the goal has been reached.

## workflow\_goal Table (529)

A set of goals related to a workflow. Some goals will have search criterias associated with it to determine if the goal has been reached.

## Fields

| Name                      | Description                            | Type                                                  | Nullable |
| ------------------------- | -------------------------------------- | ----------------------------------------------------- | :------: |
| workflow\_goal\_id        | Primary key                            | PK                                                    |    No    |
| workflow\_id              | The flow this goal belongs to          | FK [workflow](./workflow.mdx)                         |    Yes   |
| goal\_type                | A goal that will conclude the workflow | Enum [WorkflowGoalType](./enums/workflowgoaltype.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    |

<img src="https://mintcdn.com/superofficeas/8-OIGQQJR0VGDXy_/media/loc/en/database/tables/workflow_goal.png?fit=max&auto=format&n=8-OIGQQJR0VGDXy_&q=85&s=69e9203da0607e24849e53f212deb0d1" alt="workflow_goal table relationship diagram" width="653" height="59" data-path="media/loc/en/database/tables/workflow_goal.png" />

## Indexes

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

## Relationships

| Table                    | Description                                                        |
| ------------------------ | ------------------------------------------------------------------ |
| [associate](./associate) | Employees, resources and other users - except for External persons |
| [workflow](./workflow)   | SuperOffice specific info about a workflow                         |

## Replication Flags

* None

## Security Flags

* Sentry controls access to items in this table using user's Role and data rights matrix on the table's parent.


## Related topics

- [NSWorkflowGoal](/en/automation/crmscript/reference/CRMScript.NetServer.NSWorkflowGoal.md)
- [Save Workflow Goal](/en/api/reference/restful/agent/workflow_agent/save-workflow-goal.md)
- [Delete Workflow Goal](/en/api/reference/restful/agent/workflow_agent/delete-workflow-goal.md)
- [Enum WorkflowGoalType](/en/automation/crmscript/reference/CRMScript.NetServer.WorkflowGoalType.md)
- [Get Workflow Goal](/en/api/reference/restful/agent/workflow_agent/get-workflow-goal.md)
- [SuperOffice.WebApi.Data.WorkflowGoal](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowGoal.md)
