Skip to Content
0
Former Member
Sep 05, 2017 at 03:01 PM

How to import collection in impEx

1423 Views

I am trying to import impex throuugh code, since it contains some dynamic data(from 3rd party).

I have to import collection into the impex. Its giving error to me when I am using any of the below 3 options.

  1. [a,b,c]

  2. a,b,c

  3. a

This is the impex -

$contentCatalog=financialContentCatalog $contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]

INSERT_UPDATE NewsletterInsuranceJspIncludeComponent;$contentCV[unique=true];uid[unique=true];name;communicationCategoryTypes;page;actions(uid,$contentCV);∁onentRef

;;NewsletterInsuranceJspIncludeComponent;Newsletter Insurance JspInclude Component;[Newsletter Card, Shirby Newsletter, Shirby Promotion Offer, Shirby Promotion Offer Partners, Subscription only, SummerOffer_Subsc];;;NewsletterJspIncludeComponent

communicationCategoryTypes is of Set type.

Item entry

  <itemtype code="NewsletterInsuranceJspIncludeComponent"    extends="InsuranceJspIncludeComponent" autocreate="true" generate="true"            jaloclass="de.hybris.platform.financialservices.jalo.components.NewsletterInsuranceJspIncludeComponent">
             <description>It represents Newsletter component, that is the
                 component that displays configured references to the Communication
                 Category.</description>
             <attributes>
                 <attribute qualifier="communicationCategoryTypes" type="communicationCategoryTypeList">
                     <persistence type="property" />
                     <description>Communication Category type that is displayed in this
                         component.</description>
                 </attribute>
             </attributes>
         </itemtype>  


  <collectiontype code="communicationCategoryTypeList"
         elementtype="java.lang.String" autocreate="true"
         generate="true" type="collection" />