Skip to content

PROC_UpdateFields.DTO_Parameters ​

Class · Group: Bulk DML

apex
global inherited sharing class PROC_UpdateFields.DTO_Parameters

DTO for parameters to query and update records.


Fields ​

FieldDescription
global AccessLevel accessLevelThe access level for the query and the save, or null to use the package default.
global Boolean allOrNothingIndicates if the update requires all-or-nothing behavior (default: false).
global String objectNameAPI name of the SObject to update (e.g., 'Account').
global QRY_Condition.Evaluable searchConditionsConditions to filter records for updating.
global List<PROC_UpdateFields.DTO_Field> updateFieldsList of field updates to apply to the SObjects.

accessLevel ​

apex
global AccessLevel accessLevel

Type: 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

apex
AccessLevel mode = instance.accessLevel;

allOrNothing ​

apex
global Boolean allOrNothing

Type: Boolean

Indicates if the update requires all-or-nothing behavior (default: false).

Example

apex
Boolean value = instance.allOrNothing;

objectName ​

apex
global String objectName

Type: String

API name of the SObject to update (e.g., 'Account').

Example

apex
String value = instance.objectName;

searchConditions ​

apex
global QRY_Condition.Evaluable searchConditions

Type: QRY_Condition.Evaluable

Conditions to filter records for updating.

Example

apex
QRY_Condition.Evaluable value = instance.searchConditions;

updateFields ​

apex
global List<PROC_UpdateFields.DTO_Field> updateFields

Type: List

List of field updates to apply to the SObjects.

Example

apex
List<DTO_Field> value = instance.updateFields;