Previous and Current are showing same value in Business Rule. :(

sach1
Tera Guru

Hi All,

I have a display business rule in which I am capturing the previous value of "Assignment Group" and "Assigned To" field in a scratchpad.The business rule runs only when state value is "Active".

This scratchpad value is then passed to client side UI action. The issue is that I am getting same value in "Current." and "Previous." functions. Anyone faced this type of issue before.

Regards,

Sachin

1 ACCEPTED SOLUTION

sach1
Tera Guru

Thank You Guys...We had a lookup table which had this values defined. I was trying to avoid Gliderecord but finally went with the same.


View solution in original post

8 REPLIES 8

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hey Sachin,



This is expected behavior. Previous value will be available during update and delete operations.


Pradeep is there any other way by which I could get this values. I cannot use "previous" in UI action as this is a client side UI action. I am stuck.


This is a hack



Have a business rule or your ui action to place the previous value in session before the update.. Access the session value in the display business rule, place it in scratch pad and clear the value from session ...


use and onChange client script to write the values to the scratchpad