Hi Everyone,
I am really sorry to post here but me and ChatGPT are running out of ideas. I am trying to pull the last seven days of weather from an API using the backend workflow and I just cannot get it to work. ChatGPT keeps trying to get me to use some negative value in the date, such as:
This Workflow's Date + days: (This Workflow's SubtractDays * -1)
and the issue is that Bubble won’t accept the -1 value in the backend Date category.
Here is how ChaptGPT sums up the issue:
Hi everyone,
I’m working on a backend recursive workflow that needs to process a specific date by decrementing it (subtracting one day at a time) with each recursive call. However, I’m running into issues with Bubble’s expression builder and its limitations.
Setup:
- I have a
SubtractDaysparameter that increments with each recursive call (e.g., 0 → 1 → 2, etc.). - I’m trying to calculate the new date using
Date + days: (SubtractDays * -1)to go backward in time. - Unfortunately, Bubble doesn’t allow direct negation (
* -1) or parentheses within expressions for theDateparameter in backend workflows. - Attempts to calculate a negative value for
SubtractDaysor use an intermediary parameter likeOffsetDayshave led to inconsistent results.
What Happens:
SubtractDaysincrements correctly, but the calculatedDateis inconsistent or doesn’t decrement as expected.- I’ve tried various approaches, including adding a separate parameter (
OffsetDays) and precomputing negative days, but nothing seems to work reliably in the backend.
Question:
- How can I reliably subtract days from a date in a recursive backend workflow?
- Is there a known workaround for these limitations in the expression builder?
Any advice or insights would be greatly appreciated. Thanks!
I also include some screenshots of the issue. I’m also having the issue where everything is reporting at 4pm even though I am rounding to the nearest day but that is another issue…

