Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

isnotempty in business rule

samadam
Kilo Sage

I am checking to see if a answer to survey response is null or not. The field is a multiline string field. I tried != null and current.valueISNOTEMPTY, current.value|ISNOTEMPTY but no luck. Is there any other way to check this?

Thanks

1 ACCEPTED SOLUTION

samadam
Kilo Sage

I tried !current.value.nil() and it worked


View solution in original post

5 REPLIES 5

march
Kilo Guru

Have you tried using an encoded query



var gr = new GlideRecord('survey_response');


gr.addEncodedQuery('answer!=NULL');


gr.query();



BR


Marc.


My bad, thought was in a query, not the condition 🙂


zica
Giga Guru

Hi Sam,


Can you try the following please :


answerISEMPTY



gr.addEncodedQuery('answerISEMPTY');



Kind regards,


ZA


Do not feel shy to mark correct or helpful answer if it helps or is correct


samadam
Kilo Sage

I tried !current.value.nil() and it worked