Skip to main content
KierstenKollins
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
May 16, 2024 7:31 PM UTC
Question

"This Week" Filter for Search Module for Task

I am working on an automation that is looking at whether a task was completed after the planned completion date and want to search tasks that were completed this week.

 

I was looking the options to set my filter in the search module and did not see an option to set to this week. 

 

 

Is it possible to set to a "this week" filter?

 

Thank you in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

lgaertner
Level 9
May 16, 2024 9:12 PM UTC

Hello,

 

corresponding to the documentation of the setDay() function, this could be a way:

 

 

setDay (date; number/name of the day in english)

Returns a new date with the day specified in parameters. It can be used to set the day of the week, with Sunday as 1 and Saturday as 7. If the given value is from 1 to 7, the resulting date will be within the current (Sunday-to-Saturday) week. If a number is given outside of the range, it will return the day from the previous or subsequent week(s), accordingly.

 

 

Regards

Lars

Translate
ChrisStephens
Community Advisor
Community Advisor
May 22, 2024 1:47 PM UTC

You can use the same variables as in reporting, so $$TODAYbw and $$TODAYew.

 

Translate