Flow Out of stock email that shows Item SKU numbers

Topic summary

A user needed to create a Shopify Flow workflow that sends out-of-stock email notifications including product SKU numbers. The initial challenge was that emails displayed “Default Title” instead of the SKU, as their products don’t use custom variants.

Key Technical Points:

  • All Shopify products have at least one variant; products without custom options have a hidden “Default variant”
  • Flow uses camelCase variable naming (e.g., productVariant.sku), not snake_case
  • Screenshots were shared showing proper Flow trigger configuration and variable selection

Resolution:
The user successfully implemented the workflow using:
{{product.title}} {{productVariant.title}} {{productVariant.sku}} went out of stock

Initially, removing the variant variable broke the email functionality. However, after re-adding it, the workflow functioned correctly and the “Default Title” text stopped appearing. The user noted that while Flow is useful, they wish Shopify included simpler checkbox options for basic functions like automated out-of-stock emails, which their previous platform offered natively.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

I need a Flow App Out of stock email that shows the Item SKU numbers

I have created a new workflow that sends my store an email when products are out of stock after an order.

I also need the SKU item number to show up in the email.
Below is what I am currently using:

{{product.title}}((variants_item.sku)) went out of stock

The mail says default variant instead of the SKU as my products don’t use variants.

Any ideas?

Hard to tell without seeing your flow as variable names would differ.

I used Flow like this:

The answer should be simple but I can’t think of a good replacement without the variant…

That’s not enough.

Basically, when I click “Add variable”, I see this list of objects passed by the trigger - -they are specific to each trigger.

My trigger passes the actual variant which inventory was changed, not sure about yours.

Also, variants_item does not look like a Flow variable – they use camelcase rather then snakecase naming.

Thank you for looking at my code - I appreciate it.

Not sure but I think I need to make replacement as my products don’t have variables,.

But I am new to Flow so I could be wrong.

Nah, every product in Shopify has variants(s).
If you do not have options defined on a product, there is a “Default variant” which is kinda hidden.

When you add to cart, you’re adding variant, not product.
And then, in your cart/order you have line_items; but they do have a .variant and .product fields which link to original product and variant.

Interesting - the plot thickens - I didn’t realize that I had variants.

I will keep searching for the correct code to use… but it’s not that clear. I asked Shopify support to help as it’s a shopify app - but they said they are not trained with Flow.

Thank you for trying to help me!

1 Like

Have you tried to recreate a Flow based on my screenshot?

I have not tried a new flow just yet. I did read your example carefully.

I am going to try and understand then theory behind your flow first. At first I thought Flow was complicated but once you understand how to use the search feature it becomes easier to create a flow. I need to use teh search as teh code is all new to me…

1 Like

The Shopify email works now although it has two extra words “Default Title” that are not needed in the email.

Yes, as I said, when there is no options defined on the product, then the “hidden” variant is created and its title is “Default variant”.
This is what’s output by {{ productVariant.title }}
If all/most of your products are like this, then I’d suggest removing this variable from your email text…

Yes all my products are like this - no Shopify variants. This is because I have lots of product options so I use an app. Thank you for your ideas - I will try to remove the variable now

I removed the variant as you suggested and the email no longer worked.

Then I put it back and the email worked and the extra text stopped showing up in the email. Below is what I have now which works! Thanks again for your thoughtful suggestions.

Flow is interesting I think I will need to try a few more workflows before I start to get comfortable with it - but it does seem to be useful as a shorthand way to program…

Although I do wish that Shopify would include a way to do simple things with just checking a box. For 20 years I used a server based store software which included more basic functions than Shopify such as an automatic out of stock email.

{{product.title}} {{productVariant.title}} {productVariant.sku}} went out of stock