Querying Extended Tables in ServiceNow: The Magic of the ref_ prefix
Cezary Basta – Dev Blog
·
Jul 17, 2026
·
article
Working with the Task table is a staple of ServiceNow development, but what happens when you need to filter records based on an attribute that only exists on an extended table like Incident? Discover how the ref_ prefix lets you query extended fields natively, why it isn't actually a real database column, and the correct way to extract values from it.
View original source
https://cezarybasta.dev/querying-extended-tables-in-servicenow-the-magic-of-the-ref_-prefix/