How to schedule product unavailability on Shopify?

Dear community,

right now we are having a sale on our edding nailpolish on our shop. After the 31st of March I have to make these products unavailable.

However, I can only seem to schedule the availability to PUBLISHED on the product pages, so I wanted to create a Shopify flow for this.

I am having trouble with getting the query for product data right. Does someone know where the error is?

This is the test workflow I ran to see if it would work, but the Test tag was not added :confused:

Yeah, you might want to check out the docs linked to from our help center article. The relevant GraphQL query is here: https://shopify.dev/docs/api/admin-graphql/2023-01/objects/QueryRoot#connection-queryroot-products

Edit:
Here’s the flow doc as well: https://help.shopify.com/en/manual/shopify-flow/reference/actions/get-product-data

TL:DR… use product_type not ProductType. I’d also recommend testing this in PostMan or another HTTP client tool first to make sure the query and data matches what you expect.

1 Like

Hi Paul!

Thank you very much. This helped a lot in creating my first custom flow :smiling_face_with_sunglasses: