I want to sort My task widget open Approvals in descending order on esc portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 07:58 AM
Hi
I want to sort My task widget open Approvals in descending order on esc portal?
Can you please help on this. It will helpful.
Thanks in Advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 08:52 AM
Hi @mania
Have a look here:
https://www.servicenow.com/community/developer-forum/my-approval-widget-sorting/m-p/1554404
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 10:13 PM
I Have tried this code : gr.orderByDesc ('sys_created_on'); which you provided links but not working in my server script the same code. Can you please help me to where that code will be placing.
Can you please help me.
I have attached my Server script code screenshot's for your reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 05:16 AM
Hi @mania
Sorry I am not coding expert here . But it should work.
@Community Alums @AshishKM @Sanjiv Meher @Anil Lande experts please advice.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2023 06:16 AM
Hi @mania ,
Records are sorted in descending order of field "closed_at" if it is available, else they are sorted in descending order of field "sys_updated_on".
This issue has been fixed in Feb'23 (version 28.0.2) store release of Employee Center apps. Please request to upgrade to the fixed version to get a permanent fix.