Help debugging inventoryActivate mutation in Make

Hi everyone,

I’m trying to activate Shopify inventory for products using Make (formerly Integromat) and GraphQL, but I’m running into some issues. Here’s my setup:

  • I have a CSV of products and quantities.

  • I use Make’s module to create products in Shopify.

  • I use Make’s module to set the inventory level in Shopify.

    • Inventory levels get pulled in, but the inv. tracking toggle is still set to off…
  • I’m trying to use inventoryActivate to enable the toggle, but nothing happens?

My mutation looks like this:

mutation {
  inventoryActivate(
    inventoryItemId: "{{24.body.data.product.variants[].inventoryItem.id}}",
    locationId: "gid://shopify/Location/114090279237"
  ) {
    inventoryLevel {
      id
    }
userErrors {
      field
      message
    }
  }
}

Thanks!

Hi @ComfortableMedia6

Just to confirm is that setting on Shopify or Make?

This one, on Shopify. So I’m successfully pulling in my available stock numbers, because when I toggle it to on within Spotify, it shows up. But the the inventory Activate doesn’t appear to do anything as the toggle is still off within Shopify.

Out of interest, if you try running the mutation you shared in the GraphiQL app, does it work?