Developer forum

Forum » Integration » Import images from Perfion with identical image filenames

Import images from Perfion with identical image filenames

Niels Foldager
Reply

When importing images from Perfion we are using a batch task add-in called "Import Perfion Images Add-in". We have a problem when items in Perfion has identical image filenames, fx. 1.jpg, as shown in the xml received from Perfion. When setting up the batchjob in Dynamicweb, we only have the possibility to select a destination folder. We have no chance to let Dynamicweb import images to subfolders under the destination folder. There is no xslt configuration available when using "Import Perfion Images Add-in". Is there any solution for this, so when importing images they are going to be saved in subfolders, named with fx. Id from the item (Destination folder" / "VinhusId") ?

<Vinhus id="7819" parentId="7304" brand="Normal" order="7" createdDate="2013-10-20T19:02:00" modifiedDate="2016-12-07T10:02:00">
        <Value seq="0" modifiedDate="2013-10-20T19:01:41.307">Legaris</Value>
        <Image seq="0" modifiedDate="2015-01-20T11:00:53.37" string="1.jpg" fileSize="43744" fileModifiedDate="2015-01-19T11:57:39.477" width="439" height="218" widthDpi="72" heightDpi="72">4ecb42cd-f682-46ee-98ec-55551a855a27</Image>
        <Images seq="1" modifiedDate="2015-01-20T11:00:53.38" string="2.jpg" fileSize="66109" fileModifiedDate="2009-09-24T10:53:12" width="595" height="595" widthDpi="72" heightDpi="72">5c459411-dfca-417b-b5bb-3d8eb3bdc908</Images>
        <Images seq="2" modifiedDate="2015-01-20T11:00:53.38" string="3.jpg" fileSize="203318" fileModifiedDate="2009-09-24T10:52:44" width="454" height="454" widthDpi="72" heightDpi="72">577ab17a-74dc-4fa0-b627-2b9f6d6c6f7f</Images>
        <Images seq="3" modifiedDate="2015-01-20T11:00:53.39" string="4.jpg" fileSize="76663" fileModifiedDate="2009-09-24T10:50:44" width="595" height="595" widthDpi="72" heightDpi="72">486f6a0a-5113-4c78-8a18-6995ee767ed7</Images>
    </Vinhus>
    <Vinhus id="7820" parentId="7304" brand="Normal" order="16" createdDate="2013-10-20T19:02:00" modifiedDate="2016-12-07T10:04:00">
        <Value seq="0" modifiedDate="2013-10-20T19:02:26.463">Valtravieso</Value>
        <Image seq="0" modifiedDate="2015-01-20T15:33:06.61" string="1.jpg" fileSize="51688" fileModifiedDate="2015-01-20T15:18:42.24" width="922" height="255" widthDpi="72" heightDpi="72">42b623d0-577c-480f-bf5c-e14fa36a412e</Image>
        <Images seq="1" modifiedDate="2015-01-20T15:33:06.61" string="2.jpg" fileSize="47755" fileModifiedDate="2015-01-20T15:24:21.307" width="375" height="375" widthDpi="96" heightDpi="96">1cec5c91-ddfa-45f7-ad68-bafc4fb3d861</Images>
        <Images seq="2" modifiedDate="2015-01-20T15:33:06.627" string="3.jpg" fileSize="43889" fileModifiedDate="2015-01-20T15:24:45.867" width="427" height="427" widthDpi="72" heightDpi="72">8b5c91b9-95a1-42a0-9b64-46e54ebcdb23</Images>
        <Images seq="3" modifiedDate="2015-01-20T15:33:06.627" string="4.jpg" fileSize="44499" fileModifiedDate="2015-01-20T15:25:32.047" width="425" height="425" widthDpi="72" heightDpi="72">7b7a755d-6eae-439c-8fd4-daa9666d1aaa</Images>
    </Vinhus>

Best regards
Niels


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Niels,
thank you for suggestions, they are registred inTFS# 31892 and will be implemented.
Best regards, Dmitrij

 

You must be logged in to post in the forum