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:42 AM
Hi,
Are you not able to access the value using previous object?
You wrote it in 14 th line.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 01:48 AM
Hi Sumanth ,
Thanks for the response
So that code was not working, it not getting the previous value
Thanks
Hemachandra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2022 02:43 AM
Hi Hemachandra,
I got your requirement.
I would suggest you to create a hidden variable for previous car status on vehicle table.
So in the script where you are updating car status on case creation, write a line above that to copy the value of current car status to that hidden field.
Now in the business rule you can use the hidden variable value to get the previous car status.
Mark as correct and helpful if it solved your query.
Regards,
Sumanth