<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>multidropdown items selection during &amp;quot;Update&amp;quot; related action</title><link>https://community.appian.com/discussions/f/user-interface/22620/multidropdown-items-selection-during-update-related-action</link><description>Hi, 
 I have an interface which I am using for Employee details capture. 
 I am using the same form for the creation of a new record in the database and for the updation. 
 I have created a RecordType and created &amp;quot;Update Employee&amp;quot; related action. 
 Now</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: multidropdown items selection during "Update" related action</title><link>https://community.appian.com/thread/88411?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 01:27:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6b23c777-4d3c-4595-9811-a9cef590a08a</guid><dc:creator>Hari Kishore Reddy</dc:creator><description>&lt;p&gt;Thanks for providing some code insight. Appreciate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: multidropdown items selection during "Update" related action</title><link>https://community.appian.com/thread/88409?ContentTypeID=1</link><pubDate>Sun, 28 Nov 2021 15:45:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f2cb7ae7-545d-4999-acc6-4874c43d4788</guid><dc:creator>Richard Michaelis</dc:creator><description>&lt;p&gt;Hi hari,&lt;br /&gt;your issue is, that you choiceValues are elements of &amp;quot;languageNumber&amp;quot; and your value is a &amp;quot;whole&amp;quot; CDT:&lt;br /&gt;To make this work some inputs:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;local!languages:....,
local!selectedLanguages: ri!employeeLanguage,
local!selectedLanguageNumbers: index(selectedLanguages,&amp;quot;languageNumber&amp;quot;,null),
....

a!multidropdownfield(
....
    choiceValue: tointeger(index(local!languages,&amp;quot;languageNumber&amp;quot;,null)),
    value: tointeger(local!selectedLanguageNumbers),
    saveInto:{
       local!selectedLanguageNumbers,
       a!save(
        target: local!selectedLanguages,
        value: index(
            local!languages,
            wherecontains(
                tointeger(local!selectedLanguageNumbers),
                tointeger(index(local!languages, &amp;quot;languageNumber,{}))
            ),
            null
        )
       )
    }
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;is languageNumber your primaryKey? if not , try to use the primary key instead&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>