You need to sign in to do that
Don't have an account?
Elon Musk 15
help with trigger acc & con
Create a field on Account called “Only_Default_Contact”, checkbox, default off
Assignment:
When a new Account is created, create a new Contact that has the following data points:
First Name = “Info”
Last Name = “Default”
Email = “info@websitedomain.tld”
Only_Default_Contact = TRUE
When the Account has more than 1 Contact, update Only_Default_Contact to FALSE.
my question is on which object the trigger need to be created(Account,contact) if so Y
Assignment:
When a new Account is created, create a new Contact that has the following data points:
First Name = “Info”
Last Name = “Default”
Email = “info@websitedomain.tld”
Only_Default_Contact = TRUE
When the Account has more than 1 Contact, update Only_Default_Contact to FALSE.
my question is on which object the trigger need to be created(Account,contact) if so Y
You need to create two trigger here for above requirement
1. On Account > For "When a new Account is created, create a new Contact " : Whenever new Account created then Trigger on Account will Create New Contact
what if someone create new contact for existing Account in this case we need to update Account so we need another trigger on contact.
2. On Contact > Account has more than 1 Contact, update Only_Default_Contact to FALSE
Once you have created new contact then check for flag and update flag.
Hope it helps.