<?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 append two cdts</title><link>https://community.appian.com/discussions/f/data/11893/how-to-append-two-cdts</link><description>Hello, 
 
 I have two cdts of same type. I want to append data from one cdt to another in such a way that other cdt consists of data from both cdts(Data from other CDT as well as its own data). Can someone please tell me how I can implement this?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/92300?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 06:44:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:db094242-3d27-42dc-adb3-d7e6c4c5da40</guid><dc:creator>Kalyan alladi</dc:creator><description>&lt;p&gt;How to use this append(typecast(cdt1),typecast(cdt2)) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52851?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 06:40:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47915f4e-a95c-43e4-b139-86071156b095</guid><dc:creator>sahilb346</dc:creator><description>The best way to do this is using typecast and append.&lt;br /&gt;
&lt;br /&gt;
append(typecast(cdt1),typecast(cdt2)).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52775?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 10:29:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:346ecf3e-b394-49b0-ac7f-52e05aa7e4bb</guid><dc:creator>Dastagiri Dudekula</dc:creator><description>append({&amp;#39;type!Student&amp;#39;(name:&amp;quot;aaa&amp;quot;,id:&amp;quot;1001&amp;quot;)},&amp;#39;type!Student&amp;#39;(name:&amp;quot;bbb&amp;quot;,id:&amp;quot;1002&amp;quot;))&lt;br /&gt;
Output(Formated):&lt;br /&gt;
List of Student: 2 items&lt;br /&gt;
    Student&lt;br /&gt;
        id: 1001&lt;br /&gt;
        name: &amp;quot;aaa&amp;quot;&lt;br /&gt;
    Student&lt;br /&gt;
        id: 1002&lt;br /&gt;
        name: &amp;quot;bbb&amp;quot;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52763?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2018 07:18:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41257e12-bc77-48e8-81a0-e62906866bb3</guid><dc:creator>smriti p0001</dc:creator><description>you can use append function to get the desired output&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52653?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 17:11:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a6c4ef9f-b662-42e9-8833-982411e1123d</guid><dc:creator>Ashvin Kapur</dc:creator><description>Vivek, my guess is that the variables are multiple type, and you have a null value as the first value in one of the variables. For more detailed analysis, you would need to post a snippet of your code. I&amp;#39;ve tried my proposed code with two singular rule inputs as well as multiples, and if there are values in each (without nulls), the code suggested above works as expected.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52652?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 16:13:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41fb7331-5043-4d24-adaf-065fa9eb7db9</guid><dc:creator>viveku3486</dc:creator><description>Hi Ashvin,&lt;br /&gt;
&lt;br /&gt;
One issue happening with you logic i.e the resulting cdt consists of trailing comma. How can I resolve this?&lt;br /&gt;
&lt;br /&gt;
eg: The o/p its shows is something like ,[cdt],[cdt] . Do you have any idea why it is showing comma at the begining?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52650?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 15:51:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:212999ab-7977-41f0-80bf-db15e465b61b</guid><dc:creator>viveku3486</dc:creator><description>Hi Ashvin,&lt;br /&gt;
&lt;br /&gt;
Thank you very much for the reply. Your logic worked for me!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52647?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 14:59:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22443d51-58f4-420f-97fe-7df3efe66b5d</guid><dc:creator>Arpit Bhargava</dc:creator><description>Hi ,&lt;br /&gt;
Firstly fetch the data of the cdt of which you want the data of its own and use append() function for appending data from one cdt to another.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to append two cdts</title><link>https://community.appian.com/thread/52642?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 14:43:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:012e8ea9-4783-4e6e-896f-d1ab2d1a6a2d</guid><dc:creator>Ashvin Kapur</dc:creator><description>Could you provide a sample of your code or further elaborate your use case? Not sure I understand. If you have two variables of the same type and you want to append them, you can simply do {} around the two variables and it&amp;#39;ll return a list of that type (ex. {ri!a, ri!b} will return a list of the type of the variables if they&amp;#39;re the same type).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>