how to get field previous value in a UI action (server side)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 04:29 AM
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?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:17 AM
how do i access the previous value in the ui action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:25 AM
what is the statement in the ui action?
you cannot use previous.
nor
previous.getValue('xxx')
there is no previous in a ui action