Solved

If Boolean is False then Error


Userlevel 1
Badge

Hello,

 

we are on Growth version.

 

In Service Item, made a workflow where the condition compares the values of two fields and returns a Boolean. 

What do we have to do in order to get an error message if Boolean is False?

icon

Best answer by daniel.soderlund 18 May 2022, 13:59

View original

6 replies

Userlevel 4
Badge +5

Hello, 

 

You can use the new expression function the condition block.
On this page  Expression builder Node : Freshservice you see this  ‘{{ticket.actual_requester.reporting_manager.name}}’== ‘{{ticket.requester.name}}’

That will give you a true or false. Down (No) you set a  not or a tag to indicate a error and right (yes) you keep continue your work flow. 

Userlevel 4
Badge +5

Reading your post again,  You can add a note to the ticket or a tag. 

Userlevel 1
Badge

Thank you Daniel,

but I would like to stop the user from placing the request.

Userlevel 1
Badge

When the following condition of the workfow evaluates to “True’ then I would like to stop the user from placing the request. The Action of the workfow does not have an option.

 

abs({{ticket.ri_55_cf_new_request_week_no}}-{{ticket.ri_55_cf_request_week}})>8

Userlevel 4
Badge +5

Thank you Daniel,

but I would like to stop the user from placing the request.

Oh, well as far as I know there are no event befor the user have placed the request.
Could maybe add a Business Rules to hide a mandatory field or change the option for a dropdown field that say Error 

If field = X 
Set mandatory Y field 
Hide Y field 
Remove option for a drop down to only show error


Not sure if it’s going to work and it’s not pretty.  
 

Userlevel 1
Badge

I could try this as a workaround.

Reply