Scheduled exports from Shopify to Google sheets
Tags: shopify, showdev, beginners, tutorial
Published: 2021-12-18 02:50:57

Next on our list to **Integrate and optimize the daily workflow**, we have got a detailed guide on how to get scheduled exports from **Shopify to Google sheets**. 

By the end of this guide, you will be able to **create a trigger** that **updates the inventory on Shopify** whenever a new row is added to the inventory sheet. So let's begin, shall we! 

## Let's get started! 🚀

**Step 1: Create necessary sheets to hold our inventory data**

First thing first, let's create an empty google sheet to hold our inventory data. 

![Sheet-Step1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4wzxuq18vhwvtmoplr0h.png)

**Step 2: Let’s now work on those integrations!**

Go to this [sample project](https://app.canonic.dev/projects/61af33b3b9347d002d5beb7b/api-2?utm_source=dev.to&utm_medium=organic_article&utm_campaign=30daysofcanonic_uc_3&utm_term=step2_sample_project&utm_content=day_18) and click on the top right corner to clone it. This project already has YouTube integration for metrics set up. So all we have to do is clone it and get started.

![Step 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i8hw7sohtk8szxohb4xa.png)

**Step 3: Explore API tab**

In the same project, from the left-hand navigation bar, move to the **API tab**. 

There, in the left-hand panel, you’ll find different divisions like - **Endpoints, Scheduled triggers, DB triggers, Integration triggers, etc**. In the scheduled triggers, you should find it already set up.

**Step 4: The dailyInventoryReporting flow**

Let's now build the **integration scheduled trigger** that gets triggered every evening at 8 pm.

Click on the **dailyInventoryReporting** trigger and it’ll open up the graph for it. Our flow looks something like this 
👇

![Step 4](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7hsyef8mls4zzzc8h72p.png)

**Step 5: Updating configuration of integrations**

Let's start inspecting and correcting any integration settings should we have to. Click on the left most trigger will reveal its settings.

As you can check we've set it up to execute every day around 8:00PM. You can change this schedule should you want to by clicking on the trigger.

![Step 5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3he4qxctdsofx31lovh2.png)

Similarly in Shopify integration, you will have to enter your **API key to authenticate**. You will then need the product ID for which you want to fetch the inventory of, once you input product ID in required fields, you are all set.

And, the last is the Google Sheets API, after authenticating, in required fields you will need to input your Google Sheet's ID and Range. 

![Step 5](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/euw30gij68aipplpxf09.png)

Once you've reached here, you've successfully **scheduled exports from Shopify to Google sheets**. 🥳

**Check out the sample project [here](https://app.canonic.dev/projects/61af33b3b9347d002d5beb7b/api-2?utm_source=dev.to&utm_medium=organic_article&utm_campaign=30daysofcanonic_uc_3&utm_term=step5_here&utm_content=day_18)**

## Conclusion

Thank you for reading this guide. If you happen to create any of these integrations, please remember to mention us on social media or drop us a line on our [discord channel](https://discord.gg/9dyytsM).

You can also check out our other guides [here](https://dev.to/canonic/).

Write to us for any support requests at [support@canonic.dev](https://support@canonic.dev/). Check out our [website](https://www.canonic.dev/30-days-of-canonic/?utm_source=dev.to&utm_medium=organic_article&utm_campaign=30daysofcanonic_uc_3&utm_term=conclusion_website&utm_content=day_18) to know more about Canonic.