Is it possible to use a condition on "is different" from previous field value?

fkarlowicz
Kilo Explorer

We are currently using the ServiceNow Istanbul release at Disney and I am trying to find out whether or not it is possible to use a condition to start/cancel/pause/stop/reset an SLA task if a field value is different from its previous field value.   Does anyone know whether or not this is possible just by using the "is different" operand or maybe a custom workflow?   Any help or suggestions will be greatly appreciated.

1 ACCEPTED SOLUTION

siva_dirisala
ServiceNow Employee
ServiceNow Employee

Hello Franco, the changes operators are not available till Kingston and even in Kingston, it's only available for Reset Condition.



Create an SLA definition          



"Reset condition also helps to configure SLAs when the value of any specific field on the task record changes, changes to, or changes from a specific value".



For your specific use case of setting up SLA conditions, you can add a custom field on the table you are setting up SLA, write a BR that updates this field using the current and previous as Berny described and then setup the SLA definition on this custom field.


View solution in original post

4 REPLIES 4

bernyalvarado
Mega Sage

Hi Franco,



Within business rules you have access to the current object and also to the previous object so you can use these two objects to perform the operation comparison within the business rule code or within the business rule condition field.



For instance:



current.field_name != previous.field_name;



Thanks,


Berny


siva_dirisala
ServiceNow Employee
ServiceNow Employee

Hello Franco, the changes operators are not available till Kingston and even in Kingston, it's only available for Reset Condition.



Create an SLA definition          



"Reset condition also helps to configure SLAs when the value of any specific field on the task record changes, changes to, or changes from a specific value".



For your specific use case of setting up SLA conditions, you can add a custom field on the table you are setting up SLA, write a BR that updates this field using the current and previous as Berny described and then setup the SLA definition on this custom field.


Jason Occhialin
ServiceNow Employee
ServiceNow Employee

Hi Franco,


Can you give an example of how you want to use the advanced condition operators Changes, Changes to or Changes from in something other than a reset condition?



Best regards,


bernyalvarado
Mega Sage

Hi, would you mind marking the responses as correct and/or helpful?

Thanks,

Berny