Introduction

The WixDataBulkPatch methods enable you to specify the modifications you want to apply to one or more data items. You can apply multiple modifications to each item.

Build a bulk patch operation by calling the bulkPatch() method on the data items, and refine it by chaining WixDataBulkPatch modification methods onto it. You can set or increment a field value,remove it altogether, or add to or remove items from an array field. The methods are applied in the order in which they are chained.

Finally, run the patch operation by calling run().

Notes:

For example, the following code patches two costume items by adding sizes, removing a color option, and marking them as available:

Copy
Did this help?