[The Quick Base Knowledge Base is your library of frequently-asked questions that help you better customize your apps to solve your business problems.]
Many customers come to us wanting to automatically create standard records, such as standard tasks for a project, so they can save time and reduce error. Copy Master and Details Records has been widely used to accomplish this. However, Quick Base Automations are more powerful and address many of the limitations of Copy Master and Details Records. Read on to learn how to upgrade your app by swapping out Copy Master and Details Records buttons with automations.
While Copy Master and Details Records buttons have served an important purpose, they suffer from a few serious issues. To use these buttons, you need to manually click the Copy Master and Details Records button, which you might forget to do if you're in a rush or if someone's talking to you while you're entering data. You also need to train your end users so they understand that they need to click the button to drive their workflow.
Finally, as those of you who've seen the dreaded "looping relationship" error know, those Copy Master and Details Records buttons aren't even available in apps with certain configurations.
How automations can help
An automation is a set of rules you define to automatically perform actions in Quick Base, with no need for code. You can use an automation to add a set of related tasks when a new project is created. The automation will then listen for a project record to be created, just like an email notification would. Then, the automation will add the related tasks without the person creating the project needing to click a button!
Using an automation, you log your standard tasks within the automation rather than creating them as template records. This means that users aren't able to accidentally overwrite or delete those records, you don't have to filter the template records out of all your reports, and if you have more than one set of template records users entering data in your app don't have to look for the right template and click the Copy Master and Details Records button.
To create an automation, open your app's home page and click "Settings". Under Advanced Features, you'll see the new Automations option. Click "+ New".
Next, we’ll walk through creating an automation for an example process. Feel free to follow along.
Example: Internet Service Installation
Imagine an internet service provider managing installation projects. What steps need to be followed depend on whether the install is for a residential or a business customer.
Installing home internet service includes 4 steps:
- Anderson, my dispatcher, schedules the installation with the customer.
- Next, Dillon, my supply clerk, stocks the truck with the parts we need for the install.
- Then, my technician Beth drives to the customer's house and sets up their internet service.
- Finally, my customer service manager Narcisa follows up with the customer to make sure they have everything they need.
Setting up the trigger
An automation includes a trigger and up to 50 actions. Here's how to set up the trigger:
- In the "Choose a trigger" dialogue, click When data changes.
- In the top-left corner, name your automation. Using a single phrase works well here.
- Choose what types of data changes the automation should listen for. Use the default, so the automation will only trigger when a new record is added.
- Choose which table the automation should listen for data changes in. Select Projects.
- I need to make sure the automation only runs when appropriate by filling out additional criteria. Since the automation will create a set of tasks for a residential installation, we want to make sure it only runs if the new project is indeed a residential installation. As in email notifications, click Additional Criteria to set that.
- Leave the first setting to "when any field changes", then set up criteria to check that the Customer Type on the project is "Residential", as seen in the image below.
Creating the first action
Next I'll create an action to add the first task record.
- Click Add an action.
- In the next window, choose Add a record, then click Next.
- In the next step, click Tasks, then click Finish.
- Click Select fields to choose which fields on the task record to fill in.
- In the drop-down that opens, select the Task Name and Assigned To fields, then click Add. The two fields then appear on the page.
- In the Task Name field, I'll enter "Schedule installation for " (with a space after the word "for").
- Also in the Task Name field, click the menu icon to insert the name of the customer who the project is for. Once I'm done with this step, my Task Name looks like this:
- In the Assigned To field, enter "firstname.lastname@example.org" (Anderson's email address). Since Assigned To is a User field, you need to use an email address for a QB user to set the field's value.
TIP: You can also use an automation to add/edit a record which is not related to the triggering record. To do so, choose OR add a record to a different table and enter your criteria in the Add Record action the same way you would enter filter criteria for a report.
- Move your mouse to the action on the left, and click the icon below to copy the action.
- Change the Task Name field to "Stock truck with needed parts".
- Change the Assigned To field to "email@example.com". (Dillon's email address)
- Copy the second action two more times, and edit those tasks so the automation so it creates a set of four related tasks:
TIP: In the bottom-right corner, write a comment describing what your automation does. Especially for more powerful automations which include multiple types of actions, this helps document your business process and helps you easily read the automation if you need to make changes to it later. Feel free to use a few sentences here. For example: "When a project for a residential installation is added, add related task records and assign them to the appropriate team members."
- Click Save & close to finish building the automation.
This is just a small taste of what's possible using automations. For example, you can also use them to update existing records, as well as deleting records. Automations can even be run on a schedule!
To learn more, check out these great resources: