<?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>What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/discussions/f/new-to-appian/25292/what-is-a-null-cdt-how-do-i-check-whether-the-cdt-is-null</link><description>I am new to this concepts, please explain?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/110207?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2023 01:07:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80567097-cd62-46de-8af8-6db326bcfcd9</guid><dc:creator>Sai Manam</dc:creator><description>&lt;p&gt;This is smart worked well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/107876?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 16:59:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7284f98-2f85-408a-b338-564e8d05dd9e</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Good to know this. thank &lt;a href="/members/keshavd0001"&gt;Keshav Dadhich&lt;/a&gt; for sharing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/107873?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 16:30:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:79005302-a706-4a4c-80af-8bd0c60a6396</guid><dc:creator>Keshav Dadhich</dc:creator><description>&lt;p&gt;You can refer to this code.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/62/pastedimage1676305682041v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is how you can check whether the CDT is null or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98295?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 07:26:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27aa11f6-3cdd-43e3-a7bb-6b5a9682c037</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;This code will only check if it is null or not.&amp;nbsp;&lt;br /&gt;So wherever you are calling it from, you can put it in an if condition. Basically, it is for null handling on run time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98294?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 07:19:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:370473d5-f8fd-49c6-9eb5-531c9a4a2375</guid><dc:creator>krishnav9816</dc:creator><description>&lt;p&gt;i get true only thats means its a null cdt right or not, if i am passing this cdt through process model we get error like&amp;nbsp;The record to be saved must not be null is it right or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98293?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 07:09:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef0e7f77-81ed-428b-a445-34178f317172</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!keys: a!keys(ri!cdt),
  and(
    a!forEach(
      items: local!keys,
      expression: a!isNullOrEmpty(property(ri!cdt, fv!item, {}))
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98292?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 07:03:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fffa855f-16d6-4969-ad57-b12403a4a56b</guid><dc:creator>krishnav9816</dc:creator><description>&lt;p&gt;show me one example please i will do till a!keys() and perfectly gets after trying not get any values please show me one example&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98290?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 06:47:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:25811f7d-9a7e-446d-a7e3-d451904d4397</guid><dc:creator>krishnav9816</dc:creator><description>&lt;p&gt;if I get true then what is solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98286?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 05:55:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:796c97be-6721-4cf7-b2b9-625e5acff032</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;A CDT is like a class. It gives structure to a raw data.&amp;nbsp;&lt;br /&gt;To check if it is null, you can simply pass the CDT type variable in a!keys() function and it will give you all the fields. Now you can run a loop on those values and use the property() function in the expression of that loop along with a!isNullOrEmpty()&lt;br /&gt;&lt;br /&gt;If all the values are null, then the CDT was null. Else it wasn&amp;#39;t null.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98275?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 03:40:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:29e07adb-c54b-4b7e-89c7-7ad51e3070a0</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;CDT is a datastructure where you can store your values as a defined manner. To check whether the CDT is null/empty or not, function is available called isNotNullorEmpty. in this function, you can put your local variable in which your are defining your cdt and this function return true/False.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is a null CDT ?How do I check whether the CDT is null ?</title><link>https://community.appian.com/thread/98268?ContentTypeID=1</link><pubDate>Sat, 23 Jul 2022 17:01:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6924a937-aa83-43cc-91d0-8f1343ad32ce</guid><dc:creator>fredaf</dc:creator><description>&lt;p&gt;A null CDT would be a data structure that does not have any values stored in it for your specific instance. So for example you have a cdt of type employee, and it looked like this -&amp;nbsp;&lt;br /&gt;&lt;br /&gt;CDT&amp;nbsp; - Employee&lt;br /&gt;Fields - empID, firstName, lastName&lt;br /&gt;&lt;br /&gt;A populated CDT would look like -&amp;nbsp;&lt;br /&gt;type!{namespace}Employee(empID: 1, firstName :&amp;quot;ABC&amp;quot;, lastName:&amp;quot;XYZ&amp;quot; )&lt;br /&gt;&lt;br /&gt;And a null CDT would be one without any values with just an empty structure - where the value would show as &amp;#39;null&amp;#39;.&lt;br /&gt;&lt;span&gt;Another&amp;nbsp;level to look at it is where the CDT exists but having empty fields - &amp;#39;type!{namespace}Employee(), this creates a CDT with fields that have empty values -&amp;nbsp;type!{namespace}Employee(empID: null, firstName :&amp;quot;&amp;quot;, lastName:&amp;quot;&amp;quot; )&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;You will notice this when you have an ri of a CDT on an interface where the CDT has not been populated with values yet. Once it gets populated the ri can be split to see the values for each field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>