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

@anjani_priya You can refer TakeScreenshot.xaml of Re-Framework.

In case you are running process in attended mode or debugging it will take screenshot of window present in front.