In workflow I need to run a search and find all invoices where the date field falls within a month. Is there a way to do that without having to worry about the days and everything.
I'm at a loss as to where to ever start with this one.
In workflow I need to run a search and find all invoices where the date field falls within a month. Is there a way to do that without having to worry about the days and everything.
I'm at a loss as to where to ever start with this one.
I assume you'd want this workflow to run on a schedule once a month. Date Token Calculator lets you find the last day of the month. The first day of the current month is relatively easy, you just replace the day with 1 on the current date. Or if this workflow runs on the 1st, it's just the current date. For the last date, if you add a month to the first of this month and then subtract a day, you get the last day of the current month.
Then you can use the 2 dates in the search.
Awsome thanks, would have taken me forever to think of that.
Miruna,
I am looking to take this process one step further and use a search that can encompass ANY year in my repository. This is for anniversary dates that could be 1 year ago, or 10+ years ago. I'm not sure if I need to do this with the Date Calculator and/or the 'Search Repository' activity?
Cheers,
Nate