Missed access scope in settings

Shopify Partner
7 0 6

Hello everyone, i found one bug which i hope someone will fix soon, because i really need it for my work.

Details:

Here is documentation of GraphQL - https://help.shopify.com/en/api/graphql-admin-api/reference/mutation/publishablepublish 

You can see at the top of the screen this text - "Required access: write_publications access scope"

But when you will go to the settings of your app, you will not find write_publications access scope at the list, and this is means this GraphQL is does not work.

 

Thanks,

Vadim.

 

 

5 Likes
Shopify Partner
7 0 6
New Member
1 0 0

Sadly we cant use publishablePublish to publish a product to another channel/app/storefront because of broken access-right-management in shopify-admin-frontend (cant set write_publications, read_publications in private app). We use publishablePublishToCurrentChannel like this at the moment but it is not a good solution:

mutation publishablePublishToCurrentChannel($id: ID!) {
  publishablePublishToCurrentChannel(id: $id) {
    userErrors {
      field
      message
    }
    #publishable - no access rights until write_publications access scope can be set from admin...
  }
}

Please allow settings: write_publications, read_publications in private app frontend.

 

 

0 Likes
Shopify Partner
1843 170 534

@Shopify, could we have a minuscule little ack or nak?

Best regards

I turn coffee in to code - since 1998
1 Like
New Member
1 0 3

We too have run into this issue trying to use publishablePublish, when trying to make a product available on a different sales channel.

 

Via myshopify.com this is easily done from the "Manage product availability" modal dialogue.


It also works from within the "Shopify GraphiQL App" (app install link is currently not in the Shopify App Store, its found in the "GraphQL explorer" section of the help: https://help.shopify.com/en/api/graphql-admin-api/graphql-explorer ).

 

Interesting the access scope when installing this GraphiQL App is listed as:
* write_channels
And not as the documented (on the publishablePublish help page):
* write_publications

But neither of these access scopes are listed on the "API access scopes" page:
* https://help.shopify.com/en/api/getting-started/authentication/oauth/scopes

 

Trying to create a unlisted app with either of these access scopes results in:
* Oauth error missing_shopify_permission: write_channels

Additionally the Private App does not allow these permissions either.

 

So we are unable to make a product available on a different sales channel from our code base.

 

Very frustrating that you can only achieve this via the front end, is there an ETA of when this feature will be made available?

 

Or if there is an alternative available?

Thanks.

3 Likes
Shopify Partner
2 0 1

Hello Shopify team, any update on this issue? GraphQL API is great, but I hit a dead-end because of this issue.

 

Guys, how do you use `publishablePublishToCurrentChannel` query:

 

mutation publishablePublishToCurrentChannel($id: ID!) {
  publishablePublishToCurrentChannel(id: $id) {
    userErrors {
      field
      message
    }
  }
}

{
	"id": "gid://shopify/Collection/89775243348"
}

 

I get this:

 

{
  "data": {
    "publishablePublishToCurrentChannel": {
      "userErrors": [
        {
          "field": [
            "id"
          ],
          "message": "Channel does not exist"
        }
      ]
    }
  }
}

 

 

1 Like
New Member
2 0 0

Also looking for an update on this.

https://help.shopify.com/en/api/graphql-admin-api/reference/mutation/publishablepublish

requires write_publications access scope, but write_publications is not available in ADMIN API PERMISSIONS. 

0 Likes
Highlighted
New Member
4 0 0

Adding my request to this. Right now it's impossible to create a simple app to create and publish a product with the API that Shopify is recommending.

0 Likes
New Member
1 0 0

Something to keep in mind is that:

 

deprecated !== removed

I just tested using `published` in a mutation query per this doc page:

https://help.shopify.com/en/api/graphql-admin-api/reference/mutation/productcreate

 

My product was published to the "Online Store" sales channel successfully. I would assume the other deprecated arguments are also still supported. While this is far less than ideal since Shopify may will remove these at any point without warning, it's at least a temporary workaround.

 

0 Likes