I am trying to create a Flow that triggers when a Draft Order (or Order) is created and the conditions are
any of the line items require shipping
no Shipping line is provided
Condition #2 is the issue because the Draft order api assumes that Shipping Line information will be provided, and there is no way to check if a field (e.g. id) is blank — there is no “Is Empty” condition, and the Flow app does not seem to allow “Equal to” to check a blank string.
@Charles I echo this need. I have a Flow checking for empty phone number fields for International Orders. I tried a number of different scenarios to get this to work, but had to settle for a hack…
It was tedious to enter because once you find the specific variable you want, you still have to navigate through Order → Address → Address EACH TIME to select the variable you want for each condition. sigh. You can also set this up as “All conditions met” using “Does Not Include” with the action being on “THEN” instead of OTHERWISE.
I’d probably pull my hair out having to do it for a-z and 1-9; however, you could probably get away with just vowels…
Considering the major upgrade Flow has experienced recently, it would be nice to have the official way that isn’t a kluge though!
It is a nice workaround although as you said Shopify needs to add a blank/not blank option as well.
In regards to specific fields like shipping, it may be easier to use words that would be in all shipping methods. For example all of my shipping methods would include UPS, FedEx, Pickup, Local, or LTL so I would be able to narrow it down to the letters P, L, & E