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

Calling Show-Harness Activity on-click in action does not work



You are calling an activity on click of a button using action - Run Activity/ Refresh Section and calling Show-Harness in that activity to display desired Harness but it isn't happening.

Error Messages


Steps to Reproduce

In a Button control, execute an Activity, confiure on-click to call Show-Harness.

Root Cause

Reported issue is an expected design behavior.


1. On click of Button, launch Harness.

2. In pre-activity, calculate the outcome using input parameter and assign it to a property that can be later used in the launched harness to put condition on layout visibility.

3. Configure your Harness to contain both Success and Failure layouts in a Single harness and then display them, on the basis of outcome from your preactivity, as set in conditions.


Published May 11, 2015 - 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