https://robocorp.com/docs/courses/beginners-course
Process is split into 2 steps. First step, downloadTask
, downloads Excel file which is read and
stored in list format into work item variable. Second step, processingTask
, reads the work item variable
content and goes through each item in the list variable.
The processingTask
is run by default in headless mode, but UI can be set visible by setting environment variable SHOW_UI
to any value.
The main process output is stored into output/sales.zip
file, which contains all images and PDFs created during the processingTask
step.
Output folder is in the .gitignore
and thus not visible in this repository.
- RPA.Excel.Files
- RPA.FileSystem
- RPA.HTTP
- RPA.Robocloud.Items
- RPA.Archive
- RPA.Browser
- RPA.FileSystem
- RPA.PDF
- RPA.Robocloud.Secrets
- RPA.Robocloud.Items
Needs to have secret key salessite
containing secrets for username
and password
defined in the Beginner's Course website.
These steps describe how to use Robocorp Cloud Vault and local workitems file for development runs.
Note. These steps are not necessary if process is run only in the Cloud.
- create folder
devdata
into task root folder (this folder is in.gitignore
file) - create empty
workitems.json
file intodevdata
folder - create
env.json
intodevdata
folder with following content
{
"RC_WORKSPACE_ID": "MY_WORKSPACE_ID",
"RC_API_SECRET_HOST": "https://api.eu1.robocloud.eu",
"RC_API_SECRET_TOKEN": "MY_AUTH_TOKEN",
"RC_WORKITEM_ID": "MY_WORKSPACE_ID",
"RPA_WORKITEMS_ADAPTER": "RPA.Robocloud.Items.FileAdapter",
"RPA_WORKITEMS_PATH": "./devdata/workitems.json"
}
- replace
MY_WORKSPACE_ID
parts with your ID from output from command:rcc cloud workspace
- replace
MY_AUTH_TOKEN
with output from command:rcc cloud authorize -w <MY_WORKSPACE_ID>
Execute the run command: rcc run -e devdata/env.json -t downloadTask
- in Lab terminal - execute the run command:
rcc run -t downloadTask
- using notebook mode
Restart Kernel and Run All Cells
- using
Run Robot
button
- use terminal and run with rcc like mentioned above
- run using
Robocorp Code
extension - run using VS Code command palette
Robocorp: Run Robot