Hi all
I am looking for a way to simplify a workflow based on people leaving my firm and add a dropdown box or 2 to select a day, then use a date range to select the required data (if that make sense).
I presently have, in my workflow, multiple filters, as below :
- datetimeformat(DateTimeNow(),"%a") = "Mon"
- datetimeformat(DateTimeNow(),"%a") = "Tue"
- datetimeformat(DateTimeNow(),"%a") = "Wed"
- datetimeformat(DateTimeNow(),"%a") = "Thu
- datetimeformat(DateTimeNow(),"%a") = "Fri"
Each of the 'day' filters then runs another 2 filters to output data based on the current week, and the following week (need to be seperated).
For the Monday filter I then run 2 seperate filters
- ([Departure Date] >=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +1,"days"), '%Y-%m-%d') AND [Departure Date] <=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +7,"days"), '%Y-%m-%d')) - ([Departure Date] >=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +8,"days"), '%Y-%m-%d') AND [Departure Date] <=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +14,"days"), '%Y-%m-%d'))
For the Tuesday filter I then run 2 seperate filters
- ([Departure Date] >=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +0,"days"), '%Y-%m-%d') AND [Departure Date] <=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +6,"days"), '%Y-%m-%d')) - ([Departure Date] >=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +7,"days"), '%Y-%m-%d') AND [Departure Date] <=
DateTimeFormat(DateTimeAdd(DateTimeToday(), +13,"days"), '%Y-%m-%d'))
the same applies for the rest of the week (excluding Weekends)
I'm looking to implement the dropdown box so my team members can select Monday, then the workflow uses the appropriate filters 2 filters, or if the day is Tuesday then run the appropriate filters.
Is this possible ? Any suggestions or recommendations would be greatly appreciated.
My apologies if my questions are vague.