Issue
Field level auditing records are generated without a pyGUID.
Symptoms and Impact
Field level auditing records do not display in the audit history for a case.
Steps to reproduce
- Enable field level Auditing on a case type (for more information, see Enabling field-level auditing).
- Create a case of that case type.
- Enter or update a field which has auditing enabled.
Root Cause
This issue occurs when the pyAutogeneratedKey property is set to false on the FLAudit class associated to the case type, such as FLAudit-MyOrg-MyApp-Work-MyCaseType. This property can be set to false if the FLAudit class is created manually, or if it is manually updated after creation.
Solution
Update the value using an activity:
- Create an activity (for more information, see Creating an activity).
- Add a step to perform an Obj-Open-By-Handle on the impacted FLAudit class.
- Add a step to perform a Property-Set to change the pyAutogeneratedKey property value to true.
- Add steps to save and commit the FLAudit class.
- Execute the activity.