Write Records Smart Service Keeps Creating New Record Instead of Updating

I'm new to appian and I’m trying to update specific fields (status and step) of a record in my Process Model using the Write Records Smart Service, but instead of updating, it keeps creating a new record.

What I’m Doing:

  1. I pass the record to a form where the user can approve or reject it.
  2. When the button is pressed, I update the status and step values using a!save().
  3. I then pass ac!record to pv!record.
  4. Finally, I use the Write Records Smart Service to save the changes.

Issue: Instead of updating the existing record, the Write Records node creates a new record.

  Discussion posts and replies are publicly visible