{"id":4406,"date":"2024-04-14T10:02:43","date_gmt":"2024-04-14T02:02:43","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4406"},"modified":"2024-04-14T10:02:43","modified_gmt":"2024-04-14T02:02:43","slug":"establish-entries-in-airtable-using-webflow-logic","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/establish-entries-in-airtable-using-webflow-logic\/","title":{"rendered":"Establish entries in Airtable using Webflow Logic"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p>Through Airtable, you have the ability to generate and oversee databases of vital information for your enterprise. Logic enables you to transmit data, like contact details of a potential customer, from form submissions to Airtable, linking your Webflow website to your business database.<\/p>\n<h6><strong>Prior to commencing:<\/strong> In case you haven&#8217;t done so already, <a href=\"https:\/\/airtable.com\/signup\" target=\"_blank\" rel=\"noopener\">create an Airtable account<\/a> and an <a href=\"https:\/\/www.airtable.com\/guides\/build\/create-your-database\" target=\"_blank\" rel=\"noopener\">Airtable base<\/a>. You&#8217;ll also need to integrate a form into your Webflow site with fields that match your Airtable table.<\/h6>\n<p>Within this tutorial, we will delve into:<\/p>\n<ol role=\"list\">\n<li>Steps to configure your Airtable API key<\/li>\n<li>Methods to establish authentication for your Logic flow<\/li>\n<li>Locating your Airtable documentation<\/li>\n<li>Setting up your HTTP request<\/li>\n<li>Testing and deploying your flow<\/li>\n<li>Troubleshooting any issues with your flow<\/li>\n<\/ol>\n<h6><strong>Insider tip:<\/strong> Logic also facilitates the synchronization of data from Airtable to the Webflow CMS using either the Make HTTP request block or an Incoming webhook trigger. Delve deeper into the process of making HTTP requests with Logic.<\/h6>\n<h2>Creating Your Airtable API Key<\/h2>\n<p>Similar to a password, an API key (referred to as an &#8220;access token&#8221; at times) identifies the site or application issuing an HTTP request to an API. An Airtable API key is essential for sending data to Airtable.<\/p>\n<p>To generate your Airtable API key:<\/p>\n<ol role=\"list\">\n<li>Navigate to your Airtable dashboard<\/li>\n<li>Click on your profile icon and select <strong>Account<\/strong><\/li>\n<li>Scroll to the <strong>API<\/strong> section and click on <strong>Create token<\/strong><\/li>\n<li>Tap on <strong>Create new token<\/strong><\/li>\n<li>Assign a name to your token<\/li>\n<li>Choose an action for this API key from the dropdown menu (at least <strong>data.records:write<\/strong> is required for sending data to Airtable)<\/li>\n<li>Select a base and designate the Airtable base where you wish to send data<\/li>\n<li>Click <strong>Create token<\/strong>, copy your <strong>API key<\/strong>, and ensure you <strong>keep this tab open<\/strong>!<\/li>\n<\/ol>\n<h2>Configuring Authentication for Your Logic Flow<\/h2>\n<ol role=\"list\">\n<li>Launch your site in the Webflow Designer within a new tab<\/li>\n<li>Select your form on the Designer canvas and access <strong>Form settings<\/strong><\/li>\n<li>Choose <strong>Logic<\/strong> from the <strong>Source<\/strong> dropdown<\/li>\n<li>Click <strong>Add new flow<\/strong><\/li>\n<li>Name your new flow (e.g., &#8220;Forward leads to Airtable&#8221;) in the <strong>Name<\/strong> field and optionally add a description in the <strong>Description<\/strong> field<\/li>\n<li>Drag a <strong>Make HTTP request<\/strong> block to the flow editor canvas and provide a name (e.g., &#8220;Create new lead record in Airtable&#8221;)<\/li>\n<li>Elect <strong>API token<\/strong> from the <strong>Authentication<\/strong> dropdown<\/li>\n<li>Opt for <strong>Header<\/strong> from the <strong>Add to<\/strong> dropdown<\/li>\n<li>Input &#8220;Authorization&#8221; into the <strong>Header<\/strong> field<\/li>\n<li>Click <strong>Select a credential<\/strong> &gt; <strong>Add new credential<\/strong><\/li>\n<li>Give your API token a designation (e.g., &#8220;Airtable API token&#8221;) in the <strong>Name<\/strong> field and optionally include a description in the <strong>Description<\/strong> field<\/li>\n<li>Enter &#8220;Bearer <strong>{API key}<\/strong>&#8221; in the <strong>Token<\/strong> field, replacing <strong>{API key}<\/strong> with the copied API key from Airtable<\/li>\n<li>Click <strong>Create<\/strong> to preserve the new credential and ensure you <strong>keep this tab open<\/strong>!<\/li>\n<\/ol>\n<h6><strong>Pro hint:<\/strong> You also have the option to link your form to a new Logic flow through the <strong>Logic panel<\/strong> &gt; <strong>Flows<\/strong> tab. Explore more about form submission triggers in Logic.<\/h6>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949657c92a16eb2b9ec70_63fe2b0b6b9b13f7eb0cf068_eqgcdaf4diklph9ezc4zu4h_rwmjjwvsnpoldnecagrk5yfrxcj4skrwxudynsrhdyg2tf53jpkqhtjybnmtx-ryzbjgwed300aqfoscuummau0eeuyo-eobzl8v0svbyhddd0268r_ncs7wseaz1s.png\" alt=\"Options to Add a new flow or Browse flows appear in Form settings when Logic is selected as the source.\" title=\"64b949657c92a16eb2b9ec70_63fe2b0b6b9b13f7eb0cf068_eqgcdaf4diklph9ezc4zu4h_rwmjjwvsnpoldnecagrk5yfrxcj4skrwxudynsrhdyg2tf53jpkqhtjybnmtx-ryzbjgwed300aqfoscuummau0eeuyo-eobzl8v0svbyhddd0268r_ncs7wseaz1s\"><\/div><figcaption><em>You can connect a form to Logic through Form settings, Form block settings, or from the <\/em><strong><em>Logic panel<\/em><\/strong><em> &gt; <\/em><strong><em>Flows<\/em><\/strong><em> tab.<\/em><\/figcaption><\/figure>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949657c92a16eb2b9ec7e_63fe2b0b0cc890224bdb8858_opw_abdxhrlrfekfq_uozh7qx6spyc6x9b_ce3llv8fqdfttwaybafibyp-jhkcocfyyv6xi0l2gahmbyyude0ymy5pej3tvdi73wkjtpl8kwnqpcj5sia_ayn6cckd6spxx8z19z8xslmcijkrnla.png\" alt=\"\u201cHeader\u201d is chosen in the Add to dropdown and \u201cAuthorization\u201d is entered in the Header input field.\" title=\"64b949657c92a16eb2b9ec7e_63fe2b0b0cc890224bdb8858_opw_abdxhrlrfekfq_uozh7qx6spyc6x9b_ce3llv8fqdfttwaybafibyp-jhkcocfyyv6xi0l2gahmbyyude0ymy5pej3tvdi73wkjtpl8kwnqpcj5sia_ayn6cckd6spxx8z19z8xslmcijkrnla\"><\/div>\n<\/figure>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949657c92a16eb2b9ec7b_63fe2b0b3eb65b116851fc0f_puebzdrdhszrcm2ofvp7mgkjewnqrew6kwm-9wqnz7gmnrscrenvygfro7jsit-mpvaxgkgsdkey60tdpq5eo4e7rxp5mhdusgs8izkycq_hlvyxgambvpzcn42tavysiyoo24xyqmlce-6bjfnmg6.png\" alt=\"The \u201cNew credential\u201d modal window displays fields for the name, description, type, and value of an API credential.\" title=\"64b949657c92a16eb2b9ec7b_63fe2b0b3eb65b116851fc0f_puebzdrdhszrcm2ofvp7mgkjewnqrew6kwm-9wqnz7gmnrscrenvygfro7jsit-mpvaxgkgsdkey60tdpq5eo4e7rxp5mhdusgs8izkycq_hlvyxgambvpzcn42tavysiyoo24xyqmlce-6bjfnmg6\"><\/div><figcaption><em>For APIs that utilize bearer authentication (like Airtable), you must input \u201cBearer\u201d before your API key in the Token field.<\/em><\/figcaption><\/figure>\n<h2>Finding Your Airtable Documentation<\/h2>\n<ol role=\"list\">\n<li>Revisit your Airtable base<\/li>\n<li>Access <strong>Help<\/strong> and choose <strong>API documentation<\/strong> under Additional resources<\/li>\n<li>Select the table where you wish to create records<\/li>\n<li>Click on <strong>Create records<\/strong> \u2014 example API requests pertaining to your table will be visible on the right<\/li>\n<\/ol>\n<blockquote><p><strong>Crucial:<\/strong> Airtable\u2019s API documentation is tailored to each Airtable base, hence ensure that you&#8217;re working on the intended base for adding records.<\/p><\/blockquote>\n<h2>Setting Up Your HTTP Request<\/h2>\n<p>Now that you&#8217;ve configured your Logic flow and Airtable authentication credentials, revisit Webflow to establish an HTTP request within your flow. This HTTP request setup will generate a fresh record in your Airtable table every time a visitor submits your site&#8217;s form.<\/p>\n<h6><strong>Remember:<\/strong> In case you closed the tab where your Webflow site was open, navigate to <strong>Logic panel<\/strong> &gt; <strong>Flows<\/strong> tab and select the flow configured in the prior steps. Click on the <strong>Make HTTP request<\/strong> block on the flow editor canvas to access block settings and follow the upcoming steps.<\/h6>\n<ol role=\"list\">\n<li>Open the <strong>Request method<\/strong> dropdown and opt for <strong>POST<\/strong><\/li>\n<li>Insert \u201chttps:\/\/api.airtable.com\/v0<strong>\/{id}<\/strong>\/<strong>{name_of_table}<\/strong>\u201d in the <strong>URL<\/strong> field, substituting <strong>{id}<\/strong> with your table ID and the <strong>{name_of_table}<\/strong>\n<li>Provide the title for your table<\/li>\n<li>Press the \u201c<strong>plus<\/strong>\u201d symbol beside <strong>Headers<\/strong> to generate a fresh header\u00a0<\/li>\n<li>Type \u201ccontent-type\u201d in the <strong>Name<\/strong> box and \u201capplication\/json\u201d in the <strong>Value<\/strong> box<\/li>\n<li>Insert the code block from your Airtable API documentation in the <strong>Body<\/strong> section \u2014 it will have a structure similar to this (but with data from your existing Airtable records):<\/li>\n<\/ol>\n<div class=\"w-embed\">\n<div class=\"code-block\">\n<pre class=\"code-block_body\"><code id=\"snippet1\" class=\"code-block_code\">\n    {\n      \"First Name\": \"XYZ\",\n      \"Last Name\": \"XYZ\",\n      \"Email\": \"ZYX@email.com\", \n      \"Status\": \"New lead\"\n    }\n    <\/code><\/pre>\n<\/div>\n<\/div>\n<p>Afterward, you\u2019ll have to include live data in your HTTP request to capture details from your form submissions:\u00a0<\/p>\n<ol role=\"list\">\n<li>Erase the values from your current Airtable record and position your cursor between the empty quotes in the <strong>Body<\/strong> area<\/li>\n<li>Tap on the violet \u201c<strong>dot<\/strong>\u201d icon and choose the related dynamic form field (for instance, name, email, etc.)<\/li>\n<\/ol>\n<blockquote><p><strong>Essential:<\/strong> Ensure to encode any spaces or special characters in the table title in the URL section.<\/p><\/blockquote>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949657c92a16eb2b9ec83_63fe2b0bfb1f0d41ffa3a3b9_kud-qnq0fyxrz2kqk5pxkmnoq48ymyjwpb-_coogj5_xarc4cf61viiz88ex2hsaqn6fxwihhe1tpdebxkidqvcdu0_nacws0luhfshvg8myrcmqanttv9itaa5-vx0fhf266ep4a0njutyx4qvtxz.png\" alt=\"The Body field contains dynamic form fields to capture last name, first name, and email address from form submissions.\u00a0\" title=\"64b949657c92a16eb2b9ec83_63fe2b0bfb1f0d41ffa3a3b9_kud-qnq0fyxrz2kqk5pxkmnoq48ymyjwpb-_coogj5_xarc4cf61viiz88ex2hsaqn6fxwihhe1tpdebxkidqvcdu0_nacws0luhfshvg8myrcmqanttv9itaa5-vx0fhf266ep4a0njutyx4qvtxz\"><\/div>\n<\/figure>\n<figure class=\"w-richtext-align-fullwidth w-richtext-figure-type-image\">\n<div><img decoding=\"async\" src=\"https:\/\/webflow.tenten.co\/wp-content\/uploads\/2024\/04\/64b949657c92a16eb2b9ec6b_63fe2b0b609dca1715d2c46b_7qawu4yqlvalnchezknshuks7uhbheeamevtglp1poglky_7u89g3hoj1kwlf0fitjbz-gfwhuvs_xn63wqi70vkrbvztlitq10rfpe3i9fex6py3dr6bmkpodu0uhlgw222ywqmbpcblttuuse2ob.png\" alt=\"The complete HTTP request block settings for sending data to Airtable include authentication, request method, URL, headers, and request body with variables to capture data from the Webflow form.\u00a0\" title=\"64b949657c92a16eb2b9ec6b_63fe2b0b609dca1715d2c46b_7qawu4yqlvalnchezknshuks7uhbheeamevtglp1poglky_7u89g3hoj1kwlf0fitjbz-gfwhuvs_xn63wqi70vkrbvztlitq10rfpe3i9fex6py3dr6bmkpodu0uhlgw222ywqmbpcblttuuse2ob\"><\/div><figcaption><em>A complete POST\u00a0request to Airtable from Logic\u2019s Make HTTP\u00a0request block.<\/em><\/figcaption><\/figure>\n<h2>Steps for testing and putting your flow into action<\/h2>\n<ol role=\"list\">\n<li>Press <strong>Run test to finish the setup\u00a0<\/strong><\/li>\n<li>Input sample values in the corresponding input box<\/li>\n<li>Press <strong>Run test\u00a0<\/strong><\/li>\n<li>Press <strong>Cancel<\/strong> or <strong>Apply data<\/strong> to close the testing window<\/li>\n<li>Hit <strong>Publish<\/strong>\u00a0<\/li>\n<li>Click <strong>Stage flow for publish<\/strong><\/li>\n<li>Publish your website<\/li>\n<\/ol>\n<h6><strong>Reminder: <\/strong>If an error message pops up during the testing process, go through our troubleshooting steps, then repeat the above actions. Get more details about testing HTTP requests.<\/h6>\n<h2>How to resolve problems with your flow<\/h2>\n<p>If you encounter an error while testing your flow, attempt the following steps:<\/p>\n<ul role=\"list\">\n<li>Ensure that you included \u201cBearer\u201d (along with a space) before your API key when setting up your access credentials (for example, \u201cBearer 123456789\u201d)<\/li>\n<li>Verify that your request URL has the accurate ID and name for your table<\/li>\n<li>Inspect for issues in your request body by using a complimentary tool like <a href=\"https:\/\/jsonlint.com\/\" target=\"_blank\" rel=\"noopener\">JSONLint<\/a>\u00a0<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Use Logic\u2019s Make HTTP request block to send data from Webflow form submissions to Airtable.","protected":false},"author":2,"featured_media":5328,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[298],"tags":[],"class_list":{"0":"post-4406","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-logic","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=4406"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5225"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}