A user seeks help creating a Flow automation to email daily sales reports containing: yesterdayâs total net sales, yesterdayâs total orders, and month-to-date net sales. The store owner prefers email reports over checking the Shopify app.
Current Challenge:
Flowâs âGet order dataâ action can retrieve order information, but accessing aggregated sales data isnât straightforward via API
With 60-70 daily orders (under 100), pulling yesterdayâs data is feasible
Month-to-date reporting is problematic due to the volume of orders that would need to be retrieved over an entire month
Suggested Approach:
Daily and yesterday metrics (items 1 & 2) are achievable
Month-to-date totals (item 3) likely wonât work due to data volume limitations
Using Flowâs âRun codeâ action is recommended for aggregating order values instead of Liquid templating
Status: The discussion remains open with a partial solution identified. The user wants to avoid paid apps and utilize Flowâs built-in capabilities, though Flow currently lacks direct integration with Shopify Analytics reports.
Summarized with AI on October 30.
AI used: claude-sonnet-4-5-20250929.
To get order data in Flow, you would use âGet order dataâ. But none of this data is easily accessible via API, and getting it may require you to pull quite a bit of data. If your # of orders is over 100 per day, it just wonât work.
Ideally, Flow wants better integration with Shopify Analytics so you can use data from reports in Flow, rather than trying to pull all the data into Flow.
Thanks for the update. My idea is to send a daily email with the total sales for the day.
On average, my orders range from 60 to 70 per day, never exceeding 100.
My store owner prefers the old-school wayâchecking reports via email rather than using the Shopify app. I manually send him a report every morning, which is getting quite annoying for me. Haha.
If you suggest using an app, itâs possible, but I donât see the need to spend money when I can use Flow. It used to be easier to use, but now the variables in Flow feel a bit confusing.
Ok, so you might be able to do (1) and (2) but not (3) because itâs that volume over a whole month.
To do it, youâll need to get orders from that time period and then total up the values for the email report. Iâd recommend exploring Run code as itâs a good way to aggregate data (instead of liquid).