dw_product_update
Update an existing DynamicWeb product by providing its ID and specifying which fields, custom fields, or category fields to change.
Instructions
Update fields on an existing DynamicWeb product. Fetches the current product, overlays your field updates, and saves via ProductSave (update mode, Query.Type=ProductById).
'fields': top-level product fields (Name, DefaultPrice, Stock, Active, etc.) - PascalCase or camelCase.
'customFields': global product custom fields, keyed by SystemName (e.g. {Color: "red"}).
'categoryFields': product category fields, keyed by SystemName.
Manage the schema of customFields/categoryFields via dw_product_field_save / dw_product_category_save.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product ID, e.g. 'PROD1' | |
| languageId | No | LANG1 | |
| variantId | No | ||
| fields | No | Top-level fields, e.g. {DefaultPrice: 99.99, Stock: 42} | |
| customFields | No | Custom field values keyed by SystemName, e.g. {Color: 'red', BatteryLife: 8} | |
| categoryFields | No | Category field values keyed by SystemName | |
| runUpdateIndex | No |