<?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>CDT manipulation</title><link>https://community.appian.com/discussions/f/general/21026/cdt-manipulation</link><description>If we need to update a value like status in cdt (multiple) with condition only update only where status =1 
 Is there a way to achieve this using updatearray and index or is the only option recreating cdt using a!foreach ?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT manipulation</title><link>https://community.appian.com/thread/81906?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 14:59:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f4ab3ca-8b45-4656-963e-c72d86beecf7</guid><dc:creator>sreedevij0001</dc:creator><description>&lt;p&gt;Yes. That&amp;#39;s right&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT manipulation</title><link>https://community.appian.com/thread/81905?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 14:52:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb71b5fa-fd85-4ee4-8df2-b1f77001e12f</guid><dc:creator>amiteshs0001</dc:creator><description>&lt;p&gt;Update cdt is an add on function and not out of box right? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT manipulation</title><link>https://community.appian.com/thread/81904?ContentTypeID=1</link><pubDate>Sat, 22 May 2021 14:45:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc32a347-99a1-46ef-a41b-2b9dedeea8cd</guid><dc:creator>sreedevij0001</dc:creator><description>&lt;p&gt;Hi amitesh,&lt;/p&gt;
&lt;p&gt;You can use updatecdt function&lt;/p&gt;
&lt;p&gt;updatecdt(&lt;/p&gt;
&lt;p&gt;cdt:ri!yourcdt[wherecontains(1,ri!yourcdt.status)],&lt;/p&gt;
&lt;p&gt;fieldsAndValues:{&lt;/p&gt;
&lt;p&gt;status:&amp;quot;Newstatus&amp;quot;&lt;/p&gt;
&lt;p&gt;})&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sree Devi J R&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>