A user encountered an error when trying to update a product metafield with a metaobject reference through Shopify Flow. The error indicated a type mismatch: the metafield was defined as list.metaobject_reference but was being set as a single metaobject_reference.
Core Issue:
The user wanted to create/update metaobject entries using metaobjectUpsert and then assign the resulting metaobject ID (format: gid://shopify/Metaobject/123) to a product metafield.
This workflow was initially impossible because the Send Admin API request action in Shopify Flow couldn’t return data from mutations.
Resolution:
As of September 2024, Shopify Flow now supports returning data from the Send Admin API request action.
This update enables the desired workflow of capturing metaobject IDs after creation and using them in subsequent actions.
The feature announcement is available in the Shopify changelog.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
I don’t know what you are asking, but it’s different enough than this that you might need to start another thread and do you best to explain what you are trying to do.
Is there any way to get the metaobject ID I am using metaobjectUpsert to create/update metaobject entries once this is saved then I want to assign that Metaobject ID gid://shopify/Metaobject/123 to the meta field this is possible
Hi Gary07, this is planned work and in progress but we can’t comment on an expected date given the number of priorities we’re balancing across the team.