Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Unable to display team name in audit trail instead of work group

SA-56434

Summary



The requirement is to display the team name in the audit trail instead of the work group name that the user is assigned to.
For example, the audit displays 'MyWorkgroup@org'. However, the requirement is to display 'MyWorkgroup'.



Error Messages



Not Applicable.


Steps to Reproduce



Launch the application and view the audit trail.


Root Cause



The pyAssignedToWorkGroup value is used to display the data in the audit trail. The audit history can be modified to display the data as desired.
 

Resolution



Perform the following local-change:
  1. Use a SQL function in the pyGetWorkHistoryWithLatLong report. There are two existing SQL function alias rules that are helpful: pxSubstring and pxFind
  2. Create a new function alias based on the two SQL alias rules which returns the index and string prior to the @ character
Alternatively,

​​​​​​​Use a custom property and Declare Expression. To optimize the new property, add the exposed column to the database table manually and restart the server.


 

Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us