Need development and API help? Ask your questions here!
Recently active
I am looking to Run a script in an Action. basically whenever the Category “Done” or “Postpone” is set to the record by single select field. I like to run a script that deletes those records. The trigger is pretty much easy to do by the automation configuration. The script is the one I didn’t figure out how to do.
If anyone is interested, I wrote some code to sync over new Shopify orders to Airtable using the Shopify Order Created webhook and the APIs of both platforms. The code can be found in this Github repo:https://github.com/codeupify/functions/blob/main/shopify/airtable-order-integration/README.mdThe code is in Python and using Flask as a webserver that you can host somewhere. There is also a serverless solution available here if you don’t want to spin up your own server:https://codeupify.com/f/yMYerkEaOB
Hi there, I have the automation example in Airtable that sends a digest email of certain records for yesterday (in our case, overrun on tasks). On days when there was no overrun, the email would still send but would be blank, which is not appreciated by management. I found this script in the forums here that helps prevent the email going out BUT it means I get an error alert & email instead, and it makes me go and check the automation is still working: // A script to stop the automation running when no records are found. // This prevents blank emails being sent. // See: https://share.support.airtable.com/2NuwnyDD?method=GET let numRecordsFound = input.config().numRecordsFound; if (numRecordsFound < 1) { throw Error("No records were found. Aborting so no blank emails are sent.") } Is it possible to stop or exit the automation silently, without throwing an error? Many thanks in advance, Chris
I am trying to use the API request to retrieve comments from a record using the following URL: v0/{baseId}/{tableIdOrName}/{recordId}/comments. However, I encounter a '[404] NOT_FOUND' error. I am using an OAuth connection in Make, which works when I use any other request, such as a simple 'Get a record': v0/{baseId}/{tableIdOrName}/{recordId}.
Looking for an API that can be. used for integration purpose to fetch all the data related t the subscripted plans
Suddenly my api calls have stopped working and getting error code 422 INVALID REQUEST. Didnt change anything its the same requests that have worked for months and now nothing works
I using airtable's api by connecting it to front end in flutter and a javascript backend using vercel function,these functions are working in dev environment but not in productionfunction call in front end in flutterFuture<void> createRecord(String firstName, String lastName, String address, String phoneNumber, String password, String personalMobileNumber, String salary, String role) async {final String url = 'crmvercelfun.vercel.app/api/addemployee';// Prepare the data to be sentfinal response = await http.post(Uri.parse(url),headers: {'Content-Type': 'application/json',},body: jsonEncode({ "fields":{"First Name": firstName,"Last Name": lastName,"Address": address,"Phone Number": phoneNumber,"Password": password,"Personal Mobile Number": personalMobileNumber,"Salary": salary,"Role": role,}}),);print(jsonEncode({"First Name": firstName,"Last Name": lastName,"Address": address,"Phone Number": phoneNumber,"Password": password,"Personal Mobile Number": personalMobileNumber,"Salary":
Hey All,This forum has been of great use to me over the years, and wasn't able to find evidence of this solution in existing posts, so figured I would share!When designing a multi-button script in the Scripting extension, I found myself wanting to make buttons with labels of different character length of equal size.Turns out Braille Pattern Blank (U+2800) is a good enough solution. // Create the initial buttons let action = await input.buttonsAsync('', [{label: '⠀⠀⠀⠀⠀⠀⠀⠀⠀New Business in Existing Storefront⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', value: 'New Business in Existing Storefront', variant: 'primary'}, {label: '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀Business Relocated⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀', value: 'Business Relocated', variant: 'primary'}, {label: '⠀⠀⠀⠀⠀⠀⠀Business Expanded To Additional Storefront⠀⠀⠀⠀⠀⠀', value: 'Business Expanded To Additional Storefront', variant: 'primary'}]); You'll note that I added both value and label parameters to each button, so as to not have to include the spacers in
Has anyone figured out how to move an AirTable table onto an SQL database. I use Air-table for everything, but I’m starting to run into issues with the 100 record limit that Airtable imposes. Unfortuntely, it is a proprietary plugin making the API requests and it generates an error when the user retrieves over 100 records at a time (leaving many records blank). Does anyone have codebase or ideas on how to ‘sync’ Airtable records into an SQL database, which can then be queried by a web app that displays dynamic content. I don’t want to move away from Airtable as a CMS because its so easy for other project collaborators to use for data entry.
Hi, I would like to import a CVS file into my base and write an automation to adapt the file to my base on airtable. For example: the title of the colums are different on each, some info need to be extracted but others not. Does someone have a script for that ? Thank you so much !
Hi, I am trying to use REST API to retrieve data from a base that includes both the records from a primary table and the linked records from a related table in a single request. Is there a way to obtain this data in just one API call? Know that in SQL, a single query can fetch data from multiple tables in one request, but Airtable has me stumped. Any guidance is much appreciated. Thanks in advance.
Recently I have issue with my JIRA integration (JIRA cloud) table "Intenal sync error".So I have this sync table on Airtable for JIRA tickets that had been working fine:1. We have a master table of items2. We have a sync table from JIRA3. In the master table, there are a link to record field to the JIRA table: we can track tickets relating to the items.Yesterday, I did some revision of fields on master table as well as table permission, I did not modify the synced table. Later on, I noticed the synced table is not working anymore. I tried to revert the setting of permission on fields and tables. On 1 try it worked and then not working again eventhough nothing is changed. I have also tried to create a new sync table but it only works for the first time. It was actually quite bizzare.Hope you have some experience with this or able to lend me some help!Thanks
I have a Search records Airtable module in Make, which, given the same data, sometimes searches for a record correctly and sometimes not. Have you encountered such a situation? What could this be caused by? The data is literally identical in both cases.
Trying to deploy my custom app to a Base and keep getting this error: Running locally - successfully deployed Mac OS Safari Browser (cache cleared) { “error”: “FORBIDDEN”, “message”: “You can only run your development block in the original base where it was created.” } There are no answers to prior posts about resolving this. Anybody have a way to fix this?
Hi everyone! 👋I'm using n8n to automate some tasks with Airtable, and I want to make sure I don't create duplicate records in a specific table.Before adding a new record, I need to check if a similar record (based on a unique field, like email or name) already exists. If it does, I want to skip the creation step.Does anyone know the best way to check for duplicates in Airtable within an n8n workflow? Any tips or advice would be greatly appreciated!Thanks! 😊
I have a custom block running locally and wanted to share it with someone else on the team. Based on the docs, it sounds like running `block release` would be the next step. Doing so produces this output: Bundling... doneUploading... IncompleteError: ❌ The block could not be found. Make sure your API key is correct and that you have access to the block.Code: airtableApiBlockNotFoundI have some personal access tokens created with the `block:manage` scope, but it's not clear from the docs how or where the token would be used in a block extension. The docs sort of hint at it being asked for during the init process, but `block init` doesn't seem to do that. I also tried creating a new block from the Hello World example and then releasing it, and it had exactly the same error.I know there's an almost identically-titled post from last year, but it doesn't help, as the blocks CLI command is up-to-date, and I have created a token with the right scope. And the
Using the Airtable API, how do I change the order the fields of a table are displayed in?
Hello,I'm trying to run a script from BaseA to create a new record in BaseB. The new record in BaseB has a linked field, I followed this convention to reference it: Field_Name: [{id: record_id}]. I get INVALID_RECORD_ID error, though I've double-checked it and the record id is correct. What am I doing wrong? let createRecordInBaseB = await fetch( `https://api.airtable.com/v0/${targetBaseId}/${targetTableId}`, { method: "POST", headers: { Authorization: `Bearer ${baseARecord.pat}`, "Content-Type": "application/json", }, body: JSON.stringify({ fields: { "👀 Projects": [{id: projectRecordId}], }, }), } );
Hello, I’m trying to understand the AT API when it comes to getting the values of a linked table. For example, in Table one I have the following fields: ID Entity Name List of Part IDs In Table 2 I have the following fields: ID Part Number Part Name So when I create the URL to pull the values in Table 1, how do I “lookup” and show the Part Number and Part Name from Table 2 for each Part ID in Table 1? I’m new to Airtable, and have spent hours and hours trying to figure this out, but so far have been unsuccessful. All help will be greatly appreciated. Thanks, George
I am struggling to connect Airtable to PowerBI and was wondering if anyone was able to accomplish this?Here are my steps following the write-up from here: Sending Airtable Data to Microsoft Power BI & Power Query | Airtable SupportOpen Blank Report in PowerBISelect Get Data > Blank queryFrom Home Tab click on Manage Parameters > New Parameter.Add the NameType > Select TextSuggested Value > Any ValueCurrent Value > Enter Token ID This is done for PERSONAL_ACCESS_TOKEN, BASE_ID and TABLE_IDPlease note, TABLE_ID was taken from the URL as marked in red belowClick On Query1 as shown above, click on Advanced Editor and delete a few default lines.From the Sending Airtable Data to Microsoft Power BI & Power Query | Airtable Support, copy M Query, paste it into Query1, and select Done. At this point, I am prompted to Authenticate:On Sending Airtable Data to Microsoft Power BI & Power Query | Airtable Support page, it is suggested to use A
Is there a way to create a multiple select options via scripting blocks? I would have though if you set a field to a new option that doesn’t exist it would create it but doesn’t seem to be the case
Hi there.Can you help us solve this issue?After generating the GoogleDrive URL in GAS, we update certain fields in airtable API.The field type is “URL”.The code is below. I have already confirmed that the API URL, PAT, GoogleDrive URL and field name I am calling are correct. const drive_url = "https://drive.google.com/drive/folders/" + folder.getId(); const url = "https://api.airtable.com/v0/XXX(appID)/XXX(TableName)/XXX(recordId)" const options = { 'method': 'PATCH', 'headers': { 'Authorization': 'Bearer ' + "XXX", 'Content-Type': 'application/json', }, 'payload': JSON.stringify({ 'fields': { 'Field1': drive_url, } }) }; const response = UrlFetchApp.fetch(url, options);Then the following error is returned. {“type”: “INVALID_VALUE_FOR_COLUMN”, “message”: “Field \”Field1\“ cannot accept a value because the field is computed”}}However, the field type of Field1 is "URL", as mentioned above. It is not a calculated field.Why doe
Hi Airtable team, I am trying to upload more than 1 file with Integromat iterator and the logic works but Airtable “kiils” the last action and uploading only 1 file. How can i use Integromat and arrays to upload multiple files to the same field without deleting the previous ones? Thanks!
i have this piece of codetry: # Step 1: Search for the record with the given unique ID print("stage 1") search_url = f'{url}?filterByFormula={{Part unique No 1}}="unique_id"' print("stage 2") search_response = requests.get(search_url, headers=headers) print(search_response) if search_response.status_code == 200: search_result = search_response.json() if search_result['records']: # Step 2: If record is found, extract the record ID and existing quantity record_id = search_result['records'][0]['id'] existing_fields = search_result['records'][0]['fields'] existing_quantity = existing_fields.get('Quantity', 0) # Step 3: Add the new quantity to the existing quantity updated_quantity = existing_quantity + int(new_quantity) # Step 4: Prepare the data for the update update_data = { "fields": { "Quantity": updated_quantity,
I'm working with a client who has a seemingly simple requirement:"Send an email using Airtable data, then later reply to that email to chase the recipient - ensuring that the reply is in the same thread as the original"This is deceptively difficult to achieve from Airtable, and I wanted to ask the community if they've found a great solution.Here's a breakdown of the the problem:Replying - Email clients require the in-reply-to and references headers to contain the Message-Id of the email being replied to in addition to the subject being prefixed with "Re: "Nothing returns the Message-Id - The built in Airtable and Gmail automation actions do not return the message id of the email just sent - nor do they allow you to set the in-reply-to or references headers when sending an email. I looked at Zapier, Make.com, Gumloop. I couldn't find an off the shelf solution that did both thingsGmail API requires Oauth - I looked at connecting directly to the Gmail API in an airtable automati
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.