How to add the take screenshot in the workflow if ay error or exception occurs

If you are using any single application use indicate element for Take screenshot activity.

Regards,
Arivu