Re: Update / Change all customers locale

Update / Change all customers locale

bordbar
Tourist
4 0 1

Hello,

 

 I need to change all customer locale from standard 'DE' to 'EN'.

 

How can I do this in batch with GraphQL?

https://shopify.dev/api/admin-graphql/2023-01/mutations/customerupdate

 

Thanks for your help!

 

Regards

 

Cem

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 511

Hi @bordbar 👋

 

The `customerUpdate` mutation can be used with `bulkOperationRunMutation` to update multiple customer locals at a time. Bulk mutations are designed to import large volumes of data asychronously, and we have an great guide here on how to use it to bulk import data into Shopify. 

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

bordbar
Tourist
4 0 1

thanks for your feedback. 

 

Can this be done in Shopify GraphiQL App ?

 

Ciao

 

Cem

ShopifyDevSup
Shopify Staff
1453 238 511

As highlighted in this process diagram from the docs, there are steps in the bulk operation process that are outside of GraphQL. The GraphQL mutations can be run on the GraphiQL app, where as preparing and uploading the JSONL file will need to executed outside of GraphiQL app.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog