Newer Version Available
LearningItemType
Parent Type
File Suffix and Directory Location
LearningItemType components have the suffix .learningItemType and are stored in the learningItemTypes folder.
Version
LearningItemType components are available in API version 62.0 and later.
Special Access Rules
- For Enablement admins to create, update, and delete Enablement programs, the Design and Deliver Enablement Programs permission is required. This permission is enabled by default as part of the Manage Enablement Essentials permission set, which comes with the Enablement add-on license.
- For users who take Enablement programs, the Take Enablement Programs permission is required. This permission is enabled by default as part of the Use Enablement Programs permission set, which comes with the Enablement add-on license.
Fields
| Field Name | Description |
|---|---|
| apexEvaluationHandler |
|
| apexSerializerDeserializer |
|
| customField |
|
| customObject |
|
| developerName |
|
| icon |
|
| lightningComponentDefinition |
|
| masterLabel |
|
Declarative Metadata Sample Definition
The following is an example of a LearningItemType component for a custom exercise type that shows a screen flow.
1<?xml version="1.0" encoding="UTF-8"?>
2<LearningItemType xmlns="http://soap.sforce.com/2006/04/metadata">
3 <apexEvaluationHandler>ScreenFlowEvaluationHandler</apexEvaluationHandler>
4 <apexSerializerDeserializer>ScreenFlowSerializerDeserializer</apexSerializerDeserializer>
5 <customField>ScreenFlow_Field__c</customField>
6 <customObject>ScreenFlow_Object__c</customObject>
7 <developerName>ScreenFlowLearningItemType</developerName>
8 <icon>standard:flow</icon>
9 <lightningComponentDefinition>screenFlowViewer</lightningComponentDef>
10 <masterLabel>Screen Flow Exercise</masterLabel>
11</LearningItemType>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>ScreenFlowLearningItemType</members>
5 <name>LearningItemType</name>
6 </types>
7 <version>62.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.