Skip to main content
Solved

Conditional Expression for Decision Automation in IFS Assyst


Forum|alt.badge.img+1

Hi everyone,

I'm working on automating a Decision within a process in IFS Assyst. I've added a custom field called "Project Hours", and I want the process to automatically take a certain path if the value entered in this field exceeds a specified threshold.

To achieve this, I tried using the following condition in the Decision:

$new.W("PROJECT HOURS").shortcode > 150 

Unfortunately, this condition doesn't seem to work as expected. Has anyone implemented something similar or could point out if there's something wrong with my expression? Appreciate any help or suggestions!

Thanks in advance.

Best answer by Rajana

Hello Ramesh,

I believe the custom field “PROJECT HOURS” type is set as integer? 
Integer data type does not support decimal values. If you want to evaluate something like >150.2 change the custom field data type to string

If the custom field type is either integer or string use the following expression on the decision condition : $new.parentEvent.W("PROJECT HOURS").shortCode > 150

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+4
  • Do Gooder (Employee)
  • 26 replies
  • Answer
  • April 13, 2025

Hello Ramesh,

I believe the custom field “PROJECT HOURS” type is set as integer? 
Integer data type does not support decimal values. If you want to evaluate something like >150.2 change the custom field data type to string

If the custom field type is either integer or string use the following expression on the decision condition : $new.parentEvent.W("PROJECT HOURS").shortCode > 150


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 1 reply
  • April 14, 2025

Thank you, Rajana. It works.


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