What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: Set sales channel for productCreate

Set sales channel for productCreate

LePong
Excursionist
25 1 21

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
126 0 42
Hi Shopify. Anyone?
Itachi_Uchiha
Shopify Partner
26 0 1

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
26 0 1

Hi Shopify. Any updates?