I am using REF for my process…
So here I have a login page and then go to portal and download the file from portal it is in the form of CSV and then i need to convert into Excel…and then upload the excel data into orchestrator queue…
It is simple dispatcher…
So I have two exceptions
1)Login url is not working
2)Login user credentials exception.
If any exception is occurred then it needs to go to end state…
And i need to send the exception mail through send outlook email activity…
So everything is needs to put the exception mail message in the end state
Could you please help me regarding this how to use the send email activities and everything is needs to be taken from Configuration file…
there are transitions will decide where next flow will go , if any system exception happen as per transition it will end the process so there you have to use your mail activity
Better way to send exception email if any exception occurs in Init state would be
Use Try catch block for Init all applications, so if URL is not working or entered credential fails catch the exception in catch block and use Send out look mail message to send the exception email. Then re-throw the exception so process flow can continue to End Process.
More about the Send Out look mail message can be found here :
I am just trying to explain you that this is Dispatcher…
I am not using get transaction state…
So just logging into some page and download the file from portal…
So I need to send the exception mail if the url is not working or else credentials is. Not working or else the file is not downloading or else any unknown exception…
So log in to page in the initial state
Then proces state downloaded the file and convert into Excel…
If any exception is occurred then need to send the mail to user…
1)log in url not working
2) credentials not working
3)file is empty
4) unknown exception
So please help how to get the value from configuration file uipath
You can surround your login workflow with try catch then add business rule exception for each type of exception and throw appropriate exception from config for each type of business exception. Which exception is already known to you you can treat them as business exception and unknown exception as system exception.
Then in InitAllsettings surround with try catch and add rethrow activity in catch block as below
Then in RE framework SystemException transition you can add as below