Search Location Data Metafields and Match To Order Metafield

I’m currently running a flow that finds an order attribute, assigns an order metafield, then if that matches a set value it moves fulfilment order.

This has worked up to now but the merchant is starting to expand in many more locations.

I want to add an additional step that does the following:

  1. Gets all location metafield values.
  2. If order metafield matches location metafield
  3. For each item in orderFulfillment request move to that matched location.

I’ve tried this but its still returning false.

Is there a way to do this without running code?

Hey, whats the usecase here?

I’m not sure what “Get location metafield values” means here. Do you mean all the values for a single location metafield (across locations)?

But to @blanklob 's question, it would help to know the use case in bit more detail.

Hey guys, it’s a pretty specific use case. Customers can only order if they pass a truckId url parameter through which identifies where they are ordering from. We then needed to check for that and re route the fulfilment to that location.

I’ve managed to sort it now so can mark this as solved!