PROC_UpdateFields.DTO_Parameters
Class · Group: Bulk DML
global inherited sharing class PROC_UpdateFields.DTO_ParametersDTO for parameters to query and update records.
Fields
| Field | Description |
|---|---|
| global AccessLevel accessLevel | The access level for the query and the save, or null to use the package default. |
| global Boolean allOrNothing | Indicates if the update requires all-or-nothing behavior (default: false). |
| global String objectName | API name of the SObject to update (e.g., 'Account'). |
| global QRY_Condition.Evaluable searchConditions | Conditions to filter records for updating. |
| global List<PROC_UpdateFields.DTO_Field> updateFields | List of field updates to apply to the SObjects. |
accessLevel
global AccessLevel accessLevelType: AccessLevel
The access level for the query and the save, or null to use the package default. The default runs with the running user's object, field and sharing access (user mode), unless the package's feature settings turn it off. UTIL_BulkUpdates leaves this null, so its jobs use the default too. Set AccessLevel.SYSTEM_MODE to skip those checks, only after your own code has checked that the user may make the change. Set AccessLevel.USER_MODE to always check the running user's access. A user mode level that adds a permission set, built with AccessLevel.USER_MODE.withPermissionSetId(...), is used as it is for the query and the save, so the running user also gets the access that permission set gives.
Example
AccessLevel mode = instance.accessLevel;allOrNothing
global Boolean allOrNothingType: Boolean
Indicates if the update requires all-or-nothing behavior (default: false).
Example
Boolean value = instance.allOrNothing;objectName
global String objectNameType: String
API name of the SObject to update (e.g., 'Account').
Example
String value = instance.objectName;searchConditions
global QRY_Condition.Evaluable searchConditionsType: QRY_Condition.Evaluable
Conditions to filter records for updating.
Example
QRY_Condition.Evaluable value = instance.searchConditions;updateFields
global List<PROC_UpdateFields.DTO_Field> updateFieldsType: List
List of field updates to apply to the SObjects.
Example
List<DTO_Field> value = instance.updateFields;