{"id":12823,"date":"2025-02-18T16:00:00","date_gmt":"2025-02-18T16:00:00","guid":{"rendered":"https:\/\/www.getmesa.com/blog\/?p=12823"},"modified":"2025-12-22T23:10:21","modified_gmt":"2025-12-22T23:10:21","slug":"send-shopify-order-metafields","status":"publish","type":"post","link":"https:\/\/www.getmesa.com/blog\/send-shopify-order-metafields\/","title":{"rendered":"How to Get and Send Shopify Order Metafields"},"content":{"rendered":"\n<p>In ecommerce, data is everything. Shopify merchants aim to optimize, streamline, and deliver fantastic customer experiences.<\/p>\n\n\n\n<p>One feature that can help with that is Shopify\u2019s order metafields. When used with orders, these custom fields allow merchants to use extra information that open up a whole world of possibilities for customization and automation.<\/p>\n\n\n\n<p>In this article, we\u2019ll go into what Shopify order metafields are, how they can be used, and the benefits they bring to merchants looking to take their online store to the next level.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-cyan-bluish-gray-color has-alpha-channel-opacity has-cyan-bluish-gray-background-color has-background is-style-dots\"\/>\n\n\n\n<p class=\"inline-cta\"><a href=\"http:\/\/app.getmesa.com\/install\" target=\"_blank\" rel=\"noreferrer noopener\">Try MESA for free<\/a> and start incorporating Shopify order metafields with any app in your tech stack.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">In this article:<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.getmesa.com/blog\/send-shopify-order-metafields\/#How-to-send-order-notification-emails-to-include-metafield-values\" >How to send order notification emails to include metafield values<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.getmesa.com/blog\/send-shopify-order-metafields\/#Related-workflow-templates-using-metafields\" >Related workflow templates using metafields<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.getmesa.com/blog\/send-shopify-order-metafields\/#What-are-Shopify-order-metafields\" >What are Shopify order metafields?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.getmesa.com/blog\/send-shopify-order-metafields\/#Why-metafields-for-orders\" >Why metafields for orders?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-how-to-send-order-notification-emails-to-include-metafield-values\"><span class=\"ez-toc-section\" id=\"How-to-send-order-notification-emails-to-include-metafield-values\"><\/span><strong>How to send order notification emails to include metafield values<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-total-time\"><span class=\"schema-how-to-duration-time-text\">Time needed:&nbsp;<\/span>5 minutes<\/p><p class=\"schema-how-to-description\">This workflow sends a notification email with metafield values when a new order is created in Shopify.<\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1738870061625\"><strong class=\"schema-how-to-step-name\"><strong>Trigger on Shopify order creation<\/strong><\/strong> <p class=\"schema-how-to-step-text\">The workflow starts with a trigger that fires when a new order is created in Shopify. This step is essential as it sets everything in motion, and all subsequent actions will run on each new order.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"356\" class=\"wp-image-12827\" alt=\"Order created\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-67.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-67.png 1536w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-67-300x70.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-67-1024x237.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-67-768x178.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1738870539185\"><strong class=\"schema-how-to-step-name\"><strong>Get a list of the order metafields<\/strong><\/strong> <p class=\"schema-how-to-step-text\">Next, this step gets the list of metafields for the order that will be included in the email.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"314\" class=\"wp-image-12828\" alt=\"Get a list of the order metafields\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-68.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-68.png 1536w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-68-300x61.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-68-1024x209.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-68-768x157.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1738870556982\"><strong class=\"schema-how-to-step-name\"><strong>Parse metafield values<\/strong><\/strong> <p class=\"schema-how-to-step-text\">The retrieved metafields are then processed using the Code built-in tool, which formats the data so it\u2019s easy to include in an email. This step ensures that each piece of information is correctly formatted for the Email step, making the details clear and well-organized. Paste the following snippet into the code editor:<br\/><br\/><code>const Mesa = require('vendor\/Mesa.js');<br\/>module.exports = new class {<br\/>\u00a0\u00a0script = (payload, context) => {<br\/>\u00a0\u00a0\u00a0\u00a0const vars = context.steps;<br\/>\u00a0\u00a0\u00a0\u00a0let variables = {};<br\/>\u00a0\u00a0\u00a0\u00a0for (let metaobject of vars.shopify_1) {<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let value = null;<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"key: \", metaobject.key);<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try {<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = JSON.parse(metaobject.value);<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} catch (error) {<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = metaobject.value;<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"value: \", value);<br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0variables[metaobject.namespace + \"-\" + metaobject.key] = value;<br\/>\u00a0\u00a0\u00a0\u00a0}<br\/>\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"variables\", variables);<br\/>\u00a0\u00a0\u00a0\u00a0Mesa.output.next(variables);<br\/>\u00a0\u00a0}<br\/>}<\/code><br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1186\" class=\"wp-image-12829\" alt=\"\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-69.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-69.png 1536w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-69-300x232.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-69-1024x791.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-69-768x593.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1738870796890\"><strong class=\"schema-how-to-step-name\"><strong>Send an email notification<\/strong><\/strong> <p class=\"schema-how-to-step-text\">Finally, the workflow sends an email to a recipient. The email contains the metafield information formatted from the previous step. Paste the following snippet to get started but you can customize the message as needed.<br\/><br\/><code>Metafields:<br\/>Personalized Text: {{ metafields.custom-personalized_text }}<br\/>Item Costs: {{ metafields.custom-item_costs.amount }} {{ metafields.custom-item_costs.currency_code }}<br\/>File: {{ metafields.custom-file }}<\/code><br\/><br\/><img loading=\"lazy\" decoding=\"async\" width=\"1255\" height=\"1600\" class=\"wp-image-12830\" alt=\"Send an email notification\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-70.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-70.png 1255w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-70-235x300.png 235w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-70-803x1024.png 803w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-70-768x979.png 768w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-70-1205x1536.png 1205w\" sizes=\"auto, (max-width: 1255px) 100vw, 1255px\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1738872223834\"><strong class=\"schema-how-to-step-name\"><strong>Turn \u201cOn\u201d this workflow<\/strong><\/strong> <p class=\"schema-how-to-step-text\">Be sure to run your workflow once to make sure it\u2019s capturing and sending the order metafields properly. Then, turn \u201cOn\u201d this workflow to have it run automatically any time a new order is created in Shopify.\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"1446\" class=\"wp-image-12831\" alt=\"How to Get and Send Shopify Order Metafields\" src=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-71.png\" style=\"max-width:100%;\" srcset=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-71.png 1536w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-71-300x282.png 300w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-71-1024x964.png 1024w, https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/image-71-768x723.png 768w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/p> <\/li><\/ol><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-related-workflow-templates-using-metafields\"><span class=\"ez-toc-section\" id=\"Related-workflow-templates-using-metafields\"><\/span><strong>Related workflow templates<\/strong> using metafields<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>With MESA, getting workflows setup from a template is fast and easy. Try these today:<\/p>\n\n\n<div class=\"mesa-template-backend frontend-hidden\">\n    <p><strong>MESA Template ID<\/strong><\/p>\n    <p>add-customer-metafields-to-shopify-order-notes<\/p>\n<\/div>\n\n<div class=\"mesa-template\" data-template=\"add-customer-metafields-to-shopify-order-notes\"><\/div>\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\t\t<style>.mesa-template-backend {\n    background: rgba(139, 139, 150, 0.1);\n    padding: 22px;\n}\n\n.mesa-template-backend h5,\n.mesa-template-backend p {\n    margin: 0 0 5px;\n}\n\n.mesa-template-backend p {\n    font-size: 16px;\n}\n\n.mesa-template-backend p:last-child {\n    display: inline-block;\n    background: #fff;\n    padding: 5px 10px;\n}\n\n.mesa-template-backend p strong {\n    font-size: 12px;\n}<\/style>\n\t\t\n\n<div class=\"mesa-template-backend frontend-hidden\">\n    <p><strong>MESA Template ID<\/strong><\/p>\n    <p>tag-shopify-product-with-metafield-value<\/p>\n<\/div>\n\n<div class=\"mesa-template\" data-template=\"tag-shopify-product-with-metafield-value\"><\/div>\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"mesa-template-backend frontend-hidden\">\n    <p><strong>MESA Template ID<\/strong><\/p>\n    <p>send-shopify-orders-to-google-sheets<\/p>\n<\/div>\n\n<div class=\"mesa-template\" data-template=\"send-shopify-orders-to-google-sheets\"><\/div>\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-shopify-order-metafields\"><span class=\"ez-toc-section\" id=\"What-are-Shopify-order-metafields\"><\/span><strong>What are Shopify order metafields?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Send Shopify order metafields to extend the platform\u2019s functionality, allowing merchants to store and display extra data beyond default fields like product title, order number, and customer email. Metafields can be attached to various Shopify resources, such as products, collections, customers, and orders.<\/p>\n\n\n\n<p>Shopify order metafields let merchants store extra order details beyond standard properties. This extra data can be anything from personalization details provided by the customer to internal notes for staff handling the order.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-metafields-for-orders\"><span class=\"ez-toc-section\" id=\"Why-metafields-for-orders\"><\/span><strong>Why metafields for orders?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Having the ability to add metafields to orders opens up a lot of possibilities to enhance the overall e-commerce experience. Merchants can use order metafields to:<\/p>\n\n\n\n<p><strong>Capture personalization details<\/strong>: Save customer-provided details for custom products, such as engraved initials or color choices.<\/p>\n\n\n\n<p><strong>Track order source<\/strong>: Record information about where the order came from, such as the marketing campaign, referral link, or physical store that led to the sale.<\/p>\n\n\n\n<p><strong>Include special fulfillment instructions<\/strong>: Attach special handling or packaging requirements to an order so the warehouse team has all the info.<\/p>\n\n\n\n<p><strong>Flag orders for review<\/strong>: Add internal notes to flag certain orders for manual review, such as those that are high-risk or potential fraud.<\/p>\n\n\n\n<p><strong>Store customer attributes<\/strong>: Link customer-specific data points, such as loyalty program tiers or subscription IDs, to an order for post-purchase experiences.<\/p>\n\n\n\n<p>Order metafields help automate workflows, integrate with third-party systems, and enhance customer experience with custom order data.<\/p>\n\n\n\n<div class=\"card-next-steps\">\n\t<div class=\"card__content\">\n\t\t<h4>What to do next&#8230;<\/h4>\n<p>The fastest way to see automation working in your store is to start with a single workflow.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.getmesa.com\/pricing\"><strong>Try MESA free<\/strong><\/a> \u2014 start a 7-day free trial and get your first workflow running.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/templates\"><strong>Browse the template library<\/strong><\/a> \u2014 pre-built workflows for the most common Shopify automation tasks.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/yedric\"><strong>Talk to Yedric<\/strong><\/a> \u2014 describe what you want to automate, and let our AI assistant build it for you.<\/li>\n<li><a href=\"https:\/\/www.getmesa.com\/support\"><strong>Get free workflow setup<\/strong><\/a> \u2014 MESA&#8217;s team will build your first workflow at no cost.<\/li>\n<\/ol>\n\t<\/div><!-- \/.card__content -->\n\n\t\n<div class=\"socials card__socials\">\n\t<ul>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/twitter.com\/getmesa\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/twitter-icon.svg\" class=\"attachment-small size-small\" alt=\"icon: twitter\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/www.youtube.com\/@getmesa\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/youtube-icon.svg\" class=\"attachment-small size-small\" alt=\"icon: youtube\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t\t\t<li>\n\t\t\t\t<a href=\"https:\/\/www.linkedin.com\/company\/9754608\/\" target=\"_blank\">\n\t\t\t\t\t<img decoding=\"async\" src=\"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/linkedin-icon.svg\" class=\"attachment-small size-small\" alt=\"linkedin icon\" \/>\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t<\/ul>\n<\/div><!-- \/.socials -->\n<\/div><!-- \/.card-next-steps -->\n","protected":false},"excerpt":{"rendered":"<p>In ecommerce, data is everything. Shopify merchants aim to optimize, streamline, and deliver fantastic customer experiences. One feature that can&#8230;<\/p>\n","protected":false},"author":1,"featured_media":12835,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[48],"tags":[280,66],"class_list":["post-12823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-workflow-tutorials","tag-email","tag-shopify"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Retrieve and Send Shopify Order Metafields<\/title>\n<meta name=\"description\" content=\"Learn how to send Shopify order metafields to simplify management, automate workflows, and enhance order data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Get and Send Shopify Order Metafields\" \/>\n<meta property=\"og:description\" content=\"In ecommerce, data is everything. Shopify merchants aim to optimize, streamline, and deliver fantastic customer experiences. One feature that can help\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/\" \/>\n<meta property=\"og:site_name\" content=\"MESA\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/mesabyshoppad\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-18T16:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-22T23:10:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-order-metafield.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ryan ODonnell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@getmesa\" \/>\n<meta name=\"twitter:site\" content=\"@getmesa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ryan ODonnell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/\"},\"author\":{\"name\":\"Ryan ODonnell\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/person\\\/5ed8ee9c6f19090c4d5acb4f45efacb4\"},\"headline\":\"How to Get and Send Shopify Order Metafields\",\"datePublished\":\"2025-02-18T16:00:00+00:00\",\"dateModified\":\"2025-12-22T23:10:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/\"},\"wordCount\":601,\"publisher\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/shopify-order-metafield.png\",\"keywords\":[\"email\",\"shopify\"],\"articleSection\":[\"Workflow Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/\",\"name\":\"How to Retrieve and Send Shopify Order Metafields\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/shopify-order-metafield.png\",\"datePublished\":\"2025-02-18T16:00:00+00:00\",\"dateModified\":\"2025-12-22T23:10:21+00:00\",\"description\":\"Learn how to send Shopify order metafields to simplify management, automate workflows, and enhance order data.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/shopify-order-metafield.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com/blog\\\/wp-content\\\/uploads\\\/shopify-order-metafield.png\",\"width\":1280,\"height\":720,\"caption\":\"How to Get and Send Shopify Order Metafields\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Get and Send Shopify Order Metafields\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\",\"name\":\"MESA\",\"description\":\"Discover how to automate your Shopify growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#organization\",\"name\":\"MESA - AI automation Platform\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/mesa-shoppad.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/mesa-shoppad.jpeg\",\"width\":225,\"height\":225,\"caption\":\"MESA - AI automation Platform\"},\"image\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/web.facebook.com\\\/mesabyshoppad\\\/\",\"https:\\\/\\\/x.com\\\/getmesa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/shoppad\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCqsf_WhcGEsZMvms1idivyw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/#\\\/schema\\\/person\\\/5ed8ee9c6f19090c4d5acb4f45efacb4\",\"name\":\"Ryan ODonnell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g\",\"caption\":\"Ryan ODonnell\"},\"sameAs\":[\"https:\\\/\\\/www.getmesa.com\"],\"jobTitle\":\"Director of Marketing\",\"worksFor\":\"MESA\"},{\"@type\":\"HowTo\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#howto-1\",\"name\":\"How to Get and Send Shopify Order Metafields\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#article\"},\"description\":\"This workflow sends a notification email with metafield values when a new order is created in Shopify.\",\"totalTime\":\"P0DT0H5M\",\"step\":[{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#how-to-step-1738870061625\",\"name\":\"Trigger on Shopify order creation\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"The workflow starts with a trigger that fires when a new order is created in Shopify. This step is essential as it sets everything in motion, and all subsequent actions will run on each new order.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#schema-image-4b7532283c8e1337df0156fdff9497b8\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-67.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-67.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#how-to-step-1738870539185\",\"name\":\"Get a list of the order metafields\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Next, this step gets the list of metafields for the order that will be included in the email.\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#schema-image-1f1d16d1e640ca93ed17355009638343\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-68.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-68.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#how-to-step-1738870556982\",\"name\":\"Parse metafield values\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"The retrieved metafields are then processed using the Code built-in tool, which formats the data so it\u2019s easy to include in an email. This step ensures that each piece of information is correctly formatted for the Email step, making the details clear and well-organized. Paste the following snippet into the code editor:const Mesa = require('vendor\\\/Mesa.js');module.exports = new class {\u00a0\u00a0script = (payload, context) => {\u00a0\u00a0\u00a0\u00a0const vars = context.steps;\u00a0\u00a0\u00a0\u00a0let variables = {};\u00a0\u00a0\u00a0\u00a0for (let metaobject of vars.shopify_1) {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let value = null;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\\\"key: \\\", metaobject.key);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = JSON.parse(metaobject.value);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} catch (error) {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = metaobject.value;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\\\"value: \\\", value);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0variables[metaobject.namespace + \\\"-\\\" + metaobject.key] = value;\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\\\"variables\\\", variables);\u00a0\u00a0\u00a0\u00a0Mesa.output.next(variables);\u00a0\u00a0}}\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#schema-image-4c25a2aa414fc2c846377165c63ccc8e\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-69.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-69.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#how-to-step-1738870796890\",\"name\":\"Send an email notification\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Finally, the workflow sends an email to a recipient. The email contains the metafield information formatted from the previous step. Paste the following snippet to get started but you can customize the message as needed.Metafields:Personalized Text: {{ metafields.custom-personalized_text }}Item Costs: {{ metafields.custom-item_costs.amount }} {{ metafields.custom-item_costs.currency_code }}File: {{ metafields.custom-file }}\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#schema-image-41cfe05ced42a669ed9fa0568fc36b3c\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-70.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-70.png\"}},{\"@type\":\"HowToStep\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#how-to-step-1738872223834\",\"name\":\"Turn \u201cOn\u201d this workflow\",\"itemListElement\":[{\"@type\":\"HowToDirection\",\"text\":\"Be sure to run your workflow once to make sure it\u2019s capturing and sending the order metafields properly. Then, turn \u201cOn\u201d this workflow to have it run automatically any time a new order is created in Shopify.\u00a0\u00a0\"}],\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/send-shopify-order-metafields\\\/#schema-image-8238f017abd3e971f627ed2898d131dd\",\"url\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-71.png\",\"contentUrl\":\"https:\\\/\\\/www.getmesa.com\\\/blog\\\/wp-content\\\/uploads\\\/image-71.png\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Retrieve and Send Shopify Order Metafields","description":"Learn how to send Shopify order metafields to simplify management, automate workflows, and enhance order data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/","og_locale":"en_US","og_type":"article","og_title":"How to Get and Send Shopify Order Metafields","og_description":"In ecommerce, data is everything. Shopify merchants aim to optimize, streamline, and deliver fantastic customer experiences. One feature that can help","og_url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/","og_site_name":"MESA","article_publisher":"https:\/\/web.facebook.com\/mesabyshoppad\/","article_published_time":"2025-02-18T16:00:00+00:00","article_modified_time":"2025-12-22T23:10:21+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/shopify-order-metafield.png","type":"image\/png"}],"author":"Ryan ODonnell","twitter_card":"summary_large_image","twitter_creator":"@getmesa","twitter_site":"@getmesa","twitter_misc":{"Written by":"Ryan ODonnell","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#article","isPartOf":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/"},"author":{"name":"Ryan ODonnell","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/person\/5ed8ee9c6f19090c4d5acb4f45efacb4"},"headline":"How to Get and Send Shopify Order Metafields","datePublished":"2025-02-18T16:00:00+00:00","dateModified":"2025-12-22T23:10:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/"},"wordCount":601,"publisher":{"@id":"https:\/\/www.getmesa.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#primaryimage"},"thumbnailUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-order-metafield.png","keywords":["email","shopify"],"articleSection":["Workflow Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/","name":"How to Retrieve and Send Shopify Order Metafields","isPartOf":{"@id":"https:\/\/www.getmesa.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#primaryimage"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#primaryimage"},"thumbnailUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-order-metafield.png","datePublished":"2025-02-18T16:00:00+00:00","dateModified":"2025-12-22T23:10:21+00:00","description":"Learn how to send Shopify order metafields to simplify management, automate workflows, and enhance order data.","breadcrumb":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#primaryimage","url":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-order-metafield.png","contentUrl":"https:\/\/www.getmesa.com/blog\/wp-content\/uploads\/shopify-order-metafield.png","width":1280,"height":720,"caption":"How to Get and Send Shopify Order Metafields"},{"@type":"BreadcrumbList","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.getmesa.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Get and Send Shopify Order Metafields"}]},{"@type":"WebSite","@id":"https:\/\/www.getmesa.com\/blog\/#website","url":"https:\/\/www.getmesa.com\/blog\/","name":"MESA","description":"Discover how to automate your Shopify growth","publisher":{"@id":"https:\/\/www.getmesa.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.getmesa.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.getmesa.com\/blog\/#organization","name":"MESA - AI automation Platform","url":"https:\/\/www.getmesa.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/mesa-shoppad.jpeg","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/mesa-shoppad.jpeg","width":225,"height":225,"caption":"MESA - AI automation Platform"},"image":{"@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/mesabyshoppad\/","https:\/\/x.com\/getmesa","https:\/\/www.linkedin.com\/company\/shoppad\/","https:\/\/www.youtube.com\/channel\/UCqsf_WhcGEsZMvms1idivyw"]},{"@type":"Person","@id":"https:\/\/www.getmesa.com\/blog\/#\/schema\/person\/5ed8ee9c6f19090c4d5acb4f45efacb4","name":"Ryan ODonnell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62bb965c979cc1de4c6f046fb47a28a57bc194da441ebe43b3dfbe2f2f893563?s=96&d=mm&r=g","caption":"Ryan ODonnell"},"sameAs":["https:\/\/www.getmesa.com"],"jobTitle":"Director of Marketing","worksFor":"MESA"},{"@type":"HowTo","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#howto-1","name":"How to Get and Send Shopify Order Metafields","mainEntityOfPage":{"@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#article"},"description":"This workflow sends a notification email with metafield values when a new order is created in Shopify.","totalTime":"P0DT0H5M","step":[{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#how-to-step-1738870061625","name":"Trigger on Shopify order creation","itemListElement":[{"@type":"HowToDirection","text":"The workflow starts with a trigger that fires when a new order is created in Shopify. This step is essential as it sets everything in motion, and all subsequent actions will run on each new order."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#schema-image-4b7532283c8e1337df0156fdff9497b8","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-67.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-67.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#how-to-step-1738870539185","name":"Get a list of the order metafields","itemListElement":[{"@type":"HowToDirection","text":"Next, this step gets the list of metafields for the order that will be included in the email."}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#schema-image-1f1d16d1e640ca93ed17355009638343","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-68.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-68.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#how-to-step-1738870556982","name":"Parse metafield values","itemListElement":[{"@type":"HowToDirection","text":"The retrieved metafields are then processed using the Code built-in tool, which formats the data so it\u2019s easy to include in an email. This step ensures that each piece of information is correctly formatted for the Email step, making the details clear and well-organized. Paste the following snippet into the code editor:const Mesa = require('vendor\/Mesa.js');module.exports = new class {\u00a0\u00a0script = (payload, context) => {\u00a0\u00a0\u00a0\u00a0const vars = context.steps;\u00a0\u00a0\u00a0\u00a0let variables = {};\u00a0\u00a0\u00a0\u00a0for (let metaobject of vars.shopify_1) {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let value = null;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"key: \", metaobject.key);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = JSON.parse(metaobject.value);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0} catch (error) {\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0value = metaobject.value;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"value: \", value);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0variables[metaobject.namespace + \"-\" + metaobject.key] = value;\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0\u00a0\u00a0Mesa.log.info(\"variables\", variables);\u00a0\u00a0\u00a0\u00a0Mesa.output.next(variables);\u00a0\u00a0}}"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#schema-image-4c25a2aa414fc2c846377165c63ccc8e","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-69.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-69.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#how-to-step-1738870796890","name":"Send an email notification","itemListElement":[{"@type":"HowToDirection","text":"Finally, the workflow sends an email to a recipient. The email contains the metafield information formatted from the previous step. Paste the following snippet to get started but you can customize the message as needed.Metafields:Personalized Text: {{ metafields.custom-personalized_text }}Item Costs: {{ metafields.custom-item_costs.amount }} {{ metafields.custom-item_costs.currency_code }}File: {{ metafields.custom-file }}"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#schema-image-41cfe05ced42a669ed9fa0568fc36b3c","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-70.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-70.png"}},{"@type":"HowToStep","url":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#how-to-step-1738872223834","name":"Turn \u201cOn\u201d this workflow","itemListElement":[{"@type":"HowToDirection","text":"Be sure to run your workflow once to make sure it\u2019s capturing and sending the order metafields properly. Then, turn \u201cOn\u201d this workflow to have it run automatically any time a new order is created in Shopify.\u00a0\u00a0"}],"image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.getmesa.com\/blog\/send-shopify-order-metafields\/#schema-image-8238f017abd3e971f627ed2898d131dd","url":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-71.png","contentUrl":"https:\/\/www.getmesa.com\/blog\/wp-content\/uploads\/image-71.png"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/12823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/comments?post=12823"}],"version-history":[{"count":12,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/12823\/revisions"}],"predecessor-version":[{"id":17326,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/posts\/12823\/revisions\/17326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/media\/12835"}],"wp:attachment":[{"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/media?parent=12823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/categories?post=12823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.getmesa.com/blog\/wp-json\/wp\/v2\/tags?post=12823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}