# Shopify Flows? Async and Query a product?

**URL:** <https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135>\
**Category:** Shopify Flow\
**Tags:** automation\
**Created:** [November 24, 2025, 2:49am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135 "2025-11-24T02:49:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisBradley](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/chrisbradley/32/6322_2.png) [@ChrisBradley](https://community.shopify.dev/u/ChrisBradley)\
**Post date:** [November 24, 2025, 2:49am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/1 "2025-11-24T02:49:47Z")

</div>

Hey,

I had two questions?

1. Are shopify flows run async?
2. Can you query a variant inventory level (not related to an order) and return available quantity?

---

<div class="post-metadata">

**Author:** ![kyle\_liu](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyle_liu/32/14392_2.png) [@kyle\_liu](https://community.shopify.dev/u/kyle_liu)\
**Post date:** [November 24, 2025, 3:43am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/2 "2025-11-24T03:43:46Z")

</div>

Hi @ChrisBradley

1. Shopify flow is executed asynchronously
2. The following two APIs can obtain the inventory of products

[inventoryLevel - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/latest/queries/inventorylevel)

[product - GraphQL Admin](https://shopify.dev/docs/api/admin-graphql/latest/queries/product#returns-Product.fields.variants)

---

<div class="post-metadata">

**Author:** ![ChrisBradley](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/chrisbradley/32/6322_2.png) [@ChrisBradley](https://community.shopify.dev/u/ChrisBradley)\
**Post date:** [November 24, 2025, 3:52am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/3 "2025-11-24T03:52:58Z")

</div>

Thanks @kyle_liu

I am doing on orderCreated Flow, so dont have access to inventory of product (due to the nature of the call), so just whipping up a webhook to manage inventory depreciation.

dont happen to know if it times out? my server is returning in 1second from the call (was not build for this purpose)

---

<div class="post-metadata">

**Author:** ![Eric\_Han](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/eric_han/32/802_2.png) [@Eric\_Han](https://community.shopify.dev/u/Eric_Han)\
**Post date:** [November 24, 2025, 5:54am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/4 "2025-11-24T05:54:09Z")

</div>

1. Yes, Shopify Flows run asynchronously by default
2. query a variant inventory level (not related to an order) you could use admin graqhlql to do this

---

<div class="post-metadata">

**Author:** ![Eric\_Han](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/eric_han/32/802_2.png) [@Eric\_Han](https://community.shopify.dev/u/Eric_Han)\
**Post date:** [November 24, 2025, 6:01am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/5 "2025-11-24T06:01:39Z")

</div>

you create create two actions ， and that one you can use get product variant data.

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/a/a7fe8b024d2d4970dc02f340996f9c3d1a089c6f.png)

in this response , you can get inventoryQuantity field

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/6/651109ce7ec4ec9d318cf585c5aa37c9163cdcea.png)

---

<div class="post-metadata">

**Author:** ![kyle\_liu](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/kyle_liu/32/14392_2.png) [@kyle\_liu](https://community.shopify.dev/u/kyle_liu)\
**Post date:** [November 24, 2025, 7:12am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/6 "2025-11-24T07:12:23Z")

</div>

As Eric said, you can retrieve inventory data through the flow. If it still doesn’t meet your logic requirements, you can handle the idempotency logic yourself. Shopify webhooks have a retry mechanism.

---

<div class="post-metadata">

**Author:** ![ChrisBradley](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/chrisbradley/32/6322_2.png) [@ChrisBradley](https://community.shopify.dev/u/ChrisBradley)\
**Post date:** [November 24, 2025, 7:56am UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/7 "2025-11-24T07:56:00Z")

</div>

hey @Eric_Han

Updated as I have figure it out, so its an advanced query, IE:

sku:XYZ

then the following step allows you to see the specific keys

---

<div class="post-metadata">

**Author:** ![paul\_n](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/paul_n/32/108_2.png) [@paul\_n](https://community.shopify.dev/u/paul_n)\
**Post date:** [November 24, 2025, 5:52pm UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/8 "2025-11-24T17:52:52Z")

</div>

> [@ChrisBradley](#):
>
> I am doing on orderCreated Flow, so dont have access to inventory of product (due to the nature of the call), so just whipping up a webhook to manage inventory depreciation.

If you are using order created, then you should not need a query. Instead look at:  
`order / lineItems / variant / inventoryItem / inventoryLevels`

---

<div class="post-metadata">

**Author:** ![ChrisBradley](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/chrisbradley/32/6322_2.png) [@ChrisBradley](https://community.shopify.dev/u/ChrisBradley)\
**Post date:** [November 24, 2025, 9:39pm UTC](https://community.shopify.dev/t/shopify-flows-async-and-query-a-product/26135/9 "2025-11-24T21:39:59Z")

</div>

@paul_n

Thanks, the variant isnt related to the order so I need to query it seperately (its a gift with purchase, so adding to order but need to make sure there is stock first)
