Solved

How to send an invoice email based on order amount?

CarmineT
Shopify Partner
85 2 21

order_amount.jpgHi,

 

I have created a basic Flow that check the amount of the order and if higher of a certain amount it should send an invoice or an email.

 

I tried to test such Flow creating a draft order with amount higher then the threshold but unfortunately it get stuck with such error(in a loop never ending): 

"Retrying
Ran into transient error: GraphQL Response User Errors: "No outstanding balance exist""
Accepted Solution (1)

CarmineT
Shopify Partner
85 2 21

This is an accepted solution.

I achieved the wanted result, send an email base don the order amount(already paid) with some adapt of a post purchase template automation flow(that isn't the Flow)

 

I have attached the blockpurchase_upsell.jpg

View solution in original post

Replies 3 (3)

paul_n
Shopify Staff
1005 133 240

Can you take a screenshot of the workflow run page that shows that error? 

 

I think that the invoice action is designed to only work when there is an outstanding balance, but not sure which action is causing that error, or your logic

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
CarmineT
Shopify Partner
85 2 21

I thought the screenshot was attached.

Indeed as you said as there was not balance outstanding then that error.

In the end I was able to use a template post purchase marketing automation flow with some "adjustment".

 

Now another question arise, how I stop that flow keep retrying? 

CarmineT
Shopify Partner
85 2 21

This is an accepted solution.

I achieved the wanted result, send an email base don the order amount(already paid) with some adapt of a post purchase template automation flow(that isn't the Flow)

 

I have attached the blockpurchase_upsell.jpg