---
schema_version: "1"
id: f8331b38d9b4e7d637bd30002b797b1d25887329dfb8e867bd1c0d02474c84dd
title: Goal
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_goal.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_goal.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bfbea89e295fb1acd9cef8290531f71ddeb80f98f2ee04ce8b52405fcc3d4b31
description: The Goal object represents the components of a goal such as its name, description, and status.
---
# Goal

The Goal object represents the components of a goal such as its name, description, and status.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

The original WDC feature is unavailable as of Spring '22. This object isn't available as of API version 54.0. For more information, see [Phased WDC (legacy Work.com) Feature Retirement](https://help.salesforce.com/s/articleView?id=000356306&type=1&language=en_US).

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

| Field Name | Details |
| --- | --- |
| CompletionDate | 
Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The completion date of the goal.



 |
| Description | 

Type

textarea

Properties

Create, Nillable, Update

Description

The description of the goal. The maximum length is 65,535 characters.



 |
| DueDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The date the goal is due.



 |
| ImageUrl | 

Type

url

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The URL for the goal image. The image must be stored in Documents and set as externally available. Applicable only to Goal objects of Type: Goal.



 |
| IsKeyCompanyGoal | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

Indicates whether the goal is a key company goal.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp that indicates when a user last viewed a record that is related to this goal.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp that indicates when a user last viewed this goal. If this value is null, this record might have been only referenced (LastReferencedDate) and not viewed.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The name of the goal. The maximum length is 255 characters.



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

ID of the user who owns the goal.



 |
| Progress | 

Type

percent

Properties

Filter, Nillable, Sort

Description

The progress of the goal measured as a percentage.



 |
| StartDate | 

Type

date

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The start date of the goal.



 |
| Status | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The status of the goal.

Possible values:

- Draft
- Published
- Completed
- Canceled
- Not Completed







 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[GoalFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[GoalHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[GoalOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

The original WDC feature is unavailable as of Spring '22. This object isn't available as of API version 54.0. For more information, see [Phased WDC (legacy Work.com) Feature Retirement](https://help.salesforce.com/s/articleView?id=000356306&type=1&language=en_US).

[GoalShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.