Hi community,
I need to login the RDP and if rdp logins i need to send login mail if any errors occurs i need to send error message mail how to do this.
Hi community,
I need to login the RDP and if rdp logins i need to send login mail if any errors occurs i need to send error message mail how to do this.
can any one help on this ? my exception is not working fine
Have you tried using Element Exists or Check App State to verify login success or failure? If so, you can place a Send Mail Message activity in the Else block to notify in case of any errors.
i don’t know what type of error may occur
In this scenario, use a try-catch block specifically for the Login Flow. In the event of an error, the code will proceed to the catch block, where it will handle the failure by sending an email notification.
Hope this helps
i know but my exception is not working properly
Hi @pradeep931
i created workflow like this try block : [login rdp and send email onces login],
catch block: system.exception [send failure email]
but my code is not working when ever the error occurs its give login sucess mail instread of failure mail
Could you please double check the logic and Confirm that the try-catch block is properly scoped. If the catch block is nested inside another sequence or scope, it might not be handling the exceptions as intended.
Please help me with the screenshots?
Thanks for sharing. The code looks fine. Have you tried running it in debug mode to see where the flow might be throwing an exception?
no its not working i tried with debug exception is not catching