Update shopify product Weight based on product tag using flow

Update shopify product Weight based on product tag using flow

SAnderson_GW
Tourist
5 0 2

I would like to automatically populate a product's weight using flow upon product creation. I can use a specific tag to determine the correct value. Is there a way to achieve this in flow? 

 

I assume the action would be to 'update product metafield' but to do this I need the namesake and key (and know the correct 'type' of metafield) for the shopify weight field and understand how to format what goes into the 'Value' field of the action. 

 

Can someone help? 

Reply 1 (1)

RPiii
Shopify Staff
156 27 46

Hi @SAnderson_GW 👋 While you could define weight as a metafield, the most appropriate way is to update the inventoryItem.measurement.weight fields. You may be able to automate that in Flow using an inventoryItemUpdate mutation via the Send Admin API request action.