MilestoneType

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

Parent Type 

This type extends Metadata and inherits its fields.

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 

description 

  • Type: string
  • Required: No
  • Description: The description of the milestone.

recurrenceType 

  • Type: MilestoneTypeRecurrenceType (enumeration of type string)
  • Required: No
  • Introduced: API version 29.0
  • Description: The type of recurrence for the milestone.
  • Possible values:
    • 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.

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

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

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>* or a valid name of a milestone type</members>
5        <name>MilestoneType</name>
6    </types>
7    <version>29.0</version>
8</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.