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() and testing .addEncodedQuery(), 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