• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Best Way to Set Up Resending Shopify Draft Order X Times but Check If Draft Order Still Exists Before Sending

I have set up an automation to resend draft orders in Shopify after 7 days, then every 30 days for up to a year. However, would like to check the Draft Order still exists and turn off the workflow if it doesn't. The Draft Order disappears in Shopify if the customer purchases through it.

Pabbly only allows if/then router at end of automation. Is there a way to implement this draft order (check if number exists) validation in the middle of an automation.

So if the Draft Order exists, move to next step. If Draft Order doesn't exists, turn off this workflow for that customer or draft order.
 
P

Pabblymember11

Guest
Hey @mktg2contractors

If you want to check the order status in your Shopify account then you can make use of the "Shopify: Get Order by ID" action step.

Pabbly only allows if/then router at end of automation. Is there a way to implement this draft order (check if number exists) validation in the middle of an automation.

So if the Draft Order exists, move to next step. If Draft Order doesn't exists, turn off this workflow for that customer or draft order.

Further please elaborate more on your use case.
 
Workflow is triggered by Draft Order Created, every 30 days I want to resend the same Draft Order for a year, so 12 times. If a customer buys through that Draft Order, then the Draft Order disappears and doesn't exist anymore. If the Draft Order disappears in 60 days, I want the workflow to turn off. Otherwise, I would be using Pabbly tasks for no reason. Looking for best way to set up. I can only add a router at the end of workflow so how would I check if the Draft Order exists more than once?
 
P

Pabblymember11

Guest
Can you please provide the workflow URL in which you have tried the same so that we can look into it and help you accordingly?
 

the workflow is set to check for a tag for each sales rep and then splits the workflow into a branch for each. If necessary, I could create a separate workflow for each so no router is needed. I would just like to do a check before resending each draft order to see if draft orders exists and then turn off workflow if it doesn't. I thought the SKIP STEP ON FAILURE could work but not sure how to set up.
 

ArshilAhmad

Moderator
Staff member
Please try adding this endpoint, along with a Filter, between each Delay and the 'Send an Invoice for Draft Order' action step.

1709747504452.png



The endpoint will provide you with the status of the draft order, which you can then utilize in the Filter step. You can set the filter conditions such that the next steps trigger only if the draft order exists.
 
Top