We plan our sales calls and emails for the week according to which delivery runs we are doing that week. As we have a mix of weekly, fortnightly and monthly delivery runs, its gets quite complicated.
On the delivery zones page, there is a column of ‘Next delivery date’, but I can’t seem to be able to filter using BrewwQL to bring up a list of customers of ‘Next delivery date’ = next week for example.
I’m please to confirm that we’ve exposed the next_delivery_date field on delivery areas via BrewwQL now This means, that when filtering Customers using BrewwQL, you can now search like this:
delivery_areas.next_delivery_date = "14/04/2025"
For more on how dates are handled in BrewwQL, please see our BrewwQL Dates help guide. Hopefully this covers what you need, but please let us know if you have any questions
This does look like it is working as expected, although I need to get my head around using BrewwQL date parameters. It seems that using “This Week” is too vague. Currently I’m using the >=“This Monday” and <=“This Friday” to constrain the week. Is there a better/easier way to do this?
BrewwQL date filtering is always based on a specific date. “This week” isn’t a specific date; it’s a date range (e.g. 14th April to 20th April), this is why you cannot use:
delivery_areas.next_delivery_date = "This Week"
but you can use:
delivery_areas.next_delivery_date >= "This Monday" and delivery_areas.next_delivery_date <= "This Friday"
Hopefully that makes sense.
You can save lists to prevent you from having to enter the BrewwQL filter every time. Then, as long as your filter uses “relative dates” (like “This Monday” rather than “14/04/2025”), the saved list will always be the list for “this week”.