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

Executing pzAddFollowerWorkParty twice on click of follow link

SA-34049

Summary



User is using pyCaseTools OOTB section to display follow link.
When user is clicking on the Follow link the followers name is getting displayed twice.

Error Messages



Not Applicable

Steps to Reproduce

  1. Add a tabbed screen flow which contains assignments.
  2. Open any case from workbasket and click on Screen Flow link
  3. Click on Follow link and you can see activity gets executed twice in tracer and two subscripts that activity has created.

Root Cause



A software use or operation error While using TabGroup, every tab contains a section or a Harness(using Dynamic container). In this user's scenario, they using the same section "pyCaseAssets " in the first and second tabs of the tab Group. On follow link, there is click event with “Refresh Other section- pyCaseAssets” with Activity pzAddFollowerWorkParty. “Follow Link“ checks for other sections currently present in current Harness, as it is a TabGroup, it contains two pyCaseAssets, so it will refresh both the sections that will cause the activity to run twice. So it is expected behavior.

Resolution


Configuration change to achieve the scenario :
  1. Each Tab should be Harness (via Dynamic Container) , so that each harness is independent of each other,so it will refresh only once.
  2. Wrap PyCaseAssets inside any one of your custom section . And include that wrapper section inside your Tab.As pyCaseTools is an Available rule , override that with ur custom section and on click of Follow button , refresh that wrapper section . So activity will be run only once.
The second approach helped acheive the user requirement.

Published March 3, 2017 - 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