Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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.