Hi,
I have a CDT which has around 50 attributes, I am required to find the count of not null attributes in my CDT. Is there a way I can do this by not creating a counter which would get updated after 70 if-else checks?
For Example:
Employee_cdt{fName:"Abc",lName:"Def",mName:"",empId:1234,empDept:""...}
A rule to return the not null attributes for Employee_cdt.
Thanks,
Arjun
Discussion posts and replies are publicly visible
Sorry you are giving values which are output of null values, he asked for not null valuesa!localVariables( local!CDT: { fName: "Abc", lName: "Def", mName: "", empId: 1234, empDept: "" }, a!forEach( items: { "fName", "lName", "mName", "empId", "empDept" }, expression: if( a!isNotNullOrEmpty(index(local!CDT, fv!item , null)), fv!item, {} ) ))This works