Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How to add a dynamic "This week(Mon-Sun) " filter option in a ServiceNow List View?

prakharsara
Kilo Contributor

Hello,

I want to add a dynamic filter option called "This Week(Mon-Sun)" in a ServiceNow List View.

 

My requirement is:

  • When I open a list view and select the Created On field in the filter condition,
  • I want an additional/dynamic option such as “This Week (Mon–Sun)” to appear in the condition/operator/value options.
  • The option should dynamically calculate the current week from Monday to Sunday.
2 REPLIES 2

glideFather
Tera Patron

@prakharsara,

 

there's a pre-built condition for that in all the fields that are date/time type:

Created - On - This week

glideFather_1-1788521878412.png

 

Could you try this?

 


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

also @prakharsara if you want to relabel it then go to UI Messages, find the "This week" and relabel it to "This week (Mon-Sun)":

https://yourDomain.service-now.com/nav_to.do?uri=sys_ui_message.do?sys_id=09c005324a362312010797dc04b3cda9

glideFather_0-1788522118068.png

 

Be cautious as this message might be (and most likely is) used in different areas of the platform so it can be affecting it as well.

 

What's wrong with "This week"? :))


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---