You need to sign in to do that
Don't have an account?
TracMikeL
Most Efficient Trigger Code
I have a simple custom object with Contact and Account lookup.
When the contact is populated and the account is not, what is the most efficient trigger code to populate the account lookup from the contact?
Thanks!
Hi,
If a user doesnt populate account lookup and populates contact lookup, and hits save this is what trigger nneds to do
Here no need of any dml because we are just populatng account__c field (account lookup field in Custom_Object__c) and system will perform dml after this trigger execution.
All Answers
Hi,
If a user doesnt populate account lookup and populates contact lookup, and hits save this is what trigger nneds to do
Here no need of any dml because we are just populatng account__c field (account lookup field in Custom_Object__c) and system will perform dml after this trigger execution.
perfect!