Creating the script
A script can contain commands that run specific actions to achieve the goal of a task. Scripts include the source code and their resources like assets, variables, commands, and subroutines. The first task that you need to accomplish to automatize a process is to create the script on IBM RPA Studio.
Before you begin
This procedure assumes that you are entitled to use IBM RPA. For more information, see Getting access to the platform.
Before you create your script, make sure you comply with the following requirements:
Product requirements
IBM RPA Studio license
User requirements
- User access to a tenant
- Permission to use IBM RPA Studio application
For more information about how to manage user's roles and permissions, see Procedure for managing user's roles.
Procedure
The following video explains how you can create your first script. It builds a script with assistance of IBM RPA's recorder tool to enter the phrase “Hello World” in the Windows™ Notepad application.
The following steps create the same script as explained in the previous video, which aims to automatize the Windows™ Notepad application to write “Hello World” on it. The written steps don't explain how to use the IBM RPA's recorder tool.
- Open the IBM RPA Studio.
- Log in to your account.
- From the Start Page pane, click New. Or from the Home ribbon, in the File group, click New.
- Click Wal File. You can also use the
Alt+Shift+W
keyboard shortcut. - In the Edit group, click New variable. It opens the Define variable window.
- In the Name field, enter
HELLO_WORLD
. - Optional: In the Variable type, select
Text
. - In the Value field, enter
Hello World!
.
- In the Name field, enter
- Click Save.
- In the Toolbox pane, search for and double-click the Launch and Attach Window command. In the Executable field, enter
C:\Windows\notepad.exe
. - Click Save.
- In the Toolbox pane, search for and double-click the Set Value command.
- In the Value field, enter
${HELLO_WORLD} This is my first script!
. - From the Selector list, select
Id and name
. - In the Id field, enter
15
. - In the Name field, enter
Text Editor
.
- In the Value field, enter
- Click Save.
Results
You built your script to open the Windows™ Notepad application and write “Hello World
” on it. Now, as suggested on the video, you can debug the script by using the IBM RPA's debugger, or go to the next task to publish it.