Nov 16, 2020 12:19 PM
I will like to add a button to each record that once press will initiate a Curl request based on Records defined in that specific row.
Nov 16, 2020 01:27 PM
Welcome to the Airtable community!
Do you have a specific question about using scripting to do this? Do you have a code sample that you want help with?
Nov 17, 2020 04:41 AM
Thank you. Are we able to add third party library to the script? I would like to integrate Twilio calling using a scripting button and want to know if this is even possible.
Nov 22, 2020 04:53 AM
I’m fairly certain you can acheive what you need with the Data Fetcher app.
You can run curl/ API requests for every record in a view, and use record data in those requests. So you could use a filter to move the requests into a view, then use the app to run an API request.
You can import a cURL command to get quickly started.
Please let me know if you have any questions.
Nov 22, 2020 05:45 AM
Scripts in Airtable are one file long and do not provide native support for libraries. However, there are creative ways of accessing libraries, such as including an entire minified library in the script file itself (if it is small enough) or retrieving the library file from another source such as a cdn and running eval.
On the other hand, often it is possible to use integrate with an API directly without using a library if there is clear enough documentation.