Hello,
I want an event to happen (send email) after submitting a user interface (form) only if a certain attribute has been changed. I figured that I would need the old and the new value of this attribute in the process.
What would be a good way to achieve this?
Thank you in advance
Discussion posts and replies are publicly visible
hi thomas, you can have a boolean variable which will have true or false when a attribute gets changed , based on this variable you can design your process flow.
The trick here is that you will need to save the old value in a local variable set to never refresh. Then you can compare that to the new value. I suggest to put that logic into the saveInto of the submit button. Store that result into a boolean which then controls the process.
Hello , Hello ,
thank you for your suggestions.
I was able to achieve my goal doing the following:
KRThomas
Great to hear that you get this working. A small hint:
if(local!oldValue<>ri![MY_VALUE], TRUE, FALSE))
can be replaced by
local!oldValue<>ri![MY_VALUE]
as a comparison always evaluates to a boolean result.