MilestoneType

Represents the name and description of a milestone, which you can use in an entitlement process to track important steps in cases.

This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

Milestone types are stored in the milestoneTypes directory of the corresponding package directory. The extension is .milestoneType.

Version

MilestoneType is available in API version 27.0 and later.

Fields

Field Name Field Type Description
description string The description of the milestone.
RecurrenceType MilestoneTypeRecurrenceType (enumeration of type string) The type of recurrence for the milestone. Available in API version 29.0 and later. Valid values are:
  • none—Specifies no recurrence for the milestone. The milestone occurs only one time until the entitlement process exits.
  • recursIndependently—Specifies independent recurrence for the milestone.
  • recursChained—Specifies sequential recurrence for the milestone.

Declarative Metadata Sample Definition

Here’s a sample milestone type.

<?xml version="1.0" encoding="UTF-8"?>
<MilestoneType xmlns="http://soap.sforce.com/2006/04/metadata">
    <description>First Response Time</description>
</MilestoneType>

And, here’s the sample package.xml file that references the MilestoneType component definition:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>* or a valid name of a milestone type</members>
        <name>MilestoneType</name>
    </types>
    <version>29.0</version>
</Package>

Wildcard Support in the Manifest File

This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.