Getting on_hand inventory quantities

Hi
Has there been any progress in getting “on_hand” inventory quantities in flow?

When trying to get available as a test, I get :

The yellow triangle says: “The field InventoryLevel.available is deprecated. Use quantities(names: ["available"]).quantity instead.”

And the red dot says: “Field ‘quantities’ doesn’t exist on type ‘InventoryLevel’
Cannot query field “quantities” on type “InventoryLevel”.”

I tried different syntax (like .quantity instead of {quantity}, but no luck.

Is it a syntax issue, or the data is not reachable by flow yet?

Thanks

You aren’t querying Shopify API there but the Flow environment and the Flow environment doesn’t support fields that require arguments like quantities. We haven’t build the solution yet for fields other than metafield and available.

Any workaround you could suggest? Querying the API from the main run-code block itself?
Thanks

Only workaround would be to write a task that does it via a Flow extension in an app. When Send HTTP request can return data, you could use that to query the API and get the values

Sounds good. Do you have a timeframe for this update?

Thanks.

You might be able to solve your use case using the Send HTTP Request action provided by the Flow Companion app. This action returns request data, which you can use in subsequent steps.

Interesting option. Thanks.

Hi @Daniel_G - did the workarounds described solve your issue?

Would prefer to do it without an extra app.
This is one edge case where product data stored in Shopify, and accessible through the API, is not reachable by Flow.
Thanks.