Hi @N-Shopify ,
Thanks, for looking into this.
- Yes there where some products that had values in
Target Ages
.
- Yes, both in UI.
bulkMutation:
mutation BulkCreateCollection($stagedUploadPath: String!) {
bulkOperationRunMutation(
mutation: """
mutation call($input: ProductSetInput!) {
productSet(input: $input) {
product {
id
title
variants(first: 1) {
edges {
node {
id
inventoryItem {
id
}
}
}
}
metafield(namespace: "custom", key: "external_id") {
id
value
}
}
userErrors {
field
message
}
}
}
""",
stagedUploadPath: $stagedUploadPath
) {
bulkOperation {
id
url
status
}
userErrors {
message
field
}
}
}
Sample input:
{
"input":
{
"collections":
[
"gid://shopify/Collection/111111111111",
"gid://shopify/Collection/222222222222",
],
"descriptionHtml": "Some really nice product to swim with sharks ;)",
"files":
[
{
"alt": "1111 | sharkswimmer",
"contentType": "IMAGE",
"duplicateResolutionMode": "APPEND_UUID",
"filename": "1111-sharkswimmer.jpg",
"originalSource": "https://exampleimage.com"
}
],
"tags": "TEST_BULK",
"handle": "janod-gitaar-ukelele-53-cm-confetti",
"metafields":
[
{
"namespace": "custom",
"key": "supplier_sku",
"value": "shark_11111",
"type": "single_line_text_field"
},
{
"namespace": "custom",
"key": "external_id",
"value": "19495",
"type": "number_integer"
},
{
"namespace": "custom",
"key": "ages",
"value": "[\"3\",\"4\",\"5\",\"6\",\"7\",\"8\"]",
"type": "list.single_line_text_field"
}
],
"seo":
{
"title": "sharkswimmer",
"description": "Some really nice shark swimmer"
},
"title": "The sharkswimmer",
"variants":
[
{
"barcode": "111111111111",
"price": "99.99",
"sku": "1111",
"taxable": true,
"optionValues":
[
{
"name": "Default Title",
"optionName": "Title"
}
]
}
],
"status": "ACTIVE",
"productOptions":
[
{
"name": "Title",
"values":
[
{
"name": "Default Title"
}
]
}
]
}
}