---
schema_version: "1"
id: 2aba0c0bbd8a9116629828653bd871c57562a1b641b145c0dea185095bca24ab
title: CaseMilestone
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_casemilestone.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_casemilestone.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: eb13962d84782d59ae0db09ed1e1eeb9aadab8d0703206dcf05d68844a0975e9
description: Represents a milestone (required step in a customer support process) on a Case. This object is available in API version 18.0 and later.
---
# CaseMilestone

Represents a milestone (required step in a customer support process) on a Case. This object is available in API version 18.0 and later.

## Supported Calls

describeLayout(), describeSObjects(), query(), retrieve(), update()

## Fields

| Field | Details |
| --- | --- |
| BusinessHoursId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the BusinessHours associated with the CaseMilestone.



 |
| CaseId | 

Type

reference

Properties

Filter

Description

ID of the case.



 |
| CompletionDate | 

Type

dateTime

Properties

Filter, Nillable, Update

Description

The date and time the milestone was completed.



 |
| ElapsedTimeInDays | 

Type

double

Properties

Filter, Nillable

Description

The time required to complete a milestone in days.



 |
| ElapsedTimeInHrs | 

Type

double

Properties

Filter, Nillable

Description

The time required to complete a milestone in hours.



 |
| ElapsedTimeInMins | 

Type

int

Properties

Filter, Nillable

Description

The time required to complete a milestone in minutes.



 |
| IsCompleted | 

Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the milestone is completed (true) or not (false).



 |
| IsViolated | 

Type

boolean

Properties

Defaulted on create, Filter

Description

Indicates whether the milestone is violated (true) or not (false).



 |
| MilestoneTypeId | 

Type

reference

Properties

Filter, Nillable

Description

The ID of the milestone on the case.



 |
| StartDate | 

Type

dateTime

Properties

Filter, Nillable, Update

Description

The date and time the milestone started on the case.



 |
| TargetDate | 

Type

dateTime

Properties

Filter

Description

The date and time the milestone must be completed.



 |
| TargetResponseInDays | 

Type

double

Properties

Filter, Nillable, Sort

Description

The time to complete the milestone in days.



 |
| TargetResponseInHrs | 

Type

double

Properties

Filter, Nillable, Sort

Description

The time to complete the milestone in hours.



 |
| TargetResponseInMins | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The time to complete the milestone in minutes.



 |
| TimeRemainingInDays | 

Type

double

Properties

Group, Nillable, Sort

Description

Time remaining to reach the milestone target, measured in days.



 |
| TimeRemainingInHrs | 

Type

text

Properties

Nillable

Description

Time remaining to reach the milestone target, measured in hours.



 |
| TimeRemainingInMins | 

Type

text

Properties

Group, Nillable, Sort

Description

Time remaining to reach the milestone target. The format is minutes and seconds.



 |
| TimeSinceTargetInDays | 

Type

double

Properties

Nillable, Sort

Description

The time elapsed since the milestone target, measured in days.



 |
| TimeSinceTargetInHrs | 

Type

string

Properties

Group, Nillable, Sort

Description

The time elapsed since the milestone target, measured in hours.



 |
| TimeSinceTargetInMins | 

Type

string

Properties

Group, Nillable, Sort

Description

The time elapsed since the milestone target. The format is minutes and seconds.



 |

## Usage

This object lets you view a milestone on a case. It also lets you view if the milestone was completed and when it must be completed.

#### See Also

- [Case](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_case.htm "Represents a case, which is a customer issue or problem.")
- [MilestoneType](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_milestonetype.htm "Represents a milestone (required step in a customer support process). This object is available in API version 18.0 and later.")
- [SlaProcess](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_slaprocess.htm "Represents an entitlement process associated with an Entitlement. This object is available in API version 19.0 and later.")