Skip to content

PROC_UpdateFields.DTO_Field

Class

apex
global inherited sharing class PROC_UpdateFields.DTO_Field

DTO representing a field to update on an SObject.

Since: 1.0


Fields

FieldDescription
global String nameAPI name of the field to update (e.g., 'Name').
global PROC_UpdateFields.FieldUpdateMethod updateMethodMethod to use for updating the field (default: REPLACE).
global Object valueValue to apply to the field.

Methods

MethodDescription
global void setObjectValue(SObject currentSObject)Sets the field value on an SObject based on the specified update method.

Method Details

setObjectValue

apex
global void setObjectValue(SObject currentSObject)

Sets the field value on an SObject based on the specified update method.

Parameters:

  • currentSObject (SObject) - The SObject to update.

Since: 1.0

Example:

apex
instance.setObjectValue(record);

Field Details

name

apex
global String name

Type: String

API name of the field to update (e.g., 'Name').

Since: 1.0

Example:

apex
String value = instance.name;

updateMethod

apex
global PROC_UpdateFields.FieldUpdateMethod updateMethod

Type: PROC_UpdateFields.FieldUpdateMethod

Method to use for updating the field (default: REPLACE).

Since: 1.0

Example:

apex
FieldUpdateMethod value = instance.updateMethod;

value

apex
global Object value

Type: Object

Value to apply to the field.

Since: 1.0

Example:

apex
Object value = instance.value;