Filter is not working on history table

vinod6
Tera Contributor

In the sys_history_line.list table, I have applied the filter condition, but it is not working. Please see the attachments below.

vinod6_0-1744616244325.png


Without filter condition under set file records is available but applying the filter records is not showing
see the below one before the applying the filter

vinod6_1-1744616455795.png


Afterfilter

vinod6_2-1744616539844.png

The Set field contains records like INC, CAS, RITM, etc., but none of them are showing
Please provide a solution for this it is very help full

Thanks!

4 REPLIES 4

J Siva
Tera Sage

Hi @vinod6 
The 'Set' field is a reference field that refers to the 'sys_history_set' table. The 'ID' field is the display field on the 'sys_history_set' table and is of type Document ID."

Searching with the record number doesn't work because it stores the SYS ID.
Try searching with the record sys id. i.e Incident record sys_id. It'll work.

JSiva_1-1744617354111.png

 

JSiva_0-1744617312664.png

Searching with record sys_id:

JSiva_2-1744617578136.png

Hope it helps.
Regards,
Siva

 

Shree_G
Kilo Sage

Hello @vinod6 ,

 

Set is <sys_id> of record you want to search. Also the History [sys_history_line] table stores the actual changes to field values that occurred.

So get sys_id of incident/RITM, search for Set is <sys_id>.

 

Shree_G_0-1744618212423.png

 

 

 


If this solution helped resolve your issue, please consider marking it as helpful or correct.
This will assist others in finding the solution faster and close the thread.

Ankur Bawiskar
Tera Patron
Tera Patron

@vinod6 

I agree with point shared by @J Siva 

That's the correct way to apply filter for document id field types

Document id field always store sysId

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Sandeep Rajput
Tera Patron
Tera Patron

@vinod6 You can dot walk to the table field on the Set reference field and apply a filter of table name.

 

Screenshot 2025-04-14 at 4.20.01 PM.png

In your case the table name will be incident and it will bring you the list of incident records in this table.