You need to sign in to do that
Don't have an account?
chim chim 9
Write a trigger on account that assign a primary contact. There can only be one primary contact per account.
When a new Non-Primary Contact is created and the Account related to the new Contact does not have any existing Contacts, the new Contact should automatically become the Account's Primary Contact.
Hi experts. Help me on this one. thank you
Hi experts. Help me on this one. thank you
Not sure how you are tying Primary Contact to Account i.e. either Lookup or Master Detail. Anyway considering you have custom field on the Account Named PrimaryContact__c, here is the trigger
hi,
Please find the solution.
Please mark it as the Best Answer if it helps you.
Thank You