Search...
bulkUpdateProductsProperty( )
Developer Preview
Updates a specified property for up to 100 products at a time.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function bulkUpdateProductsProperty(ids: Array<string>, set: SetValue): Promise<BulkUpdateProductsResponse>
bulkUpdateProductsProperty Parameters
NAME
TYPE
DESCRIPTION
ids
Array<
string
>Product IDs.
set
SetValue
Field to update.
Returns
Return Type:
Promise<
BulkUpdateProductsResponse
>NAME
TYPE
DESCRIPTION
bulkActionMetadata
BulkActionMetadata
Bulk action metadata.
results
Array<
BulkProductResult
>Bulk action results.
Was this helpful?
bulkUpdateProductsProperty example
Copy Code
1import { products } from 'wix-stores.v2';23 async function bulkUpdateProductsProperty(ids, set) {4 try {5 const result = await products.bulkUpdateProductsProperty(ids, set);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13