Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

Run a script that sets single-select to pre-determined value

Topic Labels: Automations
Solved
Jump to Solution
159 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I have a button that I would like to trigger two tasks:

1 - trigger a webhook that passed the data to zapier (done)
2 - automatically update the value of a single select field to ‘true’

While the webhook script runs when I click the button, it seems that the other script I am using (to update the single-select) wants to take in a user input every time and it does not run automatically.

Is there a simple way to set the value of a single-select field automatically to true without me having to specific the field and the value every time with a script?

1 Solution

Accepted Solutions

Since you didn’t provide the script, here’s the most basic way to update a single select field:

await table.updateRecordAsync(recordID, {
  "Single Select Field": {name: "true"}
})

See Solution in Thread

2 Replies 2

Since you didn’t provide the script, here’s the most basic way to update a single select field:

await table.updateRecordAsync(recordID, {
  "Single Select Field": {name: "true"}
})