Update Company name on company location shipping address

When integrating with Microsoft 365 Business Central (BC) we can publish new customers/companies from BC to Shopify which will automatically create a location for the company which is great. But for some reason the company name on the shipping address is not being filled out by integration.

If I go into Shopify admin and manually create a new company location it will default fill out company name on shippping address with the related company name.

To fix the integration issue I have tried to setup a Flow in Shopify that automatically updates the company field on company location shipping address using action HTTP request and Graph QL Admin API. But I can’t find any mutation that allows to update the company name field on company location shipping address?? Are there any other options to handle this automatically?

Hi @Rune_Limkilde

But for some reason the company name on the shipping address is not being filled out by integration.

Could you share more about which integration this is? Have you contacted their support?

Seems like a bug in their integration to me, potentially having them fix it is the best solution.

But I can’t find any mutation that allows to update the company name field on company location shipping address?

You should be able to pass the company field from the shipping address to a GraphQL Mutation action as a variable.

Then inside of that mutation I believe you should be able to update the customer’s company field to match.

Hope this helps,

Shopify Flow has a native action for Send Admin API request which may make this a bit easier rather than trying to use an HTTP request.

You’re looking for the companyLocationAssignAddress mutation. To update an address field, you will technically need to update the entire address, but the specific field you are referring to here is called “recipient” in the API docs.

1 Like

Thanks a lot you guys. I was cheated by the company field being called “recipient” :).
Also changed to the Send Admin API request action. Thanks for the suggestion Brett, for sure a lot easier and it is working as intended.
@Dylan yes I also believe it’s a bug in the integration/app. I have pointed this out in the Microsoft Community and hope they will be listening and fix it soon :slight_smile:
It’s this one Få kontrol over lageret, økonomien og momsrapporteringen | Shopify App Store

2 Likes