How get previous value of a field in business rule?

hemachandra2
Tera Contributor

Hi All,

Here actually, i have two tables, case and vehicles, so whenever request raise , case is created, and the value of field, "car status" in vehicle table changed, so my concern was, whenever case state changed to cancelled, then the value of car status field need to set to previous value?

So for that i have written business rule, but i am unable to get previous value of that field

Please help me to achieve this

Thanks

Hemachandra

find_real_file.png

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

previous object should help you if the BR is running on the same table which has that field

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur ,

Thanks for the response,

Yes, but any other way to get previous value  for my senario?

Thanks

Hemachandra

palanikumar
Mega Sage

Hi,

Instead of writing script you can abort action if the state changes to canceled.

In When to run > filter conditions set "State" "Change to" "Canceled"

In Action check the "Abort action" check box. You can display any message if required.

Thank you,

Palani

Thank you,
Palani

Hi Palani,

Thanks for the response

But my concern was actually, whenever case created then the value of field "car status also changed, so ,her whenever the case state changed to cancelled, then the value of field "car status also need to be revert to previous value, so here i need the previous value of that field?

 

 

Thanks

Hemachandra