You need to sign in to do that
Don't have an account?
Rafi Rafi
Associating contact with account
Hi,
I have a requirement I don't know how to get it, Q)ABC containers require the ability to automatically associate a contact created in their salesforce instance with the respective account based on the email domain specified in the primary email address of the contact. The association should happen in real-time as soon as a contact record is created within the system. 1)Develop the necessary piece of apex code to implement a solution 2)necessary test code(with 90% of code coverage)
Thanks in advance,
Rafi
I have a requirement I don't know how to get it, Q)ABC containers require the ability to automatically associate a contact created in their salesforce instance with the respective account based on the email domain specified in the primary email address of the contact. The association should happen in real-time as soon as a contact record is created within the system. 1)Develop the necessary piece of apex code to implement a solution 2)necessary test code(with 90% of code coverage)
Thanks in advance,
Rafi
Please try the below snippet.
Please be noted that the above is a sample snippet and you need to make changes accordingly.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
All Answers
Please try the below snippet.
Please be noted that the above is a sample snippet and you need to make changes accordingly.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.