How to create an RPA flow using System activities
Beginner | 15 Minutes
Overview
This tutorial will show you how to create a basic flow using system automation and workflow activities.
Let’s create a flow which will allow a bot to read files and check if they contain any text. The text will then be written into a logfile, which will be created upon running the RPA flow.
📋 Requirements
|
Tutorial
Logs
Once the RPA process is run, you can check the logs in the Output Page of RPA Studio. If the activities were executed without throwing any errors, the status code will be 200, meaning it was executed successfully. Otherwise, if the code is 401, 402, 500, or another error code, it means there was an issue executing a particular activity.
Flow Improvements
Now you can improve the flow by tackling a possible exception scenario: the logfile already exists.
- To handle this, use the Path Exist activity, where:
- For Path, use the
outputfilepathargument rather than the variable, as it can be different depending on where the process is run. Provide a default value:"C:\RPA\LogFile\logfile.txt". - For IsValid, create a new variable called
logfileexistsof type Boolean.
- Add a Condition activity with the property logfileexists:
- If True, do nothing.
- If False, create the file by moving the Create a File activity into the Else body.
Now you can run the flow again to handle the scenario where the logfile exists.
Activity List
The following System and Workflow activities were used in this tutorial:
What made this section unhelpful for you?
On this page
- How to create an RPA flow using System activities