Hi. I’ll preface this by saying I’m not super knowledgeable when it comes to bubble, so what I’m trying to do might not even be possible.
Basically, I’m trying to create an internal workflow to allow my app to safely connect to cPanel’s API and create e-mail accounts for my users.
In my mind, the whole process should go like this:
-
User fills a form with desired email name and password
-
This triggers an internal workflow (and sends the form fields + domain + ‘user id’ as data)
-
The internal workflow searches the ‘Website’ database table using the ‘domain’ value as a constraint and gets the server_id value (which is a foreign key) in that table
-
The internal workflow uses that server_id to do a new search, this time in the ‘Servers’ table (which is private) and gets the hostname AND access hash values for that particular server
-
All that data is then used to authenticate and trigger an external API (with POST request) that will create the email account
-
If the response indicates a success, a ‘success’ popup should appear for the user
6b. If the response indicates an error, an ‘error’ popup should appear
-
If it was a success, we add a new item to the ‘Email’ database table corresponding to the created email
The problem is, I have no idea how to do steps 3 and 4 within a workflow in bubble. In fact, I’m not even sure if that’s possible?
So my question is: Can I take specific data that was sent to a workflow and use it as a constraint to do database searches to get more data that i’ll use - all within a workflow?
And what are my options when it comes to steps 6a and 6b?
Thanks in advance for the help, and sorry if that was confusing.