RPA flow to verify file location
Create a flow to verify a file location.
Creating a flow
- Log on to the RPA Studio application. The home page is displayed.
- Click . The New Project screen is displayed.
- Specify the basic information related to the new project.
- Click . The canvas to design the workflow is displayed with the Project menu open by default.
- Click . The canvas to design the workflow is displayed with the Project menu open by default.
- Click to open the Activities panel.
- Add the ( ) activity in the Sequence window.
- Specify this information in the Properties panel:
- Path
- The path to validate. For example, C:\RPA\rpa.txt. You can also create a variable for this property of type String and specify a default value of a file or directory path.
- Is Valid
- Confirmation on the existence of the document or file. Create a variable of Boolean type. For example, if exists.
- Add the ( ) activity in the Sequence window.
- Add ifexists variable in the Condition field. The value is displayed as TRUE, if the document exists.
- Leave the field blank.
- Specify the action required in the
- Target Filename
- The name of the file with an extension. For example, “rpa.txt”. You can also create a variable of String type with a default value.
- Target Filepath
- The directory file path. For example, “C:// RPA”. You can also create a variable of String type with a default value.
- Output File
- The variable of String type. The variable stores the entire path of the file. For example. C:\RPA\rpa.txt
field. For example, if the value of Ifexists is False (the file does not exist), create a
file by adding create file in the field
of the If activity and specify this information in the Properties panel: