Hi Everyone,
How to handle null values in a recordtype?
My output is like this where first index is nul. To exlcude that in recordtype what needs to be done as i have used reject function as well but it will only work for an array.
Can someone please help me on this?
Discussion posts and replies are publicly visible
I would try to identify the code that creates this null values and change that ...
Hi ,
empty record also consider as single item and not a null value. If possible can you share the code where these rows are getting created.
You can build your own custom null check rule for records like I have done. In the code below, ri!record is of ANY type.
and( a!forEach( items: a!keys(ri!record), expression: a!isNullOrEmpty(index(ri!record, fv!item, null)) ) )
NOTE: This will only validate a single record and not a list. So you can add it in your reject function and it should work there.
yes its working. Thank You!!