I am using write record smart service, sending record fields but not primary key as it is a auto generation. when I am trying to retrieve the primary key, the primary key is not updating in the pv variable. Can anyone helps why it is happening.
Discussion posts and replies are publicly visible
Does the record gets updated in the DB? Does it have the PK populated?
Hi Abhay,Thanks for your comment,Yes, record is gets updated with the primary key in DB, but write records smart service output parameter which is ac!RecordsUpdated giving null instead of record field values with the primary key.
write records is working if I use Appian cloud database however it is not working same with the External DB (SQL Server).
Interesting!!! Might be a defect. Did you try reaching out to Appian support?
Not yet Abhay.
Getting same error. Getting empty record with primary key alone. Record is gets updated with the primary key in DB, but write records smart service output parameter which is ac!RecordsUpdated giving null instead of record field values with the primary key. is it resolved?
Hi amukthak7484 ,It will return primary key only, for more info you can refer Node outputs section on this page. And as per your requirement you'll need to query the data for the updated row by passing the primary key you are getting from write records output.