---
schema_version: "1"
id: 8bae7c59fe3e6bc175c930c8922e0ecba582118d70eefb3e94e67cc003ba98da
title: LearningEvaluationResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2b6fe67b90b5779c455b304fe8068ec9737cb82a5e20a44bc293cd8ef9342812
description: Represents a user’s progress and progress status of a custom exercise in an Enablement program.Returns the progress percentage of the learning item.Retrieves the progress status of the learning item.Sets the progress percentage of the learning item.Sets the progress status of the learning item.
---
# LearningEvaluationResult Class

Represents a user’s progress and progress status of a custom exercise in an Enablement program.

## Namespace

[sfdc\_enablement](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_sfdc_enablement.htm "The sfdc_enablement namespace provides classes for creating custom learning items to implement custom exercise types in Enablement programs. Lightning web components are used to render the custom exercises on Program Builder.")

## Usage

To calculate the user’s progress through an exercise as a percentage and return the progress status, use the sfdc\_enablement.LearningEvaluationResult class inside the [sfdc\_enablement.LearningItemEvaluationHandler](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningItemEvaluationHandler.htm#apex_class_sfdc_enablement_LearningItemEvaluationHandler "Contains methods to customize the evaluation process of a learning item."). In your custom code, set the percentages to correspond to these [sfdc\_enablement.LearningItemProgressStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_sfdc_enablement_LearningItemProgressStatus.htm "Represents the status of a user’s progress for a learning item in an Enablement program.") enum values.

- NotStarted is equal to 0.00
- InProgress is from 0.01 through 99.99
- Completed is equal to 100.00

## Example

See example code in [sfdc\_enablement.LearningItemEvaluationHandler](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningItemEvaluationHandler.htm#apex_class_sfdc_enablement_LearningItemEvaluationHandler "Contains methods to customize the evaluation process of a learning item.").

- **[LearningEvaluationResult Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm#apex_sfdc_enablement_LearningEvaluationResult_methods)**

## LearningEvaluationResult Methods

The following are methods for LearningEvaluationResult.

- **[getLearningItemProgress()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm#apex_sfdc_enablement_LearningEvaluationResult_getLearningItemProgress)**  
    Returns the progress percentage of the learning item.
- **[getLearningItemProgressStatus()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm#apex_sfdc_enablement_LearningEvaluationResult_getLearningItemProgressStatus)**  
    Retrieves the progress status of the learning item.
- **[setLearningItemProgress(learningItemProgress)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm#apex_sfdc_enablement_LearningEvaluationResult_setLearningItemProgress)**  
    Sets the progress percentage of the learning item.
- **[setLearningItemProgressStatus(learningItemProgressStatus)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdc_enablement_LearningEvaluationResult.htm#apex_sfdc_enablement_LearningEvaluationResult_setLearningItemProgressStatus)**  
    Sets the progress status of the learning item.

### getLearningItemProgress()

Returns the progress percentage of the learning item.

#### Signature

public Double getLearningItemProgress()

#### Return Value

Type: [Double](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_double.htm#apex_methods_system_double "Contains methods for the Double primitive data type.")

The progress percentage is formatted to two decimal places.

### getLearningItemProgressStatus()

Retrieves the progress status of the learning item.

#### Signature

public sfdc\_enablement.LearningItemProgressStatus getLearningItemProgressStatus()

#### Return Value

Type: [sfdc\_enablement.LearningItemProgressStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_sfdc_enablement_LearningItemProgressStatus.htm "Represents the status of a user’s progress for a learning item in an Enablement program.")

### setLearningItemProgress(learningItemProgress)

Sets the progress percentage of the learning item.

#### Signature

public void setLearningItemProgress(Double learningItemProgress)

#### Parameters

- **learningItemProgress**:
    
    Type: [Double](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_double.htm#apex_methods_system_double "Contains methods for the Double primitive data type.")
    
    The progress in percentage formatted to two decimal places.

#### Return Value

Type: void

### setLearningItemProgressStatus(learningItemProgressStatus)

Sets the progress status of the learning item.

#### Signature

public void setLearningItemProgressStatus(sfdc\_enablement.LearningItemProgressStatus learningItemProgressStatus)

#### Parameters

- **learningItemProgressStatus**:
    
    Type: [Sfdc\_enablement.LearningItemProgressStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_sfdc_enablement_LearningItemProgressStatus.htm "Represents the status of a user’s progress for a learning item in an Enablement program.")

#### Return Value

Type: void