Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Group by filter is not able to show all information

rafas_10
Tera Guru

Hi all,

I hope you're doing well.

 

I've made a filter on my record producer variables and the filter is good, the information displayed is not. It is not showing me all the values once I do group by:

rafas_10_0-1764158732471.png

rafas_10_1-1764158752442.png

Once I move from the next page, it immediately moves for page 21 but only shows records until letter E.

I have a form named Payroll Requests that should appear on this group by and once I search it on the filter, it appears, so the question here is: Why is the group by filter limited:

 

rafas_10_3-1764158843959.png

Thank you for the help!

 

 

EDIT: I edited the order of the filter and more appear but not all. Question maintains why not all appear and why order of the filter matters if it's all conditions AND?

Kind regards,

Sérgio

2 REPLIES 2

prajaktajga
Tera Contributor

Hello @rafas_10 ,

I think this is the normal behavior of ServiceNow sometimes it will happen
When you click Group By, ServiceNow executes something equivalent to:

SELECT DISTINCT field FROM table ORDER BY field

Ankur Bawiskar
Tera Patron
Tera Patron

@rafas_10 

this is platform OOTB behavior

my thoughts

-> ServiceNow paginates and groups reference field records based on the "Items per page" UI property. If set to 20, only the first 20 records per group are displayed, regardless of the total matching records.

-> When scripted filters or before-query business rules apply, condition order can affect results—especially if rules aren’t strictly AND-based or conflict with filters. Rearranging filters may show more records, but not all.

check these links for reference

AnkurBawiskar_1-1764164359921.png

AnkurBawiskar_2-1764164382238.png

 

Grouped lists 

The users see different number of records based on sorting order in the list view. 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader