Issue with Product Image and Media IDs in App Bridge Resource Picker

I’m using App Bridge Resource Picker to select products and their associated images. However, the picker returns image IDs in the format gid://shopify/ProductImage/{id}, but I need to update media using the productMediaUpdate GraphQL API since the productImageUpdate API is deprecated, which requires gid://shopify/ProductMedia/{id}.

Is there any direct way to map or convert the ProductImage ID to ProductMedia ID? Also, the Resource Picker does not seem to provide media IDs directly. Has anyone else encountered this issue or found a workaround? Any advice would be appreciated!

Hi Sijann,

Usage of the ProductImage ID should deprecated in GraphQL and the resource picker should not be returning this (it should return a ProductMedia ID). We’re looking into it as the fix to this problem is from our side. Thanks for letting us know.