Help Needed: Editing Query for Tagging Historical Orders with Specific Product Tags

Help Needed: Editing Query for Tagging Historical Orders with Specific Product Tags

HrabalTW
Visitor
1 0 1

Hi 

I would like to tag historical orders created from 2023 with specific line items that include particular product tags by using the 'Get order data' action. Could you suggest how to fix the following query to filter data?

created_at:>=2023 AND Lineitems{product.tags:"title:Summer202*"}

Screenshot_1.jpg

Reply 1 (1)

Kalen_Jordan
Shopify Partner
764 34 135

Try using the graphiql app to debug that query:

https://shopify.dev/docs/api/usage/api-exploration/admin-graphiql-explorer

 

I think the created_at filter is wrong - might need to be '2023-01-01' instead of 2023 without quotes

 

The lineitems one I think looks wrong too.