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.
status
step
a!save()
ac!record
pv!record
Issue: Instead of updating the existing record, the Write Records node creates a new record.
Discussion posts and replies are publicly visible
check the primary key field is populated prior to hitting the node, also make sure the record type output goes back to your pv so you can see the data on the way back out as well. Sometimes, adding a user task node inbetween nodes where data is being transformed and then written can help you see the journey the data type goes through. Within the History tab of the process though you should be able to see everything.
Hi slimani666046
Please check below mentioned points -
1. Does pv!record has primary key value(A primary key, also called a primary keyword, is a column in a relational database table that's distinctive for each record).
2. To update existing data, the record must include a primary key value. Make sure the pv has primary key before passing to Write Records node.
Please refer this for more details : Update existing records