Exploring Shopify GraphQL Updates: What You Need to Know
If you’re automating Shopify, it’s important to keep up with the latest updates to make the most of your workflows. We’re here to talk about some recent changes to our Shopify integration, specifically with GraphQL, a modern query language that simplifies how you handle data.
Topics:
The latest Shopify GraphQL triggers
Our recent enhancements to Shopify triggers mark a significant leap forward, thanks to the integration of GraphQL webhooks. These updates offer a new level of control and efficiency. Here are the key updates:
Triggers | Description |
Customers Merged | Combines duplicate customer profiles into one for a cleaner database. |
Customer Tags Added | Alerts when new tags are added to customer profiles for better segmentation. |
Customer Tags Removed | Notifies when tags are removed from customer profiles to keep segmentation current. |
Fulfillment Cancelled | Informs when an order is cancelled, aiding in inventory and expectation management. |
Fulfillment Cancellation Request Accepted | Indicates when a fulfillment request is accepted, keeping order processing on track. |
Fulfillment Cancellation Request Rejected | Alerts about the rejection of a fulfillment request, prompting action or adjustment. |
Fulfillment Cancellation Request Submitted | Notifies when a fulfillment request is made, initiating the fulfillment process. |
Fulfillment Service Failed to Complete | Alerts to issues or failures in the fulfillment service for quick resolution. |
Fulfillment Hold Released | Indicates when a hold on an order is released, advancing the order process. |
Fulfillment’s Line Items Prepared for Local Delivery | Shows when items are ready for local delivery, aiding in logistics. |
Fulfillment’s Line Items Prepared for Pickup | Alerts when items are prepared for customer pickup. |
Fulfillments Merged | Informs of merged orders for tracking and inventory management. |
Fulfillment Moved | Notifies when an order is moved, aiding in order tracking. |
Fulfillment Order Routing Completed | Indicates the completion of order routing, signifying readiness for the next phase. |
Fulfillment Placed on Hold | Alerts when an order is placed on hold, important for managing delays and communication. |
Fulfillment Split | Notifies when an order is split, essential for accurate order tracking. |
Get List of Catalogs | Obtain a list of catalogs. |
Get List of Price Lists | Obtain a list of price lists. |
Get List of Sales Channels | Obtain a list of sales channels. |
Publish Product or Collection | Publish a product or collection to a specific sales channel. |
Retrieve Catalog | Grab all details about a catalog. |
Retrieve Inventory Levels | Grab all details about inventory levels (includes details about item ID, location, quantities, incoming, on hand, damaged, and available). |
Retrieve Metafield | Grab all details about any metafield, including Companies |
Retrieve Price List | Grab all details about a price list. |
Retrieve Sales Channel | Grab all details about a sales channel. |
Return Approved | Informs when a return is approved, streamlining the returns process. |
Return Cancelled | Indicates the cancellation of a return request, aiding in inventory and customer management. |
Return Closed | Alerts when a return process is concluded, marking the end of the return cycle. |
Return Declined | Notifies when a return request is declined, essential for customer service follow-up. |
Return Reopened | Informs if a previously closed return is reopened, requiring attention. |
Return Requested | Alerts to new return requests, initiating the returns handling process. |
Unpublish Product or Collection | Unpublish a product or collection from a specific sales channel. |
Additionally, we added two new optional fields available across Shopify triggers that leverage GraphQL and make your workflows easier to setup and manage.
Include Fields
This option allows you to specify which fields should trigger an action in your workflow. By using ‘include fields’, you can filter and trigger actions based on specific data fields.
Suppose you only want to trigger a workflow when changes are made to certain fields like ‘price’ or ‘inventory’. By setting ‘include fields’ to these specific areas, your workflow will only activate when changes occur in these fields, ignoring irrelevant data changes. This targeted approach makes your automation more efficient and relevant, reducing unnecessary processing and focusing on key data points.
For example, if you’re monitoring stock levels, you can use ‘include fields’ to trigger an alert only when the ‘inventory’ field changes. This way, you’ll stay informed about critical inventory updates without being overwhelmed by irrelevant data changes.
Metafields Namespace
Metafield Namespaces allow you to add specific metafields to your workflow’s payload. By listing the desired namespaces, separated by commas, you can tailor the data your workflow receives.
Metafields in Shopify store specialized information that isn’t captured by standard fields. By including specific metafield namespaces in your triggers, you can access and utilize this customized data in your workflows. This capability is particularly useful for workflows that depend on unique information in conjunction with other relevant data.
For example, imagine you’re using a metafield to track the ‘expected delivery date’ for orders – a crucial piece of information for customer service. This metafield might be stored under the namespace ‘order_info.expected_delivery’. By including this namespace in your trigger, your workflow can be configured to activate when there’s an update in the expected delivery date. For instance, you could set up an automated email to customers, updating them about the new delivery date. Or, internally, this update could trigger a notification to your logistics team to prioritize or reorganize delivery schedules.
The impact of GraphQL in your Shopify workflow
These updates are essential for those who want to streamline their Shopify operations. Here’s why they matter:
Direct Data Access: With GraphQL, you can more closely monitor and react to changes in your Shopify store in real-time. You’ll benefit from enhanced control over customer interactions and order management, leading to a more streamlined and responsive experience.
More Efficient Automations: Set your workflows to react only to specific changes that matter most to your business. It simplifies your automation, ensuring that you spend less time dealing with bulky data and more time on what truly impacts your store’s performance.
Customized Data Integration: Now, you can include specific metafields in your workflow trigger, neatly packaged into a single dataset. This customization means your automated processes are not just efficient but also perfectly aligned with your unique business needs and customer requirements.
These GraphQL updates in Shopify are all about making your life easier. They ensure that your workflows are not just automated, but smartly automated.
👋 We’re Here to Help
Feel free to reach out for support if you need help if you run into a problem or feel unsure. MESA’s US-based support team is here to assist you with any challenges. Contact us any time at [email protected].