PublishablePublish to private app sales channel

Highlighted
New Member
3 0 2

Hi!

 

Context: We have various products and collections that we offer on both our Online Store and other private app sales channels. We are using the `publishablePublish` mutation to set the publication date with a mutation like...

mutation publishResource($id: ID!, $input: [PublicationInput!]!) {
      publishablePublish(id: $id, input: $input) {
        publishable {
          resourcePublications(first: 10) {
            edges {
              node {
                publishDate
                publication {
                  name
                }
              }
            }
          }
        }
        userErrors {
          field
          message
        }
      }
    }

 

That mutation has been working for our Online Store as expected for `publishDate` values in the past and future.

 

Issue: For our other private app sales channel, setting the `publishDate` to be in the past publishes the resource as expected.

Using an argument like 

{
  "id": "[Resource ID]",
  "input": [
    {
      "publicationId": "[Online Store ID]",
      "publishDate": "2020-07-03T18:40:55Z"
    },
    {
      "publicationId": "[Private App ID]",
      "publishDate": "2020-07-03T18:40:55Z"
    }
  ]
}

Setting the `publishDate` to a value in the future correctly sets the publication date for the Online Store but does not set the publication date for our other private app sales channels.

 

Question: Can we set a publication date for the future for a resource on a private app sales channel? If not, are there any known workarounds?

 

Thanks,

Erik

2 Likes