Updating a Webflow CMS using Byteline’s No-Code Service

March 16, 2022
7
minutes read
No-Code, Webflow, Webflow CMS Upsert, Webflow Update, Byteline

WEBINAR

Join our free webinar on

Using Byteline Web Scraper

Thursday Jun 10 at 1 pm ET

Join us to learn the usage of Byteline's no-code Web Scraper along with its Chrome extension. We will then utilize it to scrape an eCommerce store.

Check out the agenda and let us know what more should be covered.

Insert or Update Webflow CMS items using Byteline

Intro

Informative-engaging content is always the No#1 way to ensure that you consistently pull in organic traffic to your website. If you are using a Webflow CMS, and are looking to keep your site updated with a regular batch of informative content, one popular approach is to explore a HTTP RESTful service that keeps updating information at scheduled intervals.

While Webflow offers a great platform to build your site easily in minutes, keeping it updated regularly is a challenge often faced by site owners. To help with this, Byteline offers a No-Code Webflow Upsert (Update and Insert) CMS Items service which you may use to pull data from an external source, and then feed it into your Webflow CMS. It intelligently figures out whether to update or insert a record without requiring any user input. For items requiring an update, it automatically figures out the Item ID. Compare this to a complicated no-code logic required in other no-code platforms to figure out the right Item ID to update. All this, without writing a single line of code!

This article will show you how to use Byteline to insert or update data to your Webflow site in a few simple steps.

Using Byteline for updating Webflow CMS

While you can add and update items to your Webflow site manually, this process is often very tedious and can only apply to use-cases where the volume of data is small. Byteline gives you a straightforward User Interface that helps you create a direct feed to your Webflow CMS. There are several advantages that come with using the Byteline service, and these include:

How to Use Byteline to Update your Webflow CMS

Through its Flow Designer, Byteline allows you to use the Upsert service to implement any logic to manage and update Webflow CMS Items. Like other Byteline flows, this flow can be invoked from a Form Submission, HTTP API call, or Byteline Scheduler. To get detailed instruction, visit Byteline docs.

Below is an example flow to add or update Webflow CMS items to manage weather by ZIP codes. You can click on it to see the detailed information (no login required) and to clone it as a starting point for your flow.

update of insert Webflow CMS items
Clone this flow as the starting point.

A simple use case of adding weather information to Webflow CMS is used to explain the functionality. The above flow covers the following: 

  1. The user submits a form on the Webflow Website by entering ZIP code and City. 
  2. The weather information is then retrieved from a third-party website through Byteline’s Simple HTTP service, a feature designed to execute HTTP RESTful calls. 
  3. Byteline then uses the Webflow- Upsert Items service to insert or update items through an easy configuration.

Let us understand this process practically and take a look at a reference use case.

Use Case

Weather Updates

For this sample project, a user enters his ZIP Code into a form on the Byteline interface. Byteline then returns the user’s location based on the given ZIP code, and upon user’s confirmation, extracts data from the Visual Crossing (or any URL as per the user’s choice) through its Simple HTTP task. This information can then be inserted or updated to records on Webflow CMS. To create this project, follow the steps outlined below:

  1. Create a Form in Webflow that will prompt the user for their ZIP Code. This form accepts Zip Code and should return the Location (City and State) to which the ZIP code belongs. The user’s confirmation should be accepted through a Submit button. You can also clone our Webflow project to see the inner workings on the Webflow side.
  2. On Webflow, create a collection with the following data fields: ZIP Code, Highs, Lows, Weather Patterns, and Time of Update.
  3. To turn the form data into this collection, click on Create Live Item. This way, you can point the data obtained by Byteline to your Webflow CMS.

The following steps will configure Byteline to source weather data from the Visual Crossing Service (www.visualcrossing.com) and Upsert (Update and/or Insert) the pulled data on Webflow.

1. Log in to your Byteline account. If you don’t have one already, then register for a free-tier service here.

2. Once you are on the Byteline Flow Designer page, click on Add Flow

3. On the Designer Flow section, give the flow a name of your choice (in our case it's named Darwin) and select Form Submission Trigger. You may also choose Scheduler in case you want the flow to run at specific schedules.

4. Once done, click the edit button of the newly created Form Submission Trigger widget. As shown in the image below, you may set a Redirect URL. Once the form submission is complete, the user will be redirected to this URL.

Also, note the Byteline API URL which you would require later. Click on Save

5. To set up the next part of the flow, click on the + button of the Form Submission Trigger widget. This will open a new window where you can choose the Node where you would like to add the scraped data. For this use case, we would select the Simple HTTP Node that will make an outgoing call to write data on the destination Webflow CMS. 

6. Once the Simple HTTP widget is created, click on its edit button to configure the Node. As shown in the image below, enter the Get URL - this is the source URL from which the data is to be scrapped. In this example, we shall use https://weather.visualcrossing.com. (Please note that this URL is for reference only, and the user can use any site’s URL as per his choice).

Quick Tip: Make sure you point to the exact API endpoint containing the data that you want to extract. Click on Save to continue. 

7. Once you are back on the Flow Designer, click on Deploy. Once deployed, click on the run button on the top right to execute the flow.

8. This opens a new widget where you can enter the Pin Code and City values, and then click on Run

Run Byteline flow from the Console
Run Byteline flow from the Console

9. Once done, the following page confirms the status of the Flow Run. Please ensure to validate the URL and other details correctly in case the status of Flow Run shows as Failed

10. Once the above is flow shows a Success, return back to the Flow Designer and click on + button of the Simple HTTP Trigger widget to add a new node. We would select the Webflow - Upsert Items as the last node to which the data is to be updated.

11. Click on the edit button of the Webflow - Upsert Items widget to configure. Note that for this step you would require to sign in to your Webflow CMS. This will essentially authorize the Byteline flow to upsert data into your Webflow CMS. Once you click on Authorize Application (as shown in the image below), ensure that you click on the Refresh button on the Webflow Authentication window to establish the connection.

OAuth integration through Byteline

12. Once the connection shows as successful, add the Mapped To fields on the right column as shown in the image below. To get details of the variable fields click on the Open Variable Selector button on the top right of the window, and look for the one that you wish to use. 

Byteline - Upsert (Update or Insert) Webflow CMS Items dialog
Byteline - Upsert (Update or Insert) Webflow CMS Items dialog

13. Here is an image of the Variable Selector window which you may use to find the list of all variables. Click on any of them to expand, and then copy it over to the Mapped To fields of the form. 

Byteline Select Variable Dialog
Byteline Select Variable Dialog

14. Once you are done with adding all Collection Mapped fields, click on Save to exit. Your Byteline flow is now ready to use and upsert data into your Webflow CMS.

While use-cases may differ, Byteline offers a handy service that pulls data from a specific source of your choice, and then updates the Webflow CMS with it as per a given schedule. Whether you possess technical knowledge or not, Byteline’s Webflow Upsert service doesn’t require you to write a single line of code to configure.

Let us know if you tried Byteline’s Webflow Upsert service, and if you have a use-case to share. 

Resources

Upvote this feature

If you like this feature and are interested in using it, please upvote it from the Byteline Console at https://console.byteline.io

How can I use it?

This feature is generally available and you can start using it from the Byteline Console at https://console.byteline.io/