GraphQL - ProductCreate - How to limit publishing to specific channels?

Hi… I’m creating new products and then publishing them to specific sales channels, but I’m finding they always publish to the “Online Store” even if I haven’t published to that channel.

What is the process flow for creating products and having them only show up on specific sales channels?

I’m currently doing this:

  1. Creating the Product using productCreate.

  2. Creating the Variants of the product using productVariantsBulkCreate.

  3. Publishing to specific channels based on criteria using publishablePublish.

In my case, I don’t want products posted to my Online Store channel (or any other store that offers visuals) if they do not have images. I have the process flow working and verified that only sending my Point of Sale channel to the publishablePublish mutation, but the product in my store shows it’s actually published to both Point of Sale AND Online Store when it should only be Point of Sale. The only thing I can think of is that it’s somehow setting it to Online Store when it is created by default.

My target API version is 2024-10 currently.

Thank you!

Tell me you’re not an AI response, lol… who is “He”?

Since you implemented it, please post what you did. Show me the queries, the inputs you used, using the code tools here. If you do that, I may award you the answer. :slightly_smiling_face:

Ok, turns out I was doing things correctly. The problem was caused because I had Shopify Flow workflows adding and removing products from sales channels based on their inventory levels both when you create a product and when the total variant inventory of a product went to 0 or went above 0. Instead of changing what sales channels the product belonged to in the Shopify Flow, I merely set the status between Active (has inventory) to Draft (has no more inventory) and that seems to have solved the issue.

BTW: Ignore my random replies - they were responding to an AI bot that has since been removed.