Need development and API help? Ask your questions here!
Recently active
I am building out a road trip planner and would like to calculate the distance between two inputted addresses in: Driving Miles Driving Hours I plan to set up a Button Field connected to this script, so every time I add a new stop along the route, I can manually run the script to determine driving distance and time (recorded in 2 separate fields) between the new stop and the previous one. There are a number of examples using the Script Editor in Google Spreadsheets alongside the Google Maps API: *Using the Google Maps Distance Matrix API *Using Script Editor *Sample Thank you!!
Hi, When trying to call the Airtable API using python in either vs code or straight from my browser using google colab, I get stuck on the user auth challenge page. I use the request library in python to do a simple get request, see my code below. Am I missing something? I can’t write JS which is why I chose to use python instead, my goal is simply to download the table content to then upload it in another tool to have a proper BI dashboard. I also tried using Postman and got the same 403 result. import requests import pandas as pd AIRTABLE_BASE_ID = "appxxxxx..." AIRTABLE_TABLE_ID = "tblxxxxx..." AIRTABLE_VIEW_ID = "viwxxxxx..." AIRTABLE_API_KEY = "keyxxxxx..." endpoint = f"https://airtable.com/{AIRTABLE_BASE_ID}/{AIRTABLE_TABLE_ID}" headers = {"Authorization": "Bearer " + AIRTABLE_API_KEY} r = requests.get(endpoint, headers=headers) Response code: 403 text (partial): Our systems have detected unusual traffic from your computer network. Please help us with a quick security ch
I am connected the API of Airtable to Power BI but at the time of displaying the data it only shows me 100 records when the base has more than 1000 records.
I have a table with Rating field which can have value up to 7. With current API I can get value for each record, but I can’t get metadata for that field, to know possible max value. Is it possible at all?
Send Airtable email address to a newsletter platform so that it is added as a subscriber. Click Automations and add this script after “When record is created” step. The script calls a Webhook which adds the email. Optionally sends a welcome email, if configured. PS Most email platforms have a similar Webhook, just replace with the platform of your choice. let inputConfig = input.config(); var email = `${inputConfig.email}`; var name = `${inputConfig.name}`; var list = `${inputConfig.list}`; var apikey= 'insert-sensorpro-webhook-apikey'; var apicall = { "AddToList": [""], Contact: [ { "FirstName": "", "LastName": "", "PersonalEMail": "" } ], "UpdateByKey": "email", "SendWelcomeEmail": false, "SignupFormId":"00000000-0000-0000-0000-000000000000" }; apicall.Contact[0].Perso
Hello, Can I somehow export data to csv file using Scripting block? I need to generate a pretty complex csv file (with more than 100 columns) with a predefined column order, values by default and specific formatting. That is why I do not see feasible using standard “Download CSV” functionality.
I would like to know whether it is possible to get the value of a Record Function when posting a request. I get that you can use these record functions such as RECORD_ID() or LAST_MODIFIED_TIME() in a filter formula to perhaps do something like this: ‘RECORD_ID() = “recXXXXX”’. Is there a way to get the value of RECORD_ID() or LAST_MODIFIED_TIME() to be returned?. I would also like to avoid having to add a LastModifiedTime field to my records and do this purely through the API.
Hey there, I am exploring AirTable pro trial and I was wondering if there’s a way to obtain user info via API. It seems that you can only query tables using the API, am I right? Also - is the admin panel only available for enterprise users? I cannot find a way to explore admin capabilities using the free pro trial.
Hi there, I have a use case I want to test with airtable. I would like to update some .cjs files that are located on github using airtable data to update the values of certain variables. So for example, the .cjs file might have 5 variables in, and i want to send the value of these from airtable to github and update the file. the values will have been gathered from various stakeholder using airtable forms and views embebed into confluence docs. is this possible using the airatable API?
Hi everyone :wave: We are currently part of the OAuth Private beta program. We successfully set up an OAuth flow for getting the token to access the Meta API. We’re also able to create a new table and update table’s name although there is no documentation about this features here: Sign in - Airtable, so we’re wondering if this is fully supported and if it’s possible to update a table’s schema (i.e.: adding new fields and update fields type). Thanks in advance.
Guys, why don’t we have the method createViewAsync()? We can create tables now with base.createTableAsync(), but not views. It would be such handy because for each new volunteer we need a new personal view with predefined filters, and the creation of it would be very easy to put on the shoulders of Extension.
Hi all. I have a fairly quick problem. I’m a relative novice to JavaScript and coding, so forgive me if this is a silly question. I found some code that will duplicate a record and copy all fields, with the ability to exclude certain fields. I can fill in my table and exclusion fields, and it works as intended. The original thread is here: Script to duplicate a record with select fields only or create new item based on another Extensions We’re using Airtable as a PIM for clothing and we sometimes do modifications that creates a new style code. A lot of the information is the same (as it’s just a modification), but I don’t want to copy over any linked fields or certain notes on an item. I was wondering if it was possible to create a script that would let you select an item you want to modify and create a new item with select information from the base item. The links are in the same table FYI. I am looking to do exactly what was described in this post. T
I’m trying to create a certain number of new records in a table based on a number in another table. For example, if the # Field in Table A is 4, then I want to create 4 new records in Table B. Is this possible? Any idea how I’d do it with either Scripts or Automations?
From what I can tell, trying several different codes that are supposed to paginate Airtable data in Power BI, some people are getting them to work and some are still just getting 100 records. Has anyone who was just getting 100 records who has now gotten these codes to work describe what change made the code they were using work? Examples of these codes are found in these threads: JSON string only contains 100 rows when connected to Power BI Desktop API Hello! Little bit late to the party, but I got Power BI to fetch the paginated Airtable pages. What has not been implemented yet is a timout to avoid sending too many requests. Here’s the “Power Query” you’ll need: let Pagination = List.Skip(List.Generate( () => [Last_Key = "init", Counter=0], // Start Value each [Last_Key] <> null, // Condition under which the next execution will happen each [ Last_Key = try if [Counter]<1 then "" else [WebCall][Value][offset] otherwise null,// …
Hello, I see that there is an example script of deleting duplicates but I’m a little lost as to how to apply it to my table. Can someone help?
Hello, I am struggling to write the code to retreive the intersection cell of 2 dynamic entries: Lets say I have a table with: Milan Berlin Bruxelles Paris Milan Berlin Bruxelles Paris With the distances at intersection How can I retreive the distance for each user choosing one city in a row and one city in a column? Any help would be great!!
Hello! I feel like I’m so close to getting my script to run- I keep getting the following error with my below code- any ideas on this? Does it have to do with my last line as an await? let table1=base.getTable("August 1 2022 Issues- Onward"); let table2=base.getTable("Sprints-"); let junctionTable=base.getTable("August-1 Onward Sprint Junction"); let firstJunctionField=junctionTable.getField("August 1-Issues"); let secondJunctionField=junctionTable.getField("Sprints"); let joinType="left"; let tableLink=table1.getField("Sprints-"); console.log(); async function createJunction() { if (table1 === junctionTable) { output.text("First table can't be the same as the junction table."); return; } if (table2 === junctionTable) { output.text("Second table can't be the same as the junction table."); return; } if (firstJunctionField === secondJunctionField) { output.text("First junction field can't be the same as the second junction field.") } if (
Hi! I have a problem resizing the Button component in Airtable SDK: I need a tiny button, but even when I set size=‘small’, the button is still too big. I can set the size to a number (size={12}), and it works, but I get the following warning to the console: Does anyone have an idea how to fix it? Will the extension pass the revision on the marketplace with this kind of warning? Any help appreciated!
Hi, I have done my own scripting search app but how to prompt a preview with few fields showing and most importantly to be able to click on it to edit it when it finds it, like in the airtable search app ? Thanks
Hi, I wanted to run this by you to see if I am understanding my situation correctly. Any feedback is much appreciated. I created a browser extension that has a Google Sheets list of names of organizations and people and an Airtable base=>table with more information about each of those organizations and people. The extension checks on any webpage whether any of the names in the Google Sheet occur on that page. If so, the extension highlights those names on the webpage and when the user hovers over or clicks on the highlighted name a popup is generated that shows the information about that organization or person that is in the Airtable base=>table. The extension makes no changes to the Airtable, it only retrieves the data and presents it in a popup. No password/login is needed for the user of the extension. The extension uses the API of a read-only collaborator so the Airtable data are public and read-only. The Airtable is updated with new records and additions to existing records
Hi! I am implementing a webapp using the new framework from Shopify called Hydrogen. Connecting Airtable from my dev environment has been smooth. But, when I deployed it in the platform (Oxygen), I wasn’t able to fetch some data from the airtable and it gives me an error: TypeError: c.default is not a constructor . I would really appreciate if someone can enlighten me about the issue. I have been debugging this for a week. Thank you!
Hello! I am trying to upload a json string to a long text field in a table. In this example, I want to populate the metaData column with: {"json":"data"} Here are various strings I have tried passing to curl via both the command line (-d ) and via STDIN: {"records":[{"id": "reciTUyexGJBrfe3L","fields": {"metadata":"{"json":"data"}"}}]} {"records":[{"id": "reciTUyexGJBrfe3L","fields": {"metadata":"{""json"":""data""}"}}]} {"records":[{"id": "reciTUyexGJBrfe3L","fields": {"metadata":"{\\"json\\":\\"data\\"}"}}]} All of these respond with: { "error":{"type":"INVALID_REQUEST_BODY","message":"Could not parse request body"}} I tried searching these forums, and all of the issues with escape characters appear to be targeted to Formulas, and use the ", which is not working for me.
Hey All! Nice to find you! I am happy I’ve discovered Airtable as it seems to be quite a nice data management platform for my use cases. We are a team of two guys: one that manages data and me, the one who will consume this data via RESTful API in a web application. I’ve created four tables in base and linked them appropriately. All good for now. What I want when accessing the API is to have the links fully expanded (with all the data) and not just the ID pointing to a reference ID. Would that be possible? So, basically instead of (see Rewards key): "records": [ { "id": "rec2aPmtsQyMWL0gL", "createdTime": "2022-10-10T10:23:38.000Z", "fields": { "Type": "type", "ID": 2, "Luck": 1, "Order": 2, "Rewards": [ "reca2ZiYRTk0rqv9x", "recg2oisqku0f9kol" ], [...] I will have an expanded Rewards data: "records": [ { "id": "rec2aPmtsQyMWL0gL", "createdTime": "2022-10-10T10:23:38.000Z", "fields": { "Type": "type", "ID":
Hello I’m trying to query one of my tables and only return a list of records based on a list of record IDs. How would I write the filterByFomula query? I tried to join a series of queries like filterByFormula=(AND((_id%3D'{{record_id_1}}'),(_id%3D'{{record_id_2}}'))) However this didn’t work.
Hello, I am quite new to AirTable but have some JavaScript experience. I am able to script for changes to the data types I need (Date, numbers, single select, short text etc) but this last one has thrown me. In my test table (ConorTest) there are 3 fields Status - Single select Employee Currently Issued the Equipment Employee Previously Issued the Equipment With fields 2 and 3, the value in these fields is linked to a different employee table Field 2 - with “Allow linking to multiple records” NOT selected Field 3 - with “Allow linking to multiple records” selected When the status field is changed, I want to populate the second field with the value for the first (without overwriting what is there) Has anybody done anything similar? Thank you Conor
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.