Try our conversational search powered by Generative AI!

Asset importer



I'm looking to import assets from a ftp into the CMS. I was looking into 

But I found out that it doesn't work on Commerce 11. (FolderEntity doesn't exist anymore and nobody is maintaining the Asset Importer code)

I was looking into that code and found that I could use CmsContentAssetImporter from there. 

Importing seems to work, but I have a problem can't seem to understand how to add a group to the asset. Mediachase.Commerce.Assets.Import.AssetMapping doesn't have a group property and in UI interface all assets groups have the default name of "small"

I've seen an AssetWrapper class that has a group property but couldn't find any example on how to use that. 

I need those groups to distinguish between main image, alternate image or swatch image. 

Does anybody have a suggestion on how could we import images and assign them a group name or any other suggestions?

Thank you

Sep 18, 2017 17:26

We would suggest to use ServiceAPI for import assets (And mapping to entries) instead.

Sep 19, 2017 9:53

Ok, I'll investigate how we can do that.
Just in case are there any examples of importing using this?I see in documentation

Is there where I should look?

Sep 19, 2017 11:06

You should probably look at this

Sep 19, 2017 11:08
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.