How to subscribe to Shopify webhooks and receive customer metafields in a workflow setup?

This topic was automatically generated from Slack. You can find the original thread here.

How do you subscribe to Shopify webhooks when I set up a workflow, for example, for a Shopify customer update?
Because i want to modify the request you send to shopify, I want my workflow to also receive metafields for customer, is it possible?

Hi, I think your question is a great case for Pipedream bot to help. I’ll pass your question to the Pipedream bot now. Please feel free to ask it any question

How do you subscribe to Shopify webhooks when I set up a workflow, for example, for a Shopify customer update?
Because i want to modify the request you send to shopify, I want my workflow to also receive metafields for customer, is it possible?

To set up a workflow for a Shopify customer update, you can use the “Updated Customer” trigger in Pipedream. Here’s how to do it: 1. Search for the Shopify app from the trigger menu 2. Select the “Updated Customer” trigger 3. Connect your Shopify account 4. Follow the instructions on the trigger configuration screen. You may need to generate a test event from Shopify to get real data to test your workflow. However, if you want to include metafields for the customer in the webhook, you’ll need to use the “Get Metafields” action after the trigger. Here’s how: 1. Search for the Shopify app from the step menu 2. Select the “Get Metafields” action 3. Connect your Shopify account 4. Select “Customer” as the Resource Type 5. Use the customer ID from the trigger step to get the metafields for the updated customer Please note that this will make an additional API call to Shopify to fetch the metafields for the customer.