Add Data From Excel Using

Pubblicato il: 19 dicembre 2022
sul canale di: 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  


In questa pagina del sito puoi guardare il video online Add Data From Excel Using della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Watch and Learn 19 dicembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,077 volte e gli è piaciuto 88 spettatori. Buona visione!