Set sales channel for productCreate

LePong
Excursionist
25 1 19

Hi there.
I’m creating products through an app using GraphQL and I’m wondering if I can set the sale channel availability for the newly created product.

I’m currently only creating products for the online store, but I may need to create for different channels later on.

Thanks!!

Replies 6 (6)

Busfox
Shopify Staff (Retired)
628 49 110

Hi @LePong,

 

We do have the Publication object, but the required scope (read_publications/write_publications) is currently a protected scope that we are still building out a process for applying for. I'd recommend staying subscribed to our Developer Changelog for any updates to the availability of this object.

 

Cheers,

To learn more visit the Shopify Help Center or the Community Blog.

cfurniture
Visitor
2 0 1

Has there been any development on this?

Lawolf
Tourist
9 0 5

I would like to know this too. Making write_publications scope only available to Plus stores is ridiculous..

juan3211
Shopify Partner
121 0 34
Hi Shopify. Anyone?
Itachi_Uchiha
Shopify Partner
12 0 0

Just found an solution:


1) You can currently publish a product to the online store via the deprecated 'published' field on the productCreate mutation
2) You can publish to any sales channel with the PublishablePublish mutation.

You can find the original answer here.

Itachi_Uchiha
Shopify Partner
12 0 0

Hi Shopify. Any updates?