‚Üź All blog posts

How (and why) to use output.set in Airtable Automations

Output.set is a must-know function for anyone setting up workflows in Airtable Automations. It allows us to reuse variables in automation steps that we get from JSON responses.

October 15, 2022

Why use Airtable Automations?

Airtable Automations is a great alternative to tools like Zapier or make.com. The only downside at the moment is that Airtable Automations doesn't have a lot of native integrations with tools that you might want to integrate with.

That is where using Airtable scripts inside of automation comes into play.

‚Äć

How it works and use cases

Adding your script between your trigger and native Airtable action steps

Setting up your workflows inside of Airtable Automations will be familiar to anyone who has set up a workflow before. You simply define your trigger like "When a record is created", "When a record matches a condition" or whatever else is more suitable to your use case.

From there you can add as many action steps as as you want including our scripting step. You can also add native integrations that available in Airtable like "Posting a tweet" or "Sending an email".

How to store API responses for future steps

If you do end up making an API call with the scripting step, you might want to use reuse variables that you can from an API response. For example, if you create a Webflow item, you might want to store the Webflow ID and Slug in your Airtable base. In order to do that you will need to use the output.set to define each variable you want to store.

‚Äć

To try this out yourself, simply copy and paste the code snippet below after you run your API call in Webflow.

Use the code


output.set('Your Variable', yourResponse.value)
Copy

Dive Deeper with Webflow CMS scripting series

Learn how to create, update and delete Webflow CMS items individually or in bulk using Airtable Scripts.

Learn more ‚Üí
Subscribe to the newsletter!

Get notified when I publish my next video or blog

ūüėė Got it!
Oops! Something went wrong while submitting the form.
How to use Whalesync for two-way syncing between Airtable and Webflow

How to use Whalesync for two-way syncing between Airtable and Webflow

I checked out Whalesync, a tool for two-way syncing between tools like Airtable, Webflow, Bubble, Noton and more, to see how useful two-syncing is.

How to build a dynamic testimonial section with the Webflow CMS

How to build a dynamic testimonial section with the Webflow CMS

Learn how to create a dynamic section in the Webflow CMS for product reviews, testimonials, and more. Watch the step-by-step process of designing, building, and automating a brand-new section on my profile page.

How to allow clients to manage your no-code builds with Airtable Interfaces

How to allow clients to manage your no-code builds with Airtable Interfaces

I help a lot of people set up bases for their marketplaces or sometimes even for clients, and a question that keeps coming up is how can you allow your clients to safely manage their Airtable base without overwhelming them with the complex setup?

How to instantly trigger Airtable workflows in make.com using webhooks

How to instantly trigger Airtable workflows in make.com using webhooks

If you want to run a make.com workflow that triggers when something happens in Airtable, you typically have to wait for 5 - 15 minutes depending on how you set your schedule - unless you use a webhook fired from inside Airtable Automations.

How to run a script for an array of records in Airtable Scripts

How to run a script for an array of records in Airtable Scripts

Learn how to run a script for an array of records in Airtable records. This method can be used to bulk update records.

Building a customer dashboard for my marketplace with Glide

Building a customer dashboard for my marketplace with Glide

In this video, I show what I managed to build in my first week of using Glide. The goal at the start of the week was to figure out what exactly I could do with Glide. A week later, I had a fully functioning prototype for a customer dashboard for my freelancer marketplace Unicorn Factory