Make a default filter in related list in problem module

prasannah
Tera Contributor

Hi 

I need help to add a default sorting filter for everyone. and every time if he search any problem in related list incident it should be sorted by "resolved" descending 

My Requirement: by default for every user in problem record, incident related list sorted by resolved field by descending.in both native view and service operation workspace

Thanks

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@prasannah 

Is that a defined relationship or OOTB one?

1) if custom then in the advanced script you can add the sorting

current.orderByDesc('resolvedField');

OR

2) if it's OOTB one then this link has the solution

you need to update the user preference record

How to change the default sort order on the Knowledge Result Sort Widget

Related List default ordering

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

View solution in original post

2 REPLIES 2

Bhuvan
Kilo Patron

Ankur Bawiskar
Tera Patron
Tera Patron

@prasannah 

Is that a defined relationship or OOTB one?

1) if custom then in the advanced script you can add the sorting

current.orderByDesc('resolvedField');

OR

2) if it's OOTB one then this link has the solution

you need to update the user preference record

How to change the default sort order on the Knowledge Result Sort Widget

Related List default ordering

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