Appearance
Configure Asset Automation
Asset Automation automatically processes files uploaded through Add assets automated, extracting product identifiers from filenames and linking assets to the correct products.
Set up asset automation
- Go to Settings → Asset data → Automation settings.
- Configure the following:
- Regular expression — A regular expression pattern that extracts the product identifier from the asset filename. For example, to extract
PROD-12345from a filename likePROD-12345-logo.png, usePROD-\d+. - Product data field — Select the Product data field that contains the product identifier value you want to match against. Assets will be linked to products where this field matches the value extracted by the regular expression.
- Always set imported asset as primary asset for product — If checked, imported assets are automatically set as the primary asset for matching products. If unchecked, assets are simply linked without changing the primary asset.
- Regular expression — A regular expression pattern that extracts the product identifier from the asset filename. For example, to extract
- Below these settings, add Asset data fields that should be automatically populated when assets are imported:
- Click Add field.
- Select the Asset data field.
- Enter the value to automatically set for that field.
- Click Add field again to add more fields, or click the delete icon to remove a field.
- Click Save changes.
Test your automation settings
Before using Add assets automated for bulk uploads, test your regular expression with representative filenames:
- Create a test file with a filename containing your product identifier (e.g.,
PROD-12345-logo.png). - Upload it using Assets → Add assets automated.
- Verify that:
- The asset was created successfully.
- The regular expression extracted the correct product identifier.
- The asset was linked to the expected product.
- Data fields were populated correctly if you configured any.
Upload assets with automation
Once configured, users can upload assets with your automation settings:
- Go to Assets.
- Click Add assets automated.
- Select and upload your asset files. The system will:
- Extract product identifiers from filenames using your regular expression.
- Look up matching products by the selected data field.
- Link assets to those products.
- Populate asset data fields with the values you configured.
- Optionally set assets as primary if you enabled that option.
Uploads that fail validation (unsupported file types, duplicates of existing assets) are rejected and reported in the upload results.