User Registration and Company Assignment Problem

Hey there,

I’m new to Bubble and app development in general. I’m having trouble with some backend workflows for my business software project.

In my app, each user needs to be connected to their company, which they specify during registration. I’ve searched for solutions but couldn’t find anything addressing my specific needs.

Would anyone be able to help me set up the right workflows for this functionality? Any guidance would be greatly appreciated!

Thanks in advance for your help! :slight_smile:

Here’s what I’m trying to implement:

When a user registers and enters a company name that doesn’t exist yet:

  • The user should automatically be assigned the “System Administrator” role
  • A new company record should be created in the Company database
  • The user should be linked to this new company
  • After registration, this admin will complete the company profile/record

When additional users register with a company name that already exists:

  • The App should recognize that the company already exists
  • The new user should be added to the existing company
  • The user should retain the default role (“Data Manager”)