addNullQuery

Jamsta1912
Tera Guru

Hi all.

 

I'm trying to add a null query to a GlideRecord, eg "target.addNullQuery('myfield');". In this case, 'myfield' is a reference field, so I'm trying to return records where the reference field is empty. But no results are being returned, although I know there are records where the reference field is empty. Am I using the method incorrectly? How would I add a query condition to return records where a reference field is empty?

 

Thank you.

1 ACCEPTED SOLUTION

Jamsta1912
Tera Guru

Ignore me please all... after returning to this after some sleep, I've realised I was overlooking something obvious!


View solution in original post

2 REPLIES 2

Jamsta1912
Tera Guru

Ignore me please all... after returning to this after some sleep, I've realised I was overlooking something obvious!


Could you share your solution with the community, just in case someone searching for it stumbles upon this post. Thank you!