<?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>Get Array Value from CDT - Only fields with scalar types can be indexed from an array.</title><link>https://community.appian.com/discussions/f/general/10840/get-array-value-from-cdt---only-fields-with-scalar-types-can-be-indexed-from-an-array</link><description>I am trying to take the value from a CDT that is an array of other CDT&amp;#39;s and set that array into a new object but I receive this error: 
 Only fields with scalar types can be indexed from an array. 
 Here is the CDT structure: 
 
 Object1 (ComplexObjectType</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Get Array Value from CDT - Only fields with scalar types can be indexed from an array.</title><link>https://community.appian.com/thread/47353?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 18:47:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec737548-e3e0-4509-b4c0-09d460ed4a67</guid><dc:creator>Jacob Edelman</dc:creator><description>Thanks!  This seemed to work :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Get Array Value from CDT - Only fields with scalar types can be indexed from an array.</title><link>https://community.appian.com/thread/47352?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 16:54:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2110976-9532-429e-917e-0f20f347f1a0</guid><dc:creator>Sachin</dc:creator><description>Hi jacobe ,&lt;br /&gt;
 I too had faced this kind of issue , This issue will occur when the cdt contains one to many relation (i.e Array of CDTs in CDT), so i created one expression which takes the Object1 and get my required output i.e Object1.values and then set it Object2&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>