Create flow to close returns older than 30 days

Need help creating a Shopify flow to automatically close orders with the status (Return in progress) that were created over 30 days ago.

Thank you!

You’ll want to use get order data with a query in it with return_status:open and created_at less than 30 days ago, then loop over and close.

Thanks for the info, but how do I enter a query with said info as a flow?

Cheers

We recently released several new options for handling returns, including a template to Cancel inactive returns that automatically cancels a return that has not been refunded or restocked within a certain period of time.

Thank you!

Looks like there are some templates for this mentioned below.