Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello,
I am using Shopify Flow to send a daily email to summarize the inventory quantities for certain products across our locations. The flow has a scheduled time trigger and then gets the order data for products with a certain tag. In the internal email, I am having trouble figuring out the syntax to get the "On Hand" inventory quantity for an inventory level. Right now I am getting the "Available" quantity and putting it in a HTML table by doing the following:
{% for product in getProductData %}
{% for variant in product.variants %}
<tr>
<td> {{product.title}} </td> <td> {{ variant.sku }} </td>{% for inventoryLevel in variant.inventoryItem.inventoryLevels %}
<td> {{ inventoryLevel.available }} </td>
{% endfor %}
How do I get the "On Hand" quantity instead of the "Available"?
Thanks,
Jonathan
Solved! Go to the solution
This is an accepted solution.
You cannot get the "on hand" quantity in Flow yet. The issue is that "on hand" is accessed via a special type of field in the API that Flow does not yet support.
This is an accepted solution.
You cannot get the "on hand" quantity in Flow yet. The issue is that "on hand" is accessed via a special type of field in the API that Flow does not yet support.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025