Skip to main content
New Idea

Dates in Business Rule do not offer dynamic calculation between to dates

Related products:Freshservice
  • February 3, 2023
  • 5 replies
  • 112 views

msconfig87
Top Contributor ⭐
Forum|alt.badge.img+10

Hi.

I need a business rule for a service item so that this item cannot be borrowed for more than 6 months.

Therefore I need to check if the “To” date minus the “From” date equals more than 6 months.

I found no possible way of doing this in FreshService! Please add.

 

 

5 replies

afautley
Top Contributor ⭐
Forum|alt.badge.img+11
  • Top Contributor ⭐
  • February 6, 2023

@msconfig87 
I’ve been talking to some others about this.. would it not be better to have the validation on the catalog item field property?

so that when you put your date on you can restrict the dates they can pick rather than they pick the date and then you say no from a rule? 
 

So something like 
Date validation 

     From date

         Specific date

         Dynamic date

     To date

         Specific date

         Dynamic date

 


msconfig87
Top Contributor ⭐
Forum|alt.badge.img+10
  • Author
  • Top Contributor ⭐
  • February 6, 2023

yes of course, that would solve everything… but I don’t see input validation handled on individual service items at all...


afautley
Top Contributor ⭐
Forum|alt.badge.img+11
  • Top Contributor ⭐
  • February 6, 2023

My Thinking -

If you handle the validation after selection via business rule you’re giving people the option to select something and then you just say no after submission. This way you can restrict the selection that you would like at the start so they do not have the ability to select it in the first place?

 


Forum|alt.badge.img+11
  • Skilled Expert
  • February 6, 2023

 

Also, in the body of the Service Req you have ability to add Content which is free text with some customization on format - I like the Quote paragraph type

 

 

Here is how it looks in the Service Request - you can also move it around where you want the comment to appear

 

~~~~~~~~~~~~~~~~~~~~~

HTH
Bryn

 


msconfig87
Top Contributor ⭐
Forum|alt.badge.img+10
  • Author
  • Top Contributor ⭐
  • February 6, 2023

yeah but no… “steering” the user by labels is the worst way of input validation.
What we need is proper checking of the content of each custom field by industry default methods like input validation.