Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Alternatives to publish a product

Solved

Alternatives to publish a product

hpsmatheus
Shopify Partner
10 0 0

I have an Shopify APP that I'm currently updating the Admin API from 2022-07 to 2022-10 version. One of the breaking changes I'm facing is that the ProductInput object no longer has the published attribute. Seems like it is not possible to create a published product as of this newer version, instead you have to create a product and then call the publishablePublish mutation, but it requires the write_publications access scope which currently I don't have. So if I have to use this I'd have to ask my merchants to reinstall/reauthorize the app and this is not good for my customer experience atm. Does anyone know an alternative solution for that? Any help is appreciated

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @hpsmatheus - at the moment, if you do need to publish a created product after it's created through the API, the workflow you outlined using the publishablePublish mutation is the only way to do this currently within the GraphQL API. That said, I get definitely understand where you're coming from here. My understanding is that the intent is to sort of disconnect product creation from the process of displaying them on sales channels/the storefront. 

That said, you do bring up a great point, I can't guarantee anything on my end, but I'll forward this thread and feedback on to our product team for future consideration. Again, I can't guarantee a followup here or if/when anything would be implemented, but we can get developer eyes on the thread. 

Hope this helps and thanks for getting in touch. 

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 525

This is an accepted solution.

Hey @hpsmatheus - at the moment, if you do need to publish a created product after it's created through the API, the workflow you outlined using the publishablePublish mutation is the only way to do this currently within the GraphQL API. That said, I get definitely understand where you're coming from here. My understanding is that the intent is to sort of disconnect product creation from the process of displaying them on sales channels/the storefront. 

That said, you do bring up a great point, I can't guarantee anything on my end, but I'll forward this thread and feedback on to our product team for future consideration. Again, I can't guarantee a followup here or if/when anything would be implemented, but we can get developer eyes on the thread. 

Hope this helps and thanks for getting in touch. 

 

Al | Shopify Developer Support

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog