PROC_UpdateFields.DTO_Field
Class
apex
global inherited sharing class PROC_UpdateFields.DTO_FieldDTO representing a field to update on an SObject.
Since: 1.0
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. |
Methods
| Method | Description |
|---|---|
| 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 nameType: 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 updateMethodType: 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 valueType: Object
Value to apply to the field.
Since: 1.0
Example:
apex
Object value = instance.value;