Uploading XML Data to Display in Bubble App

Hey Tyler,

It seems using the Bubble API connector plugin is a good option. I played around with it and it works well.

As an example I used the RSS feed of a Dutch news website Nu.nl, RSS-feed = NU - Algemeen.

This is what I did to get the items from the feed and save them:

  1. Create a data type “News Item” with the following fields:

image

  1. Create a get request / API using the Bubble API connector:

Note: set the “Use as” to Action and “Data type” to XML.

  1. Initialize the call and select which data you want to use and click Save:

  1. Create a simple page with a button to trigger the workflow (for test now, later you can create and schedule a backend workflow to do a daily or hourly run).

  1. Create a workflow (triggered by the button) which utilizes the API (created at step 2):

  1. Create a new backend workflow to create news items (activate backend workflow through Settings - tab API):

  1. Now go back to the workflow created at step 5 and add the following action:

  1. Finished!!

Click the button and new articles should appear in the data type News Item:

Note: In order to prevent retrieving or saving the same data twice, you might want to have look at the specs of the RSS feed if it is possible to filter (or use conditions in Bubble to f.i. check wether a guid already exists and if so, do not save the new news item).

3 Likes