Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

how to add order by in the existing encoded query

Priyanka Shind1
Kilo Expert

Hello All,

I have used below encoded query and I want to add order by on opened_at field which is a date field.

At present it is showing old to new records however I want to showcase new to old records.

Below is my encoded query copied from incident table

caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^opened_atONLast6months@javascript:gs.beginningOfLast6Months()@javascript:gs.endOfLast6Months()^EQ

Thank you in advance.

Regards,

Priyanka Shinde

1 ACCEPTED SOLUTION

Shakeel Shaik
Giga Sage
Giga Sage

Hi Priyanka

ORDERBYDESC = New to Old

caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^opened_atONLast6months@javascript:gs.beginningOfLast6Months()@javascript:gs.endOfLast6Months()^EQ^ORDERBYDESCopened_at

Thanks,
Shakeel Shaik 🙂

View solution in original post

6 REPLIES 6

Shakeel Shaik
Giga Sage
Giga Sage

Hi Priyanka

ORDERBYDESC = New to Old

caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^opened_atONLast6months@javascript:gs.beginningOfLast6Months()@javascript:gs.endOfLast6Months()^EQ^ORDERBYDESCopened_at

Thanks,
Shakeel Shaik 🙂

chsumit
Kilo Expert

Hi,

You can add reqs.orderBy(''); after your encoded query.

Thanks,

Sumit