Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to set the invalid queries into empty result sets in ServiceNow?

Mohd Arif Khan
Tera Contributor

How to set the invalid queries into empty result sets in ServiceNow

4 REPLIES 4

GlideFather
Tera Patron

Hi @Mohd Arif Khan 

can you please better explain your requirement?

_____
Answers generated by GlideFather. Check for accuracy.

Nikhil Bajaj9
Tera Sage

Hi @Mohd Arif Khan ,

 

Although your question is incomplete but i am replaying as per my understanding of the question:- 

 

To ensure that invalid GlideRecord queries in ServiceNow result in empty result sets, the glide.invalid_query.returns_no_rows system property must be set to true.

 

Please let me know in case you were asking about same or soemthing else. 

If my answer helped you in anyways, please amrk it as Solution accepted.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

ServiceNow Rising Star-2025

RAMANA MURTHY G
Mega Sage

Hello @Mohd Arif Khan ,

 

We have a sys_property glide.invalid_query.returns_no_rows

please take a look on it

 

 


Please mark my answer helpful & correct if it helps you
Thank you

G Ramana Murthy
ServiceNow Developer

leaschmidt
Tera Contributor

You could use the property glide.invalid_query.returns_no_rows

 

In our instance we did not have the property, the solution was:

 

Create a New Property:
-> In the Filter Navigator, type and enter sys_properties.list.
-> Click on New to create a new property.

Populate the Fields:
-> Name: glide.invalid_query.returns_no_rows
-> Type: true | false
-> Value: true