This seems like it should be simple, but I can’t figure it out…
I have two collections:
Users
Companies
Relationship: A company can have multiple users. A user belongs to one company.
Screen 1 (Sign up)
User inputs name, email address, password etc and a user record is created.
Screen 2
I want the user to input company information into a form, and the submit button should carry out the following actions:
Create the company record
Update the logged in user record with the company name
I’ve tried every way I can think of but I can’t get the user record to update with the company name
e.g. John Smith is linked to Company X (and vice versa)
When the user selects “Create Company” button I’ve set the update actions to (a) Create the company record in the company collection and (b) then link back to the home screen:
But…
I want the “Create Company” button to complete a 3rd action: To update the company for the logged in user.
This is what I’m assuming should work (Update > Logged in user > Company)