Hey guys just wondering how i go about saving a pice of data after i do a POST action in the connector. The api runs doing the action with the service but then immediately returns a “status” result that i would like to save in bubble as a variable / data. Please help! i’s probs super easy and i’m a nube.
Hey @lnorbido,
You can reference the result of a POST in any subsequent workflow action:
In this example, Step 1 is an API connector action and Step 2, saves the id from the result of the action into a local Bubble data type called event.
Looking to improve your Bubble™ skills?
Let me turn
into
Coaching and Development at https://uniqueideas.com or schedule a free intro session
Ken Truesdale
LinkedIn
Absolute legend!!! Thank you so much
Another real quick question sorry to bother you.
I’ve set up a User field called “coins” (virtual user currency) and trying to work out how to use the date / time function on create new event so that every 24 hrs “Coins = coins value + 100” and sets a daily bonus of 100 coins?
You might consider just calculating the daily coin bonus, rather than adding that to the coin value. In other words, “coins” is defined as the number of coins NOT including the daily coin bonus, and then when you display a users “total coins” you just calculate the value based on the start date of the account (or some other date of your choosing.)
I like to use the Expression element from the Toolbox plugin to do calculations. Here I am calculating the total coins value in an expression, and then displaying in a text element.
The calculation takes the creation date of the user (again, you can create and store any other start date you want) and subtracts that from the current date/time. It then multiplies that by the daily bonus amount of 100 and adds the result to the coins value of the current user.
And then just display that expression’s value.
Thank you!! My first time using toolbox and expressions
I think i finally got there but having some problems in my app intergrading it.
How would i traditionally do this without toolbox in bubble workflows?
I will give toolbox another go, could you please explain to what expressions are?
Also happy new year
Thank you sooo much for your support so far!