Skip to main content
Except for Toggle, every operation has a predefined list of parameter dependencies. For example, this means that when the SearchAndReplace operation is set, the FieldValueInfo.Values property is expected to contain at least three items, but can optionally contain up to 7 entries. Each operation type has a different number of required parameters. One of the simplest operations BulkUpdateSystem.OperationTypes.Toggle, simply flips the current value from true to false, or 0 to 1, and vice versa. Therefore, it’s not necessary to add any values to the FieldValueInfo.Values property to successfully perform the operation.

List of operations

Details of expected values are located in the entities and field types section and reference.
Most updates of existing values will only need one or two values. The trickiest thing about bulk updates is that for different operations, which not only expect different numbers of parameters, the parameters must be passed in specific indexes within the Values array.

Example

Using the Set operation as an example, only the first index of the array is expected to exist with a value to populate the field property. However, the SearchAndReplace operation expects the Values array to contain at least three but up to four indexes. Fields that accept the Set, Clear, SearchAndReplace, and RegEx operation types, and perform a SearchAndReplace operation only use the second ([1]) and third ([2]) index for execution. Values array for: Set, Clear, SearchAndReplace, RegEx: Bulk update Values array When used with a field that accepts the Add, Remove, ReplaceWith, Clear, SearchAndReplace, and RegEx operation types, SearchAndReplace expects parameters to exist in the third ([2]) and fourth ([3]) index. Values array for: Add, Remove, ReplaceWith, Clear, SearchAndReplace, RegEx: Bulk update Values array
There will be cases when some index values are populated but not used. Take the following code example, where a RegEx operation is performed. The first four indexes in the Values property are not used. For performing a RegEx operation, only the last three indexes are required.
Next: In Entities and field types, each field details what parameters are expected at which index in the Expected Field Values column.