Skip to main content
Development

Bring Back "Rule Date" As Filter Option For Date Fields Horizon Rules

Related products:CS Rules Engine

bradley

Background:

  • In Bionic Rules, whenever you have a date filter, one of the options under ‘select date’ has been “Rule Date”. This is the date that the rule runs.
  • In Horizon Rules, you do not have this option.

Here is the problem:

The “Run Date” is not always the same as the day the rule runs. When you manually run a rule, either as a test or a live run, you can select the run date, meaning that Run Date =! Today. More on that later.

 

Why Does That Matter?:

Great question, here are some examples:

Scenario 1: Instead of “Run Date” you filter your date field to say “Date = Today”.

Scenario 2: You add a transformation step after every fetch to add “Run Date” formula field so in the next transformation step and beyond you can use “Run Date” in your filters.

 

As mentioned in the problem statement, you want to test run date sensitive data, or perhaps rerun a rule that failed, without having to adjust a bazillion date filters. This is the case for both scenarios:

 

Scenario 1: If all of my date filters say Date = Today (6/9/23), and I select a Rule Run Date of 6/4/23, I will not get any results from 6/4/23.

Adjusting all of my date filters, manually running, then adjusting them back is not an acceptable workaround.

 

Scenario 2: To game the system you add a transformation step to add “Run Date” in your filters because you got tired of scenario 1. But then you remember this has a number of compromises that come with it as well:

  1. At the task level, you’re fetching all the data every time leading to longer processing times.
  2. This adds at least two steps per fetch (possibly less if you get fancy and are able to consolidate some transformations).
    1. Why? Data Fetch>Transformation Step>Transformation Step to actually use the filter. Given #1 here, adding two transformations on top is a big bummer.
  3. Formula field limitations. Each Task is limited to a combined 10 Formula Fields and/or Case Fields. If you have a lot of transforming going on, this may require additional steps.

As is hopefully clear, scenario 2 also isn’t that great, and creates additional overhead and potentially longer processing times.

 

Like the title says, please bring back the “Rule Date” filtering option.

 

cc @rakesh @shambhawi @anirbandutta @gunjanm @darkknight @zach_davis 

7 replies

rakesh
Forum|alt.badge.img+1
  • Lets put your data to work!
  • 835 replies
  • June 9, 2023

Hi Bradley,

We do have run date in filters for fetch in Horizon Rules, this works exactly like Rule date in Bionic Rules. 

 


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1128 replies
  • June 9, 2023
rakesh wrote:

Hi Bradley,

We do have run date in filters for fetch in Horizon Rules, this works exactly like Rule date in Bionic Rules. 

 

@rakesh Good to know, I guess the issue was I was looking for “Rule Date” and varations of that, and missed the two “Run Date” options buried in the list. Since there is no plain old “Run Date”, do you just add or subtract 0 days to get the actual run date?

I’m glad it exists, and it’s hilarious that I didn’t find it before making the post but can we please please please take this as a design learning opportunity? Especially when updating existing features that folks are used to?


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1128 replies
  • June 9, 2023

It appears that no, that doesn’t work:

Is this my only option to get = Run Date?

Note you’d have to scroll to the right to add another filter

 

I may have been off on the specifics of the problem, but conceptually there is still a lot to be desired here from a functional parity standpoint :)


heather_hansen
Forum|alt.badge.img+13
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 954 replies
  • June 9, 2023

I have a lot of rules with the filter being the day the rule runs, so would definitely like to see this addressed. 


bradley
Forum|alt.badge.img+7
  • Author
  • Expert ⭐️
  • 1128 replies
  • June 9, 2023

To your point @heather_hansen , how do Bionic rules migrate with Date = Rule Date @rakesh ? I seem to recall seeing it as just Date = Today (which, as mentioned above is not desirable nor is it the same), but I don’t know for sure.


matthew_lind
Forum|alt.badge.img+11
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 651 replies
  • June 9, 2023

Concurring with @bradley, that’s a much longer road to travel to find records where Run Date / Rule Date = Today.

 

“Run Date” and “Rule Date” have different connotations in my mind, so I’m glad I read this post. If I run a rule today (Fri 9 Jun 2023), but want it to run “as of” some earlier date (let’s say Mon 5 Jun 2023), then intuitively I would think:

  • Run Date = Fri 9 Jun 2023, the date the rule literally ran
  • Rule Date = Mon 5 Jun 2023, the “as of” date

Granted, I could also just be stuck in my ways and I’ll learn the newer lingo. However, this could be--and clearly already is--a point of confusion on what those critical pieces of vocabulary mean.


shambhawi
Forum|alt.badge.img
  • Gainsight Employee ⭐️
  • 71 replies
  • June 20, 2023
No StatusPlanned

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings