PROC_UpdateFields.DTO_Field
Class
apex
global inherited sharing class PROC_UpdateFields.DTO_FieldDTO representing a field to update on an SObject.
Methods
| Method | Description |
|---|---|
| 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
| Parameter | Type | Description |
|---|---|---|
currentSObject | SObject | The SObject to update. |
Example
apex
instance.setObjectValue(record);Fields
| Field | Description |
|---|---|
| global String name | API name of the field to update (e.g., 'Name'). |
| global PROC_UpdateFields.FieldUpdateMethod updateMethod | Method to use for updating the field (default: REPLACE). |
| global Object value | Value to apply to the field. |
name
apex
global String nameType: String
API name of the field to update (e.g., 'Name').
Example
apex
String value = instance.name;updateMethod
apex
global PROC_UpdateFields.FieldUpdateMethod updateMethodType: PROC_UpdateFields.FieldUpdateMethod
Method to use for updating the field (default: REPLACE).
Example
apex
FieldUpdateMethod value = instance.updateMethod;value
apex
global Object valueType: Object
Value to apply to the field.
Example
apex
Object value = instance.value;