Skip to main content
Question

Shopify Metafield For Branch


Using Shopify Plus+ b2b .

We have 3 branches, and orders are required to be imported with the connector to the respective branch.

There is a lack of mapping options available to the Company Entity.

We tried manually inserting a metafield into the Customer. The metafield value definitely exist on the customer.

Receiving  error "SalesOrder.Details[0].Branch: 'Branch' cannot be empty.
Inserting  'Sales Order Line' record raised at least one error. Please review the errors.”

What are our options for mapping to the right branch? We have too many customers to do it by locationid in orderdata.

 

5 replies

bwhite49
Semi-Pro III
Forum|alt.badge.img
  • Semi-Pro III
  • 73 replies
  • March 14, 2025

Why not just update the customer record rather than the order? The customer default should copy to the sales order?

 


  • Author
  • 2 replies
  • March 14, 2025
bwhite49 wrote:

Why not just update the customer record rather than the order? The customer default should copy to the sales order?

 




Default branch is set. The Shopify Store connector only has 1 option for branch which over rides it.


bwhite49
Semi-Pro III
Forum|alt.badge.img
  • Semi-Pro III
  • 73 replies
  • March 14, 2025

I’ve had success overriding the defaults in the store settings through the entities screen. Customer class and order type for example. I’ve never tried modifying the branch though.

 


  • Author
  • 2 replies
  • March 16, 2025
bwhite49 wrote:

I’ve had success overriding the defaults in the store settings through the entities screen. Customer class and order type for example. I’ve never tried modifying the branch though.

 

Yes, ofcourse.  If you understood clearly, this is what we are trying to do, but the connector is giving an error when the value  exists. 


bwhite49
Semi-Pro III
Forum|alt.badge.img
  • Semi-Pro III
  • 73 replies
  • March 16, 2025

Just trying to help. I think it’s pretty clear from your screenshot that you are trying to update the sales order. What I suggested was that you update the customer entity rather than the sales order entity and update the default branch field. 

You wrote that this is “set” in the store settings, and I wrote that you can override this defaults through entity mapping.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings