how to get field previous value in a UI action (server side)

ggg
Giga Guru

I have a UI Action executing on server.

I need the PREVIOUS value of a field because I need to know if the value has changed.

(I do NOT want to use a BR, I want the UI Action).

Is there a way to do this?

8 REPLIES 8

dave_edgar
Mega Guru

i'm pretty sure you can only get the previous value when running a client script.

If you really need an additional field and with it you'd need an update business rule to capture the previous value. 

 

Then a UI Action can compare the values

 

Hope that helps, if so please mark as correct or helpful

Dave

how do i access the previous value in the ui action?

you'd have to set another field with the previous value using and onChange client script or a business rule.  The your UI action can compare the two fields 

what is the statement in the ui action?

you cannot use previous.

nor

previous.getValue('xxx')

there is no previous in a ui action