SvcCatalogCategory defines a grouping of individual catalog items in Service Catalog. It controls the category's primary label, active state, image, display order, and optional placement beneath another category. It represents the category, not an individual catalog item.
Key Elements
| Element | What the Element Controls |
|---|---|
masterLabel |
Required string. Supplies the category's primary label. |
isActive |
Boolean indicating whether the category is active. Values are true or false. |
parentCategory |
Optional name of another SvcCatalogCategory under which this category appears. The referenced parent cannot itself have a parent. |
image |
Developer name of the content document displayed for the category. References ContentAsset; do not supply a record ID. |
sortOrder |
Integer controlling the category's display order, not execution order. |
isProtected |
Auto-generated boolean with no impact. It does not enforce protection or restrict access. |
Behavior and Constraints
Categories support only one level of nesting: a parent category and its children. A category named in parentCategory cannot have its own parentCategory.
When reorganizing categories, inspect references in both directions. Check the category's own parent reference and whether other categories already name it as their parent. Assigning a parent to a category that already has children would create an unsupported second nesting level.
isActive indicates whether the category is active. Do not confuse it with isProtected: the latter is auto-generated and has no effect, including no enforced protection or access restriction.
sortOrder controls presentation order only. Its numeric value is not an execution sequence.
Deployment and Retrieval
SvcCatalogCategory components use the .category file suffix and reside in the svcCatalogCategories folder. The metadata type supports the wildcard * in a package.xml manifest for deployment and retrieval.
The category hierarchy and category image are separate dependencies. The parentCategory value names another category; the image value identifies a ContentAsset by developer name, not by record ID. Check both references when preparing category changes.
A reorganization must preserve the one-level nesting limit across the affected categories, not just within the component being edited. In particular, adding a parent reference to a category that other categories already use as a parent creates an unsupported hierarchy.
Relationships
SvcCatalogCategory connects to another category through parentCategory and to its displayed content asset through image. Other categories can reference it as their parent, so incoming references matter when changing its position in the hierarchy.
References
-
ContentAsset:image. -
SvcCatalogCategory:parentCategory.
Referenced By
-
SvcCatalogCategory:parentCategory.
Common Questions
How many levels of Service Catalog categories can I create?
Only one level of nesting is supported: a parent and its children. A child cannot also be a parent, and a referenced parent cannot have its own parent.
Does the image field take a Salesforce record ID?
No. image takes the developer name of the content document displayed for the category and references ContentAsset.
Does isProtected prevent changes or restrict category access?
No. isProtected is auto-generated and has no impact. It is not an enforced protection or access setting.
Can I retrieve all SvcCatalogCategory components with a wildcard?
Yes. SvcCatalogCategory supports * in package.xml. Its components use the .category suffix in the svcCatalogCategories folder.