HI am getting like this error
what might be the reason?
Discussion posts and replies are publicly visible
Seems like you use dot-notation to get the value of a field in an empty list of your CR_REF_PolicyAndProduct CDT.
Did you try to replace the dot-notation with index() or property()
Looks like , your code is not able to index field "currentStatusValue" . SO CDT "CR_REF_PolicyAndProduct" is an array, you will need to index the current item from this array using index() and then index into your field "currentStatusValue" .