Set filter for 2 days ago using filters

Kumar38
Kilo Sage

I assume its not possible , but wanted to confirm. I have a date time field and I need to run the filter so it pulls in records with "Started Time" of 1/19 , assuming I run it on 1/21. [Irrespective of time]

 

Tried below and it pulls in records based on date and time , i;e , If I run it on 1/21 7pm , it pulls records on 1/19 with a "Started Time" of 7 pm or after.

 

"Started Time" before yesterday AND "Started Time"  relative after 2 days ago 

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi @Kumar38 

 

yes it is possible with a workaround. You will need "SN Utils" browser extension to be able of entering an encoded query in the list view:

 

MaikSkoddow_1-1705898614779.png

 

The encode query to fulfill your requirement is (replace window_start and window_end with your field names and also : with a colon accordingly as this is always replaced by the Community portal due to security reasons)

 

window_start>=javascript&colon;gs.daysAgoStart(2)^window_start<=javascript&colon;gs.endOfYesterday()

 

Maik

View solution in original post

1 REPLY 1

Maik Skoddow
Tera Patron
Tera Patron

Hi @Kumar38 

 

yes it is possible with a workaround. You will need "SN Utils" browser extension to be able of entering an encoded query in the list view:

 

MaikSkoddow_1-1705898614779.png

 

The encode query to fulfill your requirement is (replace window_start and window_end with your field names and also &colon; with a colon accordingly as this is always replaced by the Community portal due to security reasons)

 

window_start>=javascript&colon;gs.daysAgoStart(2)^window_start<=javascript&colon;gs.endOfYesterday()

 

Maik