What Is Automation
Automation is a technique of reducing human effort and improving the performance simultaneously.
Suppose there is a scenario where an employee's job is to collect data from different sources like PDFs and online portals and enter them into one software or database.
Now this is very mundane work and the user/employee is not learning anything, and also we are not utlilizing his/her ability to its full potential. There is also a chance of human error in data entry.
So a better way is to automate this task.
What is UiPath?
UiPath is a Robotic Process Automation tool which helps in the creation of automation.
This tool comes with a Community Edition that is free for life. So, if you are new to automation, then you can start learning to automate tasks and eliminate human intervention by using this tool.
UiPath Automation Examples
- Moving Files from Source Folder to Destination Folder
- Web Automation
1. Downloading Files/Invoices/HealthRecords from some websites
2. Checking some status on websites.
3. Uploading and downloading some files
- Email Automation
- Excel Automation
- PDF Automation.
Example and Implementation
Moving Files from Source Folder to Destination Folder
Steps to automate
Open UIPath Studio
Click On New Project
Give name and description
And click on Create
First take a sequence activity from Activities.
Then create variable SourcePath, Counter and NoOfFiles.
Variable Type would be String For SourcePath
String[] for NoOfFilesà goto Array of <T> and select String
Int32 for Counter
And assign respective sath for SourcePath variable.
Now take Assign activity and assign files to NoOfFiles variable by typing:
NoOfFiles in To
and Directory.GetFiles(SourcePath).ToString in Values
Next take assign activity to assign 0 to Counter
Now take For each Control Activity and give NoOfFiles for each item in element and drag Move File activity in Body section.
And mention the SourcePath variable in the From section and provide destination path in the To section and in the Type Argument mention String
To move all the files from the source folder to the destination folder, drag the assign activity and assign the To value to Counter variable and the value section to Counter + 1.
Final project screen flow:
Conclusion
Here we have created the automation to move files from one path to another path that can be scheduled in orchestrator. I will share other examples of automation and orchestrator in another part.