<?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>merging cdt</title><link>https://community.appian.com/discussions/f/general/23478/merging-cdt</link><description>Hi, 
 i have a requirement where i need to get data of same cdt type from 2 different places and combine them together to display in a interface. 
 
 cdt 1: type!A{key:&amp;quot;100&amp;quot;, field1:&amp;quot;test1&amp;quot;} 
 cdt 2: type!A{key:&amp;quot;100&amp;quot;, field2:&amp;quot;test2&amp;quot;} 
 
 after merging</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89958?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 15:31:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a34c5315-668e-44ab-b6bc-9eba7515edb9</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;Thank you, this will help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89957?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 15:28:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:893577bc-7477-48e9-b789-8b4992ff04b8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.4/fnc_informational_a_keys.html"&gt;https://docs.appian.com/suite/help/21.4/fnc_informational_a_keys.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What do you want to achieve? Do you really need to merge that data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89955?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 15:19:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2eec579e-93ea-4c9f-a458-294ae796ce5d</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;Thank you for your reply, but having a doubt&amp;nbsp; in this code snippet.&lt;/p&gt;
&lt;p&gt;a!update(&lt;br /&gt; fv!item,&lt;br /&gt; &amp;quot;field2&amp;quot;,&lt;br /&gt; displayvalue(fv!item.key, local!typeB.key, local!typeB.field2, null)&lt;br /&gt; )&lt;/p&gt;
&lt;p&gt;if there are more fields&amp;nbsp; in cdt ,is there any dynamic&amp;nbsp; way to get each field parameter for eg:&amp;nbsp;&lt;span&gt;&amp;quot;field2&amp;quot; in cdt&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89949?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 15:09:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:243df799-9d7a-402c-9f2c-64e0e531fdb1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!typeA: {
    {key:&amp;quot;100&amp;quot;, field1:&amp;quot;test11&amp;quot;},
    {key:&amp;quot;101&amp;quot;, field1:&amp;quot;test12&amp;quot;},
  },
  local!typeB: {
    {key:&amp;quot;100&amp;quot;, field2:&amp;quot;test21&amp;quot;},
    {key:&amp;quot;101&amp;quot;, field2:&amp;quot;test22&amp;quot;},
  },
  a!forEach(
    items: local!typeA,
    expression: a!update(
      fv!item,
      &amp;quot;field2&amp;quot;,
      displayvalue(fv!item.key, local!typeB.key, local!typeB.field2, null)
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89948?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 15:08:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b127e88-8729-4d81-9a77-2edfacec039c</guid><dc:creator>pradeepb0001</dc:creator><description>&lt;p&gt;i am looking for suggestions,yet to try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merging cdt</title><link>https://community.appian.com/thread/89946?ContentTypeID=1</link><pubDate>Thu, 20 Jan 2022 13:50:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5e10921b-e590-44fb-befc-fd8c6c82b23d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;A foreach and a lookup to the other list should do that. What did you try?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>