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.


Methods ​

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

setObjectValue ​

apex
global void setObjectValue(SObject currentSObject)

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

Parameters

ParameterTypeDescription
currentSObjectSObjectThe SObject to update.

Example

apex
instance.setObjectValue(record);

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.

name ​

apex
global String name

Type: String

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

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).

Example

apex
FieldUpdateMethod value = instance.updateMethod;

value ​

apex
global Object value

Type: Object

Value to apply to the field.

Example

apex
Object value = instance.value;