Need development and API help? Ask your questions here!
Recently active
I’m using Python API Wrapper. When I use get() method to retrieve a record that contains a ‘Link to Another Field’ Column, the method returns the linked record ID. I would like to get the linked record name instead. My next step will be to do a 2nd operation to look up each record (by id) and get the name. But I wonder if there is an easier way that I’m overlooking. If not, any recommendations about an efficient way to do this with Python / Pandas would be appreciated.
Using the API to upload PDF files. Every couple days a batch of files uploaded around same time appear as generic document icon and when you attempt to download you get “Found. Redirecting to” message but nothing. If I look at the record and view the attachment array, I see values for Filename (taken from the URL), Id (a valid Airtable Id), and Url (the public URL to the file - link works fine). Size, Thumbnails and Type are all null. On a another file that works, the Size, Thumbnails and Type values are filled out and the Url is changed from what I submitted to a “dl.airtablee.com” There are no error returned from the API call. Our web server that hosts the files are IIS on an AWS instance. In reviewing the web server logs, I don’t see any request to the server for the “bad” files. For the “good” files I see a request from “Filestack” at the time the API record was created. I have been trying to “resubmit” the empty file by taking the array of attachments in the record
I have a script, that produces a CSV of a table. How can I write this CSV to a file in the file system? I need a functionality to do this in a script because this script will be triggered by a Webhook. And the built in UI CVS export cannot be called in scripts. Has somebody an expample of writing files out of a script?
Hi there - When I copy and paste the sample code for my input configuration, I am receiving this error and the code won’t run. ‘iv_UpdateStatus’ does not exist on type ‘{}’.(2339) Any suggestions on what could be wrong? Or how to fix it?
Hi friends. I am a new developer and have started using Airtable as a database for personal project with React, and I wanted to ask what are your thoughts on fetching data from Airtable’s API in my client-side application. Do you think it’s better to fetch the data using Axios or use the base().select() pattern from Airtable library? For React specific: I don’t understand how to return the data with the Airtable method const useCharacters = () => { const base = new Airtable({ apiKey }).base(baseId); // returns undefined return base("Characters") .select({ view: "Main View", }) .eachPage( function page(records, fetchNextPage) { records.forEach(function (record) { return record.fields }); fetchNextPage(); }, function done(err) { if (err) { console.error(err); return; } } ); };
Hi there - Is it possible to call comments on a record using the scripting? Or is it possible to see the date modified of the last comment on a record?
Hi all, New to Airtable scripting. Wanted to see if what I’m trying to accomplish is possible before digging in. Is it possible to duplicate a “master table” and rename it? Or create a new table and copy the values from another table? Thanks in advance!
Hi, everyone! I’m sure this has a simple answer, but as a non-developer - I could use some help! I currently have a few webhooks for Zapier and Integromat programmed into button fields in my base. Their function is working just fine; however, each time the webhook is sent, I get a success message in a new window. I appreciate the confirmation, but when I am processing hundreds of records in one sitting, this becomes extremely annoying. Is there any way to get my webhook to run without the success message? Or any recommendations for alternate solutions? I know it’s possible to have a button or an automation run a script, but I don’t know how to create a script to send a webhook. Thanks in advance! :slightly_smiling_face:
Hi - We would like to send a formatted email once a script is executed. How do we set-up the automation to have text output, with formatting, into an email that is sent? Here is the flow: Time trigger Run Script Send Email I know we can use the script to update a record and have another trigger to email, but it doesn’t format and seems there is a more direct way. Any help is appreciated.
H - How can we check if a checkbox is marked as marked or not?
I am trying to develop a script with a mutli-select option. Is there a code for each of these so if I choose to change the actual name, it won’t be a problem?
Hi there - Does anyone know if it’s possible to get a link to a record and/or view using scripting?
Hi there - Is it possible to use scripting to find the last modified date of a cell?
Hi all, I’m getting crypto prices from the Coinmarketcap API and the prices have 12 decimal places E.g. $0.000000007269 However, when I fetch the prices into Airtable, the field [Prices] has precision set to 1.0000000 - 7 places and missing the remaining 5 places. Is there a way to resolve this? Thanks in advance, Paul
This seems like something super simple for a script but I’m not code savvy, so I’m stumped. I’m far from an Airtable novice, just not into Scripts. I’m trying to Create a run of show base for live events where the Start of one record is populated by the end time of the record that precedes it in the show. Each record has a “Item #” as it key field, so I tried linking records the old fashion way in the table manually, but this is tedious AND it won’t let me do any calculations with the data I pull because it’s circular. I have a few important fields: Item# - unique key, all records sort by this. Start time - Ideally this is an IF formula, so that if it’s the first line in the show, it doesn’t try to find the previous item. Duration - Manual entry End time - Formula= Start Time + Duration Previous Item - Formula= Item# - 1 Previous End - thing I’m trying to get My logic is this: Script that find record with Item# that matches Previous Item, then takes the Previous Item’s End time and
Hello, I’m originally a programmer but I’m completely new to Airtable and the script syntax. Basically, I have a PHP file somewhere in my server that makes a GET request to Twitch and gets the follower count of any channel. Now, I have in Airtable a list of Twitch users, with their username. What I want do to is to pass the username to my URL so that the PHP script in my server does the rest, and, posts a simple ECHO with the number of followers. Then I’ll just grab the number to update my field. A bit more graphically: Grab the ‘username’ field from my table ‘table’. Append it to my external URL, i.e. “https://mycoolphpscript.com?user=username” Launch the query, fetch the output, which is just a PHP echo with just a number as output, i.e. “458” (followers) - actually if you paste the URL in your browser you’d also get “458” since there’s just a PHP echo in the background. Update my ‘followers’ field with the result. I know how to do 1, 2 and 4, but I have no idea how to do number 3.
Hello everyone. Is it posible to filter a certain value from a field directly on the URL ? Can this be done with formulas ? Thanks in advance!
Hello, I need help fetching data. I’m new to airtable and also don’t have much experience in scripting but I do have some code experience. I’m trying to fetch Zipcodes from https://www.zipcodeapi.com/API I can use one of the two: GET, Zip codes by radius. POST, multi zip codes by radius. I did authorize the airtable domain https://www.zipcodeapi.com/ClientKeySetup to get js-key. as zipcodeapi suggested. This is the code I have that use the GET method (yes I know): // @ts-nocheck let response = await fetch(‘https://www.zipcodeapi.com/rest/js-APIKEY/radius.json/59718/30/mile’) console.log(await radius.json()); I get: ### ERROR ReferenceError: radius is not defined at main on line 3 I did tried to add method, headers… all kind of thigs but with no luck. I know I’m doing it wrong. Any help please? Thank you very much Ehud
Hello, I´m using this code to get my csv file, parse and import to table: let csvFile = await input.fileAsync( ‘Pick a CSV file to upload’, {allowedFileTypes: [’.csv’], hasHeaderRow: true} ); What I am not figuring it out is how to make that is always the same file, without me needing to choose one - without input. If anyone knows how to, I would really appreciate.
I have a bunch of dates I need to convert to strings and put into an object. sometimes however my date field is empty and it comes up as null As far as I understand checking if something is truthy I can just check it with if(value) and it only runs if value is truthy - not null, undefined… However even despite el.getCellValue(wipDate) comes up as null, my code still runs the blog inside the if statement. Does anyone know what I’m doing wrong? let month = ''; let year = null; let dateObj = {'year':year, 'month':months[month]}; console.log(el.getCellValue(wipDate)) if(el.getCellValue(wipDate)){ //console.log('inside') month = months[new Date(el.getCellValue(wipDate)).getMonth()] year = new Date(el.getCellValue(wipDate)).getFullYear() }
Context I’ve made an Airtable script to get some info automatically calling an API after populating a single field. Everything is cool besides the fact that one of the fields it’s a linked field to another table. In this case, I would first have to create a new record in the other table and then link it (via the record id) to the table in the first “main” table. Problem I’d like to understand if there’s a way to get back the ID of a newly created record to link the record in the main one. I could read the values in the whole table after creation, filter them and get the ID of the created field. Tho it seems very inefficient since I’d have to read the whole thing just for a single value. I’ve read through the docs but I couldn’t find anything about this use case. Is there a more elegant way that I’m missing? Thanks
Hi Airtable community, I am stumped with a bit of an annoying task here. We have an attachment field in our Airtable base where we attach DOCX files. We want to return this field as a part of an API response from our custom API, and we want to do a full preview of the DOCX as an image, to be served to our website. I know the endpoint returns a thumbnail image, but this is pretty small and blurry. I was wondering if there was a way to fetch a larger thumbnail, or a full page preview, of the DOCX file from Airtable’s API. If anybody knows of how to figure this out, in any way possible, I would greatly appreciate it. Thank you! Jack Tilly
Hey, is it possible to create some Action Buttons to push webhooks with json data with the scripting block?
Hello, I would like to have some info that is not officially provided by Airtable. I am using airtable to manage a database, which I export to a CSV file. I then use this CSV file as a database for a REST API in this way I am not limited by the maximum 5 requests per seconds imposed by the Airtable API. Where I am wondering is about the files uploaded via Airtable, in my CSV I see that the files are uploaded at this address: https://dl.airtable.com/.attachmentThumbnails/xxxxxxxxxxx If I have a mobile app with 1,000,000 active users viewing the image uploader through Airtable, do I face any limitations or blockages?
I’m looping over some records and want to increment ‘i’ ONLY if both conditions below are met: let i = 0; for (let record of taskRecords.records) { if(id.includes(record.getCellValue('ID Lookup')) && record.getCellValue('Stage').includes(stage)) { i++; } } console.log(i); My problem is the second condition. The cell value of the field ‘Stage’ is “This is just some dummy text | this is a string” and it’s searching for “this is a string” (this is called ‘stage’ and is a string from a previous step in an automation). i remains 0 in this case. Can anyone explain why includes doesn’t work on the second condition? Thanks!
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.