---
schema_version: "1"
id: 35c3ffc74af61e20a86c9f32ba66b7d2a53dd5618ce349fedf78bd91b9ec9d12
title: Manual Inputs Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/retail_api/TPM_ManualInputs.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6ddfa0ef4589a9d65aa506b93b9bc6ca13efb9f1cbff07118e76f13abfff3b87
description: This APEX class provides programmatic access to the TPM Promotion Manual Inputs for Calculation Overrides. This class is used also for Scenario Manual Inputs on Promotion. Adds a new Manual Input entry to the instance.Returns the list of all Manual Inputs in the current instance.Removes the passed in manual input from the instance. If the manual input is not contained in the instance, nothing is removed.Serializes the manual inputs information to a generic Object instance. Useful for using the information in Remote calls.Serializes the manual inputs information for storage.Creates an empty structure with no manual inputs.Deserializes the received manual inputs from the input generic object. The current instance will be cleared and the manual inputs represented by the input will be loaded.Deserializes the received manual inputs from the input payload. The current instance will be cleared and the manual inputs represented by the payload will be loaded.Deletes all manual inputs from the instance. Similar state as creating a new instance.Returns a list of all manual inputs in the current instance.Adds a new manual input entry to the instance.
---
# Manual Inputs Class

This APEX class provides programmatic access to the TPM Promotion Manual Inputs for Calculation Overrides. This class is used also for Scenario Manual Inputs on Promotion.

![Note](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/images/icon_note.png)

#### Note

You can override the manual fields only after creating an instance of this class.

## Namespace

cgcloud

- **[TPM\_ManualInputs Methods](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#tpm_manual_inputs)**

## TPM\_ManualInputs Methods

The following are methods for TPM\_ManualInputs.

- **[global ManualCalculationInput](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#global_manual_calculation)**  
    Adds a new Manual Input entry to the instance.
- **[global List](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#unique_531502841)**  
    Returns the list of all Manual Inputs in the current instance.
- **[global void removeManualInput](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#unique_1738351664)**  
    Removes the passed in manual input from the instance. If the manual input is not contained in the instance, nothing is removed.
- **[global Object toGenericObject](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#generic_object)**  
    Serializes the manual inputs information to a generic Object instance. Useful for using the information in Remote calls.
- **[global String toJSON](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#global_TPM_json)**  
    Serializes the manual inputs information for storage.
- **[global TPM\_ManualInputs](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#method_promotion.do.work)**  
    Creates an empty structure with no manual inputs.
- **[global TPM\_ManualInputs load](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#global_TPM_ManualInputs)**  
    Deserializes the received manual inputs from the input generic object. The current instance will be cleared and the manual inputs represented by the input will be loaded.
- **[global TPM\_ManualInputs load](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#manual_input)**  
    Deserializes the received manual inputs from the input payload. The current instance will be cleared and the manual inputs represented by the payload will be loaded.
- **[global void clear](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#global_void_clear)**  
    Deletes all manual inputs from the instance. Similar state as creating a new instance.
- **[global List<ManualCalculationInput.ManualInput> getManualInputs](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#globalTPM_GetManualInputs)**  
    Returns a list of all manual inputs in the current instance.
- **[global ManualCalculationInput.ManualInput addManualInput](https://developer.salesforce.com/docs/atlas.en-us.retail_api.meta/retail_api/TPM_ManualInputs.htm#globalTPM_AddManualInputs)**  
    Adds a new manual input entry to the instance.

### global ManualCalculationInput

Adds a new Manual Input entry to the instance.

#### API Version

55

#### Signature

global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)

### global List

Returns the list of all Manual Inputs in the current instance.

#### API Version

55

#### Signature

global List<ManualCalculationInput.ManualInput> getManualInputs()

### global void removeManualInput

Removes the passed in manual input from the instance. If the manual input is not contained in the instance, nothing is removed.

#### API Version

55

#### Signature

global void removeManualInput(ManualCalculationInput.ManualInput mi)

### global Object toGenericObject

Serializes the manual inputs information to a generic Object instance. Useful for using the information in Remote calls.

#### API Version

55

#### Signature

global Object toGenericObject()

### global String toJSON

Serializes the manual inputs information for storage.

#### API Version

55

#### Signature

global String toJSON()

### global TPM\_ManualInputs

Creates an empty structure with no manual inputs.

#### API Version

55

#### Signature

global TPM\_ManualInputs()

### global TPM\_ManualInputs load

Deserializes the received manual inputs from the input generic object. The current instance will be cleared and the manual inputs represented by the input will be loaded.

#### API Version

55

#### Signature

global TPM\_ManualInputs load(Object data)

### global TPM\_ManualInputs load

Deserializes the received manual inputs from the input payload. The current instance will be cleared and the manual inputs represented by the payload will be loaded.

#### API Version

55

#### Signature

global TPM\_ManualInputs load(String payload)

### global void clear

Deletes all manual inputs from the instance. Similar state as creating a new instance.

#### API Version

55

#### Signature

global void clear()

### global List<ManualCalculationInput.ManualInput> getManualInputs

Returns a list of all manual inputs in the current instance.

#### API Version

55.0

#### Signature

global List<ManualCalculationInput.ManualInput> getManualInputs()

### global ManualCalculationInput.ManualInput addManualInput

Adds a new manual input entry to the instance.

#### API Version

55.0

#### Signature

global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)