Trigger to update Custom picklist field on Account when contact is Inserted under Account - triggers

I want to update the custom picklist value on Account Object with the name of the Contact Associated with it whenever a new contact gets created under Account

Related

How do I trigger a blocking function when a new user registers to check that their email address is in a collection?

I have a flutter app using firebase and google cloud. The organization providing the app to their users uploads a list of users that are able to register and create an account. When a user goes to register I want two things to happen:
They are given an error message if their email address and ID number do not match an existing document with email and ID field values
Existing fields, like their department and deck number that are in the collection uploaded by the organization are copied to their new user profile
I would write a cloud v2 function. The documentation has some great examples of how to block registration. What you would want to do is in the beforeUserCreated method, look up the field in firestore to validate that their email. You can get their email through the AuthBlockingEventType additionalUserInfo field which should provide the username (email in this case) to compare against the firestore database.
Deploying an AuthBlocking function is the same deployment as any other function.
Once deployed, you will need to remember to register your blocking function for it to take effect.
As far as updating their user profile information, you could just use another cloud function to listen for a database change once the user is registered and then copy that data over.

Mutli-User Firebase Database

I'm trying to create a sign up screen in Xcode that allows a user to pick a "account type" designer, singer etc. that then groups those individuals together and creates their account, grouping them by their account type.
I am able to create accounts and store them within my Firebase database and I have the drop box with all the account types but I don't understand or know how to create these account types and attach them as identifiers of each user upon sign up.

Enter contacts using workflow in Accounts

I have a situation where I am creating an Account record from a contact using a workflow, but I would like to have the Contact section in the Account be filled with the Contact from who I am creating that Account record using a workflow. How do I enter the contact in it using Workflow.
I need the contacts related to the Account show up here.
Thank you in advance
What you have to do is:
Once you have created the account, you need to update the contact and assign the parent account referencing the newly created account

Symfony2 Registration Form User Entity

I'm trying to create a registration form using my "User" entity, but the UserType form contains a lot of extra fields I don't want to be completed on the registration form.
Do I need to create a second Form Type to pull this off?
i.e. One of the fields in the UserType form is "account_status" which tracks whether the account has been approved by an administrator.
How to implement a simple Registration Form
Here you can see an example of creating a registration form. The full UserType is not for registration, it's for an admin to create the user. Obviously you don't want the user to set his/her account status during the registration process.
You can set theese variables in the RegistrationController, and you should create a new UserType for user registraion.
If you don't want to use the accountStatus method, you should set it to true during the registration in the controller.

Updating contact email in user trigger in Salesforce

I have a trigger on a user object that is triggered on user updating and updates the contact fields (user linked to this contact), such as first name, last name and email. First and last name are updated correctly, but email field is not updated. I think, this is due to the fact that changing a user's email to be confirmed through a link that comes in the letter. But when I confirm the change by email, contacts still not updated:(
Is there any way to solve this problem?
Add some shade field update on user when email change by workflow rule, and it will be execute trigger.