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.

publishableUnpublish not working as documented

publishableUnpublish not working as documented

garyrgilbert
Shopify Partner
432 41 190

Hello,

 

The merchant requested that when a product is archived that it should also be removed from the available sales channels.. this mutation publishableUnpublish is supposed to remove a product from the specified sales channel, while publishablePublish will add it.

 

The problem is, if the product is already removed from a specific sales channel calling publishableUnpublish for that channel will ADD the product to the channel.

 

Starting scenario.

 

garyrgilbert_1-1645021114205.png

after calling publishableUnpublish for all channels.

 

garyrgilbert_2-1645021178255.png

 

This is not the expected behaviour and not as documented .

 

@SBD_ I noticed you answered a different question with regards to this mutation. Do you have any additional insights?

 

Cheers,

 

Gary

 

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Replies 0 (0)