Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello,
I have created a flow in which i need to add a tag to an specific order with has requested return.
In the flow that i created the flow is adding tag to every order once it finds that the condition is true.
What i want is that the tag should be applied only to orders that have requested the return.
Solved! Go to the solution
This is an accepted solution.
I don't think you are understanding. In that condition, you need to add a criteria and select the "Get order data item" and then return status. You then need to move your tag action back to on the "Do this for each item" path
You question suggests that the condition is working as expected. Can you elaborate more on the expected behavior ?
The expected behaviour should be like......
When there is a return request from the customer the flow should be able to add a tag to that specific order and not to all the order.
In the image that i shared of my flow at the end the flow adds the tag to all the order's which is not expected.
What query are you using to get orders?
What is in that condition?
Can you share a screenshot of the "run page" where it doesn't work as expected?
So this is how the system is currently working:
Step 1: When a return is requested by the customer the admin is able to see that inside the order as Return In Progress.
Step 2: On the main orders page I need to add a tag that say’s ReturnRequested.
Step 3: So my flow so work in a way that when a return is in progress the flow should add a tag to the order in the tags section.
I’m using get order data to get the order details.
Step 4: So what happens in this flow is that when the flow is executed every order in the order’s list get tagged as ReturnRequested.
In the above only the order that has requested returns should get tagged whereas in my case all the orders are getting tagged.
The expected output is that only the orders with return requested should get tagged and not all the orders.
Without seeing your query and condition I can't tell why that might happen. One or both of them is likely not configured correctly
Hello,
The condition for the return status that i have is:
And the add order tag action only works when it is for " Do this for each item ".Because of the every order in my order list is getting tagged which i don't should not happen.
You selected the "Get order data" data in the condition, so it's checking if any of those orders have a return status. You need to check the individual order in that for each loop.
In the check if section there are only 3 options available which are : Get Order Data Item, Shop, Get Order Data so i have to select one of the "Get order data" data to get the return status as "Shop" does not provide a return status option.
And the other thing is that "Add order tags" action does require a "Do this for each item" action and also a "Get order data" action to get the order list. In the below image i have changed the condition for the "Add order tags" error to be displayed.
You want the "Get order data item"
Yes that's how I'm able to access the orders. And if the order have a return requested the " Returned " tag should be applied to that specific order only.
This is an accepted solution.
I don't think you are understanding. In that condition, you need to add a criteria and select the "Get order data item" and then return status. You then need to move your tag action back to on the "Do this for each item" path
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024