- Release notes
- Getting started
- For administrators
- 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
- Running and testing your projects
- Managing automations
- Web app projects - Preview
- Studio Web API
Creating an automation from an idea
An automation consists of a sequence of related, interconnected activities. An activity is the basic building block of an automation, representing a step or a task in a workflow that you can automate.
To create an automation:
- Break down the idea you want to automate into each of its individual steps, decide what should trigger the automation, and identify all the apps and services you use in it.
- Create a project in Studio Web. Make sure to check out the available templates, you may find one that fits your scenario and save time and effort by not starting from scratch.
- Identify the activities that enable you to automate each of the steps, add them to your project and configure them in the project designer.
- Test your project. It may not run successfully from the first try and you may need to make adjustments and run it a few times before you get it to work as you want it to.
- Publish your project to make it available as an automation. If it uses an event trigger or a time trigger, the automation will run automatically.
An idea can be as simple as "I want every canceled event to be automatically removed from my Outlook calendar".
- Automate the Outlook calendar, so we will use Microsoft Office 365 activities.
- Run the automation whenever a calendar event is updated, so the automation will be triggered by the Calendar Event Updated event.
- Remove an event only if it was canceled, so we will add a condition to only process the event if it has been canceled using an If activity. and then add a Delete Event activity to remove it from our calendar if the condition is met.
Build the automation
- Go to the Automations page in Studio Web and create a new project. For the trigger, select the Microsoft 365 event Calendar Event Updated. The trigger activity is added to the project.
- In the Calendar Event Updated activity, add or select a connection.
- Click Add activity
after the trigger and add an
If activity.
This activity enables you to define a condition, then add activities to execute when the condition is met inside the Then branch, and optionally activities to execute when the condition is not met in the Else branch. For our scenario, we need the condition the event is canceled and we will only use the Then branch to add an activity to delete the event when the condition is met.
-
In the If activity, click the Condition field to open the Condition builder:
- In the first field, we want to find the IsCancelled event property for the event that triggered the automation. We can search for the text cancel, or select See more > Use variable > Calendar Event Updated > Event > IsCancelled.
- In the second field,
select is true.
- Click Add activity
in the Then box and add
a Microsoft 365 Delete Event activity. We will configure it to
delete the event that triggered the automation.
- Add or select a connection.
- Event to delete - Click and select Calendar Event Updated > Event to indicate that you want to delete the event. Because this activity is added inside the Then branch, the event will be deleted only if it was canceled.
- Delete -
Select Single event only to only delete the occurrence, if
the event is recurring.
Test the automation
To test the automation, make sure a recently canceled event exists in your Outlook calendar. You can select Test trigger in the trigger activity to check whether you have at least one event that was recently updated.
Click Test at the top of the designer to test the automation, and check you calendar to see if the canceled event has been removed.
Publish the automation
If the automation works as expected, all you need to do in order for it to run is to publish it to your personal workspace. Click Publish at the top of the designer, enter a suggestive name and description, and click Publish.