<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Enum icon removed on system update in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/enum-icon-removed-on-system-update/qaa-p/12066600#M407300</link>
    <description>&lt;P&gt;welcome to the club! a dynamic enum does not loose its icons when the enum is dynamically created instead of a statically declared one. In your case you can try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;enumtype code="CountryCode" dynamic="true"&amp;gt;&lt;BR /&gt;&amp;lt;/enumtype&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then with impex create the enum's you need dynamically and your icon's will stay.&lt;/P&gt;&lt;P&gt;It may be better to not use the enumtype at all since its handling is special everywhere. Maybe a common item type will do?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 12:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-08-21T12:59:05Z</dc:date>
    <item>
      <title>Enum icon removed on system update</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/enum-icon-removed-on-system-update/qaq-p/12066599</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;
  &lt;P&gt;We have a enum type which has icon associated with each value. For example: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;enumtype code="CountryCode"&amp;gt;
  &amp;lt;value code="au"/&amp;gt;
&amp;lt;/enumtype&amp;gt; &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Now we have added icon for each value using impex: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;$version = Staged         
$contentCatalog = dummyContentCatalog         
$contentCV = catalogVersion(CatalogVersion.catalog(Catalog.id[default = $contentCatalog]), CatalogVersion.version[default = $version])[default = $contentCatalog:$version]         
$lang = en
UPDATE CountryCode ; code[unique = true] ; name[lang = $lang]  ; icon(code, $contentCV) ; 
                   ; au                  ; Australia           ; flag_icon_au &lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But the icons value disappear when we run the System update by selecting 'update running system'. &lt;/P&gt;
  &lt;P&gt;Is there any way to resolve this. I don't want to select project/essential data as there are many others impexes added there. &lt;/P&gt;
  &lt;P&gt;Thanks in advance. &lt;/P&gt;
  &lt;P&gt;Regards, Vikram&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 09:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/enum-icon-removed-on-system-update/qaq-p/12066599</guid>
      <dc:creator>former_member570877</dc:creator>
      <dc:date>2019-08-21T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Enum icon removed on system update</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/enum-icon-removed-on-system-update/qaa-p/12066600#M407300</link>
      <description>&lt;P&gt;welcome to the club! a dynamic enum does not loose its icons when the enum is dynamically created instead of a statically declared one. In your case you can try:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;enumtype code="CountryCode" dynamic="true"&amp;gt;&lt;BR /&gt;&amp;lt;/enumtype&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then with impex create the enum's you need dynamically and your icon's will stay.&lt;/P&gt;&lt;P&gt;It may be better to not use the enumtype at all since its handling is special everywhere. Maybe a common item type will do?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 12:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/enum-icon-removed-on-system-update/qaa-p/12066600#M407300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-08-21T12:59:05Z</dc:date>
    </item>
  </channel>
</rss>

