I am new to this concepts, please explain?
Discussion posts and replies are publicly visible
A CDT is like a class. It gives structure to a raw data. 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()If all the values are null, then the CDT was null. Else it wasn't null.
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
a!localVariables( local!keys: a!keys(ri!cdt), and( a!forEach( items: local!keys, expression: a!isNullOrEmpty(property(ri!cdt, fv!item, {})) ) ) )
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 The record to be saved must not be null is it right or not?
This code will only check if it is null or not. So wherever you are calling it from, you can put it in an if condition. Basically, it is for null handling on run time.