- Getting started
- Administration
- Designing automations
- Creating an automation from an idea
- Creating a project
- How to start an automation
- Managing project files and folders
- Connecting automations to your accounts
- Configuring activities
- Managing the activities in a project
- Passing values between activities
- Iterating through items
- Managing the data in a project
- Configuring a project to use your data
- Using file and folder resources
- Using UI Automation for browser interactions
- Running and testing your projects
- Managing automations
- Studio Web API
Configuring activities
Activities can receive data as input and can generate output data that can be used as input in other activities. Key activity options or properties are visible by default in activity cards, and if an activity has additional properties, you can configure them by selecting Show additional properties.
The Properties panel allows you to control how activity properties appear. You can also use this panel to change the name of the project or the name of the workflow that is selected in the Project explorer.
- Canvas view - All the properties of the selected activity appear in the activity card.
- Panel view - All the properties of
the selected activity, including advanced properties, appear only in the Properties panel
and the activity card is collapsed.
- Use variable
- Text builder
- Create variable
- Open expression editor
Dedicated input controls, editors, and builders are available to help you configure activities depending on the data type, either directly from the activity in the project designer, or from an editor or builder.
Some activities define a scope or the conditions to be met for the execution of other activities added inside them. These are called container activities, and examples include:
- For Each activities - Define a collection of items and repeat the activities added inside them once for each of those items.
- If - Evaluates a condition and determines the flow of the automation by executing specific activities based on whether the condition is met.
- Use Browser - Attaches to a page in your browser and executes all the UI automation activities added inside it on that page.
The following sections describe how you can use some of the available editors and builders.
Write complex expressions to configure activity properties. The Expression Editor is available for most activity properties and features intelligent code completion for variables, arguments, methods, properties, classes, or keywords. You can write expressions on multiple lines and use Ctrl + Space to see the list of available options. You can also select Insert variable to open the variable selection window and select a variable, argument, or property.
Use Ctrl + F inside the editor to open the search and replace capabilities. The error icon indicates if there is an incompatibility between an expression and the activity property type (for example, using an expression of type String in a property of type Boolean).
You can test the value of valid expressions by selecting Test. Testing expressions that use complex values is currently not supported.
Create a complex filter with one or more conditions. Filters allow your automations to pinpoint the exact items that should be used. For example, most event triggers contain filters that help you determine the exact criteria an event must meet for the automation to start.
To build a filter:
- Select the item to filter on from the field on the left. For example, when filtering emails, you can select an email field such as From or Body.
- Select an operator from the dropdown in the middle to use for comparing the item. There are multiple operators you can choose from depending on the data type. For example, when filtering emails by sender, you can select the operator contains or does not contain for the From field.
- Select from the field on the right the value with which to compare the selected item.
All (AND)
if the filter applies
when all the conditions are met, or Any (OR)
if the filter applies when any
of the conditions is met.
Example of building a filter
You are designing an automation that is triggered by the File Created event in OneDrive or Google Drive and you only want the automation to run when files with the extensions are created: pdf, tif, jpg, png, jpeg.
- In the trigger activity, select Additional filters to open the Filter Builder.
- Add a condition for each file extension to include in the filter by selecting Extension from the first field, contains from the second field, and entering an extension in the third field.
- Select Any (OR) from the dropdown at the top of the window to indicate that the creation of files with any of the extensions should trigger the automation.
Define a true or false statement that an activity evaluates to determine how the automation should continue.
To build a condition:
- Select a first value to compare from the field on the left, for example a variable from your project.
- Select an operator from the dropdown in the
middle to use for comparing the first value. There are multiple
operators you can choose from depending on the data type.:
greater than
,greater than or equal
,less than
,less than or equal
,equals
,not equals
,is empty text
,is not empty text
,is true
,is false
,starts with
,does not start with
,ends with
,does not end with
,contains
,does not contain
,has value
,has no value
,list is empty
,list is not empty
. - Depending on the operator, you may also need to select from the field on the right a second value with which to compare the first value.
All
(AND)
if the statement is true when all the conditions are
met, or Any (OR)
if the statements is true when any of the
conditions are met.
Example of building a condition
You are designing an automation that moves every file that is created in a certain folder in your Google Drive or OneDrive to one of two folders based on the size of each file: files 1MB or over go to the Big files folder, while files under 1MB go to the Small files folder.
- Configure the File Created trigger.
- Add an If activity and click the Condition field to open the Condition Builder.
- In the Condition
Builder, add the condition "the file size is less than 1MB".
We will use the SizeInBytes property of the created
file, and 1MB = 1000000 Bytes.
- Click the first field, and select File Created > Show more > File > SizeInBytes.
- From the middle field, select less than.
- In the third field, enter
1000000
, and then click Save.
- We will then add
two Move File activities to move the created file as
follows:
- One activity in the Then branch of the If activity. This is the activity executed when the condition is met (the file size is under 1MB) so we will select Small files as the destination folder.
- The other activity in the Else branch of the If activity. This is the activity executed when the condition is not met (the file size is not under 1MB) so we will select Big files as the destination folder.
Create a collection of items of the same type.
To build a collection, select the item, and then select Add entry for each entry you want to add.
Example of building a collection
- In the Upload Files activity, select See more > Build a collection of files next to the File(s) field.
- Select Click to open the collection builder.
- Select Add, then click the first field and select the output of the first Download File activity. Repeat for the output of the second activity, and then click Save.
When using a variable in a field that accepts date and time values, snippets are also available, enabling you to quickly add common date and time variables:
- Today
- Yesterday
- Tomorrow
- Two Days Ago
- Start Of Last Workweek
- End Of Last Workweek
- Start Of Next Week
- Start Of Next Month
- Start Of This Week
- Start Of This Month
- Start Of Last Month
- Start Of This Year
- 3 Months Ago
- 6 Months Ago
- Now