Son Do
Aug 22, 2014
visibility 5316
star star star star star
(3 votes)

Asset Importer – Commerce useful tool

Refer to SDK: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Commerce/75/Content/Assets-and-media/Asset-Importer/

I’ll do a sample using Asset Importer with more simple steps.

Prerequisites:

- A Commerce site was upgraded to latest Commerce nuget package

- Code sample package was downloaded from http://world.episerver.com/Download/Items/EPiServer-Commerce/EPiServer-75-Commerce-tools-and-code-samples/

Complie tool Asset Importer

- Extract Commerce75CodeSamplePackage and EPiServer.Business.Commerce.Tools.ImportAsset.zip

- Open EPiServer.Business.Commerce.Tools.ImportAsset.csproj

- Open Nuget package Manager Console and install latest Commerce nuget package: install-package EPiServer.Commerce.Core

- Make sure project can be built

Preparing folder asset

I have some images that will be imported to Commerce Media, and put them to a folder, name it as “Images” for example.

Preparing mapping file

Write a simple csv file and call it “mapping.csv”

Execute the importer

Open cmd and execute this command:

AssetImporter ..\..\Commerce75CodeSamplePackage\mapping.csv ..\..\Commerce75CodeSamplePackage\Images D:\EPiServer\MyEPiServerSite\wwwroot babycatalog –byasset

Syntax of AssetImporter command:

AssetImporter <mapping_asset_file> <asset_folder> <commerce_core_site_path> [asset_root] [-byasset] [-verbose]

Drink a coffee and enjoy result

Restart web application and open site, you can see:

- Images are import as media into babycatalog.

- Products/variants now have images.

Aug 22, 2014

Comments

error Please login to comment.
Latest blogs
What the CMS 13 MCP Server Actually Does When You Write Properties

This post covers the setup gotchas, what each

Adnan Zameer | Nov 19, 2026 |

Pick images from Optimizely DAM straight into rich text

Rich text editors in Optimizely CMS (SaaS), and in CMS 13.7.0 on sites that use the Content Manager, have a new image button. It puts images from t...

Stuart Greig | Nov 18, 2026

Setting up the TinyMCE image picker, and DAM images in Graph and the CMS REST API

The new TinyMCE image and video pickers put images and video from the CMS and from Optimizely DAM straight into rich text, in Optimizely CMS (SaaS)...

Stuart Greig | Nov 18, 2026

Add your own image source to the TinyMCE image picker

In CMS 13.7.0,  the TinyMCE image picker lets editors browse images from the CMS and from Optimizely DAM. Images from your own library can also be...

Stuart Greig | Nov 18, 2026

CMS 13 Headless Masterclass, Part 1: Introduction

Why Optimizely CMS 13 is ready to build on, why headless is its natural fit, and what this masterclass builds, part by part.

Michał Mitas | Nov 18, 2026 |

Lessons From the Optimizely Web Experimentation Compromise

Introduction On 16th November 2026, Scott Helme and the team at Report URI published a detailed investigation into malicious JavaScript being serve...

Mark Stott | Nov 17, 2026