I am looking to programatically recreate the ‘Add Customer’ functionality from admin/companies/xxxx/locations/xxxx
I don’t see any union on the CompanyLocation or in Customer…
I am looking to programatically recreate the ‘Add Customer’ functionality from admin/companies/xxxx/locations/xxxx
I don’t see any union on the CompanyLocation or in Customer…
Hey @kfredericks ,
Thanks for the post.
You can find the programmatic way to do this under the GraphQL dev docs for B2B, specifically this mutation for companyLocationAssignRoles.
Hope that helps add some direction!
Hi, I’m sorry, but I don’t understand your answer. When I look at what APIs are called when I assign a user to a location in Shopify, I see that the AssignCompanyContactToLocations mutation is called. And it makes sense to me. But I can’t find that one in the documentation.
If I wanted to use the method you recommend (companyLocationAssignRoles), what role assigns the user to the location?
Aaah, sorry, I see it now.