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

SumanthDosapati
Mega Sage
Mega Sage

Hi,

Are you not able to access the value using previous object?

You wrote it in 14 th line.

 

Regards,

Sumanth

Hi Sumanth ,

Thanks for the response

So that code was not  working, it not getting the previous value

 

Thanks

Hemachandra

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