Need development and API help? Ask your questions here!
Recently active
I just cloned the to-do list example to get familiar with blocks and it starts with a can not read primaryField of null when compiled. It’s a small fix with the code i found, this is just if anyone else finds it also for the airtable team to update their sample code. Since there is no table selected in the beginning of the list table is null therefore need to add in a check for table present before calling table.primaryField. const records = useRecords(doneField ? view : null, {fields: [table ? table.primaryField : null, doneField]}); {fields: [table ? table.primaryField : null, doneField]}); update this object! Thank you!
Good morning, Developers, @Katherine_Duh, @Airtable_Admin I found pory.io on this message thread. As I’m struggling to study and practice Script-Block and Custom-Block simultaneously while I’m supposed building an excellent airtable frontend, I don’t have an airtable frontend at the moment. In its current state, pory.io looks very attractive for a temporary airtable frontend for me before maybe one day I will find time to do much more with the same REACT needed for the Custom Block… But after a registration at 0$ to try it, I stopped: I can’t figure out who is pory.io at all. Do you know these Developers? I’m really not enthusiastic about giving my airtable API-Key to a site I can’t find the Owner, the office address, the phone, the company registration number… What does the CSO think about it ? Best, oLπ
i can see and press the copy button for the examples where is the paste button and where do you paste what you have copied???
I built a working code to retrieve data from fake Airtable database with axios. You can see the code below perfectly working. No problem to retrieve data when is on the main table. Yet as you can assume some fields are connected to other tables (named in Airtable: parent child data or fields). Is the case in my table when you have the field “ORGANIZZAZIONE” (Organization) that is connected to another table having the organization datails as for example: NOME (Name) and TIPOLOGIA (Activity). As you can see in the code when I try to access to this data (ORGANIZZAZIONE) I have bad results. Probably I have to build an “axios.all” request but I can’t find the right way. The idea to append the data with another AIRTABLE’S API call to a child table it is OK (in code is in comment to JS file) …but it is not working. So can you help me? Here the codepen code working example: https://codepen.io/mauro99/pen/XWmQzjv
Is there a way at present to debug a custom block on my local while building it? It would be great if I can such debug error like these with better and more helpful build time error messages.
Hi all, Every week I manually copy and past sum total values from various tables and views in my base, to a Google Sheet. I do this to basically create a weekly snapshot of the totals in our Airtable sales forcecast. For example, 1st of May the total sales was £100,000, then on 7th May the total sales was £110,000. I can then track a £10 increase week on week. I’m essentially tacking the weekly value of a total of all records in a view, but to do this I have to manually copy and paste the values into a Google Sheet every Tuesday morning. It’s tedious as in practice I actually have to do this for around 30 fields every week. Would it be possible to instead of copying/pasting into a Google Sheet, to have a script populate a separate table in my base with the snapshots? For example the new snapshot table could look like this: Snapshot Date || April Sales £ || May Sales £ || June Sales £ || 1st May 2020 || £100,000 || £100,000 || £100,000 7th May 2020 || £110,000 || £100,000 || £100,000 So
Hello. I am really new to the Airtable API and for some reason connecting the API this way did not work- at = airtable.Airtable('Base_Key', 'Airtable_Key') But I got it working this way - get_url = ‘https://api.airtable.com/v0/BASE_ID/TABLE_NAME’ get_headers = { ‘Authorization’: ‘Bearer API_KEY’ } Response = requests.get(get_url, headers=get_headers) Response_Table = Response.json() However, this fetches only the first 100 records and am reading about offset and pagination but I am unable to figure how to incorporate it into this code. Thank you for the time!
Newbie trying to get my feet wet using a custom form to create new records. I am following the samples provided with the API documentation but the script completes before Airtable is able to finish it’s create function. I didn’t realize that was the problem until I threw in an alert() command to help me debug. That’s when the record would appear in my table. Looking forward to smacking my forehead when someone shows me some simple thing I am overlooking to stay in the script until Airtable is ready. Mahalo. (Hawaiian thank you ) <script src="https://code.jquery.com/jquery-1.12.2.min.js"></script> <script src="js/airtable.browser.js"></script> <script> $(document).ready(function(){ var Airtable = require('airtable'); var base = new Airtable({apiKey: 'keyXXXXXXXXXXXXXXX'}).base('appt4hr3kqdqXXXXX'); $('button#submit-bin').click(function() { base('Parchment').create( { "Tag": "3333", "bin#": 1 },
I saw there are 2 another topics involving metadata, but I want to emphasize how much important this is to developers to improve their applications and reduce request overhead in Airtable API, that would benefit both the company and their clients (which in this case, are developers). There is someone in the staff that can give us some information about this, if it’s even being developed?
I have a table called “2020Locations”, and its name seems to be causing a problem in the scripting block. I’m using: locationsTable = base.getTable(“2020Table”); But auto-complete doesn’t recognise locationsTable as a table. If I rename the table, or use the underlying tableID, then all is well. Is this a bug or a known issue? I couldn’t find it documented anywhere. Is there a better workaround than using the tableID instead?
Hey everybody, If I have to use somet sensitive information in my code, like an API key, what’s the best way to do that? I could put it right into the code, but my block to be open source (for the hackathon), so…any advice? Cheers, Alec
Hi there! I’m trying to set up an GET function to pull data from Airtable into Dexter (chatbot) based on a user inputting their e-mail address. I’m not getting an error message, but the response is coming back as empty. Any idea what’s going wrong here? is the user e-mail variable. $ GET https://api.airtable.com/v0//Sheet&20Name/ {“headers”: {“Authorization”: "Bearer "},“body”: {“records”: {“filterByFormula”: “({Email Address} = ‘’)”}}} ${{records.fields.First%Name}} //The field value I am trying to pull from Airtable. Thanks!
I am currently trying to pass in an option for the airtable API which is going through Dexter. The following POST method works: $ POST https://api.airtable.com/v0/<bot airtable_base>/Profile/ {"headers": {"Authorization": "Bearer <bot airtable_api_key>", "Content-Type": "application/json"},"body": {"fields": {"FormalName": "<get name>","Address": "<get address>"}}} but I can’t seem to get this GET command to work $ GET https://api.airtable.com/v0/<bot airtable_base>/Profile/ {"headers": {"Authorization": "Bearer <bot airtable_api_key>", "Content-Type": "application/json"},"body": {"filterByFormula": {(FIND("FormalName","My Name"))}} Anyone get this to work?
Hi there, On the DevPost Contest summary, it mentioned “Need Inspiration? We highly recommend taking an idea from our list of use cases.” Is that “highly recommend” just in reference to getting inspiration, or were these use-cases identified as high-value asks that the team is keen to see implemented? Put another way, does implementing or not implementing the use cases outlined have an impact on the “User Impact” or other overall score criteria? Thanks for the clarification!
Hello! We have a little new block in beta that you might find useful if you store JSON in your tables. You can select a cell in grid view for a single line or long text field, then start typing in the block to add or change the JSON contents. The JSON editor block makes it easier to work with JSON by formatting the contents of the field with colored syntax, indenting, and warnings for malformed JSON. Click here to join the beta. Once you click that link, the “JSON editor” block will be available in the list of blocks when you go to install a block. P.S. we’ve open sourced this block here so you can remix it if you’re in the custom blocks beta: GitHub - Airtable/apps-json-editor
I am trying to figure out how to use Airtable as a database for a web app that I’m making. When I look at all of the tutorials, they seem to be for using Airtable as a GUI. I am actually interested in knowing how to do advanced queries/posts etc via API requests (using regular curl requests and/or the JavaScript methods). Can anyone tell me where I can learn this? I see people doing it, but I can’t figure out where the docs or tutorials are. The auto-generated API docs seem to just give you the procedure for basic queries and nothing else. Does anyone have any tips? Thanks.
Hi! :wave: I am using the PUT version of the Airtable Update records API. I have four columns/fields, Name , Contact , Attachment Image & Active. Now I call the API to update just the Attachment Image column, with the below API body : It updates the Attachment Image field’s value successfully, but clears all other fields. The record snapshots (before and after) look like - Before - After - So, how can I make the API update that cell ONLY, and touch nothing else? I hope you understand my query - Any help is appreciated! :slightly_smiling_face: Thanks!
Hey everybody! I’m starting development on a block for the hackathon – super exciting! I’m going to need to store a unique token for each user, because I’m going to need to do some OAuth in my block. I’m wondering the best approach to do this? I could store it in GlobalConfig, each token is accessible through the ID of the user, but I’m not sure about that. Any advice would be much appreciated! I noticed this is done the demo for blocks, by storing the Twilio ID and Secret, so I’m curious how it’s done there
Hi! First post here. Very beginning JS user but excited to learn! I’m working on a pretty basic script in a base I’m working on. I’ve been learning JS but I’m not quite at the point where the examples are making sense to me. I have 2 Tables in my Base, “Projects” and “Judges”. In Projects, I will assign 3 judges from the Judges table in one Linked Record column. Then, in a third Table, “Scores”, I want to use the Script block to have three unique rows generated - one for each judge with the same project. So for example: Project “Coral Reef Building” gets assigned “Mark”, “Sam”, and “Amy” as judges. In “Scoring”, three rows are generated: “Coral Reef Building, evaluated by Mark” “Coral Reef Building, evaluated by Sam” “Coral Reef Building, evaluated by Amy” I was thinking that .forEach method might be useful here, but I’m getting confused with the exact terminology around tables and queries and records. Thanks all for your help & advice! Even pointing me in the right direction of so
I like to integrate the airtable to my website and show it as announcement. I created api with POST. example https://sample.com/api/announcement I tried with zapier but i like to integrate within Airtable. please help me, Thanks in advance for your response.
Today I’ve checked things about Developer Blocks SDK. Then I’ve apply to access SDK. But I don’t know how long it takes to approve my request or if I’m not eligible then can I request again?
I want my custom block to include a calendar with a similar look to Calendar views. Do custom blocks have access to whatever Calendar views use for calendars, perhaps a react package, or would I need to import another react package?
Hi there, I want to keep my block UI consistent with Airtable’s branding where possible. I noticed ColorUtils.getHexForColor here and that seems like a reasonable, but slightly cumbersome solution. Is this the preferred way to use Airtable’s colors in our blocks, or is there a more direct way to say, set the background color to a standard Airtable color? Thanks! P.S it was a bit hard to find that method in the docs as you need to click on the “ColorUtils” tab in the Colors section first. I had expected a more direct way or a pointer on how to get the hex values directly on the colors main page :slightly_smiling_face:
Enable creating an application that has it’s own api key Allow it to perform actions on bases / tables granted access to Example: an app to allow users to do things for a company… 20 users login to the app using 1 user’s key… Now they all quickly hit the 5 requests per 1 second rule Anddddd if the app performs crud, they are acting as the api key user.
No expert here / But I have been using the Send Grid block fro over a year. - I was able to figure out how to generate new API key- paste it-- Now it is not working. I have pasted in a number of new keys this morning. Is there some new verification that is needed.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.