Newer Version Available

This content describes an older version of this product. View Latest

SvcCatalogItemDef

Represents the entity associated with a specific, individual service available in the Service Catalog.

File Suffix and Directory Location

SvcCatalogItemDef components have the suffix catalogItem and are stored in the svcCatalogItems folder.

Version

SvcCatalogItemDef components are available in API version 53.0 and later.

Fields

Field Name Description
apiVersion
Field Type
double
Description
The API version in which this catalog item was created. The value for this field updates based on the value of fulfillmentFlow. For catalog items created before version 57.0, the value for this field is null. Available in version 57.0 and later.
catalogFilterCriteria
Field Type
SvcCatalogItemDefFiltrCrit[]
Description
The eligibility rule associated with a catalog item. Eligibility rules customize access to catalog items for different audiences, based on the User object. Available in API version 59.0 and later.
categories
Field Type
SvcCatalogCategoryItem[]
Description
A list of catalog categories that contain this catalog item.
dataCategories
Field Type
SvcCatalogItemDefDataCategorySelection[]
Description
A list of data categories for this catalog item. Available in API version 59.0 and later.
description
Field Type
string
Description
Description of the catalog item.
flow
Field Type
string
Description
The screen flow associated with the catalog item. Available in API version 53.0 to 58.0.
fulfillmentFlow
Field Type
string
Description
Name of the related SvcCatalogFulfillmentFlow, which represents the flow associated with a specific catalog item in the Service Catalog. Available in API version 56.0 and later.
image
Field Type
string
Description
The developer name of a content document to be displayed in the Service Catalog for this item.
inputs
Field Type
SvcCatalogItemAttribute[]
Description
Represents attributes of a catalog item version. Available in API version 57.0 and later.
internalNotes
Field Type
string
Description
Intended to describe what the catalog item does and its implementation. That value is meant for other catalog builders.
isAvailableToAllCustomers
Field Type
boolean
Description
Required. Controls catalog item access for internal users. To share with all internal users, set the value to True. This value corresponds to the Allow Access for All Users option for Internal Access in the Catalog Item Builder. Available in API version 61.0 and later.
isFeatured
Field Type
boolean
Description
Determines if the catalog item is part of the featured catalog items.
isGuestAccessible
Field Type
boolean
Description
Required. Controls catalog item access for guest users. To share with guests, set the value to True. This value corresponds to Guest Visibility option for External Access in the Catalog Item Builder. Available in API version 61.0 and later.
isProtected
Field Type
boolean
Description
An auto-generated value. This value has no impact.
masterLabel
Field Type
string
Description
Required. The primary label for the catalog item record.
sharedTo
Field Type
SharedTo
Description
Describes how the catalog item is shared across multiple catalog categories. SvcCatalogItemDef only supports sharing with groups.
status
Field Type
PublishStatusType (enumeration of type string)
Description

Required. Displays the publishing status of a catalog item.

Values are:

  • Deprecated
  • Draft
  • PendingChanges
  • Published

SvcCatalogItemDefFiltrCrit

Represents the association of an eligibility rule with a catalog item. Eligibility rules customize access to catalog items for different audiences, based on the User object. Available in version 59.0 and later.

Field Name Description
svcCatalogFilterCriteria
Field Type
string
Description
The name of the associated catalogFilerCriteria eligibility filter.

SvcCatalogCategoryItem

Represents the assignment of this service to a category within the Service Catalog.

Field Name Description
isPrimaryCategory
Field Type
boolean
Description
Determines if the catalog category (svcCatalogCategory) is the primary category for this catalog item. Exactly one category per SvcCatalogItemDef component must set this attribute to true.
sortOrder
Field Type
int
Description
The position of the catalog item relative to other catalog items in the catalog category.
svcCatalogCategory
Field Type
string
Description

Required. The catalog category the catalog item is assigned to.

SvcCatalogItemDefDataCategorySelection

Represents a list of data categories for this catalog item. This subtype is available in API version 59.0 and later.

Field Name Description
category
Field Type
string
Description

API name of a data category.

categoryGroup
Field Type
string
Description

API Name of a data category group.

SvcCatalogItemAttribute

Represents an attribute of a catalog item version. It can be a static input filled by the catalog builder user or additional questions that end users answer at runtime. Available in API version 57.0 and later.

Field Name Description
field
Field Type
string
Description

Applicable when the display type is Lookup/Reference.

inputType
Field Type
SvcCatalogItemAttrDataType (enumeration of type string)
Description

Required.

Values are:

  • Attachment
  • Checkbox
  • Currency
  • Date
  • Datetime
  • DisplayText
  • Email
  • IPAddress
  • Integer
  • ListOfBoolean
  • ListOfDouble
  • ListOfInteger
  • ListOfMaps
  • ListOfString
  • Lookup
  • Map
  • MultilineText
  • Number
  • NumericScale
  • Percentage
  • Picklist
  • Queue
  • SingleCheckbox (available in API version 59.0 and later)
  • SinglelineText
  • Text
  • Toggle (available in API version 59.0 and later)
  • URL
inputVariable
Field Type
string
Description

References the input variable to which the attribute value is forwarded.

isRequired
Field Type
boolean
Description

Determines if an answer is required for this question.

label
Field Type
string
Description

A translatable label for rendering the attribute to users.

maxValue
Field Type
double
Description

Applicable when the display type is slider.

minValue
Field Type
double
Description

Applicable when the display type is slider.

name
Field Type
string
Description

Required. Applicable when the display type is Lookup/Reference.

object
Field Type
string
Description
A picklist object’s custom API Name. Applies when inputType is set to Picklist.
options
Field Type
SvcCatalogItemAttrDetail
Description
The values attached to an attribute of an item version.
type
Field Type
SvcCatalogItemAttrType (enumeration of type string)
Description

Required. Type of the attribute; used to determine if it's a pre-filled input or questions to ask users.

Values are:

  • FulfillmentInput
  • UserQuestion
value
Field Type
string
Description

Attribute value defined by the catalog builder.

SvcCatalogItemAttrDetail

Represents the details for an attribute of an item version. Used for options displayed in picklist or checkbox groups.

Field Name Description
isDefault
Field Type
boolean
Description

Required. Marks the attribute detail as the default. Applicable when the input display type is picklist or checkbox.

label
Field Type
string
Description

Required. Picklist option label when the input type is picklist or checkbox.

value
Field Type
string
Description

Attribute value defined by the catalog builder.

Declarative Metadata Sample Definition

The following is an example of a SvcCatalogItemDef component.

1<SvcCatalogItemDef xmlns="http://soap.sforce.com/2006/04/metadata">
2    <apiVersion>57.0</apiVersion>
3    <categories>
4        <isPrimaryCategory>true</isPrimaryCategory>
5        <sortOrder>3</sortOrder>
6        <svcCatalogCategory>Category1</svcCatalogCategory>
7    </categories>
8    <dataCategories>
9        <category>France</category>
10        <categoryGroup>World</categoryGroup>
11    </dataCategories>
12    <masterLabel>Item Draft Update</masterLabel>
13    <description>Item with a Draft state</description>
14    <fulfillmentFlow>TestQuestions</fulfillmentFlow>
15    <isFeatured>false</isFeatured>
16    <isProtected>false</isProtected>
17    <status>Published</status>
18    <inputs>
19        <name>Input1</name>
20        <type>FulfillmentInput</type>
21        <inputVariable>input1</inputVariable>
22        <label>Input Static</label>
23        <inputType>Text</inputType>
24        <isRequired>false</isRequired>
25    </inputs>
26    <inputs>
27        <type>UserQuestion</type>
28        <inputType>Picklist</inputType>
29        <isRequired>false</isRequired>
30        <label>My First Question</label>
31        <name>first_question</name>
32        <options>
33            <label>Option 1</label>
34            <value>option_1</value>
35            <isDefault>true</isDefault>
36        </options>
37        <options>
38            <label>Option 2</label>
39            <value>option_2</value>
40            <isDefault>false</isDefault>
41        </options>
42        <options>
43            <label>Option 3</label>
44            <value>option_3</value>
45            <isDefault>false</isDefault>
46        </options>
47    </inputs>
48</SvcCatalogItemDef>

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.