So I was testing my application for inviting people, and the workflow starts with searching in the database to find if the user exists or not, what I am struggling with is the "create account for someone else " works before searching the database even when I gave this action “only when” the search for users is empty.
and what I really need is the workflow to search for users and then if there is no users, create an account for someone else.
Because actions in bubble workflows do not go in order we place them in.
On step 3 use in your condition the result of step 2 is empty, since referencing a previous step forces the action to wait for the previous step to complete or at least for its’ data to be available.
How do you know? The debugger is likely showing the condition as false as the account was created correctly after checking the Get user step (and the condition is therefore true).
Nevertheless, this will always be true if you have the default privacy rules on the User type (which you should).
if that is the case what is the point of step by step? isn’t that to show what every step is doing instead of it instantly finishing the job without seeing what happening? i mean what the point of step by step? i may understood it wrong