Data in the database needs to be toggled

I have an entity backed record and I am calling a process model which updates a field in the DB table using related action when the check box is ticked. When I launch the process model using Related Action, the process updates the value in DB, but I need to update the previous value of the field when the check box is unchecked using the same process..

Can anyone help me out?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Can you tell us a bit more about the value that will be written when the checkbox is checked, and the "previous" value?  Will the new value and/or the previous value always be the same, always be different, etc?  For example if it's just setting a boolean value to TRUE when the box is checked and FALSE when it's unchecked, that is far simpler than if the original value of the field could be something random, and needs to be reverted later...

Reply
  • 0
    Certified Lead Developer

    Can you tell us a bit more about the value that will be written when the checkbox is checked, and the "previous" value?  Will the new value and/or the previous value always be the same, always be different, etc?  For example if it's just setting a boolean value to TRUE when the box is checked and FALSE when it's unchecked, that is far simpler than if the original value of the field could be something random, and needs to be reverted later...

Children
No Data