<?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 convert CsvContents in to CDT</title><link>https://community.appian.com/discussions/f/general/19310/how-to-convert-csvcontents-in-to-cdt</link><description>I am using a plugin function &amp;quot; readcsvlogpaging &amp;quot; to read Appian logs which gives me result in type CsvContents (which contains rows(list of Text String )). 
 I also got a CDT which could hold these values. How do I map the list of text string to CDT</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to convert CsvContents in to CDT</title><link>https://community.appian.com/thread/75560?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 15:09:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2068b32c-869a-4867-8a98-acb60d27c3f2</guid><dc:creator>GauravSingh</dc:creator><description>&lt;p&gt;Hi Sathish,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If the resultset of function is of type listOfVariant or dictionary, You can use foreach loop to map to corresponding cdt field.&lt;/p&gt;
&lt;p&gt;i.e:&lt;/p&gt;
&lt;p&gt;a!forEach(&lt;/p&gt;
&lt;p&gt;item: resultset,&lt;/p&gt;
&lt;p&gt;expression: type!YOURCDT(&lt;/p&gt;
&lt;p&gt;field1: fv!item.[1],&lt;/p&gt;
&lt;p&gt;filed2: fv!item.[2].&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Share your resulset to comment more on that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>