How get previous value of a field in business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 12:36 AM
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
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 12:39 AM
Hi,
previous object should help you if the BR is running on the same table which has that field
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 01:50 AM
Hi Ankur ,
Thanks for the response,
Yes, but any other way to get previous value for my senario?
Thanks
Hemachandra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 12:41 AM
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
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 01:47 AM
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