Please check before pzInsKey of the case is getting generated Field Level Auditing rule is getting invoked and history is getting added in FLA audit table.
My issue is resolved after “We have created a custom activity and set pyAutogeneratedKey to true for the audit class. This resolves the reported behavior.”
@APAL007@Madhu Yasarla the issue logged in this forum post was specifically for the symptoms described.
Field Audit was not working for the first change of the data selected/provided for a field. The audit was only reflected after the second change was made. When the property involved a series of hierarchies, for example pageprop.pagelist(1).pageprop, the FLA objects will initially use deferred saves and the generated pzinskeys will be added to a savedFLAMap object. However, when the last pageprop was not eligible to save, all the deferred saves of earlier records were cancelled but the inskeys were not removed from the savedFLAMap object. Because of this, the parent FLA records were assumed to have been saved already when those saves were actually deferred. This was a missed use case for hierarchical properties, and has been resolved by adding an update to remove the inskeys from the savedFLAMap object so that in the subsequent property change the audit’s FLA records for the parent properties (pageprop.pagelist(1)) will be saved again.
Fixed from these patch versions onwards:
8.5.6: BUG-685369
8.6.3: BUG-685371
8.7.1: BUG-685370
8.8: BUG-689116
You can do a key word search (see description in my screenshot earlier) and check out the Resolved Issues. and Resolved Issues
If you need further help, I suggest you log a support issue via the MSP.