[bug] Admin Intends edit ProductVariant does'nt work as documented

Heyho,

using the ProductVariant edit intend is described here to work like this:

const activity = await shopify.intents.invoke('edit:shopify/ProductVariant', {
  value: 'gid://shopify/ProductVariant/123456789',
  data: {productId: 'gid://shopify/Product/123456789'},
});

Yet this won’t work.
What does work is a numeric productId like this:

const activity = await shopify.intents.invoke('edit:shopify/ProductVariant', {
  value: 'gid://shopify/ProductVariant/123456789',
  data: {productId: '123456789'},
});

Can we get a fix either in the docs or the implementation? :pleading_face::backhand_index_pointing_right::backhand_index_pointing_left:


Corresponding fetch request which is triggered by the invokation with a gid as productId:


Best regards,

Kevin :hatching_chick:

Thanks for the report, Kevin! :folded_hands:t2:

This issue has been fixed, and should roll out soon. After this change, either of these will be valid:

data: {productId: 'gid://shopify/Product/123456789'}

or

data: {productId: '123456789'}

Please keep the feedback coming! :raising_hands:t2: We always appreciate hearing about your experience with the platform.

2 Likes