logo

NJP

Protecting yourself from 🤬Invalid Queries🤬

Import · Apr 24, 2023 · article

I've recently been obsessing about safe queries in GlideRecord. As I've showcased [testing .get()](https://youtu.be/WxszcO3aKPE) and [testing .addEncodedQuery()](https://youtu.be/EpZHR7WD10E), the most common feedback I've gotten is "just use **glide.invalid\_query.returns\_no\_rows** instead".

This video showcases **glide.invalid\_query.returns\_no\_rows**, but also why you **STILL** need to

🧪**TEST THOSE QUERIES**!🧪

View original source

https://www.servicenow.com/community/developer-articles/protecting-yourself-from-invalid-queries/ta-p/2542969