Add Data From Excel Using

Published: 19 December 2022
on channel: Watch and Learn
5,077
88

In this episode I'm going to show you how you can add large number of data to your Directus database using #Excel and Flows.

Ok, let's do one more Directus Flow, well actually two flows that are going to work in conjunction with one another.

So imagine you have a movie database type of website, and you want to add a large number of movies to it. Currently, you have those movies stored in a Google Sheets or an Excel Document. Of course, you don't wanna do that by hand, because it will take a long time to do it.

We can use Flows for this type of scenario, we will first save our Google Sheets or Excel document to a CSV file. We are going to parse that file on the front end and create a JSON object which we will send to a Directus Webhook, that will in turn trigger our first Flow. Since we are receiving an array of objects we can create a kind of for each loop by triggering another Flow for every object in that array. That other Flow is just simply going to add the data from the object it receives to the Movie collection.

Ok, so let's do this.

Code used in this video

https://bit.ly/3G4hW87

You can support my work on Patreon

  / watchlearn  

Follow me on Social Media

Github: https://github.com/ivandoric
Twitter:   / ivan_doric  


On this page of the site you can watch the video online Add Data From Excel Using with a duration of hours minute second in good quality, which was uploaded by the user Watch and Learn 19 December 2022, share the link with friends and acquaintances, this video has already been watched 5,077 times on youtube and it was liked by 88 viewers. Enjoy your viewing!