Let's now add the Catch block for the Try block we added at the start of the bot workflow:Â
- Add the Catch action at the same level as the Try action. In the Catch properties, set Exception type to AllErrors. Create a String variable called errorMesage to store the error message.Â
- We will set the success flag to No. For that, add a String Assign action and set Select the source string variable(s) to No. In the Select the destination string variable property, add the SuccessFlag variable.Â
- Let's also log the error by adding a Log to File action with the ExecutionLog.txt file path. To print out the extracted data, we can set Enter text to log to $System:Machine$ - ERROR - Child bot execution failed with $errorMessage$:
That completes the Child bot configuration. We have now created a new user in Freshsales and populated the flag that is passed...