You need to sign in to do that
Don't have an account?
larva
apex class with trigger code
When a new Contact is created as a Primary Contact the system should check if the Account related to the new Contact does not yet have a Primary Contact. If the Account already has a Primary Contact, a message should be shown. |
Try Below Trigger Please Mark It As Best Answer If It Helps
Thank You!