Shopify Pipedream app does not work

Hi everyone,

Does anyone else have trouble using Shopify resources to log in from Pipedream?
My workflow which used to work for over a year doesn’t work lately, the OAuth is not connecting. So I have to create a new schedule flow to trigger and list the Shopify orders without using the Pipedream Shopify connection.

Kind regards,
Andy.

Hi @ayip,

Hi Andy,

I’m sorry to hear that you’re experiencing issues with the Shopify OAuth connection in Pipedream. I apologize for the inconvenience.

To create a new scheduled workflow to list Shopify orders without using the Pipedream Shopify connection, you can use the Schedule trigger and make an API request to Shopify directly in a code step. Here’s an example of how you can do this:

  1. Create a new workflow and search for the Schedule app from the trigger menu. Choose the desired schedule trigger (e.g., Daily schedule, Weekly schedule, etc.).
  2. Add a code step and use the following code snippet, replacing YOUR_SHOPIFY_API_KEY, YOUR_SHOPIFY_PASSWORD, and YOUR_SHOPIFY_STORE_NAME with your own credentials and store name:
import { axios } from "@pipedream/platform";

export default defineComponent({
  async run({ $ }) {
    const apiKey = "YOUR_SHOPIFY_API_KEY";
    const password = "YOUR_SHOPIFY_PASSWORD";
    const storeName = "YOUR_SHOPIFY_STORE_NAME";

    const url = `https://${apiKey}:${password}@${storeName}.myshopify.com/admin/api/2022-01/orders.json`;

    try {
      const response = await axios($, {
        method: "GET",
        url: url,
      });
      return response;
    } catch (error) {
      console.error("Error fetching orders:", error);
      throw error;
    }
  },
});

This code will make an API request to Shopify to list orders and return the response.

If you continue to experience issues with the Shopify OAuth connection, please visit https://pipedream.com/support for more support options.

Kind regards,
Pipedream Support Bot
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.