<?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>Dictionary Manipulation</title><link>/b/appmarket/posts/cdt-manipulation</link><description>Overview 
 **NOTE: This plug-in is deprecated and no longer recommended for use for sites running on Appian 21.4 or later. The functionality of this component is available in Appian without installing the plug-in. You can use a!update() and a!keys() in</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Thu, 15 Sep 2022 13:47:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>S&amp;#248;ren Juul</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;updatedictionary() can be mimicked with a function, having inputs &amp;quot;dictionary&amp;quot; (any type) and &amp;quot;fieldsAndValues&amp;quot; (map). The body of the function (expression rule) is as follows:&lt;/p&gt;
&lt;pre&gt;a!localVariables(&lt;br /&gt; keys: a!keys(ri!fieldsAndValues),&lt;br /&gt; values: a!forEach(local!keys, ri!fieldsAndValues[fv!item]),&lt;br /&gt; a!update(ri!dictionary, local!keys, local!values)&lt;br /&gt;)&lt;/pre&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Thu, 15 Sep 2022 12:46:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>Rob Munroe</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;If you wish to mimick the createdictionary() function with out-of-the-box functionality (as of 21.4), create an Expression Rule with the inputs of &amp;quot;keys&amp;quot; (List of Text) and &amp;quot;values&amp;quot; (Any Type) and use this as the body of the Expression:&lt;/p&gt;
&lt;pre&gt;a!update(cast(94, {}), ri!keys, ri!values)&lt;/pre&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Thu, 15 Sep 2022 11:54:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>ericb0002</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi everyone, how can update a list of CDT in a CDT;&lt;/p&gt;
&lt;p&gt;a!update(&lt;br /&gt; data:local!existingContactInfo,&lt;br /&gt; index:{&amp;quot;&lt;strong&gt;emails&lt;/strong&gt;&amp;quot;,&amp;quot;relatedEntityId&amp;quot;,&amp;quot;relatedEntity&amp;quot;},&lt;br /&gt; value:{l&lt;strong&gt;ocal!mergedEmails&lt;/strong&gt;, ri!CO_Person.id,cons!CO_RELATED_ENTITY_PERSON}&lt;br /&gt; ),&lt;/p&gt;
&lt;p&gt;emails = list of cdt&lt;/p&gt;
&lt;p&gt;local!mergedEmails= list of CDT (containing 2 elements)&lt;/p&gt;
&lt;p&gt;getting this error :&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a/pastedimage1663242837646v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Wed, 15 Dec 2021 17:37:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>vishnud126275</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Daniel, we have used this plugin in our application. In light of the recent discovery of vulnerabilities with log4j2, we would like to know if this plugin uses the affected version Log4j2, and if yes, would you release an updated version of this plugin to counter the exploit of vulnerability?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Wed, 10 Mar 2021 13:32:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>PabloSR</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi, updatedictionary is not working in forEach with a list of CDT&amp;#39;s, it doesn&amp;#39;t do any changes. This plugin works with 20.4 version?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Fri, 12 Feb 2021 14:11:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>swetar0001</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Will this plugin still work on 16.2 version ?&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Mon, 28 Dec 2020 10:44:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>kunal.hsbc</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Daniel,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for this plug-in, we have used it extensively in live environments...&lt;/p&gt;
&lt;p&gt;Recently we started getting a high risk item in health check report for dictionary manipulation plug-in for version 2.0.0&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Dictionary Manipulation (com.appiancorp.cdtmanipulation) references private Appian APIs&lt;/span&gt;&lt;br /&gt;&lt;span class="error"&gt;[private]&lt;/span&gt;&lt;span&gt;&amp;nbsp;com.appiancorp.type.DataTypeProperties.getTypeof()&lt;/span&gt;&lt;br /&gt;&lt;span class="error"&gt;[private]&lt;/span&gt;&lt;span&gt;&amp;nbsp;com.appiancorp.type.DataTypeProperties.isListType()&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please advise if this is removed or will be removed in future version of this plug-in?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kunal&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Fri, 27 Nov 2020 23:02:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>Jonathan</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Having a problem with createDictionary. What if a dictionary value is a list?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Ex) createDictionary({key1,key2},{value1,{value2a,value2b}} I get an error saying there is a mismatch of of keys and values&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Tue, 13 Oct 2020 03:27:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>Arpit Pipersaniya</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ve started facing issues with updateCdt function after upgradation to the 20.2 Appian version.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Is this function not compatible with the 20.2 version of Appian?&lt;br /&gt;&lt;/span&gt;(I&amp;#39;ve version 1.2.0 plug-in installed, do I&amp;#39;ve to upgrade plug-in with the most latest version?)&lt;br /&gt;&lt;br /&gt;&lt;span&gt;And do updateCdt and updateDictionary function in the same way?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Please help.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Thu, 02 Jul 2020 07:28:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>spandanat</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;@&lt;span&gt;ilan.gold&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the function&amp;nbsp;&amp;quot;updatedictionary&amp;quot; is throwing &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;error:Expression evaluation error at function &amp;#39;updatedictionary&amp;#39;: Could not cast from List of Dictionary to Dictionary. Details: CastInvalidCould not cast from List of Dictionary to Dictionary. Details: CastInvalid&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;for below code :( i am trying to update &amp;quot;multiple cdt/array cdt&amp;quot; )&lt;/p&gt;
&lt;p&gt;updatedictionary(&lt;br /&gt; dictionary: {&lt;br /&gt; {&lt;br /&gt; A1: 0,&lt;br /&gt; test: 01&lt;br /&gt; },&lt;br /&gt; {&lt;br /&gt; A1: 0,&lt;br /&gt; test: 01&lt;br /&gt; },&lt;br /&gt; {&lt;br /&gt; A1: 0,&lt;br /&gt; test: 01&lt;br /&gt; }&lt;br /&gt; },&lt;br /&gt; fieldsAndValues: {&lt;br /&gt; A1: {&lt;br /&gt; 1,&lt;br /&gt; 1,&lt;br /&gt; 1&lt;br /&gt; }&lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Mon, 11 May 2020 18:17:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>Robert Travis</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Is it expected that createdictionary would return the resulting dictionary list in the order of the provided keys?&amp;nbsp; &lt;br /&gt;&lt;br /&gt;For example createdictionary( keys: { today(), today()-1,...}, values: { 0, 0,.. } ) , depending on the number of days added to keys and values the order appears to be nondeterministic.&lt;/p&gt;&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Tue, 26 Feb 2019 16:21:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>Richard Mead</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;joinCdt is not working in 18.4&lt;/p&gt;
&lt;p&gt;I tried using the example given in the download and that did not even work:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;local!a: { {a:1,b:{1,2}} , {a:2,b:2} },&lt;/p&gt;
&lt;p&gt; &amp;nbsp;local!b: { {c:1,d:5} , {c:3,d:6} },&lt;/p&gt;
&lt;p&gt; &amp;nbsp;joincdts(&amp;quot;INNER&amp;quot;, local!a, {&amp;quot;a&amp;quot;}, local!b, {&amp;quot;d&amp;quot;}, &amp;quot;a&amp;quot;, &amp;quot;c&amp;quot;, &amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;) &lt;/p&gt;
&lt;p&gt;get the following error: Expression evaluation error at function &amp;#39;joincdts&amp;#39; &lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Dictionary Manipulation</title><link>https://community.appian.com/b/appmarket/posts/cdt-manipulation</link><pubDate>Thu, 24 May 2018 06:41:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:92fbbdd4-f952-4297-8d8e-c2d79ef2bd9a</guid><dc:creator>soujanyac0001</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am trying to expand my CDT using expandcdt() function. It is given that the expand field parameter accepts input in &amp;quot;???function.expandcdt.param.expandField.description???&amp;quot; format. I am unable to figure out the input. &lt;/p&gt;
&lt;p&gt;My CDT structure looks something like below,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;empId: &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; empDepartment: Department(nested CDT)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dId: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dName: &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;empGender: Gender(nested CDT)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gId: &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gName: &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;lastName: &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;firstName: &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; Could you please help me with an example.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;img src="https://community.appian.com/aggbug?PostID=803&amp;AppID=50&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>