How can I replace diacritics in Shopify Flow orders?

Hey everyone,

I’ve got a question about Shopify Flow. We have an issue where part of our system does not play nice with diacritics. I’d like to remove these from orders before they go from Shopify to our other systems.

My question is, anyone have a clever idea of how to essentially replace accented characters with their non accented version? Like á to a, e to é,etc.

My current theory is I think there’s an edit name/address function. But I’d have to make an extremely long flow by checking and replacing each letter. Is there a method in missing?

I’ve thought about having the web team do a fix, but currently I’ve been told it isn’t high enough priority to get fixed. But if it’s a flow,I can build and launch that on my own.

Any ideas?

Order editing is fairly complicated to do on your own, but I think this is the mutation you would need to call using Send HTTP Request: https://shopify.dev/api/admin-graphql/2022-10/mutations/orderUpdate

In that request, you can get the existing address and substitute characters using liquid. Something like:

{{ order.shippingAddress.street1 | replace: “á”, “a” | replace: “é”, “e” }}

So instead of running a flow that checks the order as it’s made for diacritics. You are saying just have a general one that sends that HTTP Request on every order?