Why does the below peice of code does not work with records as rule input.
if( fn!isnull(ri!array), true(), length(ri!array) = 0)
If I pass empty record in ri!array it should return me true, but it is returning false.
Discussion posts and replies are publicly visible
This is similar but also different from Issue to check related record if its empty so check that out for better code than just using the fn!isnull().
Specifically for records I'd need to see more of your code. Records do work when passed into these rules but it does depend exactly what you are doing. If you just literally pass recordType!TEST TestRecord() then it shows as false.
If you cast NULL to that same record type it all works fine.
The exact same behaviour is observed with a!map() too.