Asset importer

Vote:
 

Hi, 

I'm looking to import assets from a ftp into the CMS. I was looking into https://world.episerver.com/documentation/developer-guides/commerce/catalogs/assets-and-media/Asset-Importer/ 

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

#182422
Sep 18, 2017 17:26
Vote:
 

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

#182437
Sep 19, 2017 9:53
Vote:
 

Ok, I'll investigate how we can do that.
Just in case are there any examples of importing using this?I see in documentation https://world.episerver.com/documentation/developer-guides/Episerver-Service-API/working-with-bulk-operations-using-tasks/media-service/

Is there where I should look?

#182444
Sep 19, 2017 11:06
Vote:
 

You should probably look at this http://world.episerver.com/documentation/developer-guides/Episerver-Service-API/working-with-bulk-operations-using-tasks/catalog-asset-linking-service/

#182445
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.