<?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>Compare CDTS</title><link>https://community.appian.com/discussions/f/general/13957/compare-cdts</link><description>Hi All, 
 I have a requirement to Compare Data Type (CDT) Previous Values and Updated Values. For that i am using CDT Difference function but it is not working since few fields in that data type are of type multiple. 
 Can anyone please let me know if</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63351?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 09:42:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71c4a4c0-a04d-44f9-bb44-68f98626a6b9</guid><dc:creator>vijay</dc:creator><description>HI Krishna,&lt;br /&gt;
&lt;br /&gt;
The exact function will only find the difference in primitive type fields in CDTs, but it&amp;#39;s cannot check for multiple type fields. As suggested above you need to take an expression for finding a difference by comparing each individual element of update CDTs with oldCDTs.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Vijay&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63346?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:51:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:be173c99-d187-4d1e-b86c-561f49df8d55</guid><dc:creator>nidhim855</dc:creator><description>Yes, It will work. Please try. if not working then use toString(). Like...  exact(toString(pv!oldCDT), toString(pv!newCDT))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63345?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:40:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:13c68ca3-514c-474b-b8ee-2c75d884fbfb</guid><dc:creator>krishnaprasadd0001</dc:creator><description>Hi nidhi,&lt;br /&gt;
&lt;br /&gt;
But the exact function is used to compare two given Texts in a case-sensitive manner. Can we use this for CDTs having few fields of type multiple?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63343?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:36:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b0c3830c-ac61-4c1d-92da-13ed1e09bedf</guid><dc:creator>kumars0003</dc:creator><description>&lt;p&gt;This may help..&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/fnc_text_exact.html"&gt;https://docs.appian.com/suite/help/18.4/fnc_text_exact.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63341?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:29:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16a7628b-fdac-4edb-bc93-65116aedc5f1</guid><dc:creator>nidhim855</dc:creator><description>Hi Krishna,&lt;br /&gt;
&lt;br /&gt;
Use exact(pv!oldCDT, pv!newCDT) function to compare two CDTs. If  different, then it will return &amp;#39;False&amp;#39; Boolean value.&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Nidhi&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63340?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 08:19:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7ed5176-0165-4ee8-86e1-5a4f6a88427f</guid><dc:creator>amitm9</dc:creator><description>Hi Krishna,&lt;br /&gt;
&lt;br /&gt;
Hope you are holding both old and new value in two different CDT type variables.&lt;br /&gt;
 you can use exact() function to compare two CDTs. IT will return true if no differences in value , else return false. If your requirement is to identify individual element of updated CDT then you can compare each element of both CDTs  as well (in different expressions) and use as per your business requirement. Thank s&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63337?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 06:27:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c7e09b53-d94f-48c7-8d08-8431f555339b</guid><dc:creator>sindhug</dc:creator><description>Hi Krishna,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
please find the below shared component &lt;br /&gt;
&lt;a href="https://forum.appian.com/suite/tempo/records/item/lMBCLGOdlMUpdGVqW3dQaIKmclBmvvNEj8vu_cjb7T-5YiPr4Fu8ly5Yj1s09uenE4RYzA8zKyx7eiUh-6mLnOFWZ2Kw3DS9B6D9fYp5XMFVd8xmQ/view/summary"&gt;forum.appian.com/.../summary&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
hope this is helpful.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare CDTS</title><link>https://community.appian.com/thread/63335?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 05:44:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1cef4cf1-33df-4245-a076-a71f8af8e648</guid><dc:creator>Shanmukha</dc:creator><description>Hi Krishana,&lt;br /&gt;
&lt;br /&gt;
AFAIK, There is no function available to compare the list (from your usecase).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>