Automation
đź’Ž Built for Sidekick
⚡ Sidekick does this for you
shopify
sidekick
automation
orders
flow
Auto-Archive Old Fulfilled Orders
Build a scheduled Flow that archives orders that are paid, fulfilled, and older than a chosen age, to keep the order list clean.
đź“‹ Prompt
Build a Shopify Flow that archives closed-out orders automatically.
Trigger: Scheduled time — recurring, every [FREQUENCY] (e.g. weekly).
Actions:
Get order data — query: financial status is paid, fulfillment status is fulfilled, no open returns, last updated more than [ARCHIVE_AGE_DAYS] days ago (e.g. 90), up to 100 results.
For each order in the results:
Archive order.
Send internal email to [OPS_EMAIL] with subject “Orders auto-archived: [COUNT]” listing the order numbers archived this run.
Before activating:
Show me the exact query and confirm the age threshold — I want to make sure orders with pending disputes or open returns are excluded even if they’re old, since archiving doesn’t cancel or delete anything but I still don’t want to archive something mid-issue.
Confirm the schedule frequency.
After I confirm, create and turn on the Flow.
Note: archiving only changes the order’s status in the admin list view — it doesn’t delete data, cancel the order, or affect reporting/analytics. If more than 100 qualifying orders exist in a single run, only the oldest 100 (per the query sort) get archived that cycle; the rest catch up on the next scheduled run.
How to Use
- Copy the prompt above
- Open Shopify Sidekick in your Shopify admin
- Paste the prompt and replace the bracketed placeholders with your details
- Review Sidekick's response and apply the suggestions