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.

Unable to retrieve back the primary key of a record

Certified Associate Developer

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

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Shukur Shaik

    If you can see the data properly inserted in the database table, then have a look at source filter of the record and make sure that there is no condition which is filtering out the record that you have just written. If that condition is filtering out the record then pv in the output gets updated to null.

    I tried recreating it with example below. When I wrote a record where VehicleYear was less than 2012 or null, pv in the output (i.e. pv!request in your example) was null but when I added a vehicle where VehicleYear was >2016, pv in output got updated with the inserted record along with the primary key.

Children