What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Adding Order Note to Order Confirmation Email after calling Webhook

Adding Order Note to Order Confirmation Email after calling Webhook

hnlq-a6
Shopify Partner
1 0 0

Hi, we're working on a store that would call a webhook to our separate app after an order is created. This app will set a custom Order Note to that Order, and we want to show that Order Note in the Order Confirmation Email.

 

However, it looks like when an order is created, both Order Confirmation Email and the webhook are called at the same time. That makes the Order Confirmation Email sent to the customer before our app can set the Order Note. (The email shows empty note at first, when I resend that email on Order Detail page, the same email is sent with the custom note attached)

 

Is there a way to make the Order Confirmation Email to delay for like, 10 seconds, so our app can set the Order Note before the email is sent?

 

Please note that we're not using the Shopify Plus plan.

Replies 0 (0)