Best answer

Trigger - delay - recheck trigger


Badge

Hi :)

 

Is there a way to have a trigger, delay, action to check if the trigger is still valid and then trigger again?

I want to have an incomplete order trigger on bigcommerce, with a delay of 10-15mins to make sure the customer hasn’t been able to fix it themselves and if its still valid then alert via email.

Or is there another way to handle the pause before pulling from bigcommerce?

Thanks :)

icon

Best answer by christina.d 29 June 2022, 18:03

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

14 replies

Userlevel 4
Badge +6

Hello @Bob Le Bob 

Just use a Delay Step and Filter Step after your Trigger.

Delay for 10-15 Mins and then have a condition in the Filter step.This way that Action Step wont be processed until the condition is met.

Userlevel 7
Badge +14

Hi @Bob Le Bob 

Good question.

The previous advice above was not quite accurate.

Unfortunately the BigCommerce Zap app doesn’t have an action for Find Order.

However, this can be achieved by using the BigCommerce API: https://developer.bigcommerce.com/api-reference/f40f1f75f3e00-get-order

App APIs can be used in Zaps with the Webhook app as an action step: https://zapier.com/apps/webhook/help

 

Try these Zap steps

  1. Trigger: BigCommerce - New Order
  2. Action: Delay For
    1. 15 minutes
  3. Action: Webhook - GET
    1. BigCommerce API - Get Order
      1. Used to get the current Order data in case it changed from when the Zap triggered
  4. Action: Filter
    1. Conditions
  5. Action: Gmail - Send Email
Badge

Hi @Bob Le Bob 

Good question.

 

 

Thanks Troy.

I’ve got a bit stuck though, can you point me in the right direction?

URL - https://api.bigcommerce.com/stores/{storehash}/v2 (or v3?)

Query stock params /orders/  Bigcommerce ID

 

How do I authenticate?

 

Thanks :)

 

Userlevel 7
Badge +14

@Bob Le Bob 

BigCommerce API docs about authentication: https://developer.bigcommerce.com/docs/e861a9c6b77b5-authentication

Badge

@Bob Le Bob

BigCommerce API docs about authentication: https://developer.bigcommerce.com/docs/e861a9c6b77b5-authentication

Thanks, Troy.

I think I've got that now, but now have an error of “The app returned "The field 'Note' is not supported by this resource.".”

 

I’ve not put any query string parameters, but even when I try with OrderId I get the exact same error message.

 

 

 

Userlevel 7
Badge +14

@Bob Le Bob 

Please post screenshots with how your Zap step is configured in order for us to have context, thanks.

Badge

@Troy Tessalone thanks :)

 

 

Userlevel 7
Badge +14

@Bob Le Bob 

Please provide context about what you are trying to do with this Zap step.

Badge

@Bob Le Bob

Please provide context about what you are trying to do with this Zap step.

I thought that this was just going to pull fresh order information back in.

So this comes after a 15 minute delay and the next step would be filter to only continue if the order status is still incomplete

Userlevel 7
Badge +14

@Bob Le Bob 

If you are trying to get the details of 1 order, then you need to configure the GET request with an Order ID as part of the URL path.

 

 

Badge

Ah got it, I was putting OrderId in the first column then the actual OrderId in the second and the first wasn’t needed.

 

Thank you @Troy Tessalone 

Badge

@Bob Le Bob

If you are trying to get the details of 1 order, then you need to configure the GET request with an Order ID as part of the URL path.

 

 

 

Another question if I may?

Sometimes a customer has an incomplete order with order ID 12345 but then when they do complete the order they end up with order ID 12346

I can see that I can pull all the orders for the customers email address, is there a filter I could use to check if there is a newer (bigger) order number that is in a state other than incomplete.

 

Userlevel 7
Badge +14

@Bob Le Bob 

That sort of logic is possible but gets much more complex to configure generally involving Code steps and potentially other API requests.

Perhaps consider hiring a Zapier Expert: https://zapier.com/experts

Userlevel 7
Badge +9

Hi friends, I wanted to swing by and summarize some of Troy’s responses here. Hope it helps! 🤗:

Hi @Bob Le Bob 

However, this can be achieved by using the BigCommerce API: https://developer.bigcommerce.com/api-reference/f40f1f75f3e00-get-order

App APIs can be used in Zaps with the Webhook app as an action step: https://zapier.com/apps/webhook/help

 

Try these Zap steps

  1. Trigger: BigCommerce - New Order
  2. Action: Delay For
    1. 15 minutes
  3. Action: Webhook - GET
    1. BigCommerce API - Get Order
      1. Used to get the current Order data in case it changed from when the Zap triggered
  4. Action: Filter
    1. Conditions
  5. Action: Gmail - Send Email

 

From there if you’re looking to get the order details from one order you can:

 

… [can] configure the GET request with an Order ID as part of the URL path.