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.

How to trigger node code from Airtable we hooks using the ngrok?

Topic Labels: Extensions
209 1
cancel
Showing results for 
Search instead for 
Did you mean: 

Has anybody tried this ?

1 Reply 1

Not sure how exactly you want to use Ngrok → I am guessing when something happens in Airtable → trigger webhook (which is provided by NGROK)?

If so what you can do is - set a trigger (eg. when record enters view) and use it to start a script:
image

The script I am using is extremely simple:

const inputData = input.config()

const {recordId} = inputData


const response = await fetch("https://myhookURL.make.com?recordId="+recordId)

console.log(await response.status)

My automation is using webhook from Make.com , so I need to pass there only record ID of the record and I use Airtable module there to pick up other relevant information from Airtable

If you want to pass more infromation to Ngrok webhook, you could chain it in the fetch above with &variable2=valuehere&variable3=valuehere.

I hope that helps?