Update Shopify Order Metafield with Customer Company Name

4 min setup
No coding required
Runs automatically

Automatically capture your customer's company name from each new Shopify order and store it in order metafields. This workflow enriches your order data with business identifiers, making it easier to track and report on B2B accounts, manage wholesale relationships, and analyze order activity by customer organization. Perfect for merchants selling to multiple business clients who need accurate company-level insights for operations, fulfillment, and customer service.

Shopify logo icon
Order Created
Retrieve Company Location
Shopify logo icon
Set Order Metafield

You're in good company

"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
PetFriendly

"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Zailys

"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"

  • Ico star
  • Ico star
  • Ico star
  • Ico star
  • Ico star
Rothy's

How it works

3 steps to start automatically updating order metafields with customer company names from Shopify Plus B2B data

Shopify logo icon

Order Created

App connector: Shopify • Time to complete: 0 minutes (Auto-configured)
Why this matters: This trigger detects every new B2B order and initiates the process of capturing company information that would otherwise require manual lookup and data entry.

This step automatically monitors your Shopify store for new orders and kicks off the workflow whenever a B2B customer places an order. The trigger captures essential order details including the customer's company location ID, which gets passed to the next step for company name retrieval.

No configuration is needed since it monitors all incoming orders by default. The trigger runs in real-time, so company information gets processed immediately after each order is created.

Retrieve Company Location

App connector: Shopify Plus • Time to complete: 0 minutes (Auto-configured)
Why this matters: This step fetches the actual company name from Shopify Plus's B2B system using the company location ID from the order, providing the specific data needed for the metafield update.

This step connects to your Shopify Plus B2B system and retrieves the complete company location details using the company location ID captured from the order trigger. The workflow automatically pulls the company name, address, and other location-specific information that B2B customers have registered in your store. This data retrieval happens seamlessly in the background and passes the company name to the final step. The retrieved company information ensures accurate business records and proper order attribution.

Shopify logo icon

Set Order Metafield

App connector: Shopify • Time to complete: 2 minutes
Why this matters: This step permanently stores the company name as structured data on the order record, making it searchable and accessible for reporting, filtering, and business analysis across your entire order management system.

This step creates a custom metafield on the order record and populates it with the company name retrieved from the previous step. The metafield uses the namespace "custom" with the key "customer_company_name" and stores the data as single-line text for easy access and reporting. You can customize the namespace and key names to match your existing metafield structure or reporting requirements. Once saved, this company name appears in order details and can be used for filtering, reporting, and automated business processes.

Ready to set this up? It only takes 4 minutes.

Our support team will even help you personalize this workflow for free.

Get started →

Make it your own!

Customize this workflow even further:

Filter by company size or type
Add conditional logic to handle different company tiers, applying special processing rules for enterprise accounts vs. small businesses based on company metadata.
Sync company data across multiple systems
Extend the workflow to update your CRM, accounting software, or customer support tools with the same company information for consistent business records.
Generate automatic B2B reports
Chain additional steps to compile monthly company sales summaries, track B2B customer growth, or trigger alerts when high-value company accounts place orders.
Deploy smart company notifications
Use AI agents to analyze company order patterns and automatically notify your sales team when existing B2B customers show unusual purchasing behavior or expansion opportunities.

Common questions

Will this work for regular B2C customers who don't have company associations?

Can I use this company name data to segment customers in Shopify's native reports?

What happens if a B2B customer changes their company name or location details?

Ready to start automatically updating order metafields with customer company names from Shopify Plus B2B data?

7-day free trial • 4 min setup • Cancel anytime

Need help? Our automation experts will help you personalize this workflow for free. Contact support