<?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 read data from CDT field which is array type?</title><link>https://community.appian.com/discussions/f/data/12260/how-to-read-data-from-cdt-field-which-is-array-type</link><description>Hello All, 
 I have CDT where one of the column is array. Now whenever I&amp;#39;m trying to read that particular fields value, Its giving me error saying &amp;quot;Only scalar fields can be taken from CDT&amp;quot;. Any suggestion on how I can read that fields values? I tried</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to read data from CDT field which is array type?</title><link>https://community.appian.com/thread/54254?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 16:12:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e15d880d-9a23-4684-91b5-5f5c6a794ff2</guid><dc:creator>viveku3486</dc:creator><description>Thanks Justin,&lt;br /&gt;
&lt;br /&gt;
That was really helpful.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read data from CDT field which is array type?</title><link>https://community.appian.com/thread/54253?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 14:10:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:42f6e0ac-dcbc-4ccb-bdc8-e34a355b7b9f</guid><dc:creator>Justin Watts</dc:creator><description>&lt;p&gt;This happens when the CDT is also an array, so its best to get a specific index in the CDT, and then index (index(), a!forEach(), etc.) the multiple attribute you want.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;local!yourCDT.attribute&lt;/code&gt; will break, but &lt;code&gt;local!yourCDT[local!someIndex].attribute&lt;/code&gt; will work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>