I have 2 rule inputs one is prevData and another is UpdatedData . I want a rule expression that will compare the two rule inputs and return the different fields and values from prevData rule input . And the I need to add the fields and values to another rule input which will be a input for write record smart service . Can anyone help me with proper steps ,please !
Discussion posts and replies are publicly visible
Do you just need to compare if they are same or not? That can be done using a simple equals operator. But if you need specific fields that got changed, you can use a!keys() function, run a loop on the keys and compare the property's value from prevData with UpdatedData, and add it to a map.
I need both the fields and the values those are got changed in updatedData.
Yep. Like I said, you can run a loop by all the fields of the RI using a!keys() function and passing it in a!forEach()
ok ,will follow your steps .Thanks for your response !