Need development and API help? Ask your questions here!
Recently active
I have my personal access token with all the scopes, but when I try to create a new entry the api is returning this error: "type": "INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND", "message": "Invalid permissions, or the requested model was not found. Check that both your user and your token have the required permissions, and that the model names and/or ids are correct."
I have an issue to retieve only specific fields from a aitable record const fieldsToRetrieve = ["BlogSL1", "BlogSL2", "BlogSL3", "BlogSL4", "BlogSL5", "BlogSL6", "BlogSL7", "BlogSL8", "BlogSL9", "BlogSL10"]; const response = await axios.get(`${BASE_URL}/appDP6faKvOeSxUKs/${queryKey}/${id}`, config);
Hi there, Can you help me, please? I am trying to run a script and it results that the record is not found, but it is there. I checked everything - the correct name of a table and view but it keeps giving this warning. Any tips?Thank you
We have an automation through Make.com which uses an API call to import data into Airtable. This has run for 18 months without issue. We are recently getting an error 'Field cannot accept the provided value' The data is a text string which begins with a hash e.g. '# 100'. The field is not a computed or linked field, it is a single line text field. I cannot see what has changed that this data cannot be accepted now. Any help?
Hi,I have an automation in Make.com that adds a record to a table in Airtable. The connection uses an Airtable Personal Access Token. I have given the token all available permissions in Airtable, but am still receiving the below error message in Make.com:[422] Insufficient permissions to create new select option ""Microsoft PowerApps""I suspect it is because I am trying to add an option to a Multi Select field that doesn't already have this option specified in Airtable. Would appreciate any feedback on where I'm going wrong on the permissioning / access approach - it seems like this MUST be possible.I should add that I am currently on the Free plan; not sure if that has an impact.Many thanksBrett
I have the following code: "use server"; import { revalidatePath } from "next/cache"; import { z } from "zod"; import Airtable from 'airtable'; Airtable .configure({ apiKey: 'PAT KEY' }) Airtable .base('ID'); export async function registerSignUp(prevState: { message: string; }, formData: FormData,) { const schema = z.object({ email: z.string(), }); const parse = schema.safeParse({ email: formData.get("email"), }); if (!parse.success) { return { message: "Failed to sign up" }; } const data = parse.data; try { await Airtable.Table.create(data); revalidatePath("/"); return { message: `Signed Up!` }; } catch (e) { return { message: "Failed to sign up" }; } } So all of the above, obvs with the PAT key and ID added works locally but not on production.I am using Vercel free tier to host my site and wonder if that is the problem. Or on airtable there is some CORS or domain whitelisting somewhereupdate:I have added a console log to the catch section for the error thrown and got
I've been trying to get this to work using a formula but haven't figured it out...What i want: I have a table that contains 1000 records, 12 of which i'm displaying on the web frontend via softr.io. Now what i want is to randomize the 12 records that will be displayed. This does not necessarily need to be randomized each time the page is refreshed/the API call to retreive the records is made. It could also randomize every minute or so.I guess randomisation on refresh/load would have to be made via the API call somehow. But if the API call always retreives records based on a static filter, I would have to randomize the results that the filter retreives on the Airtable side.Any idea how to do this?One simple solution I thought of which should semi-randomize every time the result of NOW() is updated in Airtable: Number records with autonumber. Take the seconds from NOW() and calculate based on the second (which is a value between 0 and 60) which block of 12 records should be taken. I.e. i
Hi there, here is my cURL as mentioned in the title i'm having issues just on iOS while on Android it works with no problem.https://api.airtable.com/v0/appOwBv51ihqo****/TableName?filterByFormula=FIND("february",{Mese%20Nome})=1&sort%5B0%5D%5Bfield%5D=Created&sort%5B0%5D%5Bdirection%5D=descStatus: 422Error: undefinedI'm really confused, hope you can help
The required parameter for the base.createTableAsync call is Fields, but when I put a dynamic list of Fields in it, it says that it's not the right type, when it really is. Is there a workaround? I do not want to hand-key in all of the fields, which may change fairly regularly. Goal: Duplicate the Trainees tableBlocker: base.createTableAsync's Fields parameter does not accept a dynamic set of Fields
I have had to change my zapier integration with Airtable because of the API deprecation. It looks like the "API Requests (Beta)" should be an easy transition with the authentication method updated. However, when I put the same URL into it, I can't get it to work and I am not sure what I am doing wrong.My intention is to return the single top record of a view- if there is an alternate way, I could do that too. But I don't know of a way to limit the view to a single record within airtable. This was working great via API.... I just need it to work with the new authentication as well! Any advice as to what I am doing wrong, or an alternate solution would be much appreciated!
Hello, I am trying to set up a complex script where I am trying to pull data from three different sources and merge the datasets in Airtable. Additionally, I am trying to enable some CRUD functionality that will allow us to manage the records created. Because of the complexity of the code I was trying to abstract the code and make it more manageable over the long run. I was breaking down the data "fetches" from individual sources into their own scripting blocks and then have an additional block where all the CRUD functions are hosted. Questions for the community?1. Is it possible to share variables between Scripting Extensions?2. Is there some localStorage/Cookie setup I can implement? These cookies cannot be on my browser but rather on the Airtable server so that it can be shared by multiple developers.Any help or link will be appreciated. Thanks in Advance R.
Hi there,I want to upload image from Airtable api to wordpress but the issue is the airtablo attachment url is without the extension due to that it is hard to upload it in the wordpress.This is the URLCan someone please help me on this?Thank you.
I have an automation to run script when a unit enters a view. The script is working (in general) but not returning the value it should. The script looks at an occupied unit from one table and using a set of pre-defined parameters, makes a suggestion for a vacant unit from another table that it could be assigned to. If one is not available it returns a value of 'No suitable vacant unit found. Unit needed.'Here is my script: // Define the names of your tables and viewsconst OCCUPIED_TABLE_NAME = 'Unit & Relo Data';const VACANT_TABLE_NAME = 'Available Units';const OCCUPIED_VIEW_NAME = 'Unit Search'; // The view that filters occupied units// Function to fetch records from a specified table and viewasync function fetchRecords(tableName, vie
I've got a little script on Zapier where if somebody registers for a Zoom meeting, we add them to Airtable. To avoid duplicates, I search for to see if we already have a record for the registrant with a query like this:OR({Email 1} = "{{email}}",{Email 2} = "{{email}}",{Email 3} = "{{email}}",{Phone 1} = "{{phone}}",{Phone 2} = "{{phone}}",{Phone 3} = "{{phone}}")However, if Airtable doesn't find the email in any of the three email columns and the {{phone}} is blank, then Airtable will return a result for a record with a blank phone number, which is obviously not what we want here.Is there any way to construct a query that will not return a match for an empty phone number?Thanks!
Hello, I’m trying to learn basic scripting. I’m following some examples to get started and build a useful function, however I’m hung up pretty early on. I’m trying to pull all the entries for one specific field in a view. However, when I do this, my efforts keep ending up giving the “id” and “name” column, but not whatever I specified as the field. Here’s my code: let table = base.getTable(‘Prints’); let view = table.getView(‘PF - All Prints’); let result = await view.selectRecordsAsync({ fields: [“Keywords”] }) output.inspect(result); Any support would be appreciated! Thank you.
Hello everyone! Good day! I have a quick question.Is there a way to upload a CSV or XLSX file in Airtable?We want to be able to streamline sales data in Airtable. We would download the file from Bol, and upload it in Airtable, so it updates automatically the right values. Any help is appreciated!Thank you! -Aisha
Hello,I'm reaching out to inquire about a specific functionality within the Airtable API.I'm currently working on a project that involves duplicating a database template, including all of its tables, via the Airtable API. While I've explored the documentation and experimented with various endpoints, I haven't been able to find a straightforward solution for achieving this.Could anyone in the community kindly provide guidance or share if there's an API script available that facilitates the duplication of a database template along with all its tables? My goal is to automate this process as part of a larger project.Your insights, suggestions, or examples of how to achieve this would be immensely appreciated.Here's an example of the JSON script I've attempted to use:{"base_id": "YOUR_BASE_ID","new_name": "New_Base_Name","copy_tables": true,"workspace_id": "YOUR_WORKSPACE_ID"}Thank you all for your time and assistance!Best regards,
Hello,I'm reaching out for assistance with an issue I've encountered while trying to interact with the Airtable API. Despite following the documentation provided by Airtable and ensuring that I've granted the necessary permissions, I'm consistently receiving an error message.Here's the API request I'm making:curl -X POST "https://api.airtable.com/v0/meta/bases" \-H "Authorization: Bearer YOUR_TOKEN" \-H "Content-Type: application/json" \--data '{"name": "Apartment Hunting","tables": [{"description": "A to-do list of places to visit","fields": [{"description": "Name of the apartment","name": "Name","type": "singleLineText"},{"name": "Address","type": "singleLineText"},{"name": "Visited","options": {"color": "greenBright","icon": "check"},"type": "checkbox"}],"name": "Apartments"}],"workspaceId": "wspmhESAta6clCCwF"}'However, I'm consistently receiving the following error message:{"error": {"type": "INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND","message": "Invalid permissions, or the requested
I connect all tokens and link and Rested post in account collectoin.but when I sent my test value I got this :"Select data to bind to the UI and/or use in another API request" Below is error message and this is is Jason body and then a test data. I am spending hours here. please help me
Hi everyone, I'm trying to be proactive with the the imminent change to the integration with Airtable. I've connect Zapier via the App Update (Presumably using OAuth) and connected Make with an OAuth connection. However, I expected to see the connection appear in Airtable under the developers OAuth section but there is nothing. How would I manage and revoke these connections if I can't see themCheers all, Jason
I'm building a PTO request workflow in Slack which adds a record to an Airtable. Airtable then automates some downstream steps which will post the PTO to a shared Google calendar etc. It was working fine. I wanted to make some modifications without messing with the original workflow so I duplicated the workflow itself as well as the Airtable. The Slack workflow duplicate allows me to choose that duplicated airtable (I added it to the integration in Airtable) but it simply won't work when I try to run the Slack workflow. Slack throws "The service used for this step isn't available" when I try to run it. I deleted the Slack integration in Airtable and re-created it with a request from Slack to no avail. I also tested deleting the copy of the table to see if the error changed, and it did- Slack would say "The user doesn't have permission to use this step." instead. A brand new airtable base from scratch works, but I don't want to re-create the existing one if I can avoid it. Any
My airtable account does not let me generate an API Key, instead it pushes me to creating a PAT. I have used a PAT and successfully linked to Make.com however as far as I am aware I need an API Key to integrate Airtable with Voiceflow, so does anyone know how I can overide what it is saying and generate one. Or can someone help show me how to use the PAT to link with Voiceflow.
Hello there,https://api.airtable.com/v0/appycQyQBCRaFT2aD/Tebi-Category-Test?maxRecords=110&view=Grid%20viewI'm using this API to get the my table's data and after that I will process this into my CMS and then to fetch next records there is offset which I'm using to get another records. Since the records are more than 100 server might get out so I tried to get less records like 10 but offset is not there in the response.so can someone help me to get less records and also the offset in it ?Thank you.
Hi! I found a workaround that’s helpful for me, so I thought I’d share. If someone has an easier way to do this, please let me know! Apologies if this has already been posted, I didn’t find it after a bit of searching. The problem I was trying to solve was that when updating a record, a field can be named using its friendly name (e.g. “First Name”), but then if I change it later, even a little bit, my API integration will break. Each field also has a unique ID, prefaced by fld, but I wasn’t aware of any way to actually find that name. Well, it turns out that you can for most fields, with a little trickery: Edit: See drassi’s post below for an easier way to do this. In the GUI, create a new field, and make it a formula. In the formula, refer to the field that you want to know the ID of. (For instance, if you want to know the ID of the “First Name” field, make your formula “{First Name}”.) Delete the field that you want to know the name of. Now, the formula field will have a red erro
Hello, as of this morning, any PDFs that I attach via the Make integration will no longer open in a preview window, but instead tries to download a file without an extension. This Make scenario has been running for months without issue, with hundreds of PDFs attached in the manner per day - all being able to open up in Airtable without an issue. But as of this morning, nothing added today will open properly. Any attachments added yesterday still open fine. Any ideas what is happening here?Edit - apparently this is only happening on this specific Base. If I run a Make scenario to add an attachment to a different Base - it attaches fine and opens normally. But then if I change it to attach to my primary Base, the same download issue occurs. I need to get it back to working normally on this primary Base. This is what I have determined so far:1. Only is affecting my primary base2. If I manually attached a PDF via airtable, it opens
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.