I’d like to force a sequence which starts with the user signing up. While this action produces a row in the database, I’m not given the option to use the result in a subsequent action.
I want to be able to call the current user in subsequent actions, but I cannot be sure that it will be populated because I don’t have a way for force the action to wait for the user to be created.
My understanding is that the actions as they’re displayed, can happen in any order unless they reference a prior action. @emmanuel - is this true of login and signup?
Are you saying that Bubble guarantees that actions happen in order? I ask because that’s not been our experience. If this is something new you’ve pushed, then that’s awesome.
Actions happen in order, and if there is a result of previous actions you can use that. There is not change here. And current user is as explained above.
(Your special case was where actions were modifying data that wasn’t accessible as a result action)
I think Whitney’s saying there’s no way to reference the result of signing up a user.
We also know from the behavior of our app that actions start in sequence but don’t finish in sequence. In other words, they run in parallel and not in series.
So, if we can’t reference that action we can’t trust that action’s data is available to us in a later action. So, it’d be nice to be able to reference the user signing up. This would saving us from re-running searches and re-running API calls.
Not a big deal, of course, but it’d be a nice to have if it’s easy enough to add on your end.
I’m not asking if the user ID is the same. I’m asking if the user’s, say, first name that get’s entered in the “sign user up” action is guaranteed to be available in a subsequent action ?
You can reference your “end user” as the “current user” the moment they sign in or sign up.
To accomplish what you’re looking to do, try this:
In your user data, create a field (yes/no type). Call it first-login. Set default to “yes”.
When a user logs in to your app, test to see if the user’s first-login value is “yes”. At the end of the workflow for first time subscribers, change and save the value of first-login to “no”.