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