I created a Flow to adjust the case of the customer and shipping information so that it is all in title case. Some customers do all caps, some all lower, and there are some in between, but I’d like it to be uniform. I followed another post’s instructions and even had Sidekick assist.
My process is: (see pics for examples)
orderUpdate: downcase
orderUpdate: capitalize
customerUpdate: downcase
customerUpdate: capitalize
I have tried to run this manually on existing orders, however I have gotten this error:
Exception: Mutation had user errors: “Enter a last name”, “Select a country/region”, “Enter an address”, “Enter a postal code”, “Enter a city”, “Enter a phone number”
Add a condition step before all these order updates
order.shippingAddress.lastName is not blank
AND order.shippingAddress.countryCode is not blank
AND order.shippingAddress.address1 is not blank
AND order.shippingAddress.zip is not blank
AND order.shippingAddress.city is not blank
AND order.shippingAddress.phone is not blank
Have you typed variables manually or selected from the picker?
There seems to be no screenshot for the action which produces this error –
Error output mentions shippingAddress while action screenshots are updates for defaultAddress.
Keep in mind that when you place an order you specify order shipping address, however customer may have no address at all.
And if it has, it may have several and a non-default address may be used.
Okay, I tried stripping it down to just the one step for now but it’s still giving issues. I did add in Billing Address as well, but the error kicks even without it.
Also, when you get to the customer update step, I’m not 100 on this because I don’t know a lot here, but I think it’s supposed to be “addresses” not “defaultAddress”.