I am using “GetFulfillmentOrderData” to get orders. i have this
status:ON_HOLD
to filter out orders that are on-hold, i want to get orders that are on-hold and also have a tag
Seasonal_Preorder
Order object may have multiple tags. I want to specifically look for orders that are on-hold and have “Seasonal_Preorder” tag on them.
can anyone help me out with this.
Try getting order data with query tag:Seasonal_Preorder AND fulfillment_status:on_hold instead of fulfillment order data:
Hello,
Thanks for reaching out.
To get only the orders that are on hold and also have the “Seasonal_Preorder” tag, you’ll need to first filter the orders by status using ON_HOLD, then check each order’s tags manually.
Since the GetFulfillmentOrderData function doesn’t allow filtering by tag directly, the best approach is:
-
Pull all orders with the ON_HOLD status.
-
Go through the tags for each order.
-
Select only the ones that include the “Seasonal_Preorder” tag.
Hii,
thanks for the quick reply.
i tried doing that. First, i fetched the orders that are on_hold then iterated over them and used a check block(if condition) after to filter out required orders but i am some how loosing the fulfilment order data if i use check block.
Could you provide any solution for that.
thanks
Hii Mivicle,
i tried the query with a lil customised workflow, it is getting the order released with or with Seasonal_Preorder tag on the order.
could you please check
thanks
Hii Mivicle,
could you please look into it from your side, the orders are being fetched and also released from hold but its releasing hold whether or not the tag “Seasonal_Preorder” is present.
I suspect that you entered the query for the “GetFulfillmentOrderData” action. This query will not work for this action. Please take a look into my screenshot above:
- place the tag:Seasonal_Preorder AND fulfillment_status:on_hold query to the “GetOrderData” action
- use For Each action for iterate through all the received fulfillments of the order