How to send an invoice email based on order amount?

Solved

How to send an invoice email based on order amount?

CarmineT
Shopify Partner
96 2 34

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
96 2 34

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 4 (4)

paul_n
Shopify Staff
1717 188 394

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
96 2 34

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
96 2 34

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

Adnan333
Shopify Partner
46 0 0

Hello is there no way to send the email ? 
I do get this error Mutation had user errors: "No outstanding balance exist"

I want to do this because I would send this email to another person like a agent