Support Article
'History-Add' method does not work in a loop for an activity
SA-47157
Summary
'History-Add' method does not work in a loop for an activity.

Error Messages
Not Applicable.
Steps to Reproduce
- Iterate through a page list in a loop
- Add a step with 'History-Add' method in a loop
Root Cause
Audit history only displays the history from the Work Object.
Since looping on a data class and trying to add history, the history is added to the data class history table. This is the expected behavior.
Resolution
Perform the below local change:Configure the step page as the pyWorkPage page.
Published January 12, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.