<?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>array of CDT as testcase expression</title><link>https://community.appian.com/discussions/f/general/20269/array-of-cdt-as-testcase-expression</link><description>Hello community members, 
 can you help me with the syntax for a array of CDT? 
 i tried: 
 &amp;#39;type!{urn:com:appian:types}EBLE_Test&amp;#39;( { item: 1, checked: true, item: 2, checked: false } )</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: array of CDT as testcase expression</title><link>https://community.appian.com/thread/79101?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 20:05:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10fcd004-f18e-4d5e-8a82-62634eef7186</guid><dc:creator>erikb0001</dc:creator><description>&lt;p&gt;Thanks Steward&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: array of CDT as testcase expression</title><link>https://community.appian.com/thread/79062?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 13:57:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fc82af27-9062-49d2-9472-9ba02955f0ba</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;If you wanted to save yourself the effort of hand-generating your test data you can use the a!forEach() loop, something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!forEach(
items: fn!enum(10)+1,
expression: &amp;#39;type!{urn:com:appian:types}EBLE_Test&amp;#39;(
item: fv!item,
checked: fn!even(fv!item) = fv!item
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will genertate an instance of the type for each item in the fn!enum() generated list,&lt;/p&gt;
&lt;p&gt;The &amp;#39;item&amp;#39; attribute is set to the fv!item, and the &amp;#39;checked&amp;#39; attribute is set to true if fv!item is even, else set to false.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: array of CDT as testcase expression</title><link>https://community.appian.com/thread/79061?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 11:37:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37905430-4eaa-4b09-b136-b516fa90aee0</guid><dc:creator>erikb0001</dc:creator><description>&lt;p&gt;Got it working like this:&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&amp;#39;type!{urn:com:appian:types}EBLE_Test&amp;#39;(&lt;br /&gt; item: 2,&lt;br /&gt; checked: true&lt;br /&gt;),&lt;br /&gt;&amp;#39;type!{urn:com:appian:types}EBLE_Test&amp;#39;(&lt;br /&gt; item: 3,&lt;br /&gt; checked: true&lt;br /&gt;),&lt;br /&gt;&amp;#39;type!{urn:com:appian:types}EBLE_Test&amp;#39;(&lt;br /&gt; item: 4,&lt;br /&gt; checked: false&lt;br /&gt;)&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>