You need to sign in to do that
Don't have an account?
Adii
Trigger Scenerio
Write a Trigger to create contact whenever the user is created. If any account matches with the email domain of the user
then that contact must be created under that account else create contact under a new account
then that contact must be created under that account else create contact under a new account
Are you facing any issue while implementing the scenario?
You could follow below steps while implementing:
>>Create a trigger on user before insert.
>> get the emails of the accounts and add the domains to a set so that they are not repeated.
>> Check the set and if the domain is not present in the current list of contact details then create a new one or if there is one already you could create a new one under that contact.
I hope this helps, in case if this comes handy can you please choose this as best answer so that it can be used by others in the future.
Regards,
Anutej