Skip to main content

Create record in another base via button


  • New Participant
  • 4 replies

Hi, is there a way I can send a webhook to an automation in another base via a button which runs a script?

So like:

press button on record on base A > runs script > script sends webhook to base B > webhook triggers automation to create record

I can achieve what i want via a checkbox and syncing but i dont want them to have to uncheck and check the box to do it again

Any ideas?

4 replies

ScottWorld
Forum|alt.badge.img+20
  • Inspiring
  • 8694 replies
  • November 30, 2023

Sure, that is incredibly easy to do with Make’s custom webhooks & webhook responses for Airtable.

Just setup your automation in Make to create the new record, and then you can trigger the automation via a webhook.

Buttons can’t run scripts, but you can run a script with a drop-down menu. More details here: https://air.tableforums.com/t/sending-airtable-data-to-an-external-webhook-such-as-make-com/159

If you really want a button, that's fine too. The button in Airtable can simply open the webhook URL directly, and then you can set the webhook response to whatever you want. The webhook response can also just close the window via JavaScript.

I show how to do this via email links in this episode of the BuiltOnAir podcast, but it would be the exact same concept if you're doing it with a button within Airtable: https://youtu.be/58urboTLZck?list=PLqssva4liHRwHhQIpTXekG8WObEoyC2F1

There is a small learning curve with Make, which is why I created this basic Make navigation video to help: https://air.tableforums.com/t/make-com-basic-navigation-tips/277 

p.s. If you have a budget for your project and you’d like to hire an expert Airtable consultant to help you with any of this, please feel free to contact me through my website: Airtable consultant — ScottWorld


  • Author
  • New Participant
  • 4 replies
  • November 30, 2023
ScottWorld wrote:

Sure, that is incredibly easy to do with Make’s custom webhooks & webhook responses for Airtable.

Just setup your automation in Make to create the new record, and then you can trigger the automation via a webhook.

Buttons can’t run scripts, but you can run a script with a drop-down menu. More details here: https://air.tableforums.com/t/sending-airtable-data-to-an-external-webhook-such-as-make-com/159

If you really want a button, that's fine too. The button in Airtable can simply open the webhook URL directly, and then you can set the webhook response to whatever you want. The webhook response can also just close the window via JavaScript.

I show how to do this via email links in this episode of the BuiltOnAir podcast, but it would be the exact same concept if you're doing it with a button within Airtable: https://youtu.be/58urboTLZck?list=PLqssva4liHRwHhQIpTXekG8WObEoyC2F1

There is a small learning curve with Make, which is why I created this basic Make navigation video to help: https://air.tableforums.com/t/make-com-basic-navigation-tips/277 

p.s. If you have a budget for your project and you’d like to hire an expert Airtable consultant to help you with any of this, please feel free to contact me through my website: Airtable consultant — ScottWorld


Hi Scott, Thanks
I can't use third party apps as it's for a client unfortunately

I don't understand how buttons can't run scripts when that is one of the options? 

 


ScottWorld
Forum|alt.badge.img+20
  • Inspiring
  • 8694 replies
  • November 30, 2023

Oh sorry, you are correct. You can run a script from a button. I was thinking of the interface buttons, which can't trigger a script directly, but can trigger an automation which has a script in it. 

But either way, you can get a Javascript to work from a button, so yes, Javascripts can always be performed in some way via buttons. (Although I prefer to not have the extensions window open up in grid view, which is why I don't typically trigger scripts from buttons there.)

If you know Javascript, you can just create the new record directly from your script. Or you can send JSON data to the webhook in the other base.


  • Author
  • New Participant
  • 4 replies
  • November 30, 2023
ScottWorld wrote:

Oh sorry, you are correct. You can run a script from a button. I was thinking of the interface buttons, which can't trigger a script directly, but can trigger an automation which has a script in it. 

But either way, you can get a Javascript to work from a button, so yes, Javascripts can always be performed in some way via buttons. (Although I prefer to not have the extensions window open up in grid view, which is why I don't typically trigger scripts from buttons there.)

If you know Javascript, you can just create the new record directly from your script. Or you can send JSON data to the webhook in the other base.


Thanks, I don't know scripting unfortunately, so that's the part I need help with here 🙁


Reply