Need development and API help? Ask your questions here!
Recently active
AND filterbyformula does not filter bring up all records instead. Anyone have any ideas? let step_count_records = await log.selectRecordsAsync({ filterByFormula: `AND(( {Email} ="` + email + `"), ({Action} = "` + status + `"), )`, });
One of the inputs to my script is a string which needs to be reformatted such that it will be an acceptable value for a multiselect field when creating a new record. There are three possibilities for the string: “option 1” “” many options: “option 1, option 2, etc” I know the format below is what I need to convert it to, but I can’t figure out how. await table.createRecordAsync({ “Multiple Select Field”: [{name: option1}, {name: option2}, etc] }) I’m omitting all the things I’ve tried which haven’t worked. I’m going to use the create records action instead of a script action until I can figure this out. Below is the skeleton of the script action I was using with some ??? where I was stuck. Any help would be greatly appreciated! In the meantime, I’m leveling up my Javascript skills. let config = input.config(); let recordID = config.recordID; let table = base.getTable("Table_Name"); let view = table.getView("View_Name"); let query = await view.selectRecordsAsync({ fields: ["Strin
Hi so i have a airtable table and it has date and time field. I wanted to use those value for time for calculation condition and date for comparison basically i want if else based on date and time values. How can i use that? i used JavaScript functions for that but still i cannot get my desired output. Please someone help me out here. IT IS VERY URGENT pls.
I have a problem in fetching the github api using this code and the error show is Response status 301 ‘Moved Permanently’ but redirect mode was set to ‘error’. I’m new on the airtable scripting environment and I don’t quite sure how to make this successful. let response = await remoteFetchAsync('https://github.com/google/google-api-javascript-client.git'); let x = await response.json(); console.log(x); Thank you.
I have a button/script that I want to be a toggle the value in a single select field. If the value is blank, I want to e button to mark it “Absent”; if the value is “Absent”, I want the button/script to make the cell blank. In Airtable Scripting, I see how to delete choices, but I don’t think I want to delete the choice, just the value. (I am trying to avoid having a second option of “Present”, as I know my users will assume they have to mark all clear cells as “Present”.) Here’s my script: // Select the recordId that houses the button let tableClassReg = base.getTable("Class Reg"); let record = await input.recordAsync('',tableClassReg).catch() //console.log(record.id, record.name); // read in a specific field let entry = record.getCellValue("D1 Atnd"); // toggle that field if (entry.name=="Absent") { await tableClassReg.updateRecordAsync(record, { 'D1 Atnd':{"name":""} //<-- here's the problem }); } else { await tableClassReg.updateRecordAsync(record, {
Is it possible to programmatically with Airtable scripting load a different base from the one in which the script is running? I’d like to automatically sync views from one base to another with the scripting block, but it’s looking like that might not be possible?
I configured an Airtable automation script to trigger when a record matches some conditions. I had expected to somehow get an “input” containing the said records, but it feels like there isn’t such thing. My goal is to perform processing for the said records only. I didn’t find anything in the API reference Airtable Scripting. Is it possible? If not, what’s the recommended way to about that? I’m thinking about iterating over all elements and check if some field is empty and if so then perform some processing for that record. Also, I read that only 15 records can be updated per second, how does this work? Is it handled by Airtable automatically or do I need to temporize the updates myself so that I don’t go over the limit?
Is there a way to lock the shared URL in form view? I would like to maintain a URL link so no collaborators can generate a new one accidentally. We use this URL as a QR code internally.
Getting this notice while developing an app. What does this mean?
You’ve probably all seen the following warning by now: I’m guessing the deprecated behavior might still work well into 2022, but if you want to future-proof your scripts right now and/or depend on the old behavior, here’s the cleanest, functional way of mimicking it I’ve found so far: const table = base.getTable(yourTableName), fields = table.fields.map( f => f.name), query = await table.selectRecordsAsync({fields}) This particular destructuring syntax obviously depends on your scope being clean. But in practice, I’d usually just write this: const table = base.getTable(yourTableName), query = await table.selectRecordsAsync({ fields:table.fields.map(f=>f.name) }) Either way, I figured I’ll share this and ask if anyone has figured out a quicker method.
When embedding Airtable’s view iframe into my page, the chrome console prints A cookie associated with a cross-site resource at https://airtable.com/ was set without the SameSite attribute. It has been blocked, as Chrome now only delivers cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032. I think this is expected due to the Chrome update in Feb: https://blog.chromium.org/2020/02/samesite-cookie-changes-in-february.html Any plan for Airtable to get the iframes updated?
I have a status column and when i change it to active or passive, i want to send silent webhook to selected URL including another cell’s value. I couldn’t find how to do that. Can you please help? Thank you
I’m using the “Gantt auto set dates” from the Marketplace. I’m trying to figure out how to update it to only act on a particular project. Right now, every time I run it, it will update every project whether I want it to or not.
Is it possible to add additional fields in existing table from a webapp that i create on top of Airtable?
Hi, Is there a script that finds all errors in a specific table (or even better in the entire base) and then returns those error fields? That would help greatly with troubleshooting larger bases, so I don’t have to scroll through hundreds of fields looking for the red error sign when making larger changes.
I tried to search for this topic and could not find any answers. I am trying to know if it’s possible to create a search page and when that record is available, I can manipulate the layout of the result? I am using the pro plan.
We are using Airtable to support City activation of volunteer resources in the event of a disaster or other community-wide emergency. We have fiber optic loops around the city to critical locations. If the public internet goes down, we would like to have our Airtable data stored in our local servers, which have their own redundancy, security, and back-ups. Is this possible to arrange with Airtable?
Hello! this is my first time using the scripting block and first time trying to use an API with code (I’ve used lots of no-code tools in the past; Zapier, Integromat etc.) I want to use a text field in my base to create a ‘tag’ in Toggl using the Toggl api; The Toggl API documentation looks good, and I think I understand most of it, but I don’t know how to actually start - what is the first think I need to write? All the toggl examples start with ‘curl’ e.g. curl -v -u 1971800d4d82861d8f2c1651fea4d212:api_token \ -H "Content-Type: application/json" \ -d '{"time_entry":{"description":"New time entry","created_with":"API example code","start":"2012-02-12T15:35:47+02:00","duration":1200,"wid":31366}}' \ -X POST https://api.track.toggl.com/api/v8/time_entries Is this what I would paste into the script editor? I assume I need the toggle api url somewhere ( api.track.toggl.com) so the script knows where to get/post the data but I don’t know where or how to add this url. Can someone plea
Hello, I have a script that I’d like to run as an automation when a record is updated but have been running into a problem when trying to update the record (specifically one field - “Conflict”) since it exceeds the 15 mutations per second limit… The records are screenings of films in various venues, across 10 days. The script is checking whether there is enough turnover time between the screenings at a single venue. If there is less than 55 mins, both records will get their Conflict field checked to notify the humans working on the scheduling. SlotIDs are ascending numbers unique to each scheduling slot and this is how I’ve been able to determine the time difference. The script does what we need it to do when run manually, inside apps. But turning it into an automation gives the error. I’ve narrowed down that it’s the for loop used for updating the records that’s causing it but don’t know how else to achieve the same result. I’ve also tried using a while loop for updating the records b
We have a requirement like below. e.g. Consider a table with column as Names. Names abc xyz abc pqr pqr We want two columns in another table as below. UniqueNames NamesCount abc 2 xyz 1 pqr 2 Is there any way to achieve this?
Hi All, This might be completely impossible but I’m trying to get rid of duplicate linked field values. Is there any way I could force it to do this via scripts? The dedupe app doesn’t quite do what I need it do and although this can be acheived via a rollup column, the values are now not linked. I know this isn’t a native feature so I’m trying to find a work around because I can’t generate neat pivot tables at the moment. Some advice would be much appreciated.
Hi I am trying to build an automation. When a record enters a view, I want to update another table for the linked record. For example: In Table A there is linked record to Table B. In Table A there is a field Field A. When a record enters a view in Table A, I would like to update Field B in Table B for the linked record with the data in Field A. I think I need to run a script to get the record id for the linked record because you can’t select a linked record as the Record ID in the Update Record function in an automation. I tried to just ‘Lookup’ the record ID of the linked record, but this does not seek to work either. I could use some help to get the record id of the linked record. Thoughts/assistance?
Dear airtable community, currently I’m using the “QR Code Maker” app in Airtable, which works great for me at this point. Now I want to take the next step and fully automate my process, by letting the app generate a qr code, without me manually having to confirm that procedure. As soon as a certain field is filled the qr code should be added to the chosen line. Since I couldn’t find this option straight in the app, I had a look into the automation category and noticed the custom script option. As far as I can assess this, I think that this is the best option. If there is another great solution to tackle my automated qr code creation, please be so kind and let me know, any help is highly appreciated Thanks in advance guys, take care and stay safe! Kind regards, Karim :slightly_smiling_face:
Hi all! I’m looking to use the URL Preview App to preview another bases’ record. I can successfully open the source record from another base, but I’m looking to preview that view and make edits within that preview window instead of being sent to that original record in a new window. Currently it’s not working when I select the URL field, I’m met with the “No Preview” message. I believe instead of choosing the option to Preview a URL (even though that’s what I want) I would actually need to be selecting the option to Run Script - but not sure what the build is for that custom option. Any help is much appreciated! Screengrabs of what is happening vs what I’d like possible attached.
For any Python developers here, I wanted to share the latest release of pyAirtable, a Python Client for the Airtable API. The library was previously called airtable-python-wrapper. This new release includes many new features, including a cool orm-style class, as well as new utilities like date conversions and a few formula helpers. Feel free to message me here or open a github issue if you have any suggestions or feedback. Contributions are welcome. Repo: GitHub GitHub - gtalarico/pyairtable: Python Api Client for Airtable Python Api Client for Airtable. Contribute to gtalarico/pyairtable development by creating an account on GitHub.
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.