You need to sign in to do that
Don't have an account?
sai krishna 267
I have a requirement Account having opportinities and contacts my question is in Account object it has to print opportunities count and contact count by using the custom field
I have a requirement Account having opportinities and contacts my question is in Account object it has to print opportunities count and contact count by using the custom field and respective names of opportunites and contacts will also printed in Account.whenever delete the contact or opportunity it will be automatically updated count & name Automatically give me any body propercode for these....
You need to write 2 triggers. One on Contact and One on Opportunity. Before using this code Please create two fields on Account Contact_Count__c, Opportunity_Count__c.
Write similar code on Opportunity to get Opportunity count. This code will work in getting Contact Count.
Please let me know if helped by marking Best Answer.
Regards,
Ramakant
All Answers
You need to write 2 triggers. One on Contact and One on Opportunity. Before using this code Please create two fields on Account Contact_Count__c, Opportunity_Count__c.
Write similar code on Opportunity to get Opportunity count. This code will work in getting Contact Count.
Please let me know if helped by marking Best Answer.
Regards,
Ramakant
Similarly you can write contact trigger to update contact count on account.
Hope this will work.
Regards,
Ramakant