<?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>How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/discussions/f/rules/17214/how-to-join-2-of-the-same-cdts-dictionaryi</link><description>Hi, 
 I have multiple CDTs in which I want to join each element with a common seperator. 
 For example, 
 CDT1: {field1: &amp;quot;Test&amp;quot;, field2: &amp;quot;Something&amp;quot;, field3: &amp;quot;AnotherThing&amp;quot;}, 
 CDT2: {field1: &amp;quot;Test2&amp;quot;, field2: &amp;quot;Something2&amp;quot;, field3: &amp;quot;AnotherThing2&amp;quot;}, 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/thread/149309?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 14:33:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98099532-af0b-4583-b779-82653bff0161</guid><dc:creator>sagare4545</dc:creator><description>&lt;p&gt;Yup :) .Just adding options.. if someone needs and lands to this page like me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/thread/149306?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 12:57:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0099de7a-34f1-495e-bb8f-d4e820a6bc1d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;This thread is almost 6 years old... -_-&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/thread/149304?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 12:32:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:325200f4-ecac-4fa6-b275-1195df74b7d6</guid><dc:creator>sagare4545</dc:creator><description>&lt;p&gt;Below should also work for dictionary&lt;/p&gt;
&lt;p&gt;local!dict1: {SOURCE_NAME: &amp;quot;Test&amp;quot;, DESIGN_TYPE: &amp;quot;Something&amp;quot;, PHASE: &amp;quot;AnotherThing&amp;quot;},&lt;/p&gt;
&lt;p&gt;local!dict2: {SOURCE_NAME: &amp;quot;Test2&amp;quot;, DESIGN_TYPE: &amp;quot;Something2&amp;quot;, PHASE: &amp;quot;AnotherThing2&amp;quot;},&lt;/p&gt;
&lt;p&gt;local!finalDict:{&lt;span&gt;local!dict1,local!dict2&lt;/span&gt;},&lt;/p&gt;
&lt;p&gt;local!finalData:a!flatten(local!finalDict)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/thread/67912?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 15:59:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:88a375c0-9077-4c4b-800b-af152f099c8f</guid><dc:creator>ians</dc:creator><description>&lt;p&gt;Thank you so much! This worked &lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to join 2 of the same CDTs/DictionaryI</title><link>https://community.appian.com/thread/67878?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 00:18:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab91c065-554a-41d8-a93d-97416f1c0881</guid><dc:creator>ankitab0001</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="/members/ians"&gt;ians&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try something like this&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;load(
  
 local!cdt1: {SOURCE_NAME: &amp;quot;Test&amp;quot;, DESIGN_TYPE: &amp;quot;Something&amp;quot;, PHASE: &amp;quot;AnotherThing&amp;quot;},

local!cdt2: {SOURCE_NAME: &amp;quot;Test2&amp;quot;, DESIGN_TYPE: &amp;quot;Something2&amp;quot;, PHASE: &amp;quot;AnotherThing2&amp;quot;},

local!cdt3: {SOURCE_NAME: &amp;quot;Test3&amp;quot;, DESIGN_TYPE: &amp;quot;Something3&amp;quot;, PHASE: &amp;quot;AnotherThing3&amp;quot;},

local!finalCdt:{local!cdt1,local!cdt2,local!cdt3},



&amp;#39;type!{http://www.test.com/test/}CM_CLAIM_TYPE&amp;#39;(
  SOURCE_NAME: joinarray({local!finalCdt.SOURCE_NAME},&amp;quot;;&amp;quot;),
  DESIGN_TYPE:joinarray({local!finalCdt.DESIGN_TYPE},&amp;quot;;&amp;quot;),
  PHASE:joinarray({local!finalCdt.PHASE},&amp;quot;;&amp;quot;)
)

)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;cdt1,cdt2,cdt3 is of type CM_CLAIM_TYPE. Define a rule input of &amp;quot;finalCdt&amp;quot; and you can pass as many number of cdts to that rule input&lt;/p&gt;
&lt;p&gt;Let me know if you have any queries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>